Message ID | 20230616222122.eb073d650c75.I72739923ef80919889ea9b50de9e4ba4baa836ae@changeid |
---|---|
State | New |
Headers | show |
Series | [1/2] wifi: cfg80211: fix regulatory disconnect for non-MLO | expand |
diff --git a/net/wireless/reg.c b/net/wireless/reg.c index 26f11e4746c0..f5ea1f373ab7 100644 --- a/net/wireless/reg.c +++ b/net/wireless/reg.c @@ -2352,7 +2352,7 @@ static bool reg_wdev_chan_valid(struct wiphy *wiphy, struct wireless_dev *wdev) if (!wdev->valid_links && link > 0) break; - if (!(wdev->valid_links & BIT(link))) + if (wdev->valid_links && !(wdev->valid_links & BIT(link))) continue; switch (iftype) { case NL80211_IFTYPE_AP: