]> git.ipfire.org Git - thirdparty/hostap.git/commitdiff
Make update_idx available in BSS control interface command
authorJouni Malinen <j@w1.fi>
Sat, 10 Dec 2016 15:03:24 +0000 (17:03 +0200)
committerJouni Malinen <j@w1.fi>
Sat, 10 Dec 2016 15:03:24 +0000 (17:03 +0200)
This can be used to perform more accurate tests on BSS entry updates.

Signed-off-by: Jouni Malinen <j@w1.fi>
src/common/wpa_ctrl.h
wpa_supplicant/ctrl_iface.c

index 4dcba81dc1a44116536896da9d68e1b1a0e59262..3319985cc4006e8ad8ba033c18d531c5cea4c45e 100644 (file)
@@ -313,6 +313,7 @@ extern "C" {
 #define WPA_BSS_MASK_SNR               BIT(19)
 #define WPA_BSS_MASK_EST_THROUGHPUT    BIT(20)
 #define WPA_BSS_MASK_FST               BIT(21)
+#define WPA_BSS_MASK_UPDATE_IDX                BIT(22)
 
 
 /* VENDOR_ELEM_* frame id values */
index a7549437468eb1249db328ac636a69d8343b0ad1..c504b6f37a3508b552ab075399903df6809cfd07 100644 (file)
@@ -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))