mirror of
https://github.com/vanhoefm/fragattacks.git
synced 2024-11-28 18:28:23 -05:00
Remove dead code from wpas_sched_scan_plans_set()
scan_plan->interval was checked against 0 twice; the latter case cannot happen. Signed-off-by: Jouni Malinen <j@w1.fi>
This commit is contained in:
parent
4208329528
commit
7012e2589f
@ -2607,13 +2607,6 @@ int wpas_sched_scan_plans_set(struct wpa_supplicant *wpa_s, const char *cmd)
|
||||
goto fail;
|
||||
}
|
||||
|
||||
if (!scan_plan->interval) {
|
||||
wpa_printf(MSG_ERROR,
|
||||
"scan plan %u: Interval cannot be zero",
|
||||
num);
|
||||
goto fail;
|
||||
}
|
||||
|
||||
if (scan_plan->interval > wpa_s->max_sched_scan_plan_interval) {
|
||||
wpa_printf(MSG_WARNING,
|
||||
"scan plan %u: Scan interval too long(%u), use the maximum allowed(%u)",
|
||||
|
Loading…
Reference in New Issue
Block a user