summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLinux Build Service Account <lnxbuild@localhost>2018-05-19 03:29:28 -0700
committerGerrit - the friendly Code Review server <code-review@localhost>2018-05-19 03:29:28 -0700
commit9fdb9cd8612206404d4e3b9f03eecf859ecf7fc2 (patch)
tree8e3fa5a3ead71a39149147bf37c34ab6150cb775
parent3a9f9cc5918e4e12ac28c01faa4ecba9a54609fb (diff)
parent8bfed68306cc850700a6ea13d3ee0a9d3c0dfcc7 (diff)
Merge "Revert "reg: qcom: call reg notifier during wiphy registration""
-rw-r--r--net/wireless/reg.c18
1 files changed, 7 insertions, 11 deletions
diff --git a/net/wireless/reg.c b/net/wireless/reg.c
index 970880924eca..4ede2c4cff41 100644
--- a/net/wireless/reg.c
+++ b/net/wireless/reg.c
@@ -1760,13 +1760,11 @@ static void wiphy_update_regulatory(struct wiphy *wiphy,
if (ignore_reg_update(wiphy, initiator)) {
/*
* Regulatory updates set by CORE are ignored for custom
- * regulatory cards and for self managed regulatory.
- * Let us notify the changes to the driver,
+ * regulatory cards. Let us notify the changes to the driver,
* as some drivers used this to restore its orig_* reg domain.
*/
- if ((initiator == NL80211_REGDOM_SET_BY_CORE &&
- wiphy->regulatory_flags & REGULATORY_CUSTOM_REG) ||
- (wiphy->regulatory_flags & REGULATORY_WIPHY_SELF_MANAGED))
+ if (initiator == NL80211_REGDOM_SET_BY_CORE &&
+ wiphy->regulatory_flags & REGULATORY_CUSTOM_REG)
reg_call_notifier(wiphy, lr);
return;
}
@@ -2257,7 +2255,7 @@ out_free:
reg_free_request(reg_request);
}
-static bool reg_only_self_managed_wiphys(struct regulatory_request *reg_request)
+static bool reg_only_self_managed_wiphys(void)
{
struct cfg80211_registered_device *rdev;
struct wiphy *wiphy;
@@ -2267,12 +2265,10 @@ static bool reg_only_self_managed_wiphys(struct regulatory_request *reg_request)
list_for_each_entry(rdev, &cfg80211_rdev_list, list) {
wiphy = &rdev->wiphy;
- if (wiphy->regulatory_flags & REGULATORY_WIPHY_SELF_MANAGED) {
+ if (wiphy->regulatory_flags & REGULATORY_WIPHY_SELF_MANAGED)
self_managed_found = true;
- reg_call_notifier(wiphy, reg_request);
- } else {
+ else
return false;
- }
}
/* make sure at least one self-managed wiphy exists */
@@ -2310,7 +2306,7 @@ static void reg_process_pending_hints(void)
spin_unlock(&reg_requests_lock);
- if (reg_only_self_managed_wiphys(reg_request)) {
+ if (reg_only_self_managed_wiphys()) {
reg_free_request(reg_request);
return;
}