Lines Matching defs:wiphy
262 static void rtw_regd_apply_beaconing_flags(struct wiphy *wiphy,
272 if (!wiphy->bands[band])
275 sband = wiphy->bands[band];
279 reg_rule = freq_reg_info(wiphy,
292 static void rtw_regd_apply_hw_cap_flags(struct wiphy *wiphy)
294 struct ieee80211_hw *hw = wiphy_to_ieee80211_hw(wiphy);
304 sband = wiphy->bands[NL80211_BAND_2GHZ];
314 sband = wiphy->bands[NL80211_BAND_5GHZ];
324 static void rtw_regd_apply_world_flags(struct wiphy *wiphy,
327 rtw_regd_apply_beaconing_flags(wiphy, initiator);
343 struct wiphy *wiphy,
349 rtw_regd_apply_world_flags(wiphy, request->initiator);
355 rtw_regd_init_wiphy(struct rtw_regulatory *reg, struct wiphy *wiphy,
356 void (*reg_notifier)(struct wiphy *wiphy,
359 wiphy->reg_notifier = reg_notifier;
361 wiphy->regulatory_flags &= ~REGULATORY_CUSTOM_REG;
362 wiphy->regulatory_flags &= ~REGULATORY_STRICT_REG;
363 wiphy->regulatory_flags &= ~REGULATORY_DISABLE_BEACON_HINTS;
365 rtw_regd_apply_hw_cap_flags(wiphy);
371 void (*reg_notifier)(struct wiphy *wiphy,
374 struct wiphy *wiphy = rtwdev->hw->wiphy;
376 if (!wiphy)
380 rtw_regd_init_wiphy(&rtwdev->regd, wiphy, reg_notifier);
385 void rtw_regd_notifier(struct wiphy *wiphy, struct regulatory_request *request)
387 struct ieee80211_hw *hw = wiphy_to_ieee80211_hw(wiphy);
391 rtw_regd_notifier_apply(rtwdev, wiphy, request);