hostapd-2.10: Invalid country_code '00'
Jouni Malinen
j at w1.fi
Tue Feb 22 00:20:58 PST 2022
On Sat, Feb 19, 2022 at 11:41:48AM +0100, Peter Seiderer wrote:
> since the hostapd bump to version 2.10 the special world regulatory domain
> country code '00' is denied with the following error message (see e.g. [1]):
>
> Invalid country_code '00'
>
> I think this happens since commit e149051ced781ef7b29ae47e98c6d06e4e666f68 ([2])
>
> hostapd: Validate the country_code parameter value
>
> cfg80211/regulatory supports only ISO 3166-1 alpha2 country code and
> that's what this parameter is supposed to use, so validate the country
> code input before accepting the value. Only characters A..Z are
> accepted.
>
> Should '00' be handled/allowed as special case?
What is the use case for that? That value should certainly not be
advertised as the current country in the Country element, so at most,
this value could be ignored to allow previously accepted configurations
to be loaded.
--
Jouni Malinen PGP id EFC895FA
More information about the Hostap
mailing list