Parcourir la source

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.
Albert Liu il y a 14 ans
Parent
commit
1d39378a0b
1 fichiers modifiés avec 3 ajouts et 1 suppressions
  1. 3 1
      wpa_supplicant/events.c

+ 3 - 1
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 */