Lines Matching defs:country
899 static int country_match(const char *const cc[], const char *const country)
903 if (country == NULL)
906 if (cc[i][0] == country[0] && cc[i][1] == country[1])
1129 * @country: Country code, if known; otherwise, global operating class is used
1134 int ieee80211_chan_to_freq(const char *country, u8 op_class, u8 chan)
1138 if (country_match(us_op_class_cc, country)) {
1144 if (country_match(eu_op_class_cc, country)) {
1150 if (country_match(jp_op_class_cc, country)) {
1156 if (country_match(cn_op_class_cc, country)) {
1544 u8 country_to_global_op_class(const char *country, u8 op_class)
1550 if (country_match(us_op_class_cc, country)) {
1553 } else if (country_match(eu_op_class_cc, country)) {
1556 } else if (country_match(jp_op_class_cc, country)) {
1559 } else if (country_match(cn_op_class_cc, country)) {
1574 * If the given operating class did not match any of the country's
1581 const struct oper_class_map * get_oper_class(const char *country, u8 op_class)
1585 if (country)
1586 op_class = country_to_global_op_class(country, op_class);