]> git.ipfire.org Git - thirdparty/hostap.git/commitdiff
P2P: Fix RX ack status on Action frames sent via interface in GO mode
authorAlbert Liu <albertliu@atheros.com>
Wed, 24 Nov 2010 12:25:33 +0000 (14:25 +0200)
committerJouni Malinen <j@w1.fi>
Wed, 24 Nov 2010 12:25:33 +0000 (14:25 +0200)
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.

wpa_supplicant/events.c

index 8498cbab8d498e50a293e4b7e516ace8e9b85a38..9eb366c7134927a422b21644a845501354f3f705 100644 (file)
@@ -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 */