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>
This commit is contained in:
Родитель
1d047def6d
Коммит
dfe1bafdba
|
@ -5444,7 +5444,7 @@ static inline char *orinoco_translate_scan(struct net_device *dev,
|
||||||
char *current_ev,
|
char *current_ev,
|
||||||
char *end_buf,
|
char *end_buf,
|
||||||
union hermes_scan_info *bss,
|
union hermes_scan_info *bss,
|
||||||
unsigned int last_scanned)
|
unsigned long last_scanned)
|
||||||
{
|
{
|
||||||
struct orinoco_private *priv = netdev_priv(dev);
|
struct orinoco_private *priv = netdev_priv(dev);
|
||||||
u16 capabilities;
|
u16 capabilities;
|
||||||
|
@ -5591,7 +5591,7 @@ static inline char *orinoco_translate_ext_scan(struct net_device *dev,
|
||||||
char *current_ev,
|
char *current_ev,
|
||||||
char *end_buf,
|
char *end_buf,
|
||||||
struct agere_ext_scan_info *bss,
|
struct agere_ext_scan_info *bss,
|
||||||
unsigned int last_scanned)
|
unsigned long last_scanned)
|
||||||
{
|
{
|
||||||
u16 capabilities;
|
u16 capabilities;
|
||||||
u16 channel;
|
u16 channel;
|
||||||
|
|
Загрузка…
Ссылка в новой задаче