Skip to content
  • David Kilroy's avatar
    wireless: Read scan flags correctly on x86-64 · 9930ccee
    David Kilroy authored
    
    
    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: default avatarDavid Kilroy <kilroyd@googlemail.com>
    Acked-by: default avatarPavel Roskin <proski@gnu.org>
    Signed-off-by: default avatarJohn W. Linville <linville@tuxdriver.com>
    9930ccee