hostapd-2.10: Invalid country_code '00'

Peter Seiderer ps.report at gmx.net
Sat Feb 19 02:41:48 PST 2022


Hello,

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?

Regards,
Peter

[1] https://bugzilla.ipfire.org/show_bug.cgi?id=12585
[2] http://w1.fi/cgit/hostap/commit/?id=e149051ced781ef7b29ae47e98c6d06e4e666f68



More information about the Hostap mailing list