mac80211: clear sdata->radar_required
authorEliad Peller <eliad@wizery.com>
Sun, 8 Feb 2015 10:36:07 +0000 (12:36 +0200)
committerJohannes Berg <johannes.berg@intel.com>
Tue, 24 Feb 2015 09:51:06 +0000 (10:51 +0100)
commit104f5a6206f4b3133c675e3d41eca2ca4c41406b
tree2a540aa4c945e9308bf37903791a8b4fd7d55e45
parentf2831e2007810b690f93a26128058a193eadf393
mac80211: clear sdata->radar_required

If ieee80211_vif_use_channel() fails, we have to clear
sdata->radar_required (which we might have just set).

Failing to do it results in stale radar_required field
which prevents starting new scan requests.

Reported-by: Jouni Malinen <j@w1.fi>
Signed-off-by: Eliad Peller <eliad@wizery.com>
[use false instead of 0]
Signed-off-by: Johannes Berg <johannes.berg@intel.com>
net/mac80211/chan.c