P2P: Fix Provision Discovery channel for some join-GO cases

The Provision Discovery Request needs to be sent on the operating
channel of the GO and as such, the frequency from the BSS table
(scan results) need to override the frequency in the P2P peer
table that could be based on the Listen channel of the GO.

Signed-hostap: Jouni Malinen <j@w1.fi>
This commit is contained in:
Jouni Malinen 2011-12-18 17:21:25 +02:00
parent 19030351b9
commit 1ef2f7ffcf
5 changed files with 16 additions and 11 deletions

View file

@ -2373,7 +2373,7 @@ void p2p_continue_find(struct p2p_data *p2p)
MACSTR " (config methods 0x%x)",
MAC2STR(dev->info.p2p_device_addr),
dev->req_config_methods);
if (p2p_send_prov_disc_req(p2p, dev, 0) == 0)
if (p2p_send_prov_disc_req(p2p, dev, 0, 0) == 0)
return;
}
}
@ -2442,7 +2442,7 @@ static void p2p_retry_pd(struct p2p_data *p2p)
MACSTR " (config methods 0x%x)",
MAC2STR(dev->info.p2p_device_addr),
dev->req_config_methods);
p2p_send_prov_disc_req(p2p, dev, 0);
p2p_send_prov_disc_req(p2p, dev, 0, 0);
return;
}
}