iw: util: fix the EHT PHY capabilities buffer size

print_eht_info() stores the EHT PHY capabilities in an 8-byte
buffer, but the kernel provides 9 bytes. __print_eht_capa()
prints all 9 bytes and accesses two bits of the ninth byte
through phy_cap[2]. Both accesses go past the end of the
buffer, and the ninth byte is lost when copying the attribute.

Increase the buffer size to accommodate all 9 bytes.

Fixes: 4c859917316b ("iw: util: update and clean up eht capa printing")
Signed-off-by: Josef Schlehofer <pepe.schlehofer@gmail.com>
Link: https://patch.msgid.link/20261124211430.93249-1-pepe.schlehofer@gmail.com
Signed-off-by: Johannes Berg <johannes.berg@intel.com>
1 file changed