diff options
Diffstat (limited to 'include/net/wireless.h')
-rw-r--r-- | include/net/wireless.h | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/include/net/wireless.h b/include/net/wireless.h index 6c5b08204232..c5538b923afb 100644 --- a/include/net/wireless.h +++ b/include/net/wireless.h | |||
@@ -401,4 +401,21 @@ extern void regulatory_hint(struct wiphy *wiphy, const char *alpha2); | |||
401 | extern void regulatory_hint_11d(struct wiphy *wiphy, | 401 | extern void regulatory_hint_11d(struct wiphy *wiphy, |
402 | u8 *country_ie, | 402 | u8 *country_ie, |
403 | u8 country_ie_len); | 403 | u8 country_ie_len); |
404 | |||
405 | /** | ||
406 | * wiphy_apply_custom_regulatory - apply a custom driver regulatory domain | ||
407 | * @wiphy: the wireless device we want to process the regulatory domain on | ||
408 | * @regd: the custom regulatory domain to use for this wiphy | ||
409 | * | ||
410 | * Drivers can sometimes have custom regulatory domains which do not apply | ||
411 | * to a specific country. Drivers can use this to apply such custom regulatory | ||
412 | * domains. This routine must be called prior to wiphy registration. The | ||
413 | * custom regulatory domain will be trusted completely and as such previous | ||
414 | * default channel settings will be disregarded. If no rule is found for a | ||
415 | * channel on the regulatory domain the channel will be disabled. | ||
416 | */ | ||
417 | extern void wiphy_apply_custom_regulatory( | ||
418 | struct wiphy *wiphy, | ||
419 | const struct ieee80211_regdomain *regd); | ||
420 | |||
404 | #endif /* __NET_WIRELESS_H */ | 421 | #endif /* __NET_WIRELESS_H */ |