summaryrefslogtreecommitdiffstats
path: root/net
diff options
context:
space:
mode:
authorJanusz Dziedzic <janusz.dziedzic@tieto.com>2014-01-24 14:29:21 +0100
committerJohannes Berg <johannes.berg@intel.com>2014-02-04 21:58:13 +0100
commit96f55f12a2365529b64d7c0d06709719b58ff089 (patch)
tree0e9fc297ba1f3a5620a1e86f31afa1dd31d42725 /net
parent691eb61bcfa1e98bdbbd29388bc518a76ae2fdd4 (diff)
downloadop-kernel-dev-96f55f12a2365529b64d7c0d06709719b58ff089.zip
op-kernel-dev-96f55f12a2365529b64d7c0d06709719b58ff089.tar.gz
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.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/net/wireless/nl80211.c b/net/wireless/nl80211.c
index 20be186..0a18601 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);
OpenPOWER on IntegriCloud