linux-wireless.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] cfg80211: Notify previous user request during self managed wiphy registration
@ 2019-04-16  5:46 Sriram R
  0 siblings, 0 replies; only message in thread
From: Sriram R @ 2019-04-16  5:46 UTC (permalink / raw)
  To: johannes; +Cc: linux-wireless, Sriram R

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.

Signed-off-by: Sriram R <srirrama@codeaurora.org>
---
 net/wireless/reg.c | 5 ++---
 1 file changed, 2 insertions(+), 3 deletions(-)

diff --git a/net/wireless/reg.c b/net/wireless/reg.c
index 2f1bf91..85a0b5e 100644
--- a/net/wireless/reg.c
+++ b/net/wireless/reg.c
@@ -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);
 	}
 
-- 
2.7.4


^ permalink raw reply related	[flat|nested] only message in thread

only message in thread, other threads:[~2019-04-16  5:47 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2019-04-16  5:46 [PATCH] cfg80211: Notify previous user request during self managed wiphy registration Sriram R

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).