aboutsummaryrefslogtreecommitdiffstats
path: root/wpa_supplicant
diff options
context:
space:
mode:
authorJouni Malinen <j@w1.fi>2016-12-10 15:03:24 (GMT)
committerJouni Malinen <j@w1.fi>2016-12-10 15:03:24 (GMT)
commit71ac934530116b26930481d92ccac1e6e91b2898 (patch)
treec983248b3e26317a9a5c9d62816476f0999e94ea /wpa_supplicant
parenta1a60635a8a94f9278e87b95b98279cb1af2c967 (diff)
downloadhostap-71ac934530116b26930481d92ccac1e6e91b2898.zip
hostap-71ac934530116b26930481d92ccac1e6e91b2898.tar.gz
hostap-71ac934530116b26930481d92ccac1e6e91b2898.tar.bz2
Make update_idx available in BSS control interface command
This can be used to perform more accurate tests on BSS entry updates. Signed-off-by: Jouni Malinen <j@w1.fi>
Diffstat (limited to 'wpa_supplicant')
-rw-r--r--wpa_supplicant/ctrl_iface.c8
1 files changed, 8 insertions, 0 deletions
diff --git a/wpa_supplicant/ctrl_iface.c b/wpa_supplicant/ctrl_iface.c
index a754943..c504b6f 100644
--- a/wpa_supplicant/ctrl_iface.c
+++ b/wpa_supplicant/ctrl_iface.c
@@ -4442,6 +4442,14 @@ static int print_bss_info(struct wpa_supplicant *wpa_s, struct wpa_bss *bss,
}
#endif /* CONFIG_FST */
+ if (mask & WPA_BSS_MASK_UPDATE_IDX) {
+ ret = os_snprintf(pos, end - pos, "update_idx=%u\n",
+ bss->last_update_idx);
+ if (os_snprintf_error(end - pos, ret))
+ return 0;
+ pos += ret;
+ }
+
if (mask & WPA_BSS_MASK_DELIM) {
ret = os_snprintf(pos, end - pos, "====\n");
if (os_snprintf_error(end - pos, ret))