qcacld-3.0: Add compilation flag of pkt capture mode for lithium

Add compilation flag of packet capture mode for lithium

Change-Id: I0a0cd43d3846761c18224c79068f2ec16179d735
CRs-Fixed: 2845616
This commit is contained in:
Vulupala Shashank Reddy
2020-11-19 15:49:09 +05:30
committed by snandini
parent 173dc9fbb9
commit f8d388d249
4 changed files with 23 additions and 3 deletions

2
Kbuild
View File

@@ -3273,6 +3273,8 @@ cppflags-$(CONFIG_FEATURE_WLAN_D0WOW) += -DFEATURE_WLAN_D0WOW
cppflags-$(CONFIG_WLAN_FEATURE_PKT_CAPTURE) += -DWLAN_FEATURE_PKT_CAPTURE cppflags-$(CONFIG_WLAN_FEATURE_PKT_CAPTURE) += -DWLAN_FEATURE_PKT_CAPTURE
cppflags-$(CONFIG_WLAN_FEATURE_PKT_CAPTURE_V2) += -DWLAN_FEATURE_PKT_CAPTURE_V2
cppflags-$(CONFIG_QCA_WIFI_NAPIER_EMULATION) += -DQCA_WIFI_NAPIER_EMULATION cppflags-$(CONFIG_QCA_WIFI_NAPIER_EMULATION) += -DQCA_WIFI_NAPIER_EMULATION
cppflags-$(CONFIG_SHADOW_V2) += -DCONFIG_SHADOW_V2 cppflags-$(CONFIG_SHADOW_V2) += -DCONFIG_SHADOW_V2
cppflags-$(CONFIG_QCA6290_HEADERS_DEF) += -DQCA6290_HEADERS_DEF cppflags-$(CONFIG_QCA6290_HEADERS_DEF) += -DQCA6290_HEADERS_DEF

View File

@@ -1222,6 +1222,13 @@ ifeq ($(CONFIG_ARCH_SDM660), y)
CONFIG_WLAN_FEATURE_PKT_CAPTURE := y CONFIG_WLAN_FEATURE_PKT_CAPTURE := y
endif endif
ifeq ($(CONFIG_CNSS_QCA6490), y)
ifeq ($(CONFIG_ARCH_LAHAINA), y)
CONFIG_WLAN_FEATURE_PKT_CAPTURE := y
CONFIG_WLAN_FEATURE_PKT_CAPTURE_V2 := y
endif
endif
#Enable RX RING buffers debug #Enable RX RING buffers debug
CONFIG_DEBUG_RX_RING_BUFFER := y CONFIG_DEBUG_RX_RING_BUFFER := y

View File

@@ -1,5 +1,5 @@
/* /*
* Copyright (c) 2012-2019 The Linux Foundation. All rights reserved. * Copyright (c) 2012-2019, 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
@@ -112,6 +112,17 @@ struct wireless_dev *wlan_hdd_add_virtual_intf(struct wiphy *wiphy,
#endif #endif
/**
* hdd_clean_up_interface() - clean up hdd interface
* @hdd_ctx: pointer to hdd context
* @adapter: pointer to adapter
*
* This function clean up hdd interface.
*
* Return: None
*/
void hdd_clean_up_interface(struct hdd_context *hdd_ctx,
struct hdd_adapter *adapter);
int wlan_hdd_del_virtual_intf(struct wiphy *wiphy, struct wireless_dev *wdev); int wlan_hdd_del_virtual_intf(struct wiphy *wiphy, struct wireless_dev *wdev);
int __wlan_hdd_del_virtual_intf(struct wiphy *wiphy, struct wireless_dev *wdev); int __wlan_hdd_del_virtual_intf(struct wiphy *wiphy, struct wireless_dev *wdev);

View File

@@ -899,8 +899,8 @@ struct wireless_dev *wlan_hdd_add_virtual_intf(struct wiphy *wiphy,
} }
#endif #endif
static void hdd_clean_up_interface(struct hdd_context *hdd_ctx, void hdd_clean_up_interface(struct hdd_context *hdd_ctx,
struct hdd_adapter *adapter) struct hdd_adapter *adapter)
{ {
wlan_hdd_release_intf_addr(hdd_ctx, wlan_hdd_release_intf_addr(hdd_ctx,
adapter->mac_addr.bytes); adapter->mac_addr.bytes);