From 0547124d47cb0f656d3ed7dd1ec4225a9df2a2f9 Mon Sep 17 00:00:00 2001 From: Dmitry Shmidt Date: Mon, 3 Feb 2014 13:30:46 -0800 Subject: [PATCH] wpa_supplicant: Add DFS indicator to get_capability freq Signed-off-by: Dmitry Shmidt --- wpa_supplicant/ctrl_iface.c | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/wpa_supplicant/ctrl_iface.c b/wpa_supplicant/ctrl_iface.c index 3deb05f32..c0ad1c1f2 100644 --- a/wpa_supplicant/ctrl_iface.c +++ b/wpa_supplicant/ctrl_iface.c @@ -3167,10 +3167,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;