Allow last configured Key ID for TK to be fetched from wpa_supplicant
"GET last_tk_key_idx" can now be used in testing build to determine which was the last configured Key ID for the pairwise key. Signed-off-by: Jouni Malinen <j@w1.fi>
This commit is contained in:
parent
8b63a58166
commit
41c3f0cd5b
1 changed files with 2 additions and 0 deletions
|
@ -919,6 +919,8 @@ static int wpa_supplicant_ctrl_iface_get(struct wpa_supplicant *wpa_s,
|
||||||
return wpa_snprintf_hex(buf, buflen,
|
return wpa_snprintf_hex(buf, buflen,
|
||||||
wpa_sm_get_anonce(wpa_s->wpa),
|
wpa_sm_get_anonce(wpa_s->wpa),
|
||||||
WPA_NONCE_LEN);
|
WPA_NONCE_LEN);
|
||||||
|
} else if (os_strcasecmp(cmd, "last_tk_key_idx") == 0) {
|
||||||
|
res = os_snprintf(buf, buflen, "%d", wpa_s->last_tk_key_idx);
|
||||||
#endif /* CONFIG_TESTING_OPTIONS */
|
#endif /* CONFIG_TESTING_OPTIONS */
|
||||||
} else {
|
} else {
|
||||||
res = wpa_config_get_value(cmd, wpa_s->conf, buf, buflen);
|
res = wpa_config_get_value(cmd, wpa_s->conf, buf, buflen);
|
||||||
|
|
Loading…
Reference in a new issue