Skip to content

Commit

Permalink
orinoco: fix last beacon reporting on 64-bit systems
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Pavel Roskin authored and John W. Linville committed Nov 21, 2008
1 parent 1d047de commit dfe1baf
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions drivers/net/wireless/orinoco/orinoco.c
Original file line number Diff line number Diff line change
Expand Up @@ -5444,7 +5444,7 @@ static inline char *orinoco_translate_scan(struct net_device *dev,
char *current_ev,
char *end_buf,
union hermes_scan_info *bss,
unsigned int last_scanned)
unsigned long last_scanned)
{
struct orinoco_private *priv = netdev_priv(dev);
u16 capabilities;
Expand Down Expand Up @@ -5591,7 +5591,7 @@ static inline char *orinoco_translate_ext_scan(struct net_device *dev,
char *current_ev,
char *end_buf,
struct agere_ext_scan_info *bss,
unsigned int last_scanned)
unsigned long last_scanned)
{
u16 capabilities;
u16 channel;
Expand Down

0 comments on commit dfe1baf

Please sign in to comment.