Home
last modified time | relevance | path

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

/linux-4.1.27/drivers/net/wireless/ath/
Dregd.c122 switch (reg->country_code) { in dynamic_country_user_possible()
468 u16 country_code; in __ath_reg_dyn_country() local
474 country_code = ath_regd_find_country_by_name(request->alpha2); in __ath_reg_dyn_country()
475 if (country_code == (u16) -1) in __ath_reg_dyn_country()
479 reg->current_rd |= country_code; in __ath_reg_dyn_country()
694 reg->country_code = ath_regd_get_default_country(regdmn); in __ath_regd_init()
696 if (reg->country_code == CTRY_DEFAULT && in __ath_regd_init()
700 reg->country_code = CTRY_UNITED_STATES; in __ath_regd_init()
703 if (reg->country_code == CTRY_DEFAULT) { in __ath_regd_init()
708 country = ath_regd_find_country(reg->country_code); in __ath_regd_init()
[all …]
Dath.h85 u16 country_code; member
/linux-4.1.27/drivers/net/wireless/rtlwifi/
Dregd.c331 switch (reg->country_code) { in _rtl_regdomain_select()
399 rtlpriv->regd.country_code = rtlpriv->efuse.channel_plan; in rtl_regd_init()
403 rtlpriv->regd.country_code); in rtl_regd_init()
405 if (rtlpriv->regd.country_code >= COUNTRY_CODE_MAX) { in rtl_regd_init()
409 rtlpriv->regd.country_code = COUNTRY_CODE_WORLD_WIDE_13; in rtl_regd_init()
412 country = _rtl_regd_find_country(rtlpriv->regd.country_code); in rtl_regd_init()
Dwifi.h1079 u16 country_code; member
/linux-4.1.27/drivers/staging/rtl8188eu/core/
Drtw_ioctl_set.c643 int rtw_set_country(struct adapter *adapter, const char *country_code) in rtw_set_country() argument
647 DBG_88E("%s country_code:%s\n", __func__, country_code); in rtw_set_country()
651 if (0 == strcmp(country_code, "US")) in rtw_set_country()
653 else if (0 == strcmp(country_code, "EU")) in rtw_set_country()
655 else if (0 == strcmp(country_code, "JP")) in rtw_set_country()
657 else if (0 == strcmp(country_code, "CN")) in rtw_set_country()
660 DBG_88E("%s unknown country_code:%s\n", __func__, country_code); in rtw_set_country()
/linux-4.1.27/drivers/net/wireless/libertas/
Dcmd.c756 if (!priv->country_code[0]) in lbs_set_11d_domain_info()
763 priv->country_code[0], priv->country_code[1]); in lbs_set_11d_domain_info()
768 domain->country_code[0] = priv->country_code[0]; in lbs_set_11d_domain_info()
769 domain->country_code[1] = priv->country_code[1]; in lbs_set_11d_domain_info()
770 domain->country_code[2] = ' '; in lbs_set_11d_domain_info()
836 domain->header.len = cpu_to_le16(sizeof(domain->country_code) + in lbs_set_11d_domain_info()
840 (u8 *) &cmd.domain.country_code, in lbs_set_11d_domain_info()
846 sizeof(cmd.domain.country_code) + in lbs_set_11d_domain_info()
Ddev.h52 u8 country_code[IEEE80211_COUNTRY_STRING_LEN]; member
Dhost.h390 u8 country_code[IEEE80211_COUNTRY_STRING_LEN]; member
Dcfg.c2135 memcpy(priv->country_code, request->alpha2, sizeof(request->alpha2)); in lbs_reg_notifier()
/linux-4.1.27/drivers/staging/rtl8188eu/os_dep/
Drtw_android.c127 char *country_code = command + strlen(android_wifi_cmd_str[ANDROID_WIFI_CMD_COUNTRY]) + 1; in android_set_cntry() local
130 ret = rtw_set_country(adapter, country_code); in android_set_cntry()
/linux-4.1.27/drivers/staging/rtl8188eu/include/
Drtw_ioctl_set.h40 int rtw_set_country(struct adapter *adapter, const char *country_code);
/linux-4.1.27/drivers/net/wireless/mwifiex/
Dsta_ioctl.c194 memcpy(&txpwr[8], priv->adapter->country_code, 2); in mwifiex_dnld_txpwr_table()
220 if (!strncmp(priv->adapter->country_code, &country_ie[2], 2)) { in mwifiex_process_country_ie()
226 memcpy(priv->adapter->country_code, &country_ie[2], 2); in mwifiex_process_country_ie()
228 domain_info->country_code[0] = country_ie[2]; in mwifiex_process_country_ie()
229 domain_info->country_code[1] = country_ie[3]; in mwifiex_process_country_ie()
230 domain_info->country_code[2] = ' '; in mwifiex_process_country_ie()
553 memcpy(info->country_code, adapter->country_code, in mwifiex_get_bss_info()
Dcfg80211.c439 domain_info->country_code[0] = adapter->country_code[0]; in mwifiex_send_domain_info_cmd_fw()
440 domain_info->country_code[1] = adapter->country_code[1]; in mwifiex_send_domain_info_cmd_fw()
441 domain_info->country_code[2] = ' '; in mwifiex_send_domain_info_cmd_fw()
537 strncmp(request->alpha2, adapter->country_code, in mwifiex_reg_notifier()
539 memcpy(adapter->country_code, request->alpha2, in mwifiex_reg_notifier()
3488 u8 *country_code; in mwifiex_register_cfg80211() local
3576 country_code = mwifiex_11d_code_2_region(adapter->region_code); in mwifiex_register_cfg80211()
3577 if (country_code) in mwifiex_register_cfg80211()
3579 country_code); in mwifiex_register_cfg80211()
Dioctl.h155 u8 country_code[3]; member
Dsta_cmd.c1013 memcpy(domain->country_code, adapter->domain_reg.country_code, in mwifiex_cmd_802_11d_domain_info()
1014 sizeof(domain->country_code)); in mwifiex_cmd_802_11d_domain_info()
1019 + sizeof(domain->country_code)); in mwifiex_cmd_802_11d_domain_info()
Ddebugfs.c121 p += sprintf(p, "country_code = \"%s\"\n", info.country_code); in mwifiex_info_read()
Dmain.h412 u8 country_code[IEEE80211_COUNTRY_STRING_LEN]; member
883 u8 country_code[IEEE80211_COUNTRY_STRING_LEN]; member
Dfw.h1378 u8 country_code[IEEE80211_COUNTRY_STRING_LEN]; member
/linux-4.1.27/arch/mips/bcm63xx/boards/
Dboard_bcm963xx.c719 .country_code = 0x0,
/linux-4.1.27/drivers/net/wireless/
Dadm8211.h504 u8 country_code; /* 0x1B */ member
Dadm8211.c175 if (priv->eeprom->country_code >= ARRAY_SIZE(cranges)) { in adm8211_read_eeprom()
177 pci_name(priv->pdev), priv->eeprom->country_code); in adm8211_read_eeprom()
181 chan_range = cranges[priv->eeprom->country_code]; in adm8211_read_eeprom()
/linux-4.1.27/include/linux/ssb/
Dssb.h40 u8 country_code; /* Country Code */ member
/linux-4.1.27/drivers/ssb/
Dsdio.c543 sprom->country_code = tuple->data[1]; in ssb_sdio_get_invariants()
Dpcmcia.c662 sprom->country_code = tuple->TupleData[1]; in ssb_pcmcia_do_get_invariants()
Dpci.c389 SPEX(country_code, SSB_SPROM1_BINF, SSB_SPROM1_BINF_CCODE, in sprom_extract_r123()
/linux-4.1.27/arch/mips/bcm47xx/
Dsprom.c207 ENTRY(0x00000002, u8, pre, "cc", country_code, 0, fb); in bcm47xx_sprom_fill_auto()
/linux-4.1.27/drivers/net/wireless/b43legacy/
Dradio.c1771 if (dev->dev->bus->sprom.country_code == 5) /* JAPAN) */ in b43legacy_radio_selectchannel()
/linux-4.1.27/drivers/net/wireless/ath/ath9k/
Dhw.c445 regulatory->country_code = CTRY_DEFAULT; in ath9k_hw_init_defaults()
/linux-4.1.27/drivers/net/wireless/b43/
Dphy_g.c2106 if (dev->dev->bus_sprom->country_code == in b43_gphy_channel_switch()