DPP2: Fix DPP_CHIRP listen parameter value validation
Check the correct variable. Signed-off-by: Jouni Malinen <jouni@codeaurora.org>
This commit is contained in:
parent
217656d098
commit
670e153377
1 changed files with 1 additions and 1 deletions
|
@ -3362,7 +3362,7 @@ int wpas_dpp_chirp(struct wpa_supplicant *wpa_s, const char *cmd)
|
||||||
pos = os_strstr(cmd, " listen=");
|
pos = os_strstr(cmd, " listen=");
|
||||||
if (pos) {
|
if (pos) {
|
||||||
listen_freq = atoi(pos + 8);
|
listen_freq = atoi(pos + 8);
|
||||||
if (iter <= 0)
|
if (listen_freq <= 0)
|
||||||
return -1;
|
return -1;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue