Browse 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 14 years ago
parent
commit
1d39378a0b
1 changed files with 3 additions and 1 deletions
  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,
 				wpa_s->parent, data->tx_status.dst,
 				data->tx_status.data,
 				data->tx_status.data,
 				data->tx_status.data_len,
 				data->tx_status.data_len,
-				data->tx_status.ack);
+				data->tx_status.ack ?
+				P2P_SEND_ACTION_SUCCESS :
+				P2P_SEND_ACTION_NO_ACK);
 			break;
 			break;
 		}
 		}
 #endif /* CONFIG_P2P */
 #endif /* CONFIG_P2P */