wireless: Read scan flags correctly on x86-64
authorDavid Kilroy <kilroyd@googlemail.com>
Sat, 13 Sep 2008 11:22:05 +0000 (12:22 +0100)
committerJohn W. Linville <linville@tuxdriver.com>
Wed, 24 Sep 2008 20:17:58 +0000 (16:17 -0400)
commit9930ccee16addda9fa7d9af00cd03cd5a10c8965
treefa1cd1150bbf489294cab82b206ba26d2db2d493
parentd87798450a7635ab1bcc80271a13ce4a53b016a9
wireless: Read scan flags correctly on x86-64

The SIOCSIWSCAN handler is passed data in an iw_point structure. Some
drivers erronously use an iw_param instead.

On 32 bit architectures the difference isn't noticed as the flags
parameter tends to be the only one used by scan handlers and is at the
same offset.

On 64 bit architectures the pointer in the iw_point structure means the
flag parameter is at different offsets in these structures.

Thanks to Jean Tourrilhes for tracking this down for orinoco, and Pavel
Roskin for confirming the fix and identifying other suspect handlers.

Signed-off-by: David Kilroy <kilroyd@googlemail.com>
Acked-by: Pavel Roskin <proski@gnu.org>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
drivers/net/wireless/airo.c
drivers/net/wireless/atmel.c
drivers/net/wireless/orinoco.c
drivers/net/wireless/rndis_wlan.c