diff options
author | Luis R. Rodriguez <lrodriguez@atheros.com> | 2009-01-22 18:05:44 -0500 |
---|---|---|
committer | John W. Linville <linville@tuxdriver.com> | 2009-01-29 16:01:14 -0500 |
commit | 1fa25e413659f943dfec65da2abe713d566c7fdf (patch) | |
tree | 7de278f35b33c2bf35f4964e0b5381a6f029dff5 /include/net/wireless.h | |
parent | 078e1e60dd6c6b0d4bc8d58ccb80c008e8efc9ff (diff) |
cfg80211: add wiphy_apply_custom_regulatory()
This adds wiphy_apply_custom_regulatory() to be used by drivers
prior to wiphy registration to apply a custom regulatory domain.
This can be used by drivers that do not have a direct 1-1 mapping
between a regulatory domain and a country.
Signed-off-by: Luis R. Rodriguez <lrodriguez@atheros.com>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
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 */ |