From 589ec44aa342112e40194cd1698f9a3748586151 Mon Sep 17 00:00:00 2001 From: Subrat Dash Date: Mon, 15 Mar 2021 23:43:26 +0530 Subject: [PATCH] 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 --- dp/wifi3.0/dp_txrx_wds.c | 4 ++-- dp/wifi3.0/dp_txrx_wds.h | 7 +++++-- 2 files changed, 7 insertions(+), 4 deletions(-) diff --git a/dp/wifi3.0/dp_txrx_wds.c b/dp/wifi3.0/dp_txrx_wds.c index c925774085..a12cbb040c 100644 --- a/dp/wifi3.0/dp_txrx_wds.c +++ b/dp/wifi3.0/dp_txrx_wds.c @@ -15,7 +15,7 @@ * TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR * PERFORMANCE OF THIS SOFTWARE. */ -#include "../../../cmn_dev/fw_hdr/fw/htt.h" +#include "htt.h" #include "dp_peer.h" #include "hal_rx.h" #include "hal_api.h" @@ -226,7 +226,7 @@ dp_rx_da_learn(struct dp_soc *soc, ta_peer, qdf_nbuf_data(nbuf), CDP_TXRX_AST_TYPE_DA, - IEEE80211_NODE_F_WDS_HM); + DP_AST_FLAGS_HM); } } diff --git a/dp/wifi3.0/dp_txrx_wds.h b/dp/wifi3.0/dp_txrx_wds.h index ad5e0fc2cf..5b66ca3ae8 100644 --- a/dp/wifi3.0/dp_txrx_wds.h +++ b/dp/wifi3.0/dp_txrx_wds.h @@ -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 * any purpose with or without fee is hereby granted, provided that the @@ -20,6 +20,9 @@ #ifndef _DP_TXRX_WDS_H_ #define _DP_TXRX_WDS_H_ +/* host managed flag */ +#define DP_AST_FLAGS_HM 0x0020 + /* WDS AST entry aging timer value */ #define DP_WDS_AST_AGING_TIMER_DEFAULT_MS 120000 #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_ast_entry *ast; - uint32_t flags = IEEE80211_NODE_F_WDS_HM; + uint32_t flags = DP_AST_FLAGS_HM; uint32_t ret = 0; struct dp_neighbour_peer *neighbour_peer = NULL; struct dp_pdev *pdev = ta_peer->vdev->pdev;