ath10k: move hw_scan worker queuing
authorMichal Kazior <michal.kazior@tieto.com>
Thu, 3 Sep 2015 08:43:45 +0000 (10:43 +0200)
committerKalle Valo <kvalo@qca.qualcomm.com>
Thu, 17 Sep 2015 11:01:15 +0000 (14:01 +0300)
commit634349bae0b2a23f71cabbdb770d35fffc1aad8c
tree340486d8dbdd893890a544d1c86a90fcf011c828
parentb6c7bafa7d4b1398cce93e4af0a48603919fa933
ath10k: move hw_scan worker queuing

The remain_on_channel callback needs different
timeout. Calling ieee80211_queue_work() with a
shorter delay after calling it with a longer delay
will not change the timer. This caused the
offchannel timeout worker to not trigger in time
and caused the device to stay on channel longer
then expected. This could cause some problems and
was be easily reproduced with `iw offchannel`
command.

Signed-off-by: Michal Kazior <michal.kazior@tieto.com>
Signed-off-by: Kalle Valo <kvalo@qca.qualcomm.com>
drivers/net/wireless/ath/ath10k/mac.c