Patchwork wpa_supplicant: Add DFS indicator to get_capability freq

login
register
mail settings
Submitter Dmitry Shmidt
Date Feb. 3, 2014, 9:30 p.m.
Message ID <20140203234020.6D33E13F9B7@ushik.mtv.corp.google.com>
Download mbox | patch
Permalink /patch/316407/
State Accepted
Headers show

Comments

Dmitry Shmidt - Feb. 3, 2014, 9:30 p.m.
Change-Id: Ic65683aaeef7dd2be4c375695b668e59736e8ec3
Signed-off-by: Dmitry Shmidt <dimitrysh@google.com>
---
 wpa_supplicant/ctrl_iface.c | 7 +++++--
 1 file changed, 5 insertions(+), 2 deletions(-)
Jouni Malinen - Feb. 6, 2014, 3:17 p.m.
Thanks, applied.

Patch

diff --git a/wpa_supplicant/ctrl_iface.c b/wpa_supplicant/ctrl_iface.c
index 9a3cbea..78a0ce0 100644
--- a/wpa_supplicant/ctrl_iface.c
+++ b/wpa_supplicant/ctrl_iface.c
@@ -3158,10 +3158,13 @@  static int ctrl_iface_get_capability_freq(struct wpa_supplicant *wpa_s,
 		for (i = 0; i < wpa_s->hw.modes[j].num_channels; i++) {
 			if (chnl[i].flag & HOSTAPD_CHAN_DISABLED)
 				continue;
-			ret = os_snprintf(pos, end - pos, " %d = %d MHz%s\n",
+			ret = os_snprintf(pos, end - pos, " %d = %d MHz%s%s\n",
 					  chnl[i].chan, chnl[i].freq,
 					  chnl[i].flag & HOSTAPD_CHAN_NO_IBSS ?
-					  " (NO_IBSS)" : "");
+					  " (NO_IBSS)" : "",
+					  chnl[i].flag & HOSTAPD_CHAN_RADAR ?
+					  " (DFS)" : "");
+
 			if (ret < 0 || ret >= end - pos)
 				return pos - buf;
 			pos += ret;