VisionFive2 Linux kernel

StarFive Tech Linux Kernel for VisionFive (JH7110) boards (mirror)

More than 9999 Commits   32 Branches   54 Tags
author: Johannes Berg <johannes.berg@intel.com> 2023-06-16 22:28:44 +0200 committer: Greg Kroah-Hartman <gregkh@linuxfoundation.org> 2023-07-19 16:36:52 +0200 commit: 12627f20eb459e9ae6009f5579ff86bbbc937444 parent: cfc678270165074ab1829d8424cef80990626bd6
Commit Summary:
wifi: cfg80211: fix regulatory disconnect for non-MLO
Diffstat:
1 file changed, 1 insertion, 1 deletion
diff --git a/net/wireless/reg.c b/net/wireless/reg.c
index c8a1b925413b..f9e03850d71b 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: