mac80211: fix remain-on-channel cancellation
authorJohannes Berg <[email protected]>
Tue, 8 Dec 2015 22:46:33 +0000 (23:46 +0100)
committerJohannes Berg <[email protected]>
Thu, 14 Jan 2016 10:10:10 +0000 (11:10 +0100)
commite6a8a3aaaac832f47092df93f46298251b136fc9
tree81e87156ceb04fe977ea506bf58d977a2263103c
parente9db45578706e216d9bb0fb5f459b137da54be63
mac80211: fix remain-on-channel cancellation

Ilan's previous commit 1b894521e60c ("mac80211: handle HW
ROC expired properly") neglected to take into account that
hw_begun was now always set in the software implementation
as well as the offloaded case.

Fix hw_begun to only apply to the offloaded case to make
the check in Ilan's commit safe and correct.

Reported-by: Jouni Malinen <[email protected]>
Signed-off-by: Johannes Berg <[email protected]>
net/mac80211/offchannel.c