qcacmn: Fixes for compilation issues

- Fixes for compilation issues after enabling
  monitor 2.0 support.
- change copyright year for all files in the chain.

Change-Id: I885e257bd8ca83850656d8a1f408c1bc34920d7a
CRs-Fixed: 3086483
This commit is contained in:
Naga
2021-12-01 16:47:30 +05:30
committed by Madan Koyyalamudi
vanhempi 165f79e802
commit 7798784bc5
27 muutettua tiedostoa jossa 128 lisäystä ja 110 poistoa

Näytä tiedosto

@@ -1,6 +1,6 @@
/*
* Copyright (c) 2021 The Linux Foundation. All rights reserved.
* Copyright (c) 2021 Qualcomm Innovation Center, Inc. All rights reserved.
* Copyright (c) 2021,2022 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
@@ -23,6 +23,9 @@
#include "dp_be.h"
#include "dp_be_tx.h"
#include "dp_be_rx.h"
#ifdef QCA_MONITOR_2_0_SUPPORT
#include "dp_mon_2.0.h"
#endif
#include <hal_be_api.h>
/* Generic AST entry aging timer value */
@@ -73,6 +76,8 @@ qdf_size_t dp_get_context_size_be(enum dp_context_type context_type)
return sizeof(struct dp_vdev_be);
case DP_CONTEXT_TYPE_PEER:
return sizeof(struct dp_peer_be);
case DP_CONTEXT_TYPE_MON_PDEV:
return dp_get_mon_obj_be_size(DP_CONTEXT_TYPE_MON_PDEV);
default:
return 0;
}

Näytä tiedosto

@@ -1,6 +1,6 @@
/*
* Copyright (c) 2021 The Linux Foundation. All rights reserved.
* Copyright (c) 2021 Qualcomm Innovation Center, Inc. All rights reserved.
* Copyright (c) 2021,2022 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
@@ -26,6 +26,7 @@
#else
#include <dp_peer.h>
#endif
#include <dp_mon.h>
/* maximum number of entries in one page of secondary page table */
#define DP_CC_SPT_PAGE_MAX_ENTRIES 512
@@ -202,9 +203,6 @@ struct dp_soc_be {
struct dp_srng ppe2tcl_ring;
struct dp_srng ppe_release_ring;
#endif
#if !defined(DISABLE_MON_CONFIG)
struct dp_mon_soc_be *monitor_soc_be;
#endif
#ifdef WLAN_FEATURE_11BE_MLO
#ifdef WLAN_MLO_MULTI_CHIP
uint8_t mlo_enabled;
@@ -234,9 +232,6 @@ struct dp_soc_be {
*/
struct dp_pdev_be {
struct dp_pdev pdev;
#if !defined(DISABLE_MON_CONFIG)
struct dp_mon_pdev_be *monitor_pdev_be;
#endif
#ifdef WLAN_MLO_MULTI_CHIP
uint8_t mlo_link_id;
#endif
@@ -688,4 +683,30 @@ QDF_STATUS dp_txrx_set_vdev_param_be(struct dp_soc *soc,
enum cdp_vdev_param_type param,
cdp_config_param_type val);
/*
* dp_get_mon_obj_be_size: get monitor context size
* @context_type: context type
*
* return: size of context
*/
#ifdef QCA_MONITOR_2_0_SUPPORT
static inline qdf_size_t
dp_get_mon_obj_be_size(enum dp_context_type context_type)
{
switch (context_type) {
case DP_CONTEXT_TYPE_MON_PDEV:
return sizeof(struct dp_mon_pdev_be);
break;
default:
return 0;
}
}
#else
static inline qdf_size_t
dp_get_mon_obj_be_size(enum dp_context_type context_type)
{
return sizeof(struct dp_mon_pdev);
}
#endif
#endif