]> git.ipfire.org Git - thirdparty/hostap.git/commitdiff
Report WPA/RSN protocol and AKM suite selector in STA MIB
authorJouni Malinen <jouni@codeaurora.org>
Wed, 24 Jul 2019 09:58:49 +0000 (12:58 +0300)
committerJouni Malinen <j@w1.fi>
Wed, 24 Jul 2019 09:58:49 +0000 (12:58 +0300)
The new "wpa" and "AKMSuiteSelector" entries in hostapd "STA <addr>"
control interface output can be used to determine the negotiated WPA/RSN
protocol and AKM suite of an associated station.

Signed-off-by: Jouni Malinen <jouni@codeaurora.org>
src/ap/wpa_auth.c

index e1c0c2ccb6db9574f94776586b7e09f1a9325969..c56077001efa4564363c669c97630ac36e44380a 100644 (file)
@@ -4250,8 +4250,12 @@ int wpa_get_mib_sta(struct wpa_state_machine *sm, char *buf, size_t buflen)
 
        /* Private MIB */
        ret = os_snprintf(buf + len, buflen - len,
+                         "wpa=%d\n"
+                         "AKMSuiteSelector=" RSN_SUITE "\n"
                          "hostapdWPAPTKState=%d\n"
                          "hostapdWPAPTKGroupState=%d\n",
+                         sm->wpa,
+                         RSN_SUITE_ARG(wpa_akm_to_suite(sm->wpa_key_mgmt)),
                          sm->wpa_ptk_state,
                          sm->wpa_ptk_group_state);
        if (os_snprintf_error(buflen - len, ret))