diff options
author | Janusz Dziedzic <janusz.dziedzic@tieto.com> | 2014-01-24 14:29:21 +0100 |
---|---|---|
committer | Johannes Berg <johannes.berg@intel.com> | 2014-02-04 21:58:13 +0100 |
commit | 96f55f12a2365529b64d7c0d06709719b58ff089 (patch) | |
tree | 0e9fc297ba1f3a5620a1e86f31afa1dd31d42725 /net | |
parent | 691eb61bcfa1e98bdbbd29388bc518a76ae2fdd4 (diff) | |
download | linux-stable-96f55f12a2365529b64d7c0d06709719b58ff089.tar.gz linux-stable-96f55f12a2365529b64d7c0d06709719b58ff089.tar.bz2 linux-stable-96f55f12a2365529b64d7c0d06709719b58ff089.zip |
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')
-rw-r--r-- | net/wireless/nl80211.c | 1 |
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, return; wdev->channel = chandef->chan; + wdev->preset_chandef = *chandef; nl80211_ch_switch_notify(rdev, dev, chandef, GFP_KERNEL); } EXPORT_SYMBOL(cfg80211_ch_switch_notify); |