aboutsummaryrefslogtreecommitdiffstats
path: root/wpa_supplicant/ibss_rsn.c
diff options
context:
space:
mode:
authorJouni Malinen <j@w1.fi>2009-01-17 15:47:25 (GMT)
committerJouni Malinen <j@w1.fi>2009-01-17 15:47:25 (GMT)
commitb9a2e577b431a54afc045a4dceb787ed50ab955c (patch)
tree0d6eb5840ead21d9b8a758e857520f273da6fa73 /wpa_supplicant/ibss_rsn.c
parent4691fc7bc86a27f105c3b93954630deafff9c6ec (diff)
downloadhostap-b9a2e577b431a54afc045a4dceb787ed50ab955c.zip
hostap-b9a2e577b431a54afc045a4dceb787ed50ab955c.tar.gz
hostap-b9a2e577b431a54afc045a4dceb787ed50ab955c.tar.bz2
IBSS RSN: Set the PSK based on network configuration
Diffstat (limited to 'wpa_supplicant/ibss_rsn.c')
-rw-r--r--wpa_supplicant/ibss_rsn.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/wpa_supplicant/ibss_rsn.c b/wpa_supplicant/ibss_rsn.c
index 892609b..d605def 100644
--- a/wpa_supplicant/ibss_rsn.c
+++ b/wpa_supplicant/ibss_rsn.c
@@ -446,3 +446,9 @@ int ibss_rsn_rx_eapol(struct ibss_rsn *ibss_rsn, const u8 *src_addr,
return 0;
}
+
+
+void ibss_rsn_set_psk(struct ibss_rsn *ibss_rsn, const u8 *psk)
+{
+ os_memcpy(ibss_rsn->psk, psk, PMK_LEN);
+}