iw: print HE mcs correctly when mcs_len
PATCH v2 1/1 iw: print HE mcs correctly when mcs_len
Print HE mcs correctly when lower layer
report correct/real mcs length.
Signed-off-by Janusz Dziedzic <[email protected]>
--- util.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
util.c +1 -1
@@ -1399,7 +1399,7 @@ static void __print_he_capa(const __u16 *mac_cap,continue ;/* Supports more, but overflow? Abort. */ -if ((i *2 +2 ) *sizeof (le16toh (mcs_set[0 ])) >= mcs_len) +if ((i *2 +2 ) *sizeof (le16toh (mcs_set[0 ])) > mcs_len)return ;for (j =0 ; j <2 ; j++) {
Signature · 1 line
2.43.0