summaryrefslogtreecommitdiffstats
path: root/net/wireless
diff options
context:
space:
mode:
authorSriram R <srirrama@codeaurora.org>2018-12-06 15:34:57 +0530
committerJohannes Berg <johannes.berg@intel.com>2019-01-25 14:05:31 +0100
commitc82c06ce43d372e0127982414539d1601d5f9ce3 (patch)
treed4975ebc9575aa245399998e19d4ccd16798c8d8 /net/wireless
parent4af217500e7fc7cf87528488db5bc6494f4890a9 (diff)
downloadlinux-0-day-c82c06ce43d372e0127982414539d1601d5f9ce3.tar.gz
linux-0-day-c82c06ce43d372e0127982414539d1601d5f9ce3.tar.xz
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. Signed-off-by: Sriram R <srirrama@codeaurora.org> Signed-off-by: Johannes Berg <johannes.berg@intel.com>
Diffstat (limited to 'net/wireless')
-rw-r--r--net/wireless/reg.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/net/wireless/reg.c b/net/wireless/reg.c
index ecfb1a06dbb2b..7def1ece22b24 100644
--- a/net/wireless/reg.c
+++ b/net/wireless/reg.c
@@ -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);
}
}