qcacmn: Only allow connectivity logging for STA mode

Currently connectivity logging is done for all opmode
but logging should be done only for STA mode.

So to fix the issue add check for opmode and skip
connectivity logging if opmode is not STA

Change-Id: Ie6175a02c8167f5ebfd81553837206640431f701
CRs-Fixed: 3515365
This commit is contained in:
Amit Mehta
2023-05-29 05:58:45 -07:00
committed by Rahul Choudhary
parent a0805fb4d0
commit bc2323fc08
7 changed files with 63 additions and 28 deletions

View File

@@ -748,6 +748,7 @@ enum wlan_op_subtype {
* @vdev_stats_id: Stats ID of the vdev
* @op_mode: Operation mode of the vdev
* @subtype: subtype of the vdev
* @qdf_opmode: Operation mode of the vdev
* @mld_mac_addr: MLD mac addr of the current vdev.
*/
struct cdp_vdev_info {
@@ -756,6 +757,7 @@ struct cdp_vdev_info {
uint8_t vdev_stats_id;
enum wlan_op_mode op_mode;
enum wlan_op_subtype subtype;
enum QDF_OPMODE qdf_opmode;
#ifdef WLAN_FEATURE_11BE_MLO
uint8_t *mld_mac_addr;
#endif