On 24-Jun-25 1:19 PM, Johannes Berg wrote:
On Fri, 2025-06-20 at 13:02 +0530, Suraj P Kizhakkethil wrote:
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
Or just say
iw dev wlan0 set freq 6195 80 6225
I'm not sure we need this at all.
johannes
Adding support for the 'set channel' command provides users with the
flexibility to use channel numbers instead of frequencies.
If you think this change is not acceptable or needs modification, please
let me know. I’ll either drop it or make the necessary adjustments.