]> pilppa.com Git - linux-2.6-omap-h63xx.git/commitdiff
orinoco: fix last beacon reporting on 64-bit systems
authorPavel Roskin <proski@gnu.org>
Mon, 10 Nov 2008 14:25:53 +0000 (09:25 -0500)
committerJohn W. Linville <linville@tuxdriver.com>
Fri, 21 Nov 2008 16:08:17 +0000 (11:08 -0500)
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>
drivers/net/wireless/orinoco/orinoco.c

index 072be44b37de5e92ed0db7727037f1925d3847ae..fd9263980d695ead99d16adbbe7a223a9b7deb67 100644 (file)
@@ -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;
@@ -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;