Patchwork Mark last bss entry by #### instead of ====

login
register
mail settings
Submitter Dmitry Shmidt
Date Feb. 27, 2013, 10:09 p.m.
Message ID <20130227221012.416781401C9@ushik.mtv.corp.google.com>
Download mbox | patch
Permalink /patch/223713/
State Accepted
Commit cfd42c94eedd64b9d313ebe3c742f27ea3600c22
Headers show

Comments

Dmitry Shmidt - Feb. 27, 2013, 10:09 p.m.
Signed-off-by: Dmitry Shmidt <dimitrysh@google.com>
---
 wpa_supplicant/ctrl_iface.c | 7 ++++++-
 1 file changed, 6 insertions(+), 1 deletion(-)
Jouni Malinen - Feb. 28, 2013, 4:58 p.m.
Thanks, applied.

Patch

diff --git a/wpa_supplicant/ctrl_iface.c b/wpa_supplicant/ctrl_iface.c
index 65a769e..f8e0f3e 100644
--- a/wpa_supplicant/ctrl_iface.c
+++ b/wpa_supplicant/ctrl_iface.c
@@ -3353,8 +3353,13 @@  static int wpa_supplicant_ctrl_iface_bss(struct wpa_supplicant *wpa_s,
 		ret += len;
 		buf += len;
 		buflen -= len;
-		if (bss == bsslast)
+		if (bss == bsslast) {
+			if ((mask & WPA_BSS_MASK_DELIM) && len &&
+			    (bss == dl_list_last(&wpa_s->bss_id,
+						 struct wpa_bss, list_id)))
+				os_snprintf(buf - 5, 5, "####\n");
 			break;
+		}
 		next = bss->list_id.next;
 		if (next == &wpa_s->bss_id)
 			break;