Support iw reg set

This commit is contained in:
Rin Cat
2020-10-23 20:06:35 -04:00
committed by Rin Cat (鈴猫)
parent 14b0ec64b5
commit 1dad7c3b66
2 changed files with 8 additions and 3 deletions

View File

@@ -1933,9 +1933,9 @@ inline u8 rtw_set_chplan_cmd(_adapter *adapter, int flags, u8 chplan, u8 swconfi
inline u8 rtw_set_country_cmd(_adapter *adapter, int flags, const char *country_code, u8 swconfig)
{
const struct country_chplan *ent;
if (is_alpha(country_code[0]) == _FALSE
|| is_alpha(country_code[1]) == _FALSE
if ((is_alpha(country_code[0]) == _FALSE
|| is_alpha(country_code[1]) == _FALSE)
&& (strncmp(country_code, "00", 2) != 0)
) {
RTW_PRINT("%s input country_code is not alpha2\n", __func__);
return _FAIL;