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>
This commit is contained in:
parent
a1a60635a8
commit
71ac934530
2 changed files with 9 additions and 0 deletions
|
@ -313,6 +313,7 @@ extern "C" {
|
||||||
#define WPA_BSS_MASK_SNR BIT(19)
|
#define WPA_BSS_MASK_SNR BIT(19)
|
||||||
#define WPA_BSS_MASK_EST_THROUGHPUT BIT(20)
|
#define WPA_BSS_MASK_EST_THROUGHPUT BIT(20)
|
||||||
#define WPA_BSS_MASK_FST BIT(21)
|
#define WPA_BSS_MASK_FST BIT(21)
|
||||||
|
#define WPA_BSS_MASK_UPDATE_IDX BIT(22)
|
||||||
|
|
||||||
|
|
||||||
/* VENDOR_ELEM_* frame id values */
|
/* VENDOR_ELEM_* frame id values */
|
||||||
|
|
|
@ -4442,6 +4442,14 @@ static int print_bss_info(struct wpa_supplicant *wpa_s, struct wpa_bss *bss,
|
||||||
}
|
}
|
||||||
#endif /* CONFIG_FST */
|
#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) {
|
if (mask & WPA_BSS_MASK_DELIM) {
|
||||||
ret = os_snprintf(pos, end - pos, "====\n");
|
ret = os_snprintf(pos, end - pos, "====\n");
|
||||||
if (os_snprintf_error(end - pos, ret))
|
if (os_snprintf_error(end - pos, ret))
|
||||||
|
|
Loading…
Reference in a new issue