qcacld-3.0: Add frequency to peer for Connectivity Logging

Introduce support to add frequency to peer in
order to enable Connectivity diag logging for
datapath related events

Change-Id: I634ddc0206530f1039a37fd60643877b2fdf7e87
CRs-Fixed: 3596250
This commit is contained in:
Vijay Raj
2023-08-23 05:37:09 -07:00
committed by Rahul Choudhary
orang tua 8242158f16
melakukan 94f55718b5
7 mengubah file dengan 66 tambahan dan 0 penghapusan

Melihat File

@@ -1198,6 +1198,19 @@ void
wlan_populate_vsie(struct wlan_objmgr_vdev *vdev,
struct wlan_diag_packet_info *data, bool is_tx);
/**
* wlan_cdp_set_peer_freq() - API to set frequency to dp peer
* @psoc: psoc pointer
* @peer_mac: Bssid of peer
* @freq: frequency(in MHz)
* @vdev_id: vdev id
*
* Return: None
*/
void
wlan_cdp_set_peer_freq(struct wlan_objmgr_psoc *psoc, uint8_t *peer_mac,
uint32_t freq, uint8_t vdev_id);
#ifdef WLAN_FEATURE_11BE_MLO
/**
* wlan_connectivity_mlo_setup_event() - Fill and send MLO setup data
@@ -1406,6 +1419,20 @@ wlan_convert_freq_to_diag_band(uint16_t ch_freq);
void
wlan_populate_vsie(struct wlan_objmgr_vdev *vdev,
struct wlan_diag_packet_info *data, bool is_tx);
/**
* wlan_cdp_set_peer_freq() - API to set frequency to dp peer
* @psoc: psoc pointer
* @peer_mac: Bssid of peer
* @freq: frequency(in MHz)
* @vdev_id: vdev id
*
* Return: None
*/
void
wlan_cdp_set_peer_freq(struct wlan_objmgr_psoc *psoc, uint8_t *peer_mac,
uint32_t freq, uint8_t vdev_id);
#else
static inline
void wlan_connectivity_logging_start(struct wlan_objmgr_psoc *psoc,
@@ -1450,6 +1477,11 @@ wlan_convert_freq_to_diag_band(uint16_t ch_freq)
return WLAN_INVALID_BAND;
}
static inline void
wlan_cdp_set_peer_freq(struct wlan_objmgr_psoc *psoc, uint8_t *peer_mac,
uint32_t freq, uint8_t vdev_id)
{}
static inline void
wlan_connectivity_sta_info_event(struct wlan_objmgr_psoc *psoc,
uint8_t vdev_id)

Melihat File

@@ -25,6 +25,7 @@
#include "wlan_mlme_main.h"
#include "wlan_mlo_mgr_sta.h"
#include "wlan_mlme_api.h"
#include "cdp_txrx_ctrl.h"
#ifdef WLAN_FEATURE_CONNECTIVITY_LOGGING
static struct wlan_connectivity_log_buf_data global_cl;
@@ -525,6 +526,20 @@ wlan_populate_mlo_mgmt_event_param(struct wlan_objmgr_vdev *vdev,
}
#endif
void
wlan_cdp_set_peer_freq(struct wlan_objmgr_psoc *psoc, uint8_t *peer_mac,
uint32_t freq, uint8_t vdev_id)
{
ol_txrx_soc_handle soc_txrx_handle;
cdp_config_param_type val = {0};
soc_txrx_handle = wlan_psoc_get_dp_handle(psoc);
val.cdp_peer_param_freq = freq;
cdp_txrx_set_peer_param(soc_txrx_handle, vdev_id, peer_mac,
CDP_CONFIG_PEER_FREQ, val);
}
void
wlan_connectivity_sta_info_event(struct wlan_objmgr_psoc *psoc, uint8_t vdev_id)
{