From: Sai Pratyusha Magam Date: Thu, 13 Nov 2025 11:33:40 +0000 (+0530) Subject: Report authentication algorithm in STA MIB X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=c738ed31b9ff6bbe10b5874cadb0ddff0e2fcf2e;p=thirdparty%2Fhostap.git Report authentication algorithm in STA MIB The new "auth_alg" entry in hostapd "STA " control interface output can be used to determine the authentication algorithm used by the non-AP STA to authenticate with the AP. Signed-off-by: Sai Pratyusha Magam --- diff --git a/src/ap/ieee802_11.c b/src/ap/ieee802_11.c index 3b21459ad..2df953a00 100644 --- a/src/ap/ieee802_11.c +++ b/src/ap/ieee802_11.c @@ -7514,8 +7514,16 @@ int ieee802_11_get_mib(struct hostapd_data *hapd, char *buf, size_t buflen) int ieee802_11_get_mib_sta(struct hostapd_data *hapd, struct sta_info *sta, char *buf, size_t buflen) { - /* TODO */ - return 0; + int len = 0, ret; + + ret = os_snprintf(buf + len, buflen - len, + "auth_alg=%d\n", + sta->auth_alg); + if (os_snprintf_error(buflen - len, ret)) + return len; + len += ret; + + return len; }