openwrt/package/network/config
Hauke Mehrtens adf958c919 wifi-scripts: Fix parsing of Capabilities
Fixup capabilities parsing in iw output.

In addition to the normal capabilities iw now also outputs HE MAC, HE
PHY and EHT MAC and EHT PHY capabilities. Exclude them in the parsing.

The grep returns this with mac80211-hwsim:
```
root@OpenWrt:~# iw phy phy0 info | grep 'Capabilities:'
		Capabilities: 0x107e
			HE PHY Capabilities: (0x02bfce0000000000000000):
			EHT PHY Capabilities: (0x7c0000feffff7f01):
			HE PHY Capabilities: (0x02bfce0000000000000000):
			EHT PHY Capabilities: (0x7c0000feffff7f01):
			HE PHY Capabilities: (0x02bf000000000000000000):
		Capabilities: 0x107e
			HE PHY Capabilities: (0x1cbfce0000000000000000):
			EHT PHY Capabilities: (0xfc1f3ffeffff7f37):
			HE PHY Capabilities: (0x1cbfce0000000000000000):
			EHT PHY Capabilities: (0xfc1f3ffeffff7f37):
			HE PHY Capabilities: (0x1cbf000000000000000000):
			HE PHY Capabilities: (0x1cbfce0000000000000000):
			EHT PHY Capabilities: (0xfefffffeffffff7f):
			HE PHY Capabilities: (0x1cbfce0000000000000000):
			EHT PHY Capabilities: (0xfefffffeffffff7f):
			HE PHY Capabilities: (0x1cbf000000000000000000):
		Capabilities: 0x107e
```

With busybox 1.36.1 the ht_cap_mask variable will be set to
-72057598332895361. With busybox 1.37.0 it will be set to -1.
Both values are wrong, after this change it will be set to 4222
(0x107E).

Link: https://github.com/openwrt/openwrt/pull/17043
Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
2024-11-23 14:01:38 +01:00
..
firewall firewall: update to Git HEAD (2024-10-18) 2024-10-18 08:03:34 +02:00
firewall4 firewall4: update to Git HEAD (2024-05-21) 2024-05-21 08:59:13 +02:00
gre
ipip
ltq-adsl-app ltq-adsl-app: add dsl_cpe_pipe.sh script 2024-10-21 01:04:05 +02:00
ltq-vdsl-vr9-app ltq-vdsl-vr9-app: always disconnect on exit 2024-08-31 19:40:21 +02:00
ltq-vdsl-vr11-app ltq-vdsl-vr11-app: perform orderly shutdown on exit 2024-08-31 19:40:21 +02:00
netifd netifd: update to Git HEAD (2024-11-08) 2024-11-08 10:51:00 +01:00
qos-scripts
qosify qosify: update to Git HEAD (2024-09-20) 2024-09-20 23:17:43 +02:00
soloscli
swconfig swconfig: fix memory leak when cli call swlib_get_attr() 2023-06-11 02:42:31 +02:00
vti
vxlan
wifi-scripts wifi-scripts: Fix parsing of Capabilities 2024-11-23 14:01:38 +01:00
xfrm xfrm: remove requirement for underlying device 2024-08-19 18:49:49 +02:00