From: Albert Liu Date: Wed, 24 Nov 2010 12:25:33 +0000 (+0200) Subject: P2P: Fix RX ack status on Action frames sent via interface in GO mode X-Git-Tag: hostap-1-bp~743 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=1d39378a0b442ef07263aed817a783622f5952bb;p=thirdparty%2Fhostap.git P2P: Fix RX ack status on Action frames sent via interface in GO mode The wpa_supplicant_event() EVENT_TX_STATUS ack field needs to be converted to use wpas_send_action_tx_status() enum p2p_send_action_result in this case, too, to avoid getting incorrect TX status for P2P processing. --- diff --git a/wpa_supplicant/events.c b/wpa_supplicant/events.c index 8498cbab8..9eb366c71 100644 --- a/wpa_supplicant/events.c +++ b/wpa_supplicant/events.c @@ -1747,7 +1747,9 @@ void wpa_supplicant_event(void *ctx, enum wpa_event_type event, wpa_s->parent, data->tx_status.dst, data->tx_status.data, data->tx_status.data_len, - data->tx_status.ack); + data->tx_status.ack ? + P2P_SEND_ACTION_SUCCESS : + P2P_SEND_ACTION_NO_ACK); break; } #endif /* CONFIG_P2P */