Lines Matching refs:wiphy
266 static void ath_force_clear_no_ir_chan(struct wiphy *wiphy, in ath_force_clear_no_ir_chan() argument
271 reg_rule = freq_reg_info(wiphy, MHZ_TO_KHZ(ch->center_freq)); in ath_force_clear_no_ir_chan()
280 static void ath_force_clear_no_ir_freq(struct wiphy *wiphy, u16 center_freq) in ath_force_clear_no_ir_freq() argument
284 ch = ieee80211_get_channel(wiphy, center_freq); in ath_force_clear_no_ir_freq()
288 ath_force_clear_no_ir_chan(wiphy, ch); in ath_force_clear_no_ir_freq()
296 static void ath_force_no_ir_freq(struct wiphy *wiphy, u16 center_freq) in ath_force_no_ir_freq() argument
300 ch = ieee80211_get_channel(wiphy, center_freq); in ath_force_no_ir_freq()
308 __ath_reg_apply_beaconing_flags(struct wiphy *wiphy, in __ath_reg_apply_beaconing_flags() argument
319 ath_force_clear_no_ir_chan(wiphy, ch); in __ath_reg_apply_beaconing_flags()
323 ath_force_clear_no_ir_chan(wiphy, ch); in __ath_reg_apply_beaconing_flags()
339 ath_reg_apply_beaconing_flags(struct wiphy *wiphy, in ath_reg_apply_beaconing_flags() argument
349 if (!wiphy->bands[band]) in ath_reg_apply_beaconing_flags()
351 sband = wiphy->bands[band]; in ath_reg_apply_beaconing_flags()
354 __ath_reg_apply_beaconing_flags(wiphy, reg, in ath_reg_apply_beaconing_flags()
376 ath_reg_apply_ir_flags(struct wiphy *wiphy, in ath_reg_apply_ir_flags() argument
382 sband = wiphy->bands[NL80211_BAND_2GHZ]; in ath_reg_apply_ir_flags()
388 ath_force_clear_no_ir_freq(wiphy, 2467); in ath_reg_apply_ir_flags()
389 ath_force_clear_no_ir_freq(wiphy, 2472); in ath_reg_apply_ir_flags()
394 ath_force_clear_no_ir_freq(wiphy, 2467); in ath_reg_apply_ir_flags()
395 ath_force_clear_no_ir_freq(wiphy, 2472); in ath_reg_apply_ir_flags()
398 ath_force_no_ir_freq(wiphy, 2467); in ath_reg_apply_ir_flags()
399 ath_force_no_ir_freq(wiphy, 2472); in ath_reg_apply_ir_flags()
404 static void ath_reg_apply_radar_flags(struct wiphy *wiphy, in ath_reg_apply_radar_flags() argument
411 if (!wiphy->bands[NL80211_BAND_5GHZ]) in ath_reg_apply_radar_flags()
414 sband = wiphy->bands[NL80211_BAND_5GHZ]; in ath_reg_apply_radar_flags()
436 static void ath_reg_apply_world_flags(struct wiphy *wiphy, in ath_reg_apply_world_flags() argument
446 ath_reg_apply_beaconing_flags(wiphy, reg, initiator); in ath_reg_apply_world_flags()
449 ath_reg_apply_beaconing_flags(wiphy, reg, initiator); in ath_reg_apply_world_flags()
450 ath_reg_apply_ir_flags(wiphy, reg, initiator); in ath_reg_apply_world_flags()
454 ath_reg_apply_beaconing_flags(wiphy, reg, initiator); in ath_reg_apply_world_flags()
471 static int __ath_reg_dyn_country(struct wiphy *wiphy, in __ath_reg_dyn_country() argument
490 ath_reg_apply_world_flags(wiphy, request->initiator, reg); in __ath_reg_dyn_country()
495 static void ath_reg_dyn_country(struct wiphy *wiphy, in ath_reg_dyn_country() argument
499 if (__ath_reg_dyn_country(wiphy, reg, request)) in ath_reg_dyn_country()
508 void ath_reg_notifier_apply(struct wiphy *wiphy, in ath_reg_notifier_apply() argument
515 ath_reg_apply_radar_flags(wiphy, reg); in ath_reg_notifier_apply()
542 ath_reg_dyn_country(wiphy, reg, request); in ath_reg_notifier_apply()
545 ath_reg_dyn_country(wiphy, reg, request); in ath_reg_notifier_apply()
636 struct wiphy *wiphy, in ath_regd_init_wiphy() argument
637 void (*reg_notifier)(struct wiphy *wiphy, in ath_regd_init_wiphy() argument
642 wiphy->reg_notifier = reg_notifier; in ath_regd_init_wiphy()
643 wiphy->regulatory_flags |= REGULATORY_STRICT_REG | in ath_regd_init_wiphy()
652 wiphy->regulatory_flags |= REGULATORY_COUNTRY_IE_FOLLOW_POWER; in ath_regd_init_wiphy()
662 wiphy_apply_custom_regulatory(wiphy, regd); in ath_regd_init_wiphy()
663 ath_reg_apply_radar_flags(wiphy, reg); in ath_regd_init_wiphy()
664 ath_reg_apply_world_flags(wiphy, NL80211_REGDOM_SET_BY_DRIVER, reg); in ath_regd_init_wiphy()
759 struct wiphy *wiphy, in ath_regd_init() argument
760 void (*reg_notifier)(struct wiphy *wiphy, in ath_regd_init() argument
775 ath_regd_init_wiphy(reg, wiphy, reg_notifier); in ath_regd_init()