From 5607abe2e855e3c792ba4e8560b29838487108e1 Mon Sep 17 00:00:00 2001 From: Chaoli Zhou Date: Tue, 11 Oct 2022 18:57:44 +0800 Subject: [PATCH] WNM: Print unsupported neighbor report subelements in debug log This can be helpful in trying to figure out what might need to be added in the future. Signed-off-by: Chaoli Zhou --- wpa_supplicant/wnm_sta.c | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/wpa_supplicant/wnm_sta.c b/wpa_supplicant/wnm_sta.c index a00a2c538..ac0dd1aa0 100644 --- a/wpa_supplicant/wnm_sta.c +++ b/wpa_supplicant/wnm_sta.c @@ -524,6 +524,11 @@ static void wnm_parse_neighbor_report_elem(struct neighbor_report *rep, rep->mul_bssid->subelem_len = elen - 1; os_memcpy(rep->mul_bssid->subelems, pos + 1, elen - 1); break; + default: + wpa_printf(MSG_DEBUG, + "WNM: Unsupported neighbor report subelement id %u", + id); + break; } }