]> git.ipfire.org Git - thirdparty/hostap.git/commitdiff
RSN: Remove check for proactive_key_caching while setting PMK offload
authorAmarnath Hullur Subramanyam <amarnath@qca.qualcomm.com>
Thu, 12 Nov 2015 20:37:04 +0000 (12:37 -0800)
committerJouni Malinen <j@w1.fi>
Mon, 16 Nov 2015 17:05:01 +0000 (19:05 +0200)
wpa_sm_key_mgmt_set_pmk() was checking for proactive_key_caching to be
enabled before setting the PMK to the driver. This check is not required
and would mandate configuration setting of okc or proactive_key_caching
for cases which were not necessary.

Signed-off-by: Amarnath Hullur Subramanyam <amarnath@qca.qualcomm.com>
src/rsn_supp/wpa_i.h

index 14b77994e50e374aba5188c330f871c72dd73d47..dba6b624fbfb7dd89592317899953624134f61a6 100644 (file)
@@ -344,8 +344,6 @@ wpa_sm_tdls_disable_channel_switch(struct wpa_sm *sm, const u8 *addr)
 static inline int wpa_sm_key_mgmt_set_pmk(struct wpa_sm *sm,
                                          const u8 *pmk, size_t pmk_len)
 {
-       if (!sm->proactive_key_caching)
-               return 0;
        if (!sm->ctx->key_mgmt_set_pmk)
                return -1;
        return sm->ctx->key_mgmt_set_pmk(sm->ctx->ctx, pmk, pmk_len);