RSN: Remove check for proactive_key_caching while setting PMK offload

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>
This commit is contained in:
Amarnath Hullur Subramanyam 2015-11-12 12:37:04 -08:00 committed by Jouni Malinen
parent d381963385
commit 89a11ad38f

View 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, static inline int wpa_sm_key_mgmt_set_pmk(struct wpa_sm *sm,
const u8 *pmk, size_t pmk_len) const u8 *pmk, size_t pmk_len)
{ {
if (!sm->proactive_key_caching)
return 0;
if (!sm->ctx->key_mgmt_set_pmk) if (!sm->ctx->key_mgmt_set_pmk)
return -1; return -1;
return sm->ctx->key_mgmt_set_pmk(sm->ctx->ctx, pmk, pmk_len); return sm->ctx->key_mgmt_set_pmk(sm->ctx->ctx, pmk, pmk_len);