P2P: Remove unneeded go_neg_peer check from PD
When the GO negotiation peer is assigned, the state also cannot be IDLE, SEARCH, or LISTEN_ONLY. Signed-off-by: Johannes Berg <johannes.berg@intel.com>
This commit is contained in:
parent
87343c2017
commit
e12b85d324
1 changed files with 2 additions and 3 deletions
|
@ -369,9 +369,8 @@ int p2p_prov_disc_req(struct p2p_data *p2p, const u8 *peer_addr,
|
||||||
else
|
else
|
||||||
dev->flags &= ~P2P_DEV_PD_FOR_JOIN;
|
dev->flags &= ~P2P_DEV_PD_FOR_JOIN;
|
||||||
|
|
||||||
if (p2p->go_neg_peer ||
|
if (p2p->state != P2P_IDLE && p2p->state != P2P_SEARCH &&
|
||||||
(p2p->state != P2P_IDLE && p2p->state != P2P_SEARCH &&
|
p2p->state != P2P_LISTEN_ONLY) {
|
||||||
p2p->state != P2P_LISTEN_ONLY)) {
|
|
||||||
wpa_msg(p2p->cfg->msg_ctx, MSG_DEBUG, "P2P: Busy with other "
|
wpa_msg(p2p->cfg->msg_ctx, MSG_DEBUG, "P2P: Busy with other "
|
||||||
"operations; postpone Provision Discovery Request "
|
"operations; postpone Provision Discovery Request "
|
||||||
"with " MACSTR " (config methods 0x%x)",
|
"with " MACSTR " (config methods 0x%x)",
|
||||||
|
|
Loading…
Reference in a new issue