wl1251: fix scan behaviour while not associated
authorDavid Gnedt <david.gnedt@davizone.at>
Tue, 7 Jan 2014 12:04:53 +0000 (13:04 +0100)
committerGrazvydas Ignotas <notasas@gmail.com>
Sat, 19 Apr 2014 00:01:20 +0000 (03:01 +0300)
commitc4b1c050c6693965f390968c86a607b56f016c86
tree6cb11d93bd57bc1fb2bccbc8c80b2ee14d18e06c
parente1a6d79b8b9533c674ee6fbf6e1b1a2e53279a72
wl1251: fix scan behaviour while not associated

With a dissasociated card I often encoutered very long scan delays.

My guess is that it has something to do with the cards DTIM handling and
another firmware bug mentioned in the TI WLAN driver, which is described as
the card may never end scanning if the channel is overloaded because it
can't send probe requests. I think the firmware somehow also tries to
receive DTIM messages when the BSSID is not set. Therefore most of the time
it waits for DTIM messages and can't do scanning work.

Anyway we can workaround this misbehaviour by setting the HIGH_PRIORITY
bit for scans in disassociated state.

Signed-off-by: David Gnedt <david.gnedt@davizone.at>
Signed-off-by: Pali Rohár <pali.rohar@gmail.com>
Signed-off-by: Pavel Machek <pavel@ucw.cz>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
drivers/net/wireless/wl1251/cmd.c
drivers/net/wireless/wl1251/cmd.h
drivers/net/wireless/wl1251/main.c