Lines Matching refs:cspec
745 CONFIG_TRACE("Free cspec %s\n", country->cspec.country_abbrev); in dhd_conf_free_country_list()
1581 dhd_conf_get_country(dhd_pub_t *dhd, wl_country_t *cspec) in dhd_conf_get_country() argument
1585 memset(cspec, 0, sizeof(wl_country_t)); in dhd_conf_get_country()
1586 bcm_mkiovar("country", NULL, 0, (char*)cspec, sizeof(wl_country_t)); in dhd_conf_get_country()
1587 if ((bcmerror = dhd_wl_ioctl_cmd(dhd, WLC_GET_VAR, cspec, sizeof(wl_country_t), in dhd_conf_get_country()
1595 dhd_conf_map_country_list(dhd_pub_t *dhd, wl_country_t *cspec) in dhd_conf_map_country_list() argument
1602 bcmerror = dhd_ccode_map_country_list(dhd, cspec); in dhd_conf_map_country_list()
1607 if (!strncmp("**", country->cspec.country_abbrev, 2)) { in dhd_conf_map_country_list()
1608 if (!strncmp("**", country->cspec.ccode, 2)) { in dhd_conf_map_country_list()
1609 cspec->rev = 0; in dhd_conf_map_country_list()
1613 memcpy(cspec->ccode, country->cspec.ccode, WLC_CNTRY_BUF_SZ); in dhd_conf_map_country_list()
1614 cspec->rev = country->cspec.rev; in dhd_conf_map_country_list()
1617 } else if (!strncmp(cspec->country_abbrev, in dhd_conf_map_country_list()
1618 country->cspec.country_abbrev, 2)) { in dhd_conf_map_country_list()
1619 memcpy(cspec->ccode, country->cspec.ccode, WLC_CNTRY_BUF_SZ); in dhd_conf_map_country_list()
1620 cspec->rev = country->cspec.rev; in dhd_conf_map_country_list()
1628 CONFIG_MSG("%s/%d\n", cspec->ccode, cspec->rev); in dhd_conf_map_country_list()
1634 dhd_conf_set_country(dhd_pub_t *dhd, wl_country_t *cspec) in dhd_conf_set_country() argument
1640 CONFIG_MSG("set country %s, revision %d\n", cspec->ccode, cspec->rev); in dhd_conf_set_country()
1641 bcmerror = dhd_conf_set_bufiovar(dhd, 0, WLC_SET_VAR, "country", (char *)cspec, in dhd_conf_set_country()
1643 dhd_conf_get_country(dhd, cspec); in dhd_conf_set_country()
1645 cspec->country_abbrev, cspec->ccode, cspec->rev); in dhd_conf_set_country()
1657 wl_country_t cspec; in dhd_conf_fix_country() local
1677 dhd_conf_map_country_list(dhd, &dhd->conf->cspec); in dhd_conf_fix_country()
1678 if ((bcmerror = dhd_conf_set_country(dhd, &dhd->conf->cspec)) < 0) { in dhd_conf_fix_country()
1679 strcpy(cspec.country_abbrev, "US"); in dhd_conf_fix_country()
1680 cspec.rev = 0; in dhd_conf_fix_country()
1681 strcpy(cspec.ccode, "US"); in dhd_conf_fix_country()
1682 dhd_conf_map_country_list(dhd, &cspec); in dhd_conf_fix_country()
1683 dhd_conf_set_country(dhd, &cspec); in dhd_conf_fix_country()
1900 wl_country_t cspec = {{0}, 0, {0}}; in dhd_conf_country() local
1906 strlcpy(cspec.country_abbrev, buf, WL_CCODE_LEN + 1); in dhd_conf_country()
1907 strlcpy(cspec.ccode, buf, WL_CCODE_LEN + 1); in dhd_conf_country()
1908 dhd_conf_map_country_list(dhd, &cspec); in dhd_conf_country()
1909 if (!memcmp(&cspec.ccode, &cur_cspec.ccode, WL_CCODE_LEN + 1) && in dhd_conf_country()
1910 (cspec.rev == cur_cspec.rev)) { in dhd_conf_country()
1912 cspec.ccode, cspec.rev); in dhd_conf_country()
1915 err = dhd_conf_set_country(dhd, &cspec); in dhd_conf_country()
3658 memset(&conf->cspec, 0, sizeof(wl_country_t)); in dhd_conf_read_country()
3659 memcpy(conf->cspec.country_abbrev, data, len_data); in dhd_conf_read_country()
3660 memcpy(conf->cspec.ccode, data, len_data); in dhd_conf_read_country()
3661 CONFIG_MSG("ccode = %s\n", conf->cspec.ccode); in dhd_conf_read_country()
3664 conf->cspec.rev = (int32)simple_strtol(data, NULL, 10); in dhd_conf_read_country()
3665 CONFIG_MSG("regrev = %d\n", conf->cspec.rev); in dhd_conf_read_country()
3684 memcpy(country->cspec.country_abbrev, pch, 2); in dhd_conf_read_country()
3690 memcpy(country->cspec.ccode, pch, 2); in dhd_conf_read_country()
3696 country->cspec.rev = (int32)simple_strtol(pch, NULL, 10); in dhd_conf_read_country()
3706 country->cspec.country_abbrev, country->cspec.ccode, country->cspec.rev); in dhd_conf_read_country()
4914 dhd_conf_country(dhd, "country", conf->cspec.country_abbrev); in dhd_conf_postinit_ioctls()
5063 strcpy(conf->cspec.country_abbrev, "ALL"); in dhd_conf_preinit()
5064 strcpy(conf->cspec.ccode, "ALL"); in dhd_conf_preinit()
5065 conf->cspec.rev = 0; in dhd_conf_preinit()
5072 strcpy(conf->cspec.country_abbrev, "CN"); in dhd_conf_preinit()
5073 strcpy(conf->cspec.ccode, "CN"); in dhd_conf_preinit()
5074 conf->cspec.rev = 38; in dhd_conf_preinit()
5077 strcpy(conf->cspec.country_abbrev, "CN"); in dhd_conf_preinit()
5078 strcpy(conf->cspec.ccode, "CN"); in dhd_conf_preinit()
5079 conf->cspec.rev = 0; in dhd_conf_preinit()