wpa_supplicant: Use bss_id list for 'bss FIRST' command
Command 'bss FISRT' should use bss_id list, because 'bss NEXT-N' is using bss_id list as well. Signed-off-by: Dmitry Shmidt <dimitrysh@google.com>
This commit is contained in:
parent
5f482d55fd
commit
51a0c3d417
1 changed files with 1 additions and 1 deletions
|
@ -2657,7 +2657,7 @@ static int wpa_supplicant_ctrl_iface_bss(struct wpa_supplicant *wpa_s,
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
} else if (os_strcmp(cmd, "FIRST") == 0)
|
} else if (os_strcmp(cmd, "FIRST") == 0)
|
||||||
bss = dl_list_first(&wpa_s->bss, struct wpa_bss, list);
|
bss = dl_list_first(&wpa_s->bss_id, struct wpa_bss, list_id);
|
||||||
else if (os_strncmp(cmd, "ID-", 3) == 0) {
|
else if (os_strncmp(cmd, "ID-", 3) == 0) {
|
||||||
i = atoi(cmd + 3);
|
i = atoi(cmd + 3);
|
||||||
bss = wpa_bss_get_id(wpa_s, i);
|
bss = wpa_bss_get_id(wpa_s, i);
|
||||||
|
|
Loading…
Reference in a new issue