Lines Matching defs:country
944 static int country_match(const char *const cc[], const char *const country)
948 if (country == NULL)
951 if (cc[i][0] == country[0] && cc[i][1] == country[1])
1174 * @country: Country code, if known; otherwise, global operating class is used
1179 int ieee80211_chan_to_freq(const char *country, u8 op_class, u8 chan)
1183 if (country_match(us_op_class_cc, country)) {
1189 if (country_match(eu_op_class_cc, country)) {
1195 if (country_match(jp_op_class_cc, country)) {
1201 if (country_match(cn_op_class_cc, country)) {
1831 u8 country_to_global_op_class(const char *country, u8 op_class)
1837 if (country_match(us_op_class_cc, country)) {
1840 } else if (country_match(eu_op_class_cc, country)) {
1843 } else if (country_match(jp_op_class_cc, country)) {
1846 } else if (country_match(cn_op_class_cc, country)) {
1861 * If the given operating class did not match any of the country's
1868 const struct oper_class_map * get_oper_class(const char *country, u8 op_class)
1872 if (country)
1873 op_class = country_to_global_op_class(country, op_class);