Patchwork wpa_supplicant: Use bss_id list for 'bss FIRST' command

login
register
mail settings
Submitter Dmitry Shmidt
Date April 9, 2012, 5:19 p.m.
Message ID <20120409172329.855F93835B@ushik.mtv.corp.google.com>
Download mbox | patch
Permalink /patch/151454/
State Accepted
Commit 51a0c3d417f0c593152efaec7690081aeb0c67e6
Headers show

Comments

Dmitry Shmidt - April 9, 2012, 5:19 p.m.
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 |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
Jouni Malinen - April 14, 2012, 5:40 p.m.
On Mon, Apr 09, 2012 at 10:19:40AM -0700, Dmitry Shmidt wrote:
> Command 'bss FISRT' should use bss_id list, because 'bss NEXT-N' is using
> bss_id list as well.

Thanks, applied.

Patch

diff --git a/wpa_supplicant/ctrl_iface.c b/wpa_supplicant/ctrl_iface.c
index 3ddae95..9a3008f 100644
--- a/wpa_supplicant/ctrl_iface.c
+++ b/wpa_supplicant/ctrl_iface.c
@@ -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);