qcacmn: Add changes to store monitor interface flags

Currently STA+Mon mode is not supported in LPC case
as both mode uses monitor interface to capture
packets. So to distinguish between two different
monitor modes add changes to store monitor interface flags

Change-Id: Ied43fa50adac200bed47a4044245baca4d6cc84f
CRs-Fixed: 3739291
This commit is contained in:
Amit Mehta
2024-02-22 10:50:19 +05:30
committed by Ravindra Konda
parent 6e6bab3a81
commit 0d61faf9e7
3 changed files with 10 additions and 0 deletions

View File

@@ -1492,6 +1492,7 @@ enum cdp_pdev_param_type {
* @rx_pkt_tlv_size: RX packet TLV size
* @cdp_ast_indication_disable: AST indication disable
* @cdp_psoc_param_mlo_oper_mode: mlo operation mode
* @cdp_monitor_flag: monitor interface flags
*/
typedef union cdp_config_param_t {
/* peer params */
@@ -1609,6 +1610,7 @@ typedef union cdp_config_param_t {
uint16_t rx_pkt_tlv_size;
bool cdp_ast_indication_disable;
uint8_t cdp_psoc_param_mlo_oper_mode;
uint8_t cdp_monitor_flag;
} cdp_config_param_type;
/**
@@ -1782,6 +1784,7 @@ enum cdp_vdev_param_type {
* @CDP_CFG_GET_MLO_OPER_MODE: Get MLO operation mode
* @CDP_CFG_PEER_JITTER_STATS: Peer Jitter Stats
* @CDP_CONFIG_DP_DEBUG_LOG: set/get dp debug logging
* @CDP_MONITOR_FLAG: Monitor interface configuration
*/
enum cdp_psoc_param_type {
CDP_ENABLE_RATE_STATS,
@@ -1812,6 +1815,7 @@ enum cdp_psoc_param_type {
CDP_CFG_GET_MLO_OPER_MODE,
CDP_CFG_PEER_JITTER_STATS,
CDP_CONFIG_DP_DEBUG_LOG,
CDP_MONITOR_FLAG,
};
#ifdef CONFIG_AP_PLATFORM

View File

@@ -9163,6 +9163,10 @@ dp_set_psoc_param(struct cdp_soc_t *cdp_soc,
case CDP_CONFIG_DP_DEBUG_LOG:
soc->dp_debug_log_en = val.cdp_psoc_param_dp_debug_log;
break;
case CDP_MONITOR_FLAG:
soc->mon_flags = val.cdp_monitor_flag;
dp_info("monior interface flags: 0x%x", soc->mon_flags);
break;
default:
break;
}

View File

@@ -3261,6 +3261,8 @@ struct dp_soc {
#ifdef DP_RX_PEEK_MSDU_DONE_WAR
struct dp_rx_msdu_done_fail_desc_list msdu_done_fail_desc_list;
#endif
/* monitor interface flags */
uint32_t mon_flags;
};
#ifdef IPA_OFFLOAD