FROMGIT: wifi: cfg80211: get correct AP link chandef
When checking for channel regulatory validity, use the
AP link chandef (and not mesh's chandef).
Fixes: 7b0a0e3c3a88 ("wifi: cfg80211: do some rework towards MLO link APIs")
Signed-off-by: Shaul Triebitz <shaul.triebitz@intel.com>
Signed-off-by: Johannes Berg <johannes.berg@intel.com>
Bug: 243994705
Change-Id: I9b0f2a6d851f57de1de6e656fa3a55ad03f71b56
(cherry picked from commit bc1857619cc7612117d2ee1ed05b5bfeb638614b
https://git.kernel.org/pub/scm/linux/kernel/git/wireless/wireless-next.git main)
Signed-off-by: Veerendranath Jakkam <quic_vjakkam@quicinc.com>
This commit is contained in:
committed by
Treehugger Robot
parent
e6c826aa9b
commit
cad63b2cf1
@@ -2389,6 +2389,10 @@ static bool reg_wdev_chan_valid(struct wiphy *wiphy, struct wireless_dev *wdev)
|
||||
switch (iftype) {
|
||||
case NL80211_IFTYPE_AP:
|
||||
case NL80211_IFTYPE_P2P_GO:
|
||||
if (!wdev->links[link].ap.beacon_interval)
|
||||
continue;
|
||||
chandef = wdev->links[link].ap.chandef;
|
||||
break;
|
||||
case NL80211_IFTYPE_MESH_POINT:
|
||||
if (!wdev->u.mesh.beacon_interval)
|
||||
continue;
|
||||
|
||||
Reference in New Issue
Block a user