From: Jouni Malinen Date: Sun, 16 Feb 2020 09:54:36 +0000 (+0200) Subject: WPS: Mark added PSK entry with wps=1 tag for per-Enrollee PSK case X-Git-Tag: hostap_2_10~1823 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=981b96caa9fc2695f294fd0698c5e81686d0e7d9;p=thirdparty%2Fhostap.git WPS: Mark added PSK entry with wps=1 tag for per-Enrollee PSK case Commit 2bab073dfe02 ("WPS: Add new PSK entries with wps=1 tag") added this when writing the new entry into a file, but the in-memory update did not get the tag. Add it there as well. Signed-off-by: Jouni Malinen --- diff --git a/src/ap/wps_hostapd.c b/src/ap/wps_hostapd.c index 7b143b821..5ea206c5e 100644 --- a/src/ap/wps_hostapd.c +++ b/src/ap/wps_hostapd.c @@ -125,6 +125,7 @@ static int hostapd_wps_new_psk_cb(void *ctx, const u8 *mac_addr, os_memcpy(p->addr, mac_addr, ETH_ALEN); os_memcpy(p->p2p_dev_addr, p2p_dev_addr, ETH_ALEN); os_memcpy(p->psk, psk, PMK_LEN); + p->wps = 1; if (hapd->new_psk_cb) { hapd->new_psk_cb(hapd->new_psk_cb_ctx, mac_addr, p2p_dev_addr,