Skip to contentSkip to conversation

cfg80211: Notify all User Hints To self managed wiphys

PATCH New Sriram R 1 participant 1 message Dec 6, 2018 802.11 (including cfg80211/NL80211)

lore
Share & tools
lore

Sriram R

author
#0 lore raw

PATCH 1/1 cfg80211: Notify all User Hints To self managed wiphys

Currently Self Managed WIPHY's are not notified on any hints other than user cell base station hints.
Self Managed wiphy's basically rely on hints from firmware and its local regdb for regulatory management, so hints from wireless core can be ignored. But all user hints needs to be notified to them to provide flexibility to these drivers to honour or ignore these user hints.

Currently none of the drivers supporting self managed wiphy register a notifier with cfg80211. Hence this change does not affect any other driver behavior.

---
 net/wireless/reg.c | 4 +---
 1 file changed, 1 insertion(+), 3 deletions(-)
net/wireless/reg.c +1 -3
index ecfb1a0..7def1ec 100644
@@ -2724,9 +2724,7 @@ static void notify_self_managed_wiphys(struct regulatory_request *request)
 	list_for_each_entry(rdev, &cfg80211_rdev_list, list) {
 		wiphy = &rdev->wiphy;
 		if (wiphy->regulatory_flags & REGULATORY_WIPHY_SELF_MANAGED &&
-		    request->initiator == NL80211_REGDOM_SET_BY_USER &&
-		    request->user_reg_hint_type ==
-				NL80211_USER_REG_HINT_CELL_BASE)
+		    request->initiator == NL80211_REGDOM_SET_BY_USER)
 			reg_call_notifier(wiphy, request);
 	}
 }
Signature · 1 line
2.7.4