iwinfo: nl80211: fix hwmode parsing for multi-band NICs openwrt-21.02
authorDavid Bauer <mail@david-bauer.net>
Sun, 24 Apr 2022 22:52:22 +0000 (00:52 +0200)
committerDavid Bauer <mail@david-bauer.net>
Tue, 26 Apr 2022 00:03:00 +0000 (02:03 +0200)
commit5cd2f29660da9b527d4930360d02519851e198a3
tree308660f7d3c7c87d3a1795b7e080a18af4bdbd3e
parent776ef1625aec0aa07b65bdaeca9939ff657803d3
iwinfo: nl80211: fix hwmode parsing for multi-band NICs

In case a NIC supports multiple frequency bands, the supported
hw-modelist might not contain all valid hwmodes, as B/G/AD hwmodes are
only included based on the last parsed supported frequency.

In case a radio supports multiple bands, this might result in these
hwmodes not being flagged as supported.

Circumvent this by tracking all seen frequency bands using a bitmask
which later determined which HW modes are listed as supported.

Signed-off-by: David Bauer <mail@david-bauer.net>
package/network/utils/iwinfo/Makefile
package/network/utils/iwinfo/patches/0002-iwinfo-nl80211-fix-hwmode-parsing-for-multi-band-NIC.patch [new file with mode: 0644]
package/network/utils/iwinfo/patches/0003-iwinfo-nl80211-omit-A-hwmode-on-non-5GHz-hardware.patch [new file with mode: 0644]