diff options
author | Luis R. Rodriguez <lrodriguez@atheros.com> | 2009-02-21 05:04:30 (GMT) |
---|---|---|
committer | John W. Linville <linville@tuxdriver.com> | 2009-02-27 19:52:57 (GMT) |
commit | fe33eb390854886e1fd5d4835d833b80d145aafb (patch) | |
tree | 5349c48092c9528b5640d5981425e161e0731ed3 /include/net/wireless.h | |
parent | 0441d6ffc705de17d85923264a1b03b71ebfccb8 (diff) | |
download | linux-fsl-qoriq-fe33eb390854886e1fd5d4835d833b80d145aafb.tar.xz |
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/net/wireless.h')
-rw-r--r-- | include/net/wireless.h | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/include/net/wireless.h b/include/net/wireless.h index d815aa8..1f4707d 100644 --- a/include/net/wireless.h +++ b/include/net/wireless.h @@ -401,8 +401,15 @@ ieee80211_get_response_rate(struct ieee80211_supported_band *sband, * domain should be in or by providing a completely build regulatory domain. * If the driver provides an ISO/IEC 3166 alpha2 userspace will be queried * for a regulatory domain structure for the respective country. + * + * The wiphy must have been registered to cfg80211 prior to this call. + * For cfg80211 drivers this means you must first use wiphy_register(), + * for mac80211 drivers you must first use ieee80211_register_hw(). + * + * Drivers should check the return value, its possible you can get + * an -ENOMEM. */ -extern void regulatory_hint(struct wiphy *wiphy, const char *alpha2); +extern int regulatory_hint(struct wiphy *wiphy, const char *alpha2); /** * regulatory_hint_11d - hints a country IE as a regulatory domain |