From: Janusz Dziedzic Date: Fri, 24 Jan 2014 13:29:21 +0000 (+0100) Subject: cfg80211: set preset_chandef after channel switch X-Git-Url: http://git.cdn.openwrt.org/?a=commitdiff_plain;h=96f55f12a2365529b64d7c0d06709719b58ff089;p=openwrt%2Fstaging%2Fblogic.git 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 Signed-off-by: Johannes Berg --- 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);