Home
last modified time | relevance | path

Searched refs:country_code (Results 1 – 25 of 311) sorted by relevance

12345678910>>...13

/OK3568_Linux_fs/kernel/drivers/net/wireless/ath/
H A Dregd.c122 switch (reg->country_code) { in dynamic_country_user_possible()
261 if (reg->country_code == CTRY_INDIA) in ath_is_radar_freq()
474 u16 country_code; in __ath_reg_dyn_country() local
480 country_code = ath_regd_find_country_by_name(request->alpha2); in __ath_reg_dyn_country()
481 if (country_code == (u16) -1) in __ath_reg_dyn_country()
485 reg->current_rd |= country_code; in __ath_reg_dyn_country()
700 reg->country_code = ath_regd_get_default_country(regdmn); in __ath_regd_init()
702 if (reg->country_code == CTRY_DEFAULT && in __ath_regd_init()
706 reg->country_code = CTRY_UNITED_STATES; in __ath_regd_init()
709 if (reg->country_code == CTRY_DEFAULT) { in __ath_regd_init()
[all …]
/OK3568_Linux_fs/kernel/drivers/net/wireless/nxp/mlan/
H A Dmlan_11d.c302 memcpy_ext(pmadapter, domain_info->country_code, in wlan_11d_generate_domain_info()
672 t_u8 country_code[COUNTRY_CODE_LEN], t_u8 num_sub_band, in wlan_11d_set_domain_info()
683 memcpy_ext(pmadapter, pdomain->country_code, country_code, in wlan_11d_set_domain_info()
860 pmadapter->domain_reg.country_code[0], in wlan_cmd_802_11d_domain_info()
861 pmadapter->domain_reg.country_code[1], in wlan_cmd_802_11d_domain_info()
886 memcpy_ext(pmadapter, domain->country_code, in wlan_cmd_802_11d_domain_info()
887 pmadapter->domain_reg.country_code, in wlan_cmd_802_11d_domain_info()
888 sizeof(domain->country_code), sizeof(domain->country_code)); in wlan_cmd_802_11d_domain_info()
892 sizeof(domain->country_code)); in wlan_cmd_802_11d_domain_info()
1055 if (!(*(country_info->country_code)) || in wlan_11d_parse_domain_info()
[all …]
H A Dmlan_cfp.c64 t_u8 country_code[COUNTRY_CODE_LEN]; member
1326 t_u8 *country_code, t_u8 *cfp_bg, in wlan_misc_country_2_cfp_table_code() argument
1334 if (!memcmp(pmadapter, pmadapter->otp_region->country_code, in wlan_misc_country_2_cfp_table_code()
1335 country_code, COUNTRY_CODE_LEN - 1)) { in wlan_misc_country_2_cfp_table_code()
1346 if (!memcmp(pmadapter, country_code_mapping[i].country_code, in wlan_misc_country_2_cfp_table_code()
1347 country_code, COUNTRY_CODE_LEN - 1)) { in wlan_misc_country_2_cfp_table_code()
1357 if (!memcmp(pmadapter, eu_country_code_table[i], country_code, in wlan_misc_country_2_cfp_table_code()
1378 t_bool wlan_is_etsi_country(pmlan_adapter pmadapter, t_u8 *country_code) in wlan_is_etsi_country() argument
1386 if (!memcmp(pmadapter, eu_country_code_table[i], country_code, in wlan_is_etsi_country()
2416 t_u8 country_code[][COUNTRY_CODE_LEN] = {"US", "JP", "CN"}; in wlan_get_nonglobal_operclass_table() local
[all …]
/OK3568_Linux_fs/kernel/drivers/net/wireless/rockchip_wlan/mvl88w8977/mlan/
H A Dmlan_11d.c300 memcpy(pmadapter, domain_info->country_code, in wlan_11d_generate_domain_info()
668 t_u8 country_code[COUNTRY_CODE_LEN], in wlan_11d_set_domain_info()
679 memcpy(pmadapter, pdomain->country_code, country_code, in wlan_11d_set_domain_info()
858 memcpy(pmadapter, domain->country_code, in wlan_cmd_802_11d_domain_info()
859 pmadapter->domain_reg.country_code, in wlan_cmd_802_11d_domain_info()
860 sizeof(domain->country_code)); in wlan_cmd_802_11d_domain_info()
864 sizeof(domain->country_code)); in wlan_cmd_802_11d_domain_info()
979 if (!(*(country_info->country_code)) || in wlan_11d_parse_domain_info()
1421 if (*(pcountry_full->country_code) != 0 && in wlan_11d_prepare_dnld_domain_info_cmd()
1500 memcpy(pmadapter, pmadapter->country_code, domain_info->country_code, in wlan_11d_cfg_domain_info()
[all …]
H A Dmlan_cfp.c72 t_u8 country_code[COUNTRY_CODE_LEN]; member
960 wlan_misc_country_2_cfp_table_code(pmlan_adapter pmadapter, t_u8 *country_code, in wlan_misc_country_2_cfp_table_code() argument
969 if (!memcmp(pmadapter, country_code_mapping[i].country_code, in wlan_misc_country_2_cfp_table_code()
970 country_code, COUNTRY_CODE_LEN - 1)) { in wlan_misc_country_2_cfp_table_code()
981 country_code, COUNTRY_CODE_LEN - 1)) { in wlan_misc_country_2_cfp_table_code()
1002 wlan_is_etsi_country(pmlan_adapter pmadapter, t_u8 *country_code) in wlan_is_etsi_country() argument
1012 country_code, COUNTRY_CODE_LEN - 1)) { in wlan_is_etsi_country()
1733 t_u8 country_code[][COUNTRY_CODE_LEN] = { "US", "JP", "CN" }; in wlan_get_nonglobal_operclass_table() local
1741 (pmpriv->adapter, pmpriv->adapter->country_code, in wlan_get_nonglobal_operclass_table()
1742 country_code[country_id], COUNTRY_CODE_LEN - 1)) in wlan_get_nonglobal_operclass_table()
[all …]
/OK3568_Linux_fs/kernel/drivers/net/wireless/realtek/rtlwifi/
H A Dregd.c302 switch (reg->country_code) { in _rtl_regdomain_select()
393 rtlpriv->regd.country_code = in rtl_regd_init()
398 rtlpriv->efuse.channel_plan, rtlpriv->regd.country_code); in rtl_regd_init()
400 if (rtlpriv->regd.country_code >= COUNTRY_CODE_MAX) { in rtl_regd_init()
404 rtlpriv->regd.country_code = COUNTRY_CODE_WORLD_WIDE_13; in rtl_regd_init()
407 country = _rtl_regd_find_country(rtlpriv->regd.country_code); in rtl_regd_init()
/OK3568_Linux_fs/kernel/drivers/net/wireless/rockchip_wlan/infineon/bcmdhd/
H A Dwldev_common.c468 struct net_device *dev, char *country_code, bool notify, bool user_enforced, int revinfo) argument
480 if (!country_code)
494 (strncmp(country_code, cspec.ccode, WLC_CNTRY_BUF_SZ) != 0)) {
514 strlcpy(cspec.country_abbrev, country_code, WLC_CNTRY_BUF_SZ);
515 strlcpy(cspec.ccode, country_code, WLC_CNTRY_BUF_SZ);
521 __FUNCTION__, country_code, cspec.ccode, cspec.rev));
526 __FUNCTION__, country_code, cspec.ccode, cspec.rev));
/OK3568_Linux_fs/kernel/drivers/net/wireless/rockchip_wlan/cywdhd/bcmdhd/
H A Dwldev_common.c468 struct net_device *dev, char *country_code, bool notify, bool user_enforced, int revinfo) argument
480 if (!country_code)
494 (strncmp(country_code, cspec.ccode, WLC_CNTRY_BUF_SZ) != 0)) {
514 strlcpy(cspec.country_abbrev, country_code, WLC_CNTRY_BUF_SZ);
515 strlcpy(cspec.ccode, country_code, WLC_CNTRY_BUF_SZ);
521 __FUNCTION__, country_code, cspec.ccode, cspec.rev));
526 __FUNCTION__, country_code, cspec.ccode, cspec.rev));
/OK3568_Linux_fs/external/mpp/mpp/codec/dec/h265/
H A Dh265d_sei.c341 RK_S32 country_code, provider_code; in user_data_registered_itu_t_t35() local
347 READ_BITS(gb, 8, &country_code); in user_data_registered_itu_t_t35()
348 if (country_code == 0xFF) { in user_data_registered_itu_t_t35()
356 if (country_code != 0xB5 && country_code != 0x26) { in user_data_registered_itu_t_t35()
357 …pp_log("Unsupported User Data Registered ITU-T T35 SEI message (country_code = %d)", country_code); in user_data_registered_itu_t_t35()
364 country_code, provider_code, terminal_provide_oriented_code); in user_data_registered_itu_t_t35()
/OK3568_Linux_fs/external/rkwifibt/drivers/infineon/
H A Dwldev_common.c468 struct net_device *dev, char *country_code, bool notify, bool user_enforced, int revinfo) argument
480 if (!country_code)
494 (strncmp(country_code, cspec.ccode, WLC_CNTRY_BUF_SZ) != 0)) {
514 strlcpy(cspec.country_abbrev, country_code, WLC_CNTRY_BUF_SZ);
515 strlcpy(cspec.ccode, country_code, WLC_CNTRY_BUF_SZ);
521 __FUNCTION__, country_code, cspec.ccode, cspec.rev));
526 __FUNCTION__, country_code, cspec.ccode, cspec.rev));
/OK3568_Linux_fs/kernel/drivers/net/wireless/rockchip_wlan/rkwifi/bcmdhd/
H A Dwldev_common.c509 struct net_device *dev, char *country_code, bool notify, int revinfo) in wldev_set_country() argument
515 if (!country_code) in wldev_set_country()
519 strlcpy(cspec.country_abbrev, country_code, WL_CCODE_LEN + 1); in wldev_set_country()
520 strlcpy(cspec.ccode, country_code, WL_CCODE_LEN + 1); in wldev_set_country()
527 __FUNCTION__, country_code, cspec.ccode, cspec.rev)); in wldev_set_country()
534 __FUNCTION__, country_code, cspec.ccode, cspec.rev); in wldev_set_country()
/OK3568_Linux_fs/kernel/drivers/net/wireless/rockchip_wlan/rkwifi/bcmdhd_indep_power/
H A Dwldev_common.c477 struct net_device *dev, char *country_code, bool notify, bool user_enforced, int revinfo) in wldev_set_country() argument
489 if (!country_code) in wldev_set_country()
500 memcpy(cspec.country_abbrev, country_code, WLC_CNTRY_BUF_SZ); in wldev_set_country()
501 memcpy(cspec.ccode, country_code, WLC_CNTRY_BUF_SZ); in wldev_set_country()
531 __FUNCTION__, country_code, cspec.ccode, cspec.rev)); in wldev_set_country()
538 __FUNCTION__, country_code, cspec.ccode, cspec.rev); in wldev_set_country()
/OK3568_Linux_fs/kernel/drivers/net/wireless/marvell/libertas/
H A Dcmd.c713 if (!priv->country_code[0]) in lbs_set_11d_domain_info()
720 priv->country_code[0], priv->country_code[1]); in lbs_set_11d_domain_info()
725 domain->country_code[0] = priv->country_code[0]; in lbs_set_11d_domain_info()
726 domain->country_code[1] = priv->country_code[1]; in lbs_set_11d_domain_info()
727 domain->country_code[2] = ' '; in lbs_set_11d_domain_info()
793 domain->header.len = cpu_to_le16(sizeof(domain->country_code) + in lbs_set_11d_domain_info()
797 (u8 *) &cmd.domain.country_code, in lbs_set_11d_domain_info()
803 sizeof(cmd.domain.country_code) + in lbs_set_11d_domain_info()
/OK3568_Linux_fs/kernel/drivers/net/wireless/rockchip_wlan/rtl8723bu/core/
H A Drtw_rf.c275 static const struct country_chplan *rtw_def_module_get_chplan_from_country(const char *country_code) in rtw_def_module_get_chplan_from_country() argument
313 if (strncmp(country_code, hal_map[i].alpha2, 2) == 0) { in rtw_def_module_get_chplan_from_country()
564 const struct country_chplan *rtw_get_chplan_from_country(const char *country_code) in rtw_get_chplan_from_country() argument
572 code[0] = alpha_to_upper(country_code[0]); in rtw_get_chplan_from_country()
573 code[1] = alpha_to_upper(country_code[1]); in rtw_get_chplan_from_country()
/OK3568_Linux_fs/kernel/drivers/net/wireless/nxp/mlinux/
H A Dmoal_sta_cfg80211.c1197 priv->phandle->country_code[0], priv->phandle->country_code[1], in woal_send_domain_info_cmd_fw()
1210 if (is_cfg80211_special_region_code(priv->phandle->country_code)) { in woal_send_domain_info_cmd_fw()
1212 cfg_11d->param.domain_info.country_code[0] = 'W'; in woal_send_domain_info_cmd_fw()
1213 cfg_11d->param.domain_info.country_code[1] = 'W'; in woal_send_domain_info_cmd_fw()
1216 cfg_11d->param.domain_info.country_code[0] = in woal_send_domain_info_cmd_fw()
1217 priv->phandle->country_code[0]; in woal_send_domain_info_cmd_fw()
1218 cfg_11d->param.domain_info.country_code[1] = in woal_send_domain_info_cmd_fw()
1219 priv->phandle->country_code[1]; in woal_send_domain_info_cmd_fw()
1221 cfg_11d->param.domain_info.country_code[2] = ' '; in woal_send_domain_info_cmd_fw()
1270 priv->phandle->country_code[0], priv->phandle->country_code[1], in woal_send_domain_info_cmd_fw()
[all …]
/OK3568_Linux_fs/kernel/drivers/net/wireless/rockchip_wlan/rtl8822be/core/
H A Drtw_rf.c466 static const struct country_chplan *rtw_def_module_get_chplan_from_country(const char *country_code) in rtw_def_module_get_chplan_from_country() argument
504 if (strncmp(country_code, hal_map[i].alpha2, 2) == 0) { in rtw_def_module_get_chplan_from_country()
755 const struct country_chplan *rtw_get_chplan_from_country(const char *country_code) in rtw_get_chplan_from_country() argument
763 code[0] = alpha_to_upper(country_code[0]); in rtw_get_chplan_from_country()
764 code[1] = alpha_to_upper(country_code[1]); in rtw_get_chplan_from_country()
/OK3568_Linux_fs/kernel/drivers/net/wireless/marvell/mwifiex/
H A Dsta_ioctl.c200 memcpy(&txpwr[8], priv->adapter->country_code, 2); in mwifiex_dnld_txpwr_table()
226 if (!strncmp(priv->adapter->country_code, &country_ie[2], 2)) { in mwifiex_process_country_ie()
241 memcpy(priv->adapter->country_code, &country_ie[2], 2); in mwifiex_process_country_ie()
243 domain_info->country_code[0] = country_ie[2]; in mwifiex_process_country_ie()
244 domain_info->country_code[1] = country_ie[3]; in mwifiex_process_country_ie()
245 domain_info->country_code[2] = ' '; in mwifiex_process_country_ie()
598 memcpy(info->country_code, adapter->country_code, in mwifiex_get_bss_info()
/OK3568_Linux_fs/kernel/drivers/staging/rtl8188eu/os_dep/
H A Drtw_android.c115 char *country_code = command + strlen(android_wifi_cmd_str[ANDROID_WIFI_CMD_COUNTRY]) + 1; in android_set_cntry() local
118 ret = rtw_set_country(adapter, country_code); in android_set_cntry()
/OK3568_Linux_fs/external/rkwifibt/drivers/bcmdhd/
H A Dwldev_common.c509 struct net_device *dev, char *country_code, bool notify, int revinfo) in wldev_set_country() argument
515 if (!country_code) in wldev_set_country()
517 error = dhd_conf_country(dhd, "country", country_code); in wldev_set_country()
520 __FUNCTION__, country_code, dhd->dhd_cspec.ccode, dhd->dhd_cspec.rev); in wldev_set_country()
/OK3568_Linux_fs/kernel/drivers/staging/rtl8188eu/core/
H A Drtw_ioctl_set.c585 int rtw_set_country(struct adapter *adapter, const char *country_code) in rtw_set_country() argument
590 DBG_88E("%s country_code:%s\n", __func__, country_code); in rtw_set_country()
592 if (strcmp(channel_table[i].name, country_code) == 0) { in rtw_set_country()
599 DBG_88E("%s unknown country_code:%s\n", __func__, country_code); in rtw_set_country()
/OK3568_Linux_fs/kernel/drivers/net/wireless/rockchip_wlan/rtl8189es/core/
H A Drtw_ioctl_set.c1450 int rtw_set_country(_adapter *adapter, const char *country_code) in rtw_set_country() argument
1454 DBG_871X("%s country_code:%s\n", __func__, country_code); in rtw_set_country()
1458 if(0 == strcmp(country_code, "US")) in rtw_set_country()
1460 else if(0 == strcmp(country_code, "EU")) in rtw_set_country()
1462 else if(0 == strcmp(country_code, "JP")) in rtw_set_country()
1464 else if(0 == strcmp(country_code, "CN")) in rtw_set_country()
1466 else if(0 == strcmp(country_code, "IN")) in rtw_set_country()
1469 DBG_871X("%s unknown country_code:%s\n", __FUNCTION__, country_code); in rtw_set_country()
/OK3568_Linux_fs/kernel/drivers/staging/rtl8188eu/include/
H A Drtw_ioctl_set.h26 int rtw_set_country(struct adapter *adapter, const char *country_code);
/OK3568_Linux_fs/kernel/drivers/net/wireless/rockchip_wlan/mvl88w8977/mlinux/
H A Dmoal_sta_cfg80211.c1059 is_cfg80211_special_region_code(priv->phandle->country_code)) { in woal_send_domain_info_cmd_fw()
1062 priv->phandle->country_code); in woal_send_domain_info_cmd_fw()
1066 priv->phandle->country_code[0], priv->phandle->country_code[1], in woal_send_domain_info_cmd_fw()
1080 cfg_11d->param.domain_info.country_code[0] = in woal_send_domain_info_cmd_fw()
1081 priv->phandle->country_code[0]; in woal_send_domain_info_cmd_fw()
1082 cfg_11d->param.domain_info.country_code[1] = in woal_send_domain_info_cmd_fw()
1083 priv->phandle->country_code[1]; in woal_send_domain_info_cmd_fw()
1084 cfg_11d->param.domain_info.country_code[2] = ' '; in woal_send_domain_info_cmd_fw()
1598 priv->phandle->country_code[0] = country_ie[2]; in woal_process_country_ie()
1599 priv->phandle->country_code[1] = country_ie[3]; in woal_process_country_ie()
[all …]
/OK3568_Linux_fs/external/rkwifibt/drivers/rtl8822cs/core/
H A Drtw_chplan.c2962 bool rtw_get_chplan_from_country(const char *country_code, struct country_chplan *ent) in rtw_get_chplan_from_country() argument
2969 code[0] = alpha_to_upper(country_code[0]); in rtw_get_chplan_from_country()
2970 code[1] = alpha_to_upper(country_code[1]); in rtw_get_chplan_from_country()
3115 const char *country_code = country_ie ? country_ie + 2 : NULL; in rtw_get_chplan_from_recv_country_ie() local
3121 if (!country_code || strncmp(country_code, "XX", 2) == 0) { in rtw_get_chplan_from_recv_country_ie()
3122 if (caller_msg && country_code) in rtw_get_chplan_from_recv_country_ie()
3128 if (!rtw_get_chplan_from_country(country_code, ent)) { in rtw_get_chplan_from_recv_country_ie()
3130 if (is_alpha(country_code[0]) == _FALSE || is_alpha(country_code[1]) == _FALSE) { in rtw_get_chplan_from_recv_country_ie()
3135 , caller_msg, ADPT_ARG(adapter), country_code[0], country_code[1]); in rtw_get_chplan_from_recv_country_ie()
3154 , caller_msg, ADPT_ARG(adapter), country_code[0], country_code[1], band_str(band), opch); in rtw_get_chplan_from_recv_country_ie()
[all …]
/OK3568_Linux_fs/external/rkwifibt/drivers/rtl8821cs/core/
H A Drtw_chplan.c2962 bool rtw_get_chplan_from_country(const char *country_code, struct country_chplan *ent) in rtw_get_chplan_from_country() argument
2969 code[0] = alpha_to_upper(country_code[0]); in rtw_get_chplan_from_country()
2970 code[1] = alpha_to_upper(country_code[1]); in rtw_get_chplan_from_country()
3115 const char *country_code = country_ie ? country_ie + 2 : NULL; in rtw_get_chplan_from_recv_country_ie() local
3121 if (!country_code || strncmp(country_code, "XX", 2) == 0) { in rtw_get_chplan_from_recv_country_ie()
3122 if (caller_msg && country_code) in rtw_get_chplan_from_recv_country_ie()
3128 if (!rtw_get_chplan_from_country(country_code, ent)) { in rtw_get_chplan_from_recv_country_ie()
3130 if (is_alpha(country_code[0]) == _FALSE || is_alpha(country_code[1]) == _FALSE) { in rtw_get_chplan_from_recv_country_ie()
3135 , caller_msg, ADPT_ARG(adapter), country_code[0], country_code[1]); in rtw_get_chplan_from_recv_country_ie()
3154 , caller_msg, ADPT_ARG(adapter), country_code[0], country_code[1], band_str(band), opch); in rtw_get_chplan_from_recv_country_ie()
[all …]

12345678910>>...13