Lines Matching refs:wiphy

131 static void _rtl_reg_apply_beaconing_flags(struct wiphy *wiphy,
142 if (!wiphy->bands[band])
145 sband = wiphy->bands[band];
153 reg_rule = freq_reg_info(wiphy,
182 static void _rtl_reg_apply_active_scan_flags(struct wiphy *wiphy,
190 if (!wiphy->bands[NL80211_BAND_2GHZ])
192 sband = wiphy->bands[NL80211_BAND_2GHZ];
216 reg_rule = freq_reg_info(wiphy, ch->center_freq);
224 reg_rule = freq_reg_info(wiphy, ch->center_freq);
236 static void _rtl_reg_apply_radar_flags(struct wiphy *wiphy)
242 if (!wiphy->bands[NL80211_BAND_5GHZ])
245 sband = wiphy->bands[NL80211_BAND_5GHZ];
270 static void _rtl_reg_apply_world_flags(struct wiphy *wiphy,
274 _rtl_reg_apply_beaconing_flags(wiphy, initiator);
275 _rtl_reg_apply_active_scan_flags(wiphy, initiator);
279 static int _rtl_reg_notifier_apply(struct wiphy *wiphy,
284 _rtl_reg_apply_radar_flags(wiphy);
292 _rtl_reg_apply_world_flags(wiphy, request->initiator, reg);
330 struct wiphy *wiphy,
331 void (*reg_notifier)(struct wiphy *wiphy,
337 wiphy->reg_notifier = reg_notifier;
339 wiphy->regulatory_flags |= REGULATORY_CUSTOM_REG;
340 wiphy->regulatory_flags &= ~REGULATORY_STRICT_REG;
341 wiphy->regulatory_flags &= ~REGULATORY_DISABLE_BEACON_HINTS;
343 wiphy_apply_custom_regulatory(wiphy, regd);
344 _rtl_reg_apply_radar_flags(wiphy);
345 _rtl_reg_apply_world_flags(wiphy, NL80211_REGDOM_SET_BY_DRIVER, reg);
382 void (*reg_notifier)(struct wiphy *wiphy,
386 struct wiphy *wiphy = hw->wiphy;
389 if (!wiphy)
421 _rtl_regd_init_wiphy(&rtlpriv->regd, wiphy, reg_notifier);
426 void rtl_reg_notifier(struct wiphy *wiphy, struct regulatory_request *request)
428 struct ieee80211_hw *hw = wiphy_to_ieee80211_hw(wiphy);
433 _rtl_reg_notifier_apply(wiphy, request, &rtlpriv->regd);