Преглед на файлове

qcacld-3.0: Remove peer check from bmiss stats

Currently in station disconnect state, host doesn't request
bmiss stats from firmware.
Remove peer check to get bmiss stats in station disconnect
state also.

Change-Id: I6268f8af7daf7a90f9ae8a5d24ae17256ff3e76c
CRs-Fixed: 3127834
Divyajyothi Goparaju преди 3 години
родител
ревизия
c2ce55350a
променени са 1 файла, в които са добавени 0 реда и са изтрити 9 реда
  1. 0 9
      os_if/cp_stats/src/wlan_cfg80211_mc_cp_stats.c

+ 0 - 9
os_if/cp_stats/src/wlan_cfg80211_mc_cp_stats.c

@@ -1589,7 +1589,6 @@ wlan_cfg80211_mc_bmiss_get_infra_cp_stats(struct wlan_objmgr_vdev *vdev,
 	QDF_STATUS status;
 	struct infra_cp_stats_event *priv, *out;
 	struct bmiss_infra_cp_stats_event *bmiss_event;
-	struct wlan_objmgr_peer *peer;
 	struct osif_request *request;
 	struct infra_cp_stats_cmd_info info = {0};
 	static const struct osif_request_params params = {
@@ -1645,14 +1644,6 @@ wlan_cfg80211_mc_bmiss_get_infra_cp_stats(struct wlan_objmgr_vdev *vdev,
 	info.num_pdev_ids = 0;
 
 	qdf_mem_copy(&info.peer_mac_addr[0], bmiss_peer_mac, QDF_MAC_ADDR_SIZE);
-	peer = wlan_objmgr_vdev_try_get_bsspeer(vdev, WLAN_CP_STATS_ID);
-	if (!peer) {
-		osif_err("peer is null");
-		*errno = -EINVAL;
-		goto get_bmiss_stats_fail;
-	}
-	wlan_objmgr_peer_release_ref(peer, WLAN_CP_STATS_ID);
-
 	status = ucfg_infra_cp_stats_register_resp_cb(wlan_vdev_get_psoc(vdev),
 						      &info);
 	if (QDF_IS_STATUS_ERROR(status)) {