aboutsummaryrefslogtreecommitdiffstats
path: root/wpa_supplicant/ibss_rsn.c
diff options
context:
space:
mode:
authorJouni Malinen <j@w1.fi>2013-09-01 08:30:26 (GMT)
committerJouni Malinen <j@w1.fi>2013-09-01 08:30:26 (GMT)
commit759fd76b7fa554f3ee09a5a63d8cba76934b27d1 (patch)
treed41e395cb088461314c1427eb17bac73a51d8748 /wpa_supplicant/ibss_rsn.c
parent94ddef3e72ac92860d94039421b7ee2cfd81c198 (diff)
downloadhostap-759fd76b7fa554f3ee09a5a63d8cba76934b27d1.zip
hostap-759fd76b7fa554f3ee09a5a63d8cba76934b27d1.tar.gz
hostap-759fd76b7fa554f3ee09a5a63d8cba76934b27d1.tar.bz2
P2P: Select PSK based on Device Address instead of Interface Address
When using per-device PSKs, select the PSK based on the P2P Device Address of the connecting client if that client is a P2P Device. This allows the P2P Interface Address to be changed between P2P group connections which may happen especially when using persistent groups. Signed-hostap: Jouni Malinen <j@w1.fi>
Diffstat (limited to 'wpa_supplicant/ibss_rsn.c')
-rw-r--r--wpa_supplicant/ibss_rsn.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/wpa_supplicant/ibss_rsn.c b/wpa_supplicant/ibss_rsn.c
index e6a2968..47ef35e 100644
--- a/wpa_supplicant/ibss_rsn.c
+++ b/wpa_supplicant/ibss_rsn.c
@@ -257,7 +257,8 @@ static void auth_logger(void *ctx, const u8 *addr, logger_level level,
}
-static const u8 * auth_get_psk(void *ctx, const u8 *addr, const u8 *prev_psk)
+static const u8 * auth_get_psk(void *ctx, const u8 *addr,
+ const u8 *p2p_dev_addr, const u8 *prev_psk)
{
struct ibss_rsn *ibss_rsn = ctx;
wpa_printf(MSG_DEBUG, "AUTH: %s (addr=" MACSTR " prev_psk=%p)",