diff options
author | Johannes Berg <johannes.berg@intel.com> | 2022-06-27 13:36:03 +0300 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2022-08-17 16:16:20 +0300 |
commit | d658df243d3e997468bdf78cd03ebe44151973d5 (patch) | |
tree | c52246b112ea4191270ead2d5a7151324166d63d /net/wireless | |
parent | af37d2080c2a8598a54945fc6df60e266c9dc43b (diff) | |
download | linux-d658df243d3e997468bdf78cd03ebe44151973d5.tar.xz |
wifi: cfg80211: handle IBSS in channel switch
commit 77e7b6ba78edf817bddfa97fadb15a971992b1ee upstream.
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>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'net/wireless')
-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 c4014ee3f667..d0ba3e646ec6 100644 --- a/net/wireless/nl80211.c +++ b/net/wireless/nl80211.c @@ -18294,6 +18294,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; |