Moved proto == RSN validation from pmksa_cache.c into the caller
This commit is contained in:
parent
010dc06853
commit
f5a51b58d4
2 changed files with 6 additions and 4 deletions
|
@ -167,7 +167,7 @@ pmksa_cache_add(struct rsn_pmksa_cache *pmksa, const u8 *pmk, size_t pmk_len,
|
|||
struct rsn_pmksa_cache_entry *entry, *pos, *prev;
|
||||
struct os_time now;
|
||||
|
||||
if (pmksa->sm->proto != WPA_PROTO_RSN || pmk_len > PMK_LEN)
|
||||
if (pmk_len > PMK_LEN)
|
||||
return NULL;
|
||||
|
||||
entry = os_zalloc(sizeof(*entry));
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue