WPS ER: Stop AP unlink loop on match
There is no need to continue through the list after this, since the same AP entry can only be listed once.
This commit is contained in:
parent
6a1e492a81
commit
7a082a83f0
1 changed files with 1 additions and 0 deletions
|
@ -299,6 +299,7 @@ static void wps_er_ap_unlink(struct wps_er *er, struct wps_er_ap *ap)
|
|||
prev->next = ap->next;
|
||||
else
|
||||
er->ap = ap->next;
|
||||
return;
|
||||
}
|
||||
prev = tmp;
|
||||
tmp = tmp->next;
|
||||
|
|
Loading…
Reference in a new issue