]> git.ipfire.org Git - thirdparty/iw.git/commit
iw: Add support for specifying the 160MHz bandwidth when setting the channel/frequency
authorTtttabcd <ttttabcd@protonmail.com>
Tue, 6 Oct 2020 04:22:18 +0000 (04:22 +0000)
committerJohannes Berg <johannes.berg@intel.com>
Thu, 8 Oct 2020 08:59:42 +0000 (10:59 +0200)
commitb6f2dac4491b96ed785b365c08d74ab04ce8d06a
tree8ad6ee5192f6b84fe6b0f61b7550a954588be1e5
parent8934cc42695817d63b00507c20eaefa98174e0a9
iw: Add support for specifying the 160MHz bandwidth when setting the channel/frequency

The current iw tool only supports the direct setting of
[NOHT|HT20|HT40+|HT40-|5MHz|10MHz|80MHz] bandwidth
when setting the channel/frequency.

If we want to set the 160MHz bandwidth,
we need to calculate the center frequency ourselves,
which is inconvenient.

E.g:
iw phy phy0 set freq 5220 160 5250

From now on we can:
iw phy phy0 set channel 44 160MHz
iw phy phy0 set freq 5220 160MHz

This is much more convenient.

Signed-off-by: AK Deng <ttttabcd@protonmail.com>
Link: https://lore.kernel.org/r/cIf-30s-5axo5iDqyzwY9VTVB_JLKCXbxlXdODMSK61q-yFzR6rtAk8URRAPavRlllrwXr1Q-jtem_upoCNKd_fba8qmM0DpJn0O7MIkq6o=@protonmail.com
Signed-off-by: Johannes Berg <johannes.berg@intel.com>
phy.c
util.c