P2P: Fix provisioning info clearing after successful WPS step
Previously, this provisioning info was cleared using the P2P Interface Address of the GO as the key. That did not always work in the case the where we joined an already running group. This could result in the next connection to that same GO skipping provision discovery. Fix this by finding the peer entry based on its P2P Device Address instead of the P2P Interface Address which may not always be set. Signed-hostap: Jouni Malinen <jouni@qca.qualcomm.com> intended-for: hostap-1
This commit is contained in:
parent
9f85a37e03
commit
10531d2166
3 changed files with 17 additions and 9 deletions
|
@ -151,14 +151,14 @@ u16 p2p_get_provisioning_info(struct p2p_data *p2p, const u8 *addr)
|
|||
}
|
||||
|
||||
|
||||
void p2p_clear_provisioning_info(struct p2p_data *p2p, const u8 *iface_addr)
|
||||
void p2p_clear_provisioning_info(struct p2p_data *p2p, const u8 *addr)
|
||||
{
|
||||
struct p2p_device *dev = NULL;
|
||||
|
||||
if (!iface_addr || !p2p)
|
||||
if (!addr || !p2p)
|
||||
return;
|
||||
|
||||
dev = p2p_get_device_interface(p2p, iface_addr);
|
||||
dev = p2p_get_device(p2p, addr);
|
||||
if (dev)
|
||||
dev->wps_prov_info = 0;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue