mac80211: always clear SDATA_STATE_OFFCHANNEL flag
authorEliad Peller <eliad@wizery.com>
Thu, 22 Dec 2011 23:48:06 +0000 (01:48 +0200)
committerJohn W. Linville <linville@tuxdriver.com>
Wed, 4 Jan 2012 19:30:43 +0000 (14:30 -0500)
commitf6e8cb72ad4b0381d79df4575ec1f5c5df2e73b9
tree83ebc7844b19211de72a89e54596bc656816dace
parentb156579b1404871d97d2713c1f93c9526618e3ba
mac80211: always clear SDATA_STATE_OFFCHANNEL flag

If the vif is stopped while it is offchannel (e.g. right
after p2p negotiation) the SDATA_STATE_OFFCHANNEL flag
is never get cleared, resulting in various bad effects
(e.g. GO can't start beaconing).

Fix it by clearing the SDATA_STATE_OFFCHANNEL flag
even if the vif is stopped.

Signed-off-by: Eliad Peller <eliad@wizery.com>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
net/mac80211/offchannel.c