diff options
author | Johannes Berg <johannes.berg@intel.com> | 2022-06-27 12:36:03 +0200 |
---|---|---|
committer | Johannes Berg <johannes.berg@intel.com> | 2022-07-01 11:13:50 +0200 |
commit | 77e7b6ba78edf817bddfa97fadb15a971992b1ee (patch) | |
tree | 87254555a33992c29af7eb2f7ed923b0c6dfbcde /net/wireless/nl80211.c | |
parent | wifi: mac80211: properly skip link info driver update (diff) | |
download | linux-77e7b6ba78edf817bddfa97fadb15a971992b1ee.tar.xz linux-77e7b6ba78edf817bddfa97fadb15a971992b1ee.zip |
wifi: cfg80211: handle IBSS in channel switch
Prior to commit 7b0a0e3c3a88 ("wifi: cfg80211: do some
rework towards MLO link APIs") the interface type didn't
really matter here, but now we need to handle all of the
possible cases. Add IBSS ("ADHOC") and handle it.
Fixes: 7b0a0e3c3a88 ("wifi: cfg80211: do some rework towards MLO link APIs")
Reported-by: syzbot+90d912872157e63589e4@syzkaller.appspotmail.com
Signed-off-by: Johannes Berg <johannes.berg@intel.com>
Diffstat (limited to '')
-rw-r--r-- | net/wireless/nl80211.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/net/wireless/nl80211.c b/net/wireless/nl80211.c index 6a45801c783c..efdf0148a8fa 100644 --- a/net/wireless/nl80211.c +++ b/net/wireless/nl80211.c @@ -18558,6 +18558,9 @@ void cfg80211_ch_switch_notify(struct net_device *dev, case NL80211_IFTYPE_P2P_GO: wdev->links[link_id].ap.chandef = *chandef; break; + case NL80211_IFTYPE_ADHOC: + wdev->u.ibss.chandef = *chandef; + break; default: WARN_ON(1); break; |