mirror of
https://github.com/vanhoefm/fragattacks.git
synced 2024-11-28 18:28:23 -05:00
wpa_supplicant: Add DFS indicator to get_capability freq
Signed-off-by: Dmitry Shmidt <dimitrysh@google.com>
This commit is contained in:
parent
bab6677a31
commit
0547124d47
@ -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++) {
|
for (i = 0; i < wpa_s->hw.modes[j].num_channels; i++) {
|
||||||
if (chnl[i].flag & HOSTAPD_CHAN_DISABLED)
|
if (chnl[i].flag & HOSTAPD_CHAN_DISABLED)
|
||||||
continue;
|
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].chan, chnl[i].freq,
|
||||||
chnl[i].flag & HOSTAPD_CHAN_NO_IBSS ?
|
chnl[i].flag & HOSTAPD_CHAN_NO_IBSS ?
|
||||||
" (NO_IBSS)" : "");
|
" (NO_IBSS)" : "",
|
||||||
|
chnl[i].flag & HOSTAPD_CHAN_RADAR ?
|
||||||
|
" (DFS)" : "");
|
||||||
|
|
||||||
if (ret < 0 || ret >= end - pos)
|
if (ret < 0 || ret >= end - pos)
|
||||||
return pos - buf;
|
return pos - buf;
|
||||||
pos += ret;
|
pos += ret;
|
||||||
|
Loading…
Reference in New Issue
Block a user