aboutsummaryrefslogtreecommitdiffstats
path: root/net/wireless
diff options
context:
space:
mode:
authorJanusz Dziedzic <janusz.dziedzic@tieto.com>2014-01-24 08:29:21 -0500
committerJohannes Berg <johannes.berg@intel.com>2014-02-04 15:58:13 -0500
commit96f55f12a2365529b64d7c0d06709719b58ff089 (patch)
tree0e9fc297ba1f3a5620a1e86f31afa1dd31d42725 /net/wireless
parent691eb61bcfa1e98bdbbd29388bc518a76ae2fdd4 (diff)
cfg80211: set preset_chandef after channel switch
Set preset_chandef in channel switch notification. In other case we will have old preset_chandef. Signed-off-by: Janusz Dziedzic <janusz.dziedzic@tieto.com> Signed-off-by: Johannes Berg <johannes.berg@intel.com>
Diffstat (limited to 'net/wireless')
-rw-r--r--net/wireless/nl80211.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/net/wireless/nl80211.c b/net/wireless/nl80211.c
index 20be186f7f77..0a186013728c 100644
--- a/net/wireless/nl80211.c
+++ b/net/wireless/nl80211.c
@@ -11216,6 +11216,7 @@ void cfg80211_ch_switch_notify(struct net_device *dev,
11216 return; 11216 return;
11217 11217
11218 wdev->channel = chandef->chan; 11218 wdev->channel = chandef->chan;
11219 wdev->preset_chandef = *chandef;
11219 nl80211_ch_switch_notify(rdev, dev, chandef, GFP_KERNEL); 11220 nl80211_ch_switch_notify(rdev, dev, chandef, GFP_KERNEL);
11220} 11221}
11221EXPORT_SYMBOL(cfg80211_ch_switch_notify); 11222EXPORT_SYMBOL(cfg80211_ch_switch_notify);