diff options
Diffstat (limited to 'net/wireless/reg.h')
| -rw-r--r-- | net/wireless/reg.h | 29 | 
1 files changed, 25 insertions, 4 deletions
diff --git a/net/wireless/reg.h b/net/wireless/reg.h index af2d5f8a5d8..5e48031ccb9 100644 --- a/net/wireless/reg.h +++ b/net/wireless/reg.h @@ -18,13 +18,15 @@  extern const struct ieee80211_regdomain __rcu *cfg80211_regdomain; +bool reg_is_valid_request(const char *alpha2);  bool is_world_regdom(const char *alpha2); -bool reg_supported_dfs_region(u8 dfs_region); +bool reg_supported_dfs_region(enum nl80211_dfs_regions dfs_region); +enum nl80211_dfs_regions reg_get_dfs_region(struct wiphy *wiphy);  int regulatory_hint_user(const char *alpha2,  			 enum nl80211_user_reg_hint_type user_reg_hint_type); +int regulatory_hint_indoor_user(void); -int reg_device_uevent(struct device *dev, struct kobj_uevent_env *env);  void wiphy_regulatory_register(struct wiphy *wiphy);  void wiphy_regulatory_deregister(struct wiphy *wiphy); @@ -32,6 +34,8 @@ int __init regulatory_init(void);  void regulatory_exit(void);  int set_regdom(const struct ieee80211_regdomain *rd); +unsigned int reg_get_max_bandwidth(const struct ieee80211_regdomain *rd, +				   const struct ieee80211_reg_rule *rule);  bool reg_last_request_cell_base(void); @@ -58,7 +62,7 @@ int regulatory_hint_found_beacon(struct wiphy *wiphy,  				 gfp_t gfp);  /** - * regulatory_hint_11d - hints a country IE as a regulatory domain + * regulatory_hint_country_ie - hints a country IE as a regulatory domain   * @wiphy: the wireless device giving the hint (used only for reporting   *	conflicts)   * @band: the band on which the country IE was received on. This determines @@ -78,7 +82,7 @@ int regulatory_hint_found_beacon(struct wiphy *wiphy,   * not observed. For this reason if a triplet is seen with channel   * information for a band the BSS is not present in it will be ignored.   */ -void regulatory_hint_11d(struct wiphy *wiphy, +void regulatory_hint_country_ie(struct wiphy *wiphy,  			 enum ieee80211_band band,  			 const u8 *country_ie,  			 u8 country_ie_len); @@ -101,4 +105,21 @@ void regulatory_hint_11d(struct wiphy *wiphy,   */  void regulatory_hint_disconnect(void); +/** + * cfg80211_get_unii - get the U-NII band for the frequency + * @freq: the frequency for which we want to get the UNII band. + + * Get a value specifying the U-NII band frequency belongs to. + * U-NII bands are defined by the FCC in C.F.R 47 part 15. + * + * Returns -EINVAL if freq is invalid, 0 for UNII-1, 1 for UNII-2A, + * 2 for UNII-2B, 3 for UNII-2C and 4 for UNII-3. + */ +int cfg80211_get_unii(int freq); + +/** + * regulatory_indoor_allowed - is indoor operation allowed + */ +bool regulatory_indoor_allowed(void); +  #endif  /* __NET_WIRELESS_REG_H */  | 
