diff options
-rw-r--r-- | include/net/cfg80211.h | 4 | ||||
-rw-r--r-- | net/wireless/reg.c | 3 |
2 files changed, 5 insertions, 2 deletions
diff --git a/include/net/cfg80211.h b/include/net/cfg80211.h index 3d1c09b777e8..6dc665a727c2 100644 --- a/include/net/cfg80211.h +++ b/include/net/cfg80211.h | |||
@@ -1419,7 +1419,9 @@ struct ieee80211_txrx_stypes { | |||
1419 | 1419 | ||
1420 | /** | 1420 | /** |
1421 | * struct wiphy - wireless hardware description | 1421 | * struct wiphy - wireless hardware description |
1422 | * @reg_notifier: the driver's regulatory notification callback | 1422 | * @reg_notifier: the driver's regulatory notification callback, |
1423 | * note that if your driver uses wiphy_apply_custom_regulatory() | ||
1424 | * the reg_notifier's request can be passed as NULL | ||
1423 | * @regd: the driver's regulatory domain, if one was requested via | 1425 | * @regd: the driver's regulatory domain, if one was requested via |
1424 | * the regulatory_hint() API. This can be used by the driver | 1426 | * the regulatory_hint() API. This can be used by the driver |
1425 | * on the reg_notifier() if it chooses to ignore future | 1427 | * on the reg_notifier() if it chooses to ignore future |
diff --git a/net/wireless/reg.c b/net/wireless/reg.c index 5ed615f94e0c..99d41831d76e 100644 --- a/net/wireless/reg.c +++ b/net/wireless/reg.c | |||
@@ -661,7 +661,8 @@ static int freq_reg_info_regd(struct wiphy *wiphy, | |||
661 | * Follow the driver's regulatory domain, if present, unless a country | 661 | * Follow the driver's regulatory domain, if present, unless a country |
662 | * IE has been processed or a user wants to help complaince further | 662 | * IE has been processed or a user wants to help complaince further |
663 | */ | 663 | */ |
664 | if (last_request->initiator != NL80211_REGDOM_SET_BY_COUNTRY_IE && | 664 | if (!custom_regd && |
665 | last_request->initiator != NL80211_REGDOM_SET_BY_COUNTRY_IE && | ||
665 | last_request->initiator != NL80211_REGDOM_SET_BY_USER && | 666 | last_request->initiator != NL80211_REGDOM_SET_BY_USER && |
666 | wiphy->regd) | 667 | wiphy->regd) |
667 | regd = wiphy->regd; | 668 | regd = wiphy->regd; |