]> git.baikalelectronics.ru Git - kernel.git/commit
ath9k: Move roc completion to the offchannel timer
authorSujith Manoharan <c_manoha@qca.qualcomm.com>
Sun, 16 Nov 2014 00:41:10 +0000 (06:11 +0530)
committerJohn W. Linville <linville@tuxdriver.com>
Mon, 17 Nov 2014 20:32:17 +0000 (15:32 -0500)
commit266da3155a79a5241036475b60c22d85192f45a7
treece19c92ba18f1b0daa1845e7b9e8d59840dadd3f
parentdc93fdd776581e7f9876470df8c46a342e84c4eb
ath9k: Move roc completion to the offchannel timer

Currently, when a roc period expires, the offchannel
timer calls ieee80211_remain_on_channel_expired(), but
the roc state is cleared only when the queued work
to switch to the operating channel gets a chance to run.

This race is a problem because mac80211 can issue a
new roc request in this window. To avoid this, handle
roc completion in the offchannel timer itself.

Signed-off-by: Sujith Manoharan <c_manoha@qca.qualcomm.com>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
drivers/net/wireless/ath/ath9k/channel.c