diff options
author | David Gnedt <david.gnedt@davizone.at> | 2014-01-07 13:04:53 +0100 |
---|---|---|
committer | John W. Linville <linville@tuxdriver.com> | 2014-01-09 10:53:38 -0500 |
commit | 64322e28d3f91a196c0e86de2790cdd338a74c28 (patch) | |
tree | 5f4224b3ca1c51b67781f3198f8abbe57f54cde0 /drivers/net/wireless/ti/wl1251/main.c | |
parent | 300e5fd160114920079dd3ec132e5c01d00e4a1d (diff) | |
download | linux-64322e28d3f91a196c0e86de2790cdd338a74c28.tar.gz linux-64322e28d3f91a196c0e86de2790cdd338a74c28.tar.bz2 linux-64322e28d3f91a196c0e86de2790cdd338a74c28.zip |
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>
Diffstat (limited to 'drivers/net/wireless/ti/wl1251/main.c')
-rw-r--r-- | drivers/net/wireless/ti/wl1251/main.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/net/wireless/ti/wl1251/main.c b/drivers/net/wireless/ti/wl1251/main.c index 3291ffa95273..4d89ac800e78 100644 --- a/drivers/net/wireless/ti/wl1251/main.c +++ b/drivers/net/wireless/ti/wl1251/main.c @@ -930,6 +930,7 @@ static int wl1251_op_hw_scan(struct ieee80211_hw *hw, ret = wl1251_cmd_scan(wl, ssid, ssid_len, req->channels, req->n_channels, WL1251_SCAN_NUM_PROBES); if (ret < 0) { + wl1251_debug(DEBUG_SCAN, "scan failed %d", ret); wl->scanning = false; goto out_idle; } |