Unverified Commit 6e46868a authored by openeuler-ci-bot's avatar openeuler-ci-bot Committed by Gitee
Browse files

!15788 wifi: cfg80211: regulatory: improve invalid hints checking

parents 8c8b9618 393d76ee
Loading
Loading
Loading
Loading
+2 −1
Original line number Diff line number Diff line
@@ -405,7 +405,8 @@ static bool is_an_alpha2(const char *alpha2)
{
	if (!alpha2)
		return false;
	return isalpha(alpha2[0]) && isalpha(alpha2[1]);
	return isascii(alpha2[0]) && isalpha(alpha2[0]) &&
	       isascii(alpha2[1]) && isalpha(alpha2[1]);
}

static bool alpha2_equal(const char *alpha2_x, const char *alpha2_y)