mac80211: move csa_active setting in STA CSA
authorMichal Kazior <michal.kazior@tieto.com>
Wed, 29 Jan 2014 06:56:19 +0000 (07:56 +0100)
committerJohannes Berg <johannes.berg@intel.com>
Tue, 4 Feb 2014 20:58:10 +0000 (21:58 +0100)
commitc46a73f39642db4931544a9376338d05aa196df8
treec3c7ce16161e77d2aeaeb6404a6ba22f3ef808d7
parent97518af1260553d2cad71b37a76b597360519e8a
mac80211: move csa_active setting in STA CSA

The sdata->vif.csa_active could be left set after,
e.g. channel context constraints check fail in STA
mode leaving the interface in a strange state for
a brief period of time until it is disconnected.
This was harmless but ugly.

Signed-off-by: Michal Kazior <michal.kazior@tieto.com>
Reviewed-by: Luciano Coelho <luciano.coelho@intel.com>
Signed-off-by: Johannes Berg <johannes.berg@intel.com>
net/mac80211/mlme.c