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: 4c85991731 ("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>
This is 'iw', a tool to use nl80211.
To build iw, just enter 'make'. If that fails, set the
PKG_CONFIG_PATH environment variable to allow the Makefile
to find libnl.
'iw' is currently maintained at http://git.sipsolutions.net/iw.git/,
some more documentation is available at
https://wireless.wiki.kernel.org/en/users/Documentation/iw
Please send all patches to Johannes Berg <johannes@sipsolutions.net>
and CC linux-wireless@vger.kernel.org for community review.