country3 setting in hostapd.conf does nothing

Jesse pianohacker at gmail.com
Wed Nov 11 01:52:24 PST 2026


While trying to fix a 6GHz AP with "Environment: bogus" in the iw scan
results, I tried to use "country3 = 0x49" to set the environment to
Indoor, as described here:

https://git.w1.fi/cgit/hostap/tree/hostapd/hostapd.conf#n112

I don't think this setting can do anything, though, as the underlying
nl80211 driver only uses the first two bytes of the country value:

https://git.w1.fi/cgit/hostap/tree/src/drivers/driver_nl80211.c#n2112

Am I missing something? Is it even possible to fix this right now,
given that there doesn't seem to be an nl80211 attribute that could
contain this extra byte?

Sincerely,
-- 
Jesse Weaver



More information about the Hostap mailing list