diff options
author | Johannes Berg <johannes.berg@intel.com> | 2012-02-05 19:05:45 +0200 |
---|---|---|
committer | Jouni Malinen <j@w1.fi> | 2012-02-05 19:05:45 +0200 |
commit | e12b85d324e9692443d666728b5d078d652fabeb (patch) | |
tree | c60f7ea59de33e74127f20230a61a1c3bd211de6 /src/p2p | |
parent | 87343c2017dd543098d06ced597860bb8a963141 (diff) | |
download | external_wpa_supplicant_8_ti-e12b85d324e9692443d666728b5d078d652fabeb.zip external_wpa_supplicant_8_ti-e12b85d324e9692443d666728b5d078d652fabeb.tar.gz external_wpa_supplicant_8_ti-e12b85d324e9692443d666728b5d078d652fabeb.tar.bz2 |
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>
Diffstat (limited to 'src/p2p')
-rw-r--r-- | src/p2p/p2p_pd.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/src/p2p/p2p_pd.c b/src/p2p/p2p_pd.c index 1ee59c5..167469d 100644 --- a/src/p2p/p2p_pd.c +++ b/src/p2p/p2p_pd.c @@ -369,9 +369,8 @@ int p2p_prov_disc_req(struct p2p_data *p2p, const u8 *peer_addr, else dev->flags &= ~P2P_DEV_PD_FOR_JOIN; - if (p2p->go_neg_peer || - (p2p->state != P2P_IDLE && p2p->state != P2P_SEARCH && - p2p->state != P2P_LISTEN_ONLY)) { + if (p2p->state != P2P_IDLE && p2p->state != P2P_SEARCH && + p2p->state != P2P_LISTEN_ONLY) { wpa_msg(p2p->cfg->msg_ctx, MSG_DEBUG, "P2P: Busy with other " "operations; postpone Provision Discovery Request " "with " MACSTR " (config methods 0x%x)", |