From 36f4c6c391494b62a5118d841df7b946b50c8f3d Mon Sep 17 00:00:00 2001 From: Marek Puzyniak <marek.puzyniak@iopsys.eu> Date: Wed, 9 Aug 2023 09:31:57 +0200 Subject: [PATCH] Fix cmdu policy for ap metrics response Signed-off-by: Marek Puzyniak <marek.puzyniak@iopsys.eu> --- src/cntlr_map.c | 8 ++++---- src/cntlr_map_debug.c | 8 ++++---- 2 files changed, 8 insertions(+), 8 deletions(-) diff --git a/src/cntlr_map.c b/src/cntlr_map.c index 90a1d678..02676970 100644 --- a/src/cntlr_map.c +++ b/src/cntlr_map.c @@ -1114,11 +1114,11 @@ int handle_ap_metrics_response(void *cntlr, struct cmdu_buff *cmdu) struct tlv *tv[6][16] = { 0 }; struct tlv_policy metric_policy[] = { [0] = { .type = MAP_TLV_AP_METRICS, .present = TLV_PRESENT_MORE }, - [1] = { .type = MAP_TLV_ASSOCIATED_STA_TRAFFIC_STATS, .present = TLV_PRESENT_MORE }, - [2] = { .type = MAP_TLV_ASSOCIATED_STA_LINK_METRICS, .present = TLV_PRESENT_MORE }, + [1] = { .type = MAP_TLV_ASSOCIATED_STA_TRAFFIC_STATS, .present = TLV_PRESENT_OPTIONAL_MORE }, + [2] = { .type = MAP_TLV_ASSOCIATED_STA_LINK_METRICS, .present = TLV_PRESENT_OPTIONAL_MORE }, [3] = { .type = MAP_TLV_AP_EXTENDED_METRICS, .present = TLV_PRESENT_MORE }, - [4] = { .type = MAP_TLV_RADIO_METRICS, .present = TLV_PRESENT_MORE }, - [5] = { .type = MAP_TLV_ASSOCIATED_STA_EXT_LINK_METRICS, .present = TLV_PRESENT_MORE } + [4] = { .type = MAP_TLV_RADIO_METRICS, .present = TLV_PRESENT_OPTIONAL_MORE }, + [5] = { .type = MAP_TLV_ASSOCIATED_STA_EXT_LINK_METRICS, .present = TLV_PRESENT_OPTIONAL_MORE } }; struct tlv_ap_metrics *p; diff --git a/src/cntlr_map_debug.c b/src/cntlr_map_debug.c index 632aca65..2bde161d 100644 --- a/src/cntlr_map_debug.c +++ b/src/cntlr_map_debug.c @@ -688,11 +688,11 @@ int debug_ap_metrics_response(void *cntlr, struct cmdu_buff *cmdu) struct tlv *tv[6][16] = { 0 }; struct tlv_policy metric_policy[] = { [0] = { .type = MAP_TLV_AP_METRICS, .present = TLV_PRESENT_MORE }, - [1] = { .type = MAP_TLV_ASSOCIATED_STA_TRAFFIC_STATS, .present = TLV_PRESENT_MORE }, - [2] = { .type = MAP_TLV_ASSOCIATED_STA_LINK_METRICS, .present = TLV_PRESENT_MORE }, + [1] = { .type = MAP_TLV_ASSOCIATED_STA_TRAFFIC_STATS, .present = TLV_PRESENT_OPTIONAL_MORE }, + [2] = { .type = MAP_TLV_ASSOCIATED_STA_LINK_METRICS, .present = TLV_PRESENT_OPTIONAL_MORE }, [3] = { .type = MAP_TLV_AP_EXTENDED_METRICS, .present = TLV_PRESENT_MORE }, - [4] = { .type = MAP_TLV_RADIO_METRICS, .present = TLV_PRESENT_MORE }, - [5] = { .type = MAP_TLV_ASSOCIATED_STA_EXT_LINK_METRICS, .present = TLV_PRESENT_MORE } + [4] = { .type = MAP_TLV_RADIO_METRICS, .present = TLV_PRESENT_OPTIONAL_MORE }, + [5] = { .type = MAP_TLV_ASSOCIATED_STA_EXT_LINK_METRICS, .present = TLV_PRESENT_OPTIONAL_MORE } }; trace("%s: --->\n", __func__); -- GitLab