aboutsummaryrefslogtreecommitdiffstats
path: root/wpa_supplicant/p2p_supplicant.c
diff options
context:
space:
mode:
authorIlan Peer <ilan.peer@intel.com>2015-10-08 09:35:57 (GMT)
committerJouni Malinen <j@w1.fi>2015-10-11 09:38:07 (GMT)
commit4acd5ac67b76d683a944bc03891c52759546841d (patch)
treecb56dc3dd2170bcce4d71dd8c6248d538932fccf /wpa_supplicant/p2p_supplicant.c
parentf56478ab88c4808089e7b22e3c240310544ed20b (diff)
downloadhostap-4acd5ac67b76d683a944bc03891c52759546841d.zip
hostap-4acd5ac67b76d683a944bc03891c52759546841d.tar.gz
hostap-4acd5ac67b76d683a944bc03891c52759546841d.tar.bz2
P2P: Cleanup handling of unknown peer in PD Request processing
If a Provision Discovery Request is received for an unknown peer, a new device entry is being added, but the flow continues without updating the local p2p_device pointer, requiring to check the pointer value before every access. 1. Change this, so once a device is added, the flow updates the local p2p_device pointer and avoids the checks later in the flow. 2. If the device is not known even after adding it, skip the processing, send the PD Response, and return. Signed-off-by: Ilan Peer <ilan.peer@intel.com>
Diffstat (limited to 'wpa_supplicant/p2p_supplicant.c')
0 files changed, 0 insertions, 0 deletions