Skip to contentSkip to conversation

cfg80211: Notify previous user request during self managed wiphy registration

PATCH New Sriram R 1 participant 1 message Apr 16, 2019 802.11 (including cfg80211/NL80211)

lore
Share & tools
lore

Sriram R

author
#0 lore raw

PATCH 1/1 cfg80211: Notify previous user request during self managed wiphy registration

Commit c82c06ce43d3("cfg80211: Notify all User Hints To self managed wiphys") notifies all new user hints to self managed wiphy's after device registration. But it doesn't notify user request (other than cell base hints) which was set before registration.
This needs to be done during wiphy registration of a self managed device also, so that the previous user settings are retained.

---
 net/wireless/reg.c | 5 ++---
 1 file changed, 2 insertions(+), 3 deletions(-)
net/wireless/reg.c +2 -3
index 2f1bf91..85a0b5e 100644
@@ -3739,10 +3739,9 @@ void wiphy_regulatory_register(struct wiphy *wiphy)
 		/*
 		 * The last request may have been received before this
 		 * registration call. Call the driver notifier if
-		 * initiator is USER and user type is CELL_BASE.
+		 * initiator is USER.
 		 */
-		if (lr->initiator == NL80211_REGDOM_SET_BY_USER &&
-		    lr->user_reg_hint_type == NL80211_USER_REG_HINT_CELL_BASE)
+		if (lr->initiator == NL80211_REGDOM_SET_BY_USER)
 			reg_call_notifier(wiphy, lr);
 	}
 
Signature · 1 line
2.7.4