country3 setting in hostapd.conf does nothing

Jouni Malinen j at w1.fi
Sun Nov 15 07:28:24 PST 2026


On Wed, Nov 11, 2026 at 02:52:24AM -0700, Jesse wrote:
> 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?

Which driver are you using? The country3 parameter changes the third
octet in the Country String field in the Beacon frame template that is
provided to the drivers.

-- 
Jouni Malinen                                            PGP id EFC895FA



More information about the Hostap mailing list