qcacmn: Add changes to distinguish between LPC and STA+MON

Currently there is no way to distinguish between
Local Packet Capture and STA+Mon mode as both mode
uses same monitor interface. So to distinguish between
two mode in local_packet_capture enable case use
mon_flags which can be passed during monitor interface
add time. If "flags otherbss" is passed during
monitor interface add driver will consider current mode
as STA+MON mode, LPC otherwise.

Change-Id: I56a724697bb187d0b809b6c43c7b5bf4b7d15ca7
CRs-Fixed: 3739438
This commit is contained in:
Amit Mehta
2024-02-02 02:46:46 -08:00
committed by Ravindra Konda
parent cbca127f90
commit 03f346bc1e
5 changed files with 40 additions and 8 deletions

View File

@@ -4804,7 +4804,7 @@ static QDF_STATUS dp_vdev_attach_wifi3(struct cdp_soc_t *cdp_soc,
} else if (dp_soc_get_con_mode(soc) == QDF_GLOBAL_MISSION_MODE &&
soc->intr_mode == DP_INTR_MSI &&
wlan_op_mode_monitor == vdev->opmode &&
!wlan_cfg_get_local_pkt_capture(soc->wlan_cfg_ctx)) {
!dp_mon_mode_local_pkt_capture(soc)) {
/* Timer to reap status ring in mission mode */
dp_monitor_vdev_timer_start(soc);
}