OSDN Git Service

Revert "reg: qcom: call reg notifier during wiphy registration"
authorAmar Singhal <asinghal@codeaurora.org>
Wed, 7 Mar 2018 20:58:55 +0000 (12:58 -0800)
committerAmar Singhal <asinghal@codeaurora.org>
Thu, 17 May 2018 16:46:49 +0000 (09:46 -0700)
This reverts commit 2aa0bb3ac04d659292993423415a98a9b3cdda49. Upstream
commit aced43ce780dc5 ("cfg80211: Call reg_notifier for self managed
hints conditionally") replaces this functionality.

Change-Id: If52d83577ab2f136540f70ba17d417718ba05ddf
CRs-Fixed: 2201959
Signed-off-by: Amar Singhal <asinghal@codeaurora.org>
net/wireless/reg.c

index 3cd0517..4ede2c4 100644 (file)
@@ -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;
        }