summaryrefslogtreecommitdiffstats
path: root/drivers/net/wireless/ath/wil6210/main.c
diff options
context:
space:
mode:
authorVladimir Kondratiev <qca_vkondrat@qca.qualcomm.com>2013-01-28 18:31:03 +0200
committerJohn W. Linville <linville@tuxdriver.com>2013-01-30 15:07:15 -0500
commitb98917d742bcf519b15894e78c17f2eb287b3584 (patch)
tree09ef5747834d09ef591f25c247578bf6e17847ac /drivers/net/wireless/ath/wil6210/main.c
parent241804cb7b09d05c1e79735fa51521b211f51fd1 (diff)
downloadop-kernel-dev-b98917d742bcf519b15894e78c17f2eb287b3584.zip
op-kernel-dev-b98917d742bcf519b15894e78c17f2eb287b3584.tar.gz
wil6210: Fix "don't scan after connect" logic
When connect times out, scan was not re-enabled. Strictly say, it is firmware issue - it should issue "disconnect" event but it does not. Compensate in the driver. Signed-off-by: Vladimir Kondratiev <qca_vkondrat@qca.qualcomm.com> Signed-off-by: John W. Linville <linville@tuxdriver.com>
Diffstat (limited to 'drivers/net/wireless/ath/wil6210/main.c')
-rw-r--r--drivers/net/wireless/ath/wil6210/main.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/net/wireless/ath/wil6210/main.c b/drivers/net/wireless/ath/wil6210/main.c
index 90786df..3e9a71f 100644
--- a/drivers/net/wireless/ath/wil6210/main.c
+++ b/drivers/net/wireless/ath/wil6210/main.c
@@ -85,6 +85,8 @@ static void _wil6210_disconnect(struct wil6210_priv *wil, void *bssid)
for (i = 0; i < ARRAY_SIZE(wil->vring_tx); i++)
wil_vring_fini_tx(wil, i);
+
+ clear_bit(wil_status_dontscan, &wil->status);
}
static void wil_disconnect_worker(struct work_struct *work)
OpenPOWER on IntegriCloud