@@ -5890,7 +5890,6 @@ struct wpabuf * p2p_usd_elems(struct p2p_data *p2p)
if (p2p->pairing_info &&
p2p->cfg->pairing_config.pairing_capable &&
p2p->cfg->pairing_config.enable_pairing_cache &&
- p2p->cfg->pairing_config.enable_pairing_verification &&
p2p_derive_nonce_tag(p2p) == 0)
p2p_buf_add_dira(buf, p2p);
@@ -349,11 +349,6 @@ struct p2p_pairing_config {
*/
bool enable_pairing_cache;
- /**
- * Enable P2P pairing verification with cached NIK/NPK
- */
- bool enable_pairing_verification;
-
/**
* P2P bootstrapping methods supported
*/
@@ -806,8 +806,7 @@ void p2p_buf_add_dira(struct wpabuf *buf, struct p2p_data *p2p)
struct p2p_id_key *dev_ik;
if (!p2p->cfg->pairing_config.pairing_capable ||
- !p2p->cfg->pairing_config.enable_pairing_cache ||
- !p2p->cfg->pairing_config.enable_pairing_verification)
+ !p2p->cfg->pairing_config.enable_pairing_cache)
return;
dev_ik = &p2p->pairing_info->dev_ik;
@@ -703,7 +703,6 @@ void p2p_process_pcea(struct p2p_data *p2p, struct p2p_message *msg,
if (dev->info.pcea_cap_info & P2P_PCEA_PMK_CACHING) {
dev->info.pairing_config.enable_pairing_cache = true;
- dev->info.pairing_config.enable_pairing_verification = true;
}
}
This is a duplicate of enable_pairing_cache flag. Remove it. Signed-off-by: Andrei Otcheretianski <andrei.otcheretianski@intel.com> --- src/p2p/p2p.c | 1 - src/p2p/p2p.h | 5 ----- src/p2p/p2p_build.c | 3 +-- src/p2p/p2p_pd.c | 1 - 4 files changed, 1 insertion(+), 9 deletions(-)