]> git.ipfire.org Git - thirdparty/hostap.git/blobdiff - src/ap/wpa_auth_glue.c
P2P: Select PSK based on Device Address instead of Interface Address
[thirdparty/hostap.git] / src / ap / wpa_auth_glue.c
index ea5e74fc6fc7f11ef62ae242b529b2b0620ccaa1..d977b42fe9061c4704b1095af5f4e1317cf390e1 100644 (file)
@@ -186,6 +186,7 @@ static int hostapd_wpa_auth_get_eapol(void *ctx, const u8 *addr,
 
 
 static const u8 * hostapd_wpa_auth_get_psk(void *ctx, const u8 *addr,
+                                          const u8 *p2p_dev_addr,
                                           const u8 *prev_psk)
 {
        struct hostapd_data *hapd = ctx;
@@ -200,7 +201,7 @@ static const u8 * hostapd_wpa_auth_get_psk(void *ctx, const u8 *addr,
        }
 #endif /* CONFIG_SAE */
 
-       psk = hostapd_get_psk(hapd->conf, addr, prev_psk);
+       psk = hostapd_get_psk(hapd->conf, addr, p2p_dev_addr, prev_psk);
        /*
         * This is about to iterate over all psks, prev_psk gives the last
         * returned psk which should not be returned again.