path: root/wpa_supplicant/p2p_supplicant.h
diff options
authorJouni Malinen <jouni.malinen@atheros.com>2010-10-19 09:47:33 (GMT)
committerJouni Malinen <j@w1.fi>2010-10-19 09:47:33 (GMT)
commit93b7ddd0320c1178cf70c9a4f5acdfde54c4c19a (patch)
tree5afe1877730c2c79740055caa55b9fa689e46c88 /wpa_supplicant/p2p_supplicant.h
parent2b67a67144cace1390f37a4423063b3931d9884b (diff)
P2P: Skip GO Neg Conf ack failure workaround of send failures
The workaround to ignore no ctrl::ack received for GO Negotiation Confirmation frame was only supposed to be used when the frame was actually transmitted and just the ack was not received. However, due to the way the driver failure on transmitting the frame were reported, this ended up getting applied for all failures in sending the GO Negotiation Confirmation frame. Improve this by providing a mechanism to indicate whether send_action operations fail locally before the frame was actually transmitted or because of not receiving ack frame after having transmitted the frame.
Diffstat (limited to 'wpa_supplicant/p2p_supplicant.h')
1 files changed, 3 insertions, 1 deletions
diff --git a/wpa_supplicant/p2p_supplicant.h b/wpa_supplicant/p2p_supplicant.h
index 73c6e1a..e5b2964 100644
--- a/wpa_supplicant/p2p_supplicant.h
+++ b/wpa_supplicant/p2p_supplicant.h
@@ -17,6 +17,7 @@
enum p2p_wps_method;
struct p2p_go_neg_results;
+enum p2p_send_action_result;
int wpas_p2p_init(struct wpa_global *global, struct wpa_supplicant *wpa_s);
void wpas_p2p_deinit(struct wpa_supplicant *wpa_s);
@@ -43,7 +44,8 @@ void wpas_p2p_wps_success(struct wpa_supplicant *wpa_s, const u8 *peer_addr,
int wpas_p2p_prov_disc(struct wpa_supplicant *wpa_s, const u8 *peer_addr,
const char *config_method);
void wpas_send_action_tx_status(struct wpa_supplicant *wpa_s, const u8 *dst,
- const u8 *data, size_t data_len, int ack);
+ const u8 *data, size_t data_len,
+ enum p2p_send_action_result result);
int wpas_p2p_scan_result_text(const u8 *ies, size_t ies_len, char *buf,
char *end);
enum p2p_discovery_type;