]> git.ipfire.org Git - thirdparty/hostap.git/commitdiff
wpa_supplicant: Use bss_id list for 'bss FIRST' command
authorDmitry Shmidt <dimitrysh@google.com>
Sat, 14 Apr 2012 17:39:10 +0000 (20:39 +0300)
committerJouni Malinen <j@w1.fi>
Sat, 14 Apr 2012 17:39:10 +0000 (20:39 +0300)
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>
wpa_supplicant/ctrl_iface.c

index 0dd2d58957f7986074b9fc6cdb49579243917102..2158d51a0600b4b5385a3ea7a82f7015e933ce36 100644 (file)
@@ -2657,7 +2657,7 @@ static int wpa_supplicant_ctrl_iface_bss(struct wpa_supplicant *wpa_s,
                        }
                }
        } 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) {
                i = atoi(cmd + 3);
                bss = wpa_bss_get_id(wpa_s, i);