Commit 96f55f12 authored by Janusz Dziedzic's avatar Janusz Dziedzic Committed by Johannes Berg

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: default avatarJanusz Dziedzic <janusz.dziedzic@tieto.com>
Signed-off-by: default avatarJohannes Berg <johannes.berg@intel.com>
parent 691eb61b
...@@ -11216,6 +11216,7 @@ void cfg80211_ch_switch_notify(struct net_device *dev, ...@@ -11216,6 +11216,7 @@ void cfg80211_ch_switch_notify(struct net_device *dev,
return; return;
wdev->channel = chandef->chan; wdev->channel = chandef->chan;
wdev->preset_chandef = *chandef;
nl80211_ch_switch_notify(rdev, dev, chandef, GFP_KERNEL); nl80211_ch_switch_notify(rdev, dev, chandef, GFP_KERNEL);
} }
EXPORT_SYMBOL(cfg80211_ch_switch_notify); EXPORT_SYMBOL(cfg80211_ch_switch_notify);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment