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
375 ath_reg_apply_ir_flags(struct wiphy *wiphy,
381 sband = wiphy->bands[NL80211_BAND_2GHZ];
387 ath_force_clear_no_ir_freq(wiphy, 2467);
388 ath_force_clear_no_ir_freq(wiphy, 2472);
393 ath_force_clear_no_ir_freq(wiphy, 2467);
394 ath_force_clear_no_ir_freq(wiphy, 2472);
397 ath_force_no_ir_freq(wiphy, 2467);
398 ath_force_no_ir_freq(wiphy, 2472);
403 static void ath_reg_apply_radar_flags(struct wiphy *wiphy,
410 if (!wiphy->bands[NL80211_BAND_5GHZ])
413 sband = wiphy->bands[NL80211_BAND_5GHZ];
435 static void ath_reg_apply_world_flags(struct wiphy *wiphy,
445 ath_reg_apply_beaconing_flags(wiphy, reg, initiator);
448 ath_reg_apply_beaconing_flags(wiphy, reg, initiator);
449 ath_reg_apply_ir_flags(wiphy, reg, initiator);
453 ath_reg_apply_beaconing_flags(wiphy, reg, initiator);
470 static int __ath_reg_dyn_country(struct wiphy *wiphy,
489 ath_reg_apply_world_flags(wiphy, request->initiator, reg);
494 static void ath_reg_dyn_country(struct wiphy *wiphy,
498 if (__ath_reg_dyn_country(wiphy, reg, request))
507 void ath_reg_notifier_apply(struct wiphy *wiphy,
514 ath_reg_apply_radar_flags(wiphy, reg);
541 ath_reg_dyn_country(wiphy, reg, request);
544 ath_reg_dyn_country(wiphy, reg, request);
635 struct wiphy *wiphy,
636 void (*reg_notifier)(struct wiphy *wiphy,
641 wiphy->reg_notifier = reg_notifier;
642 wiphy->regulatory_flags |= REGULATORY_STRICT_REG |
647 * Anything applied here (prior to wiphy registration) gets
648 * saved on the wiphy orig_* parameters
651 wiphy->regulatory_flags |= REGULATORY_COUNTRY_IE_FOLLOW_POWER;
661 wiphy_apply_custom_regulatory(wiphy, regd);
662 ath_reg_apply_radar_flags(wiphy, reg);
663 ath_reg_apply_world_flags(wiphy, NL80211_REGDOM_SET_BY_DRIVER, reg);
758 struct wiphy *wiphy,
759 void (*reg_notifier)(struct wiphy *wiphy,
774 ath_regd_init_wiphy(reg, wiphy, reg_notifier);