Use common code for disabled network case in sched_scan
There is no need to implement two copies of the iteration code here. Signed-hostap: Jouni Malinen <jouni@qca.qualcomm.com>
This commit is contained in:
parent
86b47aaf36
commit
5edddf4175
1 changed files with 3 additions and 5 deletions
|
@ -749,11 +749,8 @@ int wpa_supplicant_req_sched_scan(struct wpa_supplicant *wpa_s)
|
||||||
}
|
}
|
||||||
|
|
||||||
while (ssid) {
|
while (ssid) {
|
||||||
if (ssid->disabled) {
|
if (ssid->disabled)
|
||||||
wpa_s->prev_sched_ssid = ssid;
|
goto next;
|
||||||
ssid = ssid->next;
|
|
||||||
continue;
|
|
||||||
}
|
|
||||||
|
|
||||||
if (params.num_filter_ssids < wpa_s->max_match_sets &&
|
if (params.num_filter_ssids < wpa_s->max_match_sets &&
|
||||||
params.filter_ssids && ssid->ssid && ssid->ssid_len) {
|
params.filter_ssids && ssid->ssid && ssid->ssid_len) {
|
||||||
|
@ -788,6 +785,7 @@ int wpa_supplicant_req_sched_scan(struct wpa_supplicant *wpa_s)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
next:
|
||||||
wpa_s->prev_sched_ssid = ssid;
|
wpa_s->prev_sched_ssid = ssid;
|
||||||
ssid = ssid->next;
|
ssid = ssid->next;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue