Prechádzať zdrojové kódy

qcacld-3.0: Send unified stats command in disconnect state

This reverts commit  I9701830d. Host needs to honor the ll stats
command in disconnected state also.

CRs-Fixed: 3197453
Change-Id: I32db288cf070bba21023536c0d9e933835f26c53
SACHIN AHUJA 2 rokov pred
rodič
commit
494eca296c
1 zmenil súbory, kde vykonal 2 pridanie a 5 odobranie
  1. 2 5
      core/hdd/src/wlan_hdd_stats.c

+ 2 - 5
core/hdd/src/wlan_hdd_stats.c

@@ -2101,9 +2101,9 @@ wlan_hdd_set_station_stats_request_pending(struct hdd_adapter *adapter,
 	info.pdev_id = wlan_objmgr_pdev_get_pdev_id(wlan_vdev_get_pdev(vdev));
 	peer = wlan_objmgr_vdev_try_get_bsspeer(vdev, WLAN_OSIF_STATS_ID);
 	if (!peer) {
-		osif_err("peer is null hence get_ll_stats is not supported");
+		osif_err("peer is null");
 		hdd_objmgr_put_vdev_by_user(vdev, WLAN_OSIF_STATS_ID);
-		return QDF_STATUS_E_BADMSG;
+		return QDF_STATUS_E_INVAL;
 	}
 
 	adapter->hdd_stats.is_ll_stats_req_in_progress = true;
@@ -2207,9 +2207,6 @@ static int wlan_hdd_send_ll_stats_req(struct hdd_adapter *adapter,
 	if (status == QDF_STATUS_E_ALREADY)
 		return qdf_status_to_os_return(status);
 
-	if (status == QDF_STATUS_E_BADMSG)
-		return QDF_STATUS_SUCCESS;
-
 	/*
 	 * FW can send radio stats with multiple events and for the first event
 	 * host allocates memory in wma and processes the events, there is a