Lines Matching +full:3 +full:cg +full:- +full:2019
1 // SPDX-License-Identifier: GPL-2.0 OR BSD-3-Clause
2 /* Copyright(c) 2019-2020 Realtek Corporation
160 COUNTRY_REGD("CG", RTW89_ETSI, RTW89_ETSI, RTW89_NA),
279 ##_argv, __r->alpha2[0], __r->alpha2[1], \
280 __r->txpwr_regd[RTW89_BAND_2G], \
281 __r->txpwr_regd[RTW89_BAND_5G], \
282 __r->txpwr_regd[RTW89_BAND_6G]); \
290 struct wiphy *wiphy = rtwdev->hw->wiphy; in rtw89_regd_init()
294 return -EINVAL; in rtw89_regd_init()
296 chip_regd = rtw89_regd_find_reg_by_name(rtwdev->efuse.country_code); in rtw89_regd_init()
298 rtwdev->regd = chip_regd; in rtw89_regd_init()
300 wiphy->regulatory_flags |= REGULATORY_COUNTRY_IE_IGNORE; in rtw89_regd_init()
301 wiphy->regulatory_flags |= REGULATORY_STRICT_REG; in rtw89_regd_init()
303 ret = regulatory_hint(rtwdev->hw->wiphy, rtwdev->regd->alpha2); in rtw89_regd_init()
311 rtw89_debug_regd(rtwdev, rtwdev->regd, in rtw89_regd_init()
320 rtwdev->regd = rtw89_regd_find_reg_by_name(request->alpha2); in rtw89_regd_notifier_apply()
325 if (request->initiator == NL80211_REGDOM_SET_BY_USER && in rtw89_regd_notifier_apply()
326 !rtw89_regd_is_ww(rtwdev->regd)) in rtw89_regd_notifier_apply()
327 wiphy->regulatory_flags |= REGULATORY_COUNTRY_IE_IGNORE; in rtw89_regd_notifier_apply()
329 wiphy->regulatory_flags &= ~REGULATORY_COUNTRY_IE_IGNORE; in rtw89_regd_notifier_apply()
335 struct rtw89_dev *rtwdev = hw->priv; in rtw89_regd_notifier()
337 mutex_lock(&rtwdev->mutex); in rtw89_regd_notifier()
340 if (wiphy->regd) { in rtw89_regd_notifier()
346 rtw89_debug_regd(rtwdev, rtwdev->regd, "get from initiator %d, alpha2", in rtw89_regd_notifier()
347 request->initiator); in rtw89_regd_notifier()
352 mutex_unlock(&rtwdev->mutex); in rtw89_regd_notifier()