Lines Matching refs:wiphy

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