Browse Source

qcacmn: Add bss peer check for rate stats flush request

To avoid flushing bss peer rate stats, add bss peer check
for rate stats flush request

Change-Id: If69ec38efca2b447f3fafa080bafae75017e50fc
Amir Patel 5 years ago
parent
commit
420a8d3c6d
1 changed files with 1 additions and 1 deletions
  1. 1 1
      dp/wifi3.0/dp_main.c

+ 1 - 1
dp/wifi3.0/dp_main.c

@@ -8489,7 +8489,7 @@ static void dp_flush_rate_stats_req(struct cdp_soc_t *soc_hdl,
 	qdf_spin_lock_bh(&pdev->vdev_list_lock);
 	TAILQ_FOREACH(vdev, &pdev->vdev_list, vdev_list_elem) {
 		TAILQ_FOREACH(peer, &vdev->peer_list, peer_list_elem) {
-			if (peer)
+			if (peer && !peer->bss_peer)
 				dp_wdi_event_handler(
 					WDI_EVENT_FLUSH_RATE_STATS_REQ,
 					pdev->soc, peer->wlanstats_ctx,