aboutsummaryrefslogtreecommitdiffstats
path: root/src/rsn_supp
diff options
context:
space:
mode:
authorAmarnath Hullur Subramanyam <amarnath@qca.qualcomm.com>2015-11-12 20:37:04 (GMT)
committerJouni Malinen <j@w1.fi>2015-11-16 17:05:01 (GMT)
commit89a11ad38f9faace28213653eaecbad98460c9e1 (patch)
tree072f2fff3c76e53e9a9f47d4b172fbcdfeb065ad /src/rsn_supp
parentd381963385ef8a0aacf0675029a7fd107f2100f4 (diff)
downloadhostap-89a11ad38f9faace28213653eaecbad98460c9e1.zip
hostap-89a11ad38f9faace28213653eaecbad98460c9e1.tar.gz
hostap-89a11ad38f9faace28213653eaecbad98460c9e1.tar.bz2
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>
Diffstat (limited to 'src/rsn_supp')
-rw-r--r--src/rsn_supp/wpa_i.h2
1 files changed, 0 insertions, 2 deletions
diff --git a/src/rsn_supp/wpa_i.h b/src/rsn_supp/wpa_i.h
index 14b7799..dba6b62 100644
--- a/src/rsn_supp/wpa_i.h
+++ b/src/rsn_supp/wpa_i.h
@@ -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);