diff options
author | Irfan Sheriff <isheriff@google.com> | 2012-08-13 10:56:16 -0700 |
---|---|---|
committer | Vishal Mahaveer <a0271468@ti.com> | 2012-10-24 13:53:26 -0500 |
commit | 0613a964c52b31d6763fd30dd45521314f3a2429 (patch) | |
tree | 1eacfd1eae64345ac5db6ea906b9158c1a6649aa /wpa_supplicant | |
parent | abcd165be8b5310d5446d9f18ae874d601f5bad1 (diff) | |
download | external_wpa_supplicant_8_ti-0613a964c52b31d6763fd30dd45521314f3a2429.zip external_wpa_supplicant_8_ti-0613a964c52b31d6763fd30dd45521314f3a2429.tar.gz external_wpa_supplicant_8_ti-0613a964c52b31d6763fd30dd45521314f3a2429.tar.bz2 |
Add delimiter for bss command
With the availability of MASK option, the number of lines per BSS is not obvious,
add a delimiter to make parsing less flaky
Bug: 2961159
Change-Id: I9e5523f8da183e0735dbc06f0c09c9f841060504
Diffstat (limited to 'wpa_supplicant')
-rw-r--r-- | wpa_supplicant/ctrl_iface.c | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/wpa_supplicant/ctrl_iface.c b/wpa_supplicant/ctrl_iface.c index 8aad951..63da94c 100644 --- a/wpa_supplicant/ctrl_iface.c +++ b/wpa_supplicant/ctrl_iface.c @@ -2665,6 +2665,13 @@ static int print_bss_info(struct wpa_supplicant *wpa_s, struct wpa_bss *bss, } #endif /* CONFIG_INTERWORKING */ +#ifdef ANDROID + ret = os_snprintf(pos, end - pos, "====\n"); + if (ret < 0 || ret >= end - pos) + return 0; + pos += ret; +#endif + return pos - buf; } |