Lines Matching refs:wiphy

262 static void ath_force_clear_no_ir_chan(struct wiphy *wiphy,  in ath_force_clear_no_ir_chan()  argument
267 reg_rule = freq_reg_info(wiphy, MHZ_TO_KHZ(ch->center_freq)); in ath_force_clear_no_ir_chan()
276 static void ath_force_clear_no_ir_freq(struct wiphy *wiphy, u16 center_freq) in ath_force_clear_no_ir_freq() argument
280 ch = ieee80211_get_channel(wiphy, center_freq); in ath_force_clear_no_ir_freq()
284 ath_force_clear_no_ir_chan(wiphy, ch); in ath_force_clear_no_ir_freq()
292 static void ath_force_no_ir_freq(struct wiphy *wiphy, u16 center_freq) in ath_force_no_ir_freq() argument
296 ch = ieee80211_get_channel(wiphy, center_freq); in ath_force_no_ir_freq()
304 __ath_reg_apply_beaconing_flags(struct wiphy *wiphy, in __ath_reg_apply_beaconing_flags() argument
315 ath_force_clear_no_ir_chan(wiphy, ch); in __ath_reg_apply_beaconing_flags()
319 ath_force_clear_no_ir_chan(wiphy, ch); in __ath_reg_apply_beaconing_flags()
335 ath_reg_apply_beaconing_flags(struct wiphy *wiphy, in ath_reg_apply_beaconing_flags() argument
345 if (!wiphy->bands[band]) in ath_reg_apply_beaconing_flags()
347 sband = wiphy->bands[band]; in ath_reg_apply_beaconing_flags()
350 __ath_reg_apply_beaconing_flags(wiphy, reg, in ath_reg_apply_beaconing_flags()
371 ath_reg_apply_ir_flags(struct wiphy *wiphy, in ath_reg_apply_ir_flags() argument
377 sband = wiphy->bands[IEEE80211_BAND_2GHZ]; in ath_reg_apply_ir_flags()
383 ath_force_clear_no_ir_freq(wiphy, 2467); in ath_reg_apply_ir_flags()
384 ath_force_clear_no_ir_freq(wiphy, 2472); in ath_reg_apply_ir_flags()
389 ath_force_clear_no_ir_freq(wiphy, 2467); in ath_reg_apply_ir_flags()
390 ath_force_clear_no_ir_freq(wiphy, 2472); in ath_reg_apply_ir_flags()
393 ath_force_no_ir_freq(wiphy, 2467); in ath_reg_apply_ir_flags()
394 ath_force_no_ir_freq(wiphy, 2472); in ath_reg_apply_ir_flags()
399 static void ath_reg_apply_radar_flags(struct wiphy *wiphy) in ath_reg_apply_radar_flags() argument
405 if (!wiphy->bands[IEEE80211_BAND_5GHZ]) in ath_reg_apply_radar_flags()
408 sband = wiphy->bands[IEEE80211_BAND_5GHZ]; in ath_reg_apply_radar_flags()
430 static void ath_reg_apply_world_flags(struct wiphy *wiphy, in ath_reg_apply_world_flags() argument
440 ath_reg_apply_beaconing_flags(wiphy, reg, initiator); in ath_reg_apply_world_flags()
443 ath_reg_apply_beaconing_flags(wiphy, reg, initiator); in ath_reg_apply_world_flags()
444 ath_reg_apply_ir_flags(wiphy, reg, initiator); in ath_reg_apply_world_flags()
448 ath_reg_apply_beaconing_flags(wiphy, reg, initiator); in ath_reg_apply_world_flags()
464 static int __ath_reg_dyn_country(struct wiphy *wiphy, in __ath_reg_dyn_country() argument
483 ath_reg_apply_world_flags(wiphy, request->initiator, reg); in __ath_reg_dyn_country()
488 static void ath_reg_dyn_country(struct wiphy *wiphy, in ath_reg_dyn_country() argument
492 if (__ath_reg_dyn_country(wiphy, reg, request)) in ath_reg_dyn_country()
501 void ath_reg_notifier_apply(struct wiphy *wiphy, in ath_reg_notifier_apply() argument
508 ath_reg_apply_radar_flags(wiphy); in ath_reg_notifier_apply()
535 ath_reg_dyn_country(wiphy, reg, request); in ath_reg_notifier_apply()
538 ath_reg_dyn_country(wiphy, reg, request); in ath_reg_notifier_apply()
629 struct wiphy *wiphy, in ath_regd_init_wiphy() argument
630 void (*reg_notifier)(struct wiphy *wiphy, in ath_regd_init_wiphy() argument
635 wiphy->reg_notifier = reg_notifier; in ath_regd_init_wiphy()
636 wiphy->regulatory_flags |= REGULATORY_STRICT_REG | in ath_regd_init_wiphy()
645 wiphy->regulatory_flags |= REGULATORY_COUNTRY_IE_FOLLOW_POWER; in ath_regd_init_wiphy()
655 wiphy_apply_custom_regulatory(wiphy, regd); in ath_regd_init_wiphy()
656 ath_reg_apply_radar_flags(wiphy); in ath_regd_init_wiphy()
657 ath_reg_apply_world_flags(wiphy, NL80211_REGDOM_SET_BY_DRIVER, reg); in ath_regd_init_wiphy()
752 struct wiphy *wiphy, in ath_regd_init() argument
753 void (*reg_notifier)(struct wiphy *wiphy, in ath_regd_init() argument
768 ath_regd_init_wiphy(reg, wiphy, reg_notifier); in ath_regd_init()