On 20-Jun-25 4:14 PM, Pablo MARTIN-GOMEZ wrote:
Hi,
On 20/06/2025 09:33, Suraj P Kizhakkethil wrote:
[PATCH] iw: add support to parse 6 GHz channel
From: Pradeep Kumar Chitrapu<quic_pradeepc@xxxxxxxxxxx>
Currently, 6 GHz band channel parsing is not supported for
set/switch channel commands. Channel numbers of 6 GHz band
overlaps with those of 2 GHz or 5 GHz bands and therefore needs
additional argument to indicate 6 GHz band. Add support to
parse 6 GHz channels for set/switch channel commands by an
optional argument "6GHz" in the set/switch channel commands.
Examples:
For 6 GHz band,
iw dev wlan0 set channel 49 6GHz 80MHz
I'm not sure this is the best course of action to implement the 6GHz
support (but I admit it is the simplest). iw also supports the S1G and
60GHz bands and both bands have channel set numbers that overlap the
ones of the 2.4GHz and 5GHz bands. The most future proof solution would
be to pass the global operating class alongside the channel.
I believe that, from a user’s perspective, using the operating class may
not be convenient. Instead, specifying the band and bandwidth would be
easier for users. The 6GHz parameter could be extended to support other
bands as well.
For 5 GHz band,
iw dev wlan0 set channel 36 80MHz
Pablo MG