|
@@ -15441,6 +15441,11 @@ void cfg80211_ch_switch_notify(struct net_device *dev,
|
|
|
|
|
|
|
|
wdev->chandef = *chandef;
|
|
wdev->chandef = *chandef;
|
|
|
wdev->preset_chandef = *chandef;
|
|
wdev->preset_chandef = *chandef;
|
|
|
|
|
+
|
|
|
|
|
+ if (wdev->iftype == NL80211_IFTYPE_STATION &&
|
|
|
|
|
+ !WARN_ON(!wdev->current_bss))
|
|
|
|
|
+ wdev->current_bss->pub.channel = chandef->chan;
|
|
|
|
|
+
|
|
|
nl80211_ch_switch_notify(rdev, dev, chandef, GFP_KERNEL,
|
|
nl80211_ch_switch_notify(rdev, dev, chandef, GFP_KERNEL,
|
|
|
NL80211_CMD_CH_SWITCH_NOTIFY, 0);
|
|
NL80211_CMD_CH_SWITCH_NOTIFY, 0);
|
|
|
}
|
|
}
|