aboutsummaryrefslogtreecommitdiffstats
path: root/wpa_supplicant
diff options
context:
space:
mode:
authorJouni Malinen <j@w1.fi>2016-05-28 19:54:00 (GMT)
committerJouni Malinen <j@w1.fi>2016-05-28 19:54:00 (GMT)
commit7012e2589fcc24d8cc26c2cb757d3aff8660e533 (patch)
tree5f7f1f0e0346eb872808ced2ac396ced1a2aaa24 /wpa_supplicant
parent42083295282be30639b31494b15fd2a5fca82270 (diff)
downloadhostap-7012e2589fcc24d8cc26c2cb757d3aff8660e533.zip
hostap-7012e2589fcc24d8cc26c2cb757d3aff8660e533.tar.gz
hostap-7012e2589fcc24d8cc26c2cb757d3aff8660e533.tar.bz2
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>
Diffstat (limited to 'wpa_supplicant')
-rw-r--r--wpa_supplicant/scan.c7
1 files changed, 0 insertions, 7 deletions
diff --git a/wpa_supplicant/scan.c b/wpa_supplicant/scan.c
index 40469ca..787d4e6 100644
--- a/wpa_supplicant/scan.c
+++ b/wpa_supplicant/scan.c
@@ -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)",