|
@@ -1705,14 +1705,9 @@ static int SecIsInPMKIDList(struct adapter *Adapter, u8 *bssid)
|
|
|
|
|
|
do {
|
|
|
if ((psecuritypriv->PMKIDList[i].bUsed) &&
|
|
|
- (!memcmp(psecuritypriv->PMKIDList[i].Bssid, bssid, ETH_ALEN))) {
|
|
|
+ (!memcmp(psecuritypriv->PMKIDList[i].Bssid, bssid, ETH_ALEN)))
|
|
|
break;
|
|
|
- } else {
|
|
|
- i++;
|
|
|
- /* continue; */
|
|
|
- }
|
|
|
-
|
|
|
- } while (i < NUM_PMKID_CACHE);
|
|
|
+ } while (++i < NUM_PMKID_CACHE);
|
|
|
|
|
|
if (i == NUM_PMKID_CACHE)
|
|
|
i = -1;/* Could not find. */
|