Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

orinoco: fix last beacon reporting on 64-bit systems

orinoco_translate_scan() and orinoco_translate_ext_scan() wrongly
truncate last_scanned argument from unsigned long to unsigned int.

Signed-off-by: Pavel Roskin <proski@gnu.org>
Signed-off-by: John W. Linville <linville@tuxdriver.com>

authored by

Pavel Roskin and committed by
John W. Linville
dfe1bafd 1d047def

+2 -2
+2 -2
drivers/net/wireless/orinoco/orinoco.c
··· 5444 5444 char *current_ev, 5445 5445 char *end_buf, 5446 5446 union hermes_scan_info *bss, 5447 - unsigned int last_scanned) 5447 + unsigned long last_scanned) 5448 5448 { 5449 5449 struct orinoco_private *priv = netdev_priv(dev); 5450 5450 u16 capabilities; ··· 5591 5591 char *current_ev, 5592 5592 char *end_buf, 5593 5593 struct agere_ext_scan_info *bss, 5594 - unsigned int last_scanned) 5594 + unsigned long last_scanned) 5595 5595 { 5596 5596 u16 capabilities; 5597 5597 u16 channel;