Lines Matching refs:ccode
174 static bool brcms_c_country_valid(const char *ccode) in brcms_c_country_valid() argument
180 if (!((ccode[0] & 0x80) == 0 && ccode[0] >= 0x41 && ccode[0] <= 0x5A && in brcms_c_country_valid()
181 (ccode[1] & 0x80) == 0 && ccode[1] >= 0x41 && ccode[1] <= 0x5A)) in brcms_c_country_valid()
188 if (!strcmp("AA", ccode) || /* AA */ in brcms_c_country_valid()
189 !strcmp("ZZ", ccode) || /* ZZ */ in brcms_c_country_valid()
190 ccode[0] == 'X' || /* XA - XZ */ in brcms_c_country_valid()
191 (ccode[0] == 'Q' && /* QM - QZ */ in brcms_c_country_valid()
192 (ccode[1] >= 'M' && ccode[1] <= 'Z'))) in brcms_c_country_valid()
195 if (!strcmp("NA", ccode)) in brcms_c_country_valid()
222 static bool brcms_c_japan_ccode(const char *ccode) in brcms_c_japan_ccode() argument
224 return (ccode[0] == 'J' && in brcms_c_japan_ccode()
225 (ccode[1] == 'P' || (ccode[1] >= '1' && ccode[1] <= '9'))); in brcms_c_japan_ccode()
331 const char *ccode = sprom->alpha2; in brcms_c_channel_mgr_attach() local
342 wlc_cm->world_regd = brcms_world_regd(ccode, ccode_len); in brcms_c_channel_mgr_attach()
343 if (brcms_c_country_valid(ccode)) in brcms_c_channel_mgr_attach()
344 strncpy(wlc->pub->srom_ccode, ccode, ccode_len); in brcms_c_channel_mgr_attach()
352 ccode = wlc_cm->world_regd->regdomain->alpha2; in brcms_c_channel_mgr_attach()
357 strncpy(wlc->country_default, ccode, ccode_len); in brcms_c_channel_mgr_attach()
360 strncpy(wlc->autocountry_default, ccode, ccode_len); in brcms_c_channel_mgr_attach()