aboutsummaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorLuis R. Rodriguez <lrodriguez@atheros.com>2009-02-21 00:04:30 -0500
committerJohn W. Linville <linville@tuxdriver.com>2009-02-27 14:52:57 -0500
commitfe33eb390854886e1fd5d4835d833b80d145aafb (patch)
tree5349c48092c9528b5640d5981425e161e0731ed3 /include
parent0441d6ffc705de17d85923264a1b03b71ebfccb8 (diff)
cfg80211: move all regulatory hints to workqueue
All regulatory hints (core, driver, userspace and 11d) are now processed in a workqueue. Signed-off-by: Luis R. Rodriguez <lrodriguez@atheros.com> Signed-off-by: John W. Linville <linville@tuxdriver.com>
Diffstat (limited to 'include')
-rw-r--r--include/net/cfg80211.h2
-rw-r--r--include/net/wireless.h9
2 files changed, 10 insertions, 1 deletions
diff --git a/include/net/cfg80211.h b/include/net/cfg80211.h
index bb9129fc61ca..75fa556728ce 100644
--- a/include/net/cfg80211.h
+++ b/include/net/cfg80211.h
@@ -404,6 +404,7 @@ enum environment_cap {
404 * country IE 404 * country IE
405 * @country_ie_env: lets us know if the AP is telling us we are outdoor, 405 * @country_ie_env: lets us know if the AP is telling us we are outdoor,
406 * indoor, or if it doesn't matter 406 * indoor, or if it doesn't matter
407 * @list: used to insert into the reg_requests_list linked list
407 */ 408 */
408struct regulatory_request { 409struct regulatory_request {
409 int wiphy_idx; 410 int wiphy_idx;
@@ -412,6 +413,7 @@ struct regulatory_request {
412 bool intersect; 413 bool intersect;
413 u32 country_ie_checksum; 414 u32 country_ie_checksum;
414 enum environment_cap country_ie_env; 415 enum environment_cap country_ie_env;
416 struct list_head list;
415}; 417};
416 418
417struct ieee80211_freq_range { 419struct ieee80211_freq_range {
diff --git a/include/net/wireless.h b/include/net/wireless.h
index d815aa8b4534..1f4707d18adb 100644
--- a/include/net/wireless.h
+++ b/include/net/wireless.h
@@ -401,8 +401,15 @@ ieee80211_get_response_rate(struct ieee80211_supported_band *sband,
401 * domain should be in or by providing a completely build regulatory domain. 401 * domain should be in or by providing a completely build regulatory domain.
402 * If the driver provides an ISO/IEC 3166 alpha2 userspace will be queried 402 * If the driver provides an ISO/IEC 3166 alpha2 userspace will be queried
403 * for a regulatory domain structure for the respective country. 403 * for a regulatory domain structure for the respective country.
404 *
405 * The wiphy must have been registered to cfg80211 prior to this call.
406 * For cfg80211 drivers this means you must first use wiphy_register(),
407 * for mac80211 drivers you must first use ieee80211_register_hw().
408 *
409 * Drivers should check the return value, its possible you can get
410 * an -ENOMEM.
404 */ 411 */
405extern void regulatory_hint(struct wiphy *wiphy, const char *alpha2); 412extern int regulatory_hint(struct wiphy *wiphy, const char *alpha2);
406 413
407/** 414/**
408 * regulatory_hint_11d - hints a country IE as a regulatory domain 415 * regulatory_hint_11d - hints a country IE as a regulatory domain