developer | 66e89bc | 2024-04-23 14:50:01 +0800 | [diff] [blame] | 1 | From ea706b389fd896318bd7310b058fedf11d1b6758 Mon Sep 17 00:00:00 2001 |
| 2 | From: Koen Vandeputte <koen.vandeputte@citymesh.com> |
| 3 | Date: Fri, 7 Jul 2023 16:48:26 +0200 |
| 4 | Subject: [PATCH 19/28] iw: fix attribute size mismatch |
| 5 | |
| 6 | NL80211_ATTR_MAX_AP_ASSOC_STA gets packed as u32 in the kernel. |
| 7 | Change the receiving side to match this, or it will be wrong |
| 8 | on big-endian. |
| 9 | |
| 10 | Signed-off-by: Koen Vandeputte <koen.vandeputte@citymesh.com> |
| 11 | Link: https://lore.kernel.org/r/20230707144826.3043151-1-koen.vandeputte@citymesh.com |
| 12 | Signed-off-by: Johannes Berg <johannes.berg@intel.com> |
| 13 | --- |
| 14 | info.c | 2 +- |
| 15 | 1 file changed, 1 insertion(+), 1 deletion(-) |
| 16 | |
| 17 | diff --git a/info.c b/info.c |
| 18 | index 364f9b3..4c5f463 100644 |
| 19 | --- a/info.c |
| 20 | +++ b/info.c |
| 21 | @@ -879,7 +879,7 @@ broken_combination: |
| 22 | |
| 23 | if (tb_msg[NL80211_ATTR_MAX_AP_ASSOC_STA]) |
| 24 | printf("\tMaximum associated stations in AP mode: %u\n", |
| 25 | - nla_get_u16(tb_msg[NL80211_ATTR_MAX_AP_ASSOC_STA])); |
| 26 | + nla_get_u32(tb_msg[NL80211_ATTR_MAX_AP_ASSOC_STA])); |
| 27 | |
| 28 | return NL_SKIP; |
| 29 | } |
| 30 | -- |
| 31 | 2.39.2 |
| 32 | |