Commit 77e7b6ba authored by Johannes Berg's avatar Johannes Berg
Browse files

wifi: cfg80211: handle IBSS in channel switch



Prior to commit 7b0a0e3c ("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: 7b0a0e3c ("wifi: cfg80211: do some rework towards MLO link APIs")
Reported-by: default avatar <syzbot+90d912872157e63589e4@syzkaller.appspotmail.com>
Signed-off-by: default avatarJohannes Berg <johannes.berg@intel.com>
parent 591e73ee
Loading
Loading
Loading
Loading
+3 −0
Original line number Diff line number Diff line
@@ -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;