The new "auth_alg" entry in hostapd "STA <addr>" 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 <smagam@qti.qualcomm.com>
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;
}