From 6c6bd3ab217b16dd41c277a0e436bbe44a246089 Mon Sep 17 00:00:00 2001 From: Patrick Walther Date: Tue, 7 Jun 2022 11:43:53 +0200 Subject: [PATCH] FIX: [iw] use correct NLA type while getting station dump with MESH BugzId: 79975 (cherry picked from commit dd1487e4bf42f600d2dea340b28281a19d5e1554) --- ...-fix-sta-info-to-as-and-to-gate-type.patch | 24 +++++++++++++++++++ recipes-connectivity/iw/iw_5.9.bb | 1 + 2 files changed, 25 insertions(+) create mode 100644 recipes-connectivity/iw/iw/404-fix-sta-info-to-as-and-to-gate-type.patch diff --git a/recipes-connectivity/iw/iw/404-fix-sta-info-to-as-and-to-gate-type.patch b/recipes-connectivity/iw/iw/404-fix-sta-info-to-as-and-to-gate-type.patch new file mode 100644 index 0000000..61061ec --- /dev/null +++ b/recipes-connectivity/iw/iw/404-fix-sta-info-to-as-and-to-gate-type.patch @@ -0,0 +1,24 @@ +From 8498d0b205d26cd858a348b263438cf5b2e55254 Mon Sep 17 00:00:00 2001 +From: Patrick Walther +Date: Tue, 7 Jun 2022 11:15:34 +0200 +Subject: [PATCH] FIX STA info to as and to gate type + +--- + station.c | 4 ++-- + 1 file changed, 2 insertions(+), 2 deletions(-) + +diff --git a/station.c b/station.c +index 7c96cfe..17bebc7 100644 +--- a/station.c ++++ b/station.c +@@ -333,8 +333,8 @@ static int print_sta_handler(struct nl_msg *msg, void *arg) + [NL80211_STA_INFO_ACK_SIGNAL] = {.type = NLA_U8 }, + [NL80211_STA_INFO_ACK_SIGNAL_AVG] = { .type = NLA_U8 }, + [NL80211_STA_INFO_AIRTIME_LINK_METRIC] = { .type = NLA_U32 }, +- [NL80211_STA_INFO_CONNECTED_TO_AS] = { .type = NLA_FLAG }, +- [NL80211_STA_INFO_CONNECTED_TO_GATE] = { .type = NLA_FLAG }, ++ [NL80211_STA_INFO_CONNECTED_TO_AS] = { .type = NLA_U8 }, ++ [NL80211_STA_INFO_CONNECTED_TO_GATE] = { .type = NLA_U8 }, + }; + char *chain; + struct timeval now; diff --git a/recipes-connectivity/iw/iw_5.9.bb b/recipes-connectivity/iw/iw_5.9.bb index 773d602..3693b26 100644 --- a/recipes-connectivity/iw/iw_5.9.bb +++ b/recipes-connectivity/iw/iw_5.9.bb @@ -19,6 +19,7 @@ SRC_URI = "http://www.kernel.org/pub/software/network/iw/${BP}.tar.xz \ file://401-wlan-indoor-channel.patch \ file://402-show-ant-gain.patch \ file://403-clockbootime.patch \ + file://404-fix-sta-info-to-as-and-to-gate-type.patch \ " SRC_URI[sha256sum] = "293a07109aeb7e36267cf59e3ce52857e9ffae3a6666eb8ac77894b1839fe1f2"