Loading net/wireless/reg.c +3 −0 Original line number Diff line number Diff line Loading @@ -3575,14 +3575,17 @@ static bool is_wiphy_all_set_reg_flag(enum ieee80211_regulatory_flags flag) struct wireless_dev *wdev; for_each_rdev(rdev) { wiphy_lock(&rdev->wiphy); list_for_each_entry(wdev, &rdev->wiphy.wdev_list, list) { wdev_lock(wdev); if (!(wdev->wiphy->regulatory_flags & flag)) { wdev_unlock(wdev); wiphy_unlock(&rdev->wiphy); return false; } wdev_unlock(wdev); } wiphy_unlock(&rdev->wiphy); } return true; Loading Loading
net/wireless/reg.c +3 −0 Original line number Diff line number Diff line Loading @@ -3575,14 +3575,17 @@ static bool is_wiphy_all_set_reg_flag(enum ieee80211_regulatory_flags flag) struct wireless_dev *wdev; for_each_rdev(rdev) { wiphy_lock(&rdev->wiphy); list_for_each_entry(wdev, &rdev->wiphy.wdev_list, list) { wdev_lock(wdev); if (!(wdev->wiphy->regulatory_flags & flag)) { wdev_unlock(wdev); wiphy_unlock(&rdev->wiphy); return false; } wdev_unlock(wdev); } wiphy_unlock(&rdev->wiphy); } return true; Loading