Przeglądaj źródła

qcacmn: Check peer_count for peer filtering

Check peer count to decide if peer filtering is required or not.
This is required to support peer filtering for full monitor mode.

Change-Id: Icb3c0fc834795dbbbfd3a7899b3b733409f5f70d
CRs-Fixed: 3372600
Nandha Kishore Easwaran 2 lat temu
rodzic
commit
10a1d54f1d
1 zmienionych plików z 3 dodań i 2 usunięć
  1. 3 2
      dp/wifi3.0/monitor/2.0/dp_tx_mon_2.0.c

+ 3 - 2
dp/wifi3.0/monitor/2.0/dp_tx_mon_2.0.c

@@ -1,6 +1,6 @@
 /*
  * Copyright (c) 2021, The Linux Foundation. All rights reserved.
- * Copyright (c) 2021-2022 Qualcomm Innovation Center, Inc. All rights reserved.
+ * Copyright (c) 2021-2023 Qualcomm Innovation Center, Inc. All rights reserved.
  *
  * Permission to use, copy, modify, and/or distribute this software for any
  * purpose with or without fee is hereby granted, provided that the above
@@ -852,7 +852,8 @@ dp_tx_lite_mon_filtering(struct dp_pdev *pdev,
 		mon_pdev_be->lite_mon_tx_config;
 	QDF_STATUS ret;
 
-	if (!dp_lite_mon_is_tx_enabled(mon_pdev))
+	if (!dp_lite_mon_is_tx_enabled(mon_pdev) &&
+	    !config->tx_config.peer_count)
 		return QDF_STATUS_SUCCESS;
 
 	/* PPDU level filtering */