Browse Source

qcacld-3.0: Update correct vdev id for link stats

In the current driver implementation, the vdev_id sent by FW
is ignored by link stats peer and radio event handler. It leads
to vdev_id mismatch in wlan_hdd_send_ll_stats_req and ultimately
causes LL_STATS timeout. To void this issue, update correct vdev_id
sent by FW in the link stats peer and radio event handler.

Change-Id: I283f8a8f4f4d4b3018072ecc0f19d55cf47d03eb
CRs-Fixed: 3224704
Aditya Kodukula 2 years ago
parent
commit
a9c168a104
1 changed files with 2 additions and 2 deletions
  1. 2 2
      core/wma/src/wma_utils.c

+ 2 - 2
core/wma/src/wma_utils.c

@@ -1771,7 +1771,7 @@ static int wma_unified_link_peer_stats_event_handler(void *handle,
 
 	link_stats_results->paramId = WMI_LINK_STATS_ALL_PEER;
 	link_stats_results->rspId = fixed_param->request_id;
-	link_stats_results->ifaceId = 0;
+	link_stats_results->ifaceId = fixed_param->vdev_id_info.vdev_id;
 	link_stats_results->num_peers = fixed_param->num_peers;
 	link_stats_results->peer_event_number = fixed_param->peer_event_number;
 	link_stats_results->moreResultToFollow = fixed_param->more_data;
@@ -2344,7 +2344,7 @@ __wma_unified_link_radio_stats_event_handler(tp_wma_handle wma_handle,
 link_radio_stats_cb:
 	link_stats_results->paramId = WMI_LINK_STATS_RADIO;
 	link_stats_results->rspId = fixed_param->request_id;
-	link_stats_results->ifaceId = 0;
+	link_stats_results->ifaceId = fixed_param->vdev_id_info.vdev_id;
 	link_stats_results->peer_event_number = 0;
 
 	/*