mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-26 06:33:19 -04:00
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>
This commit is contained in:
parent
0441d6ffc7
commit
fe33eb3908
7 changed files with 194 additions and 41 deletions
|
|
@ -404,6 +404,7 @@ enum environment_cap {
|
|||
* country IE
|
||||
* @country_ie_env: lets us know if the AP is telling us we are outdoor,
|
||||
* indoor, or if it doesn't matter
|
||||
* @list: used to insert into the reg_requests_list linked list
|
||||
*/
|
||||
struct regulatory_request {
|
||||
int wiphy_idx;
|
||||
|
|
@ -412,6 +413,7 @@ struct regulatory_request {
|
|||
bool intersect;
|
||||
u32 country_ie_checksum;
|
||||
enum environment_cap country_ie_env;
|
||||
struct list_head list;
|
||||
};
|
||||
|
||||
struct ieee80211_freq_range {
|
||||
|
|
|
|||
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Reference in a new issue