qcacmn: Fix compilation issues when WDS feature is enabled

Fix compilation issues when CONFIG_FEATURE_WDS flag is enabled.

CRs-Fixed: 2899655
Change-Id: I65fcee6269ad41918bc8e968532249a3e4a4ad35
This commit is contained in:
Subrat Dash
2021-03-15 23:43:26 +05:30
committed by snandini
parent ecb559ab6f
commit 589ec44aa3
2 changed files with 7 additions and 4 deletions

View File

@@ -15,7 +15,7 @@
* TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR * TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
* PERFORMANCE OF THIS SOFTWARE. * PERFORMANCE OF THIS SOFTWARE.
*/ */
#include "../../../cmn_dev/fw_hdr/fw/htt.h" #include "htt.h"
#include "dp_peer.h" #include "dp_peer.h"
#include "hal_rx.h" #include "hal_rx.h"
#include "hal_api.h" #include "hal_api.h"
@@ -226,7 +226,7 @@ dp_rx_da_learn(struct dp_soc *soc,
ta_peer, ta_peer,
qdf_nbuf_data(nbuf), qdf_nbuf_data(nbuf),
CDP_TXRX_AST_TYPE_DA, CDP_TXRX_AST_TYPE_DA,
IEEE80211_NODE_F_WDS_HM); DP_AST_FLAGS_HM);
} }
} }

View File

@@ -1,6 +1,6 @@
/* /*
* Copyright (c) 2016-2020 The Linux Foundation. All rights reserved. * Copyright (c) 2016-2021 The Linux Foundation. All rights reserved.
* *
* Permission to use, copy, modify, and/or distribute this software for * Permission to use, copy, modify, and/or distribute this software for
* any purpose with or without fee is hereby granted, provided that the * any purpose with or without fee is hereby granted, provided that the
@@ -20,6 +20,9 @@
#ifndef _DP_TXRX_WDS_H_ #ifndef _DP_TXRX_WDS_H_
#define _DP_TXRX_WDS_H_ #define _DP_TXRX_WDS_H_
/* host managed flag */
#define DP_AST_FLAGS_HM 0x0020
/* WDS AST entry aging timer value */ /* WDS AST entry aging timer value */
#define DP_WDS_AST_AGING_TIMER_DEFAULT_MS 120000 #define DP_WDS_AST_AGING_TIMER_DEFAULT_MS 120000
#define DP_WDS_AST_AGING_TIMER_CNT \ #define DP_WDS_AST_AGING_TIMER_CNT \
@@ -137,7 +140,7 @@ dp_rx_wds_add_or_update_ast(struct dp_soc *soc, struct dp_peer *ta_peer,
{ {
struct dp_peer *sa_peer; struct dp_peer *sa_peer;
struct dp_ast_entry *ast; struct dp_ast_entry *ast;
uint32_t flags = IEEE80211_NODE_F_WDS_HM; uint32_t flags = DP_AST_FLAGS_HM;
uint32_t ret = 0; uint32_t ret = 0;
struct dp_neighbour_peer *neighbour_peer = NULL; struct dp_neighbour_peer *neighbour_peer = NULL;
struct dp_pdev *pdev = ta_peer->vdev->pdev; struct dp_pdev *pdev = ta_peer->vdev->pdev;