]> git.baikalelectronics.ru Git - kernel.git/commit
mac80211: Run deferred scan if last roc_list item is not started
authorJouni Malinen <j@w1.fi>
Mon, 30 Sep 2013 09:36:05 +0000 (12:36 +0300)
committerJohannes Berg <johannes.berg@intel.com>
Mon, 30 Sep 2013 10:36:56 +0000 (12:36 +0200)
commitc8912094a3fe9a1fbba46e5fe918bf62db102d6f
tree061bbe36e029fa9b6ee40ebd5b4f129bfbd92bfb
parentabd7b95d4a598639d8e8184cfaf2f3b784a64a92
mac80211: Run deferred scan if last roc_list item is not started

mac80211 scan processing could get stuck if roc work for pending, but
not started when a scan request was deferred due to such roc item.
Normally the deferred scan would be started from
ieee80211_start_next_roc(), but ieee80211_sw_roc_work() calls that only
if the finished ROC was started. Fix this by calling
ieee80211_run_deferred_scan() in the case the last ROC was not actually
started.

This issue was hit relatively easily in P2P find operations where Listen
state (remain-on-channel) and Search state (scan) are repeated in a
loop.

Signed-off-by: Jouni Malinen <j@w1.fi>
Signed-off-by: Johannes Berg <johannes.berg@intel.com>
net/mac80211/offchannel.c