Lines Matching refs:wiphy

154 static void _rtl_reg_apply_beaconing_flags(struct wiphy *wiphy,  in _rtl_reg_apply_beaconing_flags()  argument
165 if (!wiphy->bands[band]) in _rtl_reg_apply_beaconing_flags()
168 sband = wiphy->bands[band]; in _rtl_reg_apply_beaconing_flags()
176 reg_rule = freq_reg_info(wiphy, in _rtl_reg_apply_beaconing_flags()
205 static void _rtl_reg_apply_active_scan_flags(struct wiphy *wiphy, in _rtl_reg_apply_active_scan_flags() argument
213 if (!wiphy->bands[IEEE80211_BAND_2GHZ]) in _rtl_reg_apply_active_scan_flags()
215 sband = wiphy->bands[IEEE80211_BAND_2GHZ]; in _rtl_reg_apply_active_scan_flags()
239 reg_rule = freq_reg_info(wiphy, ch->center_freq); in _rtl_reg_apply_active_scan_flags()
247 reg_rule = freq_reg_info(wiphy, ch->center_freq); in _rtl_reg_apply_active_scan_flags()
259 static void _rtl_reg_apply_radar_flags(struct wiphy *wiphy) in _rtl_reg_apply_radar_flags() argument
265 if (!wiphy->bands[IEEE80211_BAND_5GHZ]) in _rtl_reg_apply_radar_flags()
268 sband = wiphy->bands[IEEE80211_BAND_5GHZ]; in _rtl_reg_apply_radar_flags()
293 static void _rtl_reg_apply_world_flags(struct wiphy *wiphy, in _rtl_reg_apply_world_flags() argument
297 _rtl_reg_apply_beaconing_flags(wiphy, initiator); in _rtl_reg_apply_world_flags()
298 _rtl_reg_apply_active_scan_flags(wiphy, initiator); in _rtl_reg_apply_world_flags()
302 static void _rtl_dump_channel_map(struct wiphy *wiphy) in _rtl_dump_channel_map() argument
310 if (!wiphy->bands[band]) in _rtl_dump_channel_map()
312 sband = wiphy->bands[band]; in _rtl_dump_channel_map()
318 static int _rtl_reg_notifier_apply(struct wiphy *wiphy, in _rtl_reg_notifier_apply() argument
323 _rtl_reg_apply_radar_flags(wiphy); in _rtl_reg_notifier_apply()
331 _rtl_reg_apply_world_flags(wiphy, request->initiator, reg); in _rtl_reg_notifier_apply()
335 _rtl_dump_channel_map(wiphy); in _rtl_reg_notifier_apply()
371 struct wiphy *wiphy, in _rtl_regd_init_wiphy() argument
372 void (*reg_notifier)(struct wiphy *wiphy, in _rtl_regd_init_wiphy() argument
378 wiphy->reg_notifier = reg_notifier; in _rtl_regd_init_wiphy()
380 wiphy->regulatory_flags |= REGULATORY_CUSTOM_REG; in _rtl_regd_init_wiphy()
381 wiphy->regulatory_flags &= ~REGULATORY_STRICT_REG; in _rtl_regd_init_wiphy()
382 wiphy->regulatory_flags &= ~REGULATORY_DISABLE_BEACON_HINTS; in _rtl_regd_init_wiphy()
384 wiphy_apply_custom_regulatory(wiphy, regd); in _rtl_regd_init_wiphy()
385 _rtl_reg_apply_radar_flags(wiphy); in _rtl_regd_init_wiphy()
386 _rtl_reg_apply_world_flags(wiphy, NL80211_REGDOM_SET_BY_DRIVER, reg); in _rtl_regd_init_wiphy()
421 void (*reg_notifier)(struct wiphy *wiphy, in rtl_regd_init() argument
425 struct wiphy *wiphy = hw->wiphy; in rtl_regd_init() local
428 if (wiphy == NULL || &rtlpriv->regd == NULL) in rtl_regd_init()
460 _rtl_regd_init_wiphy(&rtlpriv->regd, wiphy, reg_notifier); in rtl_regd_init()
465 void rtl_reg_notifier(struct wiphy *wiphy, struct regulatory_request *request) in rtl_reg_notifier() argument
467 struct ieee80211_hw *hw = wiphy_to_ieee80211_hw(wiphy); in rtl_reg_notifier()
472 _rtl_reg_notifier_apply(wiphy, request, &rtlpriv->regd); in rtl_reg_notifier()