Hostap op_class and channel mapping table

Hi,

I am setting my op_class and channel params in wpa_supplicant_s1g. I was wondering if there is a table of country, channel, and op_class to real frequency + width somewhere?

Or is the mapping simple enough to just think about, and I am just not understanding it?

Thanks!

I would not call the channel mappings simple, especially if you’re dealing with multiple regions.

If you’re using one of our OpenWRT ports we’ve got a channel table in the web UI under Help > Regulatory Information, which you can put your target region into. This would probably be the most straightforward place to quickly look up what’s supported.

If you need a bit more info on where it’s derived from, it is in the S1G operating classes table found in IEEE802.11-2024, Table E-5 pg. 5663. However, compared to the spec, some channels are disabled/unsupported for various reasons such as when spectral envelope requirements imposed by the local regulatory bodies are too stringent for those channels to be usable.

1 Like

If you don’t have an OpenWrt device handy, see also: morse-feed/essentials/morse-regdb/artefacts/repo_channels.csv at main · MorseMicro/morse-feed · GitHub

(note that if you are using our OpenWrt version, you shouldn’t have to worry about manual wpa_supplicant configuration, as netifd will do this for you)

Oh this is great thanks! The standard table was a little confusing.

Yup I am going fully custom using Buildroot.