Browse Source

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
Subrat Dash 4 years ago
parent
commit
589ec44aa3
2 changed files with 7 additions and 4 deletions
  1. 2 2
      dp/wifi3.0/dp_txrx_wds.c
  2. 5 2
      dp/wifi3.0/dp_txrx_wds.h

+ 2 - 2
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);
 	}
 }
 

+ 5 - 2
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;