Commit Graph

273 Commits

Author SHA1 Message Date
Chaoli Zhou
af5cedc79e qcacld-3.0: Add CONFIG_MOBILE_ROUTER for Genoa
Disable/enable some feature based on CONFIG_MOBILE_ROUTER,
which should be as same as hasting & rome

Change-Id: Ib0ba2d51e6dc869477226ae452e4439c255d1ee5
CRs-Fixed: 2646429
2020-03-21 02:03:03 -07:00
Manjunathappa Prakash
9d37c64121 qcacld-3.0: Enable SMMU S1 for Lahaina platform
Enable IPA SMMU S1 translation feature flag for
Lahaina target.
asm/dma-iommu.h file is removed in latest 5.4 kernel,
resulting in include failure. Remove as it is unused
for version 5.4 and above.

Change-Id: Ie2147f2fc2debad4d700fae5414d1d3becb28f13
CRs-Fixed: 2638580
2020-03-19 01:35:53 -07:00
Vevek Venkatesan
02f5dfc5d7 qcacld-3.0: add pld_smmu_unmap support for BENGAL
Add support for pld_smmu_unmap and enable it for
BENGAL target.

Change-Id: I7f6d6f965b7664342bca29b49f05f8eb62737a0c
CRs-Fixed: 2642663
2020-03-18 15:37:21 -07:00
Jeff Johnson
b74a841d1c qcacld-3.0: Conditionally enable WEXT support
Currently CONFIG_WLAN_WEXT_SUPPORT_ENABLE is unconditionally enabled
in many defconfigs, including the default defconfig, but this leads to
build failures when WEXT is not configured in the Kernel. So update
the defconfigs to enable CONFIG_WLAN_WEXT_SUPPORT_ENABLE only when
CONFIG_WIRELESS_EXT is enabled in the Kernel.

Change-Id: Iecfd4e899c2b09c489547dd1a8ff70f71983853f
CRs-Fixed: 2620792
2020-03-10 02:01:20 -07:00
Mohit Khanna
09dec2d715 qcacld-3.0: Enable FEATURE_HAL_DELAYED_REG_WRITE
Enable feature to do delayed register writes in HAL for lithium
products.

Change-Id: I5158b10b0fecc125e2ece42987965dd5684d3c34
CRs-Fixed: 2631227
2020-03-09 20:57:31 -07:00
Liangwei Dong
75698c2414 qcacld-3.0: Fix Beacon report invalid channel issue
11K test bed sends beacon report request for channel 48 with
invalid reg class 0 to DUT. So, driver gets chan_freq 0 by API
wlan_reg_chan_opclass_to_freq because of reg class 0.
To get correct channel freq for beacon report request, use new
API wlan_reg_country_chan_opclass_to_freq to
get freq from country operating class table firstly by (opclass,
channel number) pair. When the lookup is failed, the API will
try to look up by chan number only.

Change-Id: I5b56804c20d6fade17b2acaa0f7c261feebd6370
CRs-Fixed: 2603989
2020-03-03 22:19:39 -08:00
Vevek Venkatesan
2469325bd1 qcacld-3.0: disable SMMU S1 for few helium targets
Excluding few Helium based targets from SMMU S1
feature enablement  which are not having the
Kernel support for SMMU S1.

Change-Id: I46c17749150f00113137c546d7e14964860aa2e3
CRs-Fixed: 2633675
2020-03-03 22:19:24 -08:00
Dundi Raviteja
0cb22dae74 qcacld-3.0: Enable packet capture feature
Add the config to enable packet capture feature.

Change-Id: I69d4f7086202c5fd64074029abecc8140a6da907
CRs-Fixed: 2633919
2020-03-03 18:53:31 -08:00
Rakesh Pillai
1bd6962198 qcacld-3.0: Enable rx descriptor sanity WAR
Enable the rx descriptor sanity check in
the Kbuild.

Change-Id: I0f37ac1bbcbc5d148f28469c0ef1f9b090083c88
CRs-Fixed: 2633037
2020-03-03 18:53:07 -08:00
bings
d929ee2159 qcacld-3.0: Add Kbuild options for DCS
1) Add optional code compilation for Dynamic ACS(DCS) module.
2) Add Kbuild option(CONFIG_DCS) to control whether DCS code
   should be compiled.

Change-Id: Ia594db21fef43a8ef6e90afb4191f50ba42f74b7
CRs-Fixed: 2604529
2020-02-28 05:55:55 -08:00
Chaoli Zhou
d073e22f73 qcacld-3.0: Use same DEBUG config for Genoa
Make Genoa follow up the same DEBUG configuration
with Hasting/Rome.

Change-Id: I94e3a8b4e44b6675d2656e5966f560460886111e
2020-02-26 16:33:37 -08:00
Abhinav Kumar
406cfe0ee4 qcacld-3.0: Introduce a new compile time flag and INI
Introduce a compile time flag SAE_SINGLE_PMK and new INI
"sae_same_pmk_feature_enabled" to enable/disable SAE
Roaming with same PMK/PMKID feature.

Change-Id: Ifca8ec8bcf6e9a2f1d8409b35390bfee0033bd30
CRs-Fixed: 2616025
2020-02-23 14:43:08 -08:00
Nirav Shah
eaa8a1fefd qcacld-3.0: Enable Shadow register from PCIe block in QCN7605
QCN7605 has 2 set of shadow registers, WCSS block and PCIe block.
As PCIe shadow register are at power domain boundary, enabling
PCIe shadow register for QCN7605.
Also PCIe shadow register falls below 512KB, no need to use register
windowing which is required to get it access from IPA FW.

Change-Id: Ic0bbc2de4c3e32c4fb6453d273f0f29d19f3537c
CRs-Fixed: 2623851
2020-02-21 03:13:38 -08:00
Zhang Qian
2b120fafb7 qcacld-3.0: Clear CONFIG_CLD_HL_SDIO_CORE
Disable CONFIG_CLD_HL_SDIO when CONFIG_ROME_IF is snoc.

Change-Id: I46b24782bf5a9d8cf2fbd63d633963f80c149e03
CRs-Fixed: 2624588
2020-02-19 23:40:19 -08:00
Vevek Venkatesan
e8723d77a2 qcacld-3.0: enable SMMU S1 and METERING Features in IPA
Enable SMMU_S1 and METERING Features in IPA for all the
Helium based Adrastea targets, by default.

Change-Id: I2cefe6f137415f22f2005a1c6f2d29d23fe08fea
CRs-Fixed: 2624096
2020-02-19 17:27:01 -08:00
Nisha Menon
ce65875d4a qcacld-3.0: Enable MCL feature flag MAX_ALLOC_PAGE_SIZE
This feature flag is used to set the page size to 4KB
for MCL and to use the max_alloc_size config ini param
for page size in the WIN specific code.

The page size is used to allocate link descriptor pages
for the WBM idle link ring instead of the desc bank
contiguous memory allocations.

Change-Id: I9ff575efc475473654cb4b66a95285c779599b24
CRs-Fixed: 2612385
2020-02-15 00:31:41 -08:00
Vevek Venkatesan
6f854c03d4 qcacld-3.0: enable custom dscp-to-up map feature
Enable custom DSCP-to-UP map table feature for
Hastings targets.

Change-Id: I4936bd62c9b4f6dfc917471226811f3fb5eb04af
CRs-Fixed: 2621305
2020-02-14 23:08:54 -08:00
Manjunathappa Prakash
a3d85a9a4e qcacld-3.0: Add compile time flag for FISA feature
Add compilation flag for FISA and enable it for QCA6490 chip

Change-Id: I7e0e00a764881c44bcb56ca3916e8b2fbee33921
CRs-Fixed: 2600268
2020-02-12 11:56:35 -08:00
Vevek Venkatesan
656edfa1f8 qcacld-3.0: add support to customize dscp-to-up map table
Add support to customize DSCP-to-UP map table and send the
customized map values to FW to update its corresponding
map table.

Change-Id: Ibe9704a90468c898dd2e60fdf83a271152f654ce
CRs-Fixed: 2616247
2020-02-06 22:44:57 -08:00
Alok Kumar
5b1cf615b6 qcacld-3.0: Add Kbuild configuration for QCA6750
Add Kbuild configuration for QCA6750

Change-Id: Ic196a4ea23cd637734412788f8463e3dd6f43c60
CRs-Fixed: 2603029
2020-02-06 07:10:56 -08:00
Ashish Kumar Dhanotiya
92a6a75a8b qcacld-3.0: Add feature flag for SAR safety feature
Add support to featurize SAR safety feature.

Change-Id: I21695ec3f9dca9da6f02eb7a1435366943a8a621
CRs-Fixed: 2612950
2020-02-05 11:38:52 +05:30
Govind Singh
8302d1bcd2 qcacld-3.0: Enable FTM time sync feature
Add the config to enable FTM time sync feature.

Change-Id: Ia157ad6277c8755bb80d6b81d41c2e1f74d09662
CRs-Fixed: 2615281
2020-02-04 17:18:10 -08:00
Pankaj Singh
1c188ac710 qcacld-3.0: Add support for WLAN thermal mitigation
As part of new requirement WLAN subsystem needs to perform thermal
mitigation action as per the thermal state of the device. The
wifi hal sends vendor command QCA_NL80211_VENDOR_SUBCMD_THERMAL_CMD
with the thermal level parameter and wlan host performs the required
appropriate action. wlan host driver maps the thermal level to
corresponding duty cycle off percent value and duty cycle value,
send WMI_THERM_THROT_SET_CONF_CMDID cmd to FW.

Make changes to perform vendor command handling, mapping thermal level
to duty cycle value and communicating the thermal information to FW

change-ID: Ib2152bd4349786d1624eca480790e772414f9df6
CRs-Fixed: 2613529
2020-01-31 11:21:51 -08:00
Karthik Kantamneni
d92f7dc415 qcacld-3.0: Disable PM_QOS feature in WHUNT config
Disable CLD_PM_QOS feature as it is not supported in WHUNT kernel

Change-Id: Ie365739559a78377083f6eebaad2f1a7384437d6
CRs-Fixed: 2611911
2020-01-29 06:01:15 -08:00
Venkata Sharath Chandra Manchala
0d0ef55749 qcacld-3.0: Provide soc objmgr to hif
Pass soc objmgr from hdd context to hif context
to retrieve INI parameters to be used in hif
layer.

Change-Id: I0ad4573fecba0fc78968145394683057d09da312
CRs-Fixed: 2598759
2020-01-27 15:42:46 -08:00
Nisha Menon
cda811c37b qcacld-3.0: Enable MCL feature flag RXDMA_ERR_PKT_DROP
If the flag is enabled drop the packet if msdu_done bit
is not set while processing rxdma err frames. This is
not expected while reaping WBM RX release ring.

Change-Id: Ic8a09ba5a6952510e82a209d6ef609343a9bc09a
CRs-Fixed: 2608661
2020-01-24 02:30:20 -08:00
Vevek Venkatesan
07baef36ca qcacld-3.0: Enabling METERING Feature for BENGAL
Enable CONFIG_QCACLD_FEATURE_METERING Feature for BENGAL
in default_defconfig

Change-Id: If294665531b0aa9eb2c54e19dec82e1d9353ed8c
CRs-Fixed: 2604232
2020-01-16 15:47:21 -08:00
Jianmin Zhu
e986417f5a qcacld-3.0: Unknown symbol wlan_set_vdev_crypto_prarams_from_ie
Fix insmod Genoa wlan module failure for:
wlan: Unknown symbol wlan_set_vdev_crypto_prarams_from_ie.

wlan_set_vdev_crypto_prarams_from_ie is defined in
wlan_crypto_global_api.c

UMAC_CRYPTO_OBJS := $(UMAC_CRYPTO_CORE_DIR)/
wlan_crypto_global_api.o \

ifeq ($(CONFIG_CRYPTO_COMPONENT), y)
OBJS +=		$(UMAC_CRYPTO_OBJS)
endif

The crypto component is always required after convergence
between WIN/MCC, hence just unconditonally set
CONFIG_CRYPTO_COMPONENT := y in Kbuild.
Remove CONFIG_CRYPTO_COMPONENT := y in defconfig of each wifi
chip: default_defconfig, qca6174_defconfig, qca6390_defconfig.

Change-Id: Id0abe80673d59d9274401f1304b5ce1d906624eb
CRs-Fixed: 2596124
2020-01-08 15:46:44 -08:00
Yue Ma
a545a92201 qcacld-3.0: Enable CONFIG_CRYPTO_COMPONENT for Genoa
CONFIG_CRYPTO_COMPONENT is supposed to be enabled for all devices,
so enable it for Genoa as well.

Change-Id: Icf37a9052c329e362460342fe44d8fe70c5bb1ed
CRs-fixed: 2597797
2020-01-08 11:29:54 -08:00
Karthik Kantamneni
af0b9ec3c8 qcacld-3.0: Enable Bus Bandwidth feature in WHUNT config
Enable DP Bus Bandwidth feature in WHUNT config, this helps to
execute and detect issues in Bus Bandwidth feature code path.

Change-Id: Id4376236b77661519667c40c427c50af436a9dc2
CRs-Fixed: 2597300
2020-01-07 04:38:19 -08:00
Vevek Venkatesan
f856395465 qcacld-3.0: Enable SMMU S1 TRANSLATION for BENGAL
Enable SMMU S1 TRANSLATION flag for BENGAL.

Change-Id: I3eee86a7e7916146906e7cbda9b80fed532aa2aa
CRs-Fixed: 2595375
2020-01-06 12:18:50 -08:00
Tingting Lin
ac2116799f qcacld-3.0: Enable mib stats feature
Add and enable mib stats feature in
qca6390_defconfig.

Change-Id: I6b83bfc6168f773cda252cceb4c3dae754421474
CRs-Fixed: 2592865
2020-01-02 06:43:49 -08:00
Tingting Lin
3c04146cb6 qcacld-3.0: Enable mib stats in genoa
Enable mib stats feature in qcn7605_defconfig.

Change-Id: Iec76d1403b06e415b97a5e2bc58896b6e9d5ef2a
CRs-Fixed: 2594406
2020-01-02 06:43:33 -08:00
Yu Ouyang
b08f9f47b7 qcacld-3.0: Enable WPA3 SAE feature for ROME SDIO
Enalbe WPA3 SAE feature in config file for ROME SDIO.

Change-Id: I894dd6a89be335c3e130d663a30734cfa06ac4e9
CRs-Fixed: 2593159
2020-01-01 23:37:34 -08:00
Paul Zhang
e4b382eb03 qcacld-3.0: Fix compiling issue when disable CONFIG_WLAN_DEBUGFS
When CONFIG_WLAN_DEBUGFS is disabled, source files depending on debugfs
will not be compiled.

CRs-Fixed: 2589891
Change-Id: I43496fe1fffc83c26d810b2a06b8c0f45edfc1c8
2019-12-27 20:00:38 -08:00
Chaoli Zhou
b8c766afd3 qcacld-3.0: Fix PKTLOG failure with Genoa
The PKTLOG function broken with Genoa caused by
2857937, so add the needed macro back to avoid
crash issue while PKTLOG enable.

Change-Id: I3f9621830dcad415868fdee5fbeef8fdb86604b0
2019-12-26 10:17:03 -08:00
bings
eb28e19903 qcacld-3.0: Modify dfs phyerror pulse dur to increase radar detection rate
When radar is injected at +/-30MHz separation from center frequency
in VHT 80MHz mode incorrect pulse duration is reported in the radar
summary reports and lead to decreased radar probablity detection.

Fix the issue by capturing pulses with such characteristics and
modify them to fit within the valid phyerror pulse duration range.

Change-Id: Ic6314a372d6909448fbe4eb694c41736d1719712
CRs-Fixed: 2577632
2019-12-18 01:21:45 -08:00
Hangtian Zhu
274e08b80a qcacld-3.0: Fix compile issues when some features are disabled
Fix compile issues when some features are disabled, the features are:
BUILD_DEBUG_VERSION
CONFIG_CP_STATS
CONFIG_HOST_OPCLASS
CONFIG_FEATURE_ROAM_DEBUG
There are some other features depends on each other, so enabled features to
qcs40x.snoc.perf_defconfig, the features are:
CONFIG_WLAN_FEATURE_FILS
CONFIG_WMI_ROAM_SUPPORT
CONFIG_WMI_STA_SUPPORT
CONFIG_REG_CLIENT
CONFIG_WLAN_FEATURE_DP_BUS_BANDWIDTH
CONFIG_WMI_CONCURRENCY_SUPPORT
CONFIG_LL_DP_SUPPORT

Change-Id: I6fa1eacb79576a955e593dbb9ac52083742275e3
CRs-Fixed: 2354496
2019-12-16 06:35:16 -08:00
Li Feng
8aa81b668b qcacld-3.0: Enable blacklist manager on qca6390
Enable blacklist manager on qca6390 to handle rssi assoc rej
in the assoc rsp.

Change-Id: I7fcfaa2054790259651062480a7995bf0f6c9922
CRs-Fixed: 2569318
2019-12-13 14:11:14 -08:00
Nirav Shah
7d75434e39 qcacld-3.0: Add credit tracking for HL Data Path
Add credit tracking for HL Data Path in DPTRACE.
Also update proto_bitmap to dynamically enable/disable
credit tracking.

Change-Id: Idd9216b634586f3a81c2194ea4bd2122a472154a
CRs-Fixed: 2574053
2019-12-13 07:03:11 -08:00
Paul Zhang
faa929c2ce qcacld-3.0: Add support for timer based to capture tsf
Add configuration CONFIG_WLAN_SYNC_TSF_TIMER and macro
WLAN_FEATURE_TSF_TIMER_SYNC to capture and get the tsf
from firmware.

Change-Id: I62298791cbafed84f1d23f1a2ecb5c2835dcd137
CRs-Fixed: 2564860
2019-12-05 23:54:07 -08:00
bings
644362acb7 qcacld-3.0: Remove CONFIG_QCA_IBSS_SUPPORT for Rome
Remove CONFIG_QCA_IBSS_SUPPORT for Rome device

Change-Id: Ief8e538469014c0034e5a8fdf8d25939fc2c4362
CRs-Fixed: 2556723
2019-12-04 23:07:18 -08:00
Nirav Shah
fb9b1df409 qcacld-3.0: Add logic to bundle packets for HL
Add logic to queue and bundle packets before
giving it to scheduler to ensure predictive HTC
bundling for improvement in TX throughput.

Change-Id: Ib00135ca59b4c5f0f05edc93dca115bf17174a36
CRs-Fixed: 2561671
2019-12-01 17:40:55 -08:00
tinlin
9abd17fe45 qcacld-3.0: Add debugfs for MIB statistics
Define debugfs node in driver to
export MIB counters to user app.

Define macro WLAN_FEATURE_MIB_STATS for this
feature that gets MIB statistics from fw.

Change-Id: Icae8826309094d17e8f6d4503f617a3a7116d3c9
CRs-Fixed: 2548241
2019-12-01 17:39:59 -08:00
Sourav Mohapatra
2a67b0ed24 qcacld-3.0: Add driver command to request ANI level
The ANI level determines how well the device is coping with interference
in the wireless environment. Add support in the driver to query the ANI
level from the firmware and populate it for userspace entities to use.

Change-Id: I54934f670aa11737e11eca4d64e12f9dffb4f430
CRs-Fixed: 2554674
2019-11-26 05:30:13 -08:00
Alok Kumar
a6bdc6f28d qcacld-3.0: Add feature flag for DataStall
Add feature flag WLAN_SUPPORT_DATA_STALL to
support host datastall.

Change-Id: I263da2de9af1f2a1d17027601fc625c31d5ad76d
CRs-Fixed: 2564310
2019-11-26 02:14:14 -08:00
Venkata Sharath Chandra Manchala
06f1f1225b qcacld-3.0: Enable Force wake
Enable Force wake feature through Kbuild
to access address range greater than BAR+4K
at runtime.

Change-Id: Ibe3c3b9b765c256493b1d5f9258e462760d45dc6
CRs-Fixed: 2557978
2019-11-26 02:13:59 -08:00
Sandeep Puligilla
425a583863 qcacld-3.0: Kbuild change to enable SCAN priority algorithm
Kbuild change to enable SCAN priority channel list algorithm.

Change-Id: I2dc24dd22e19da6db516332ae14edf4bc0f8cce4
CRs-Fixed: 2568889
2019-11-24 22:34:32 -08:00
Guisen Yang
398679d975 qcacld-3.0: Change wlan defconfig to support cnss2 as dlkm
Tune the configure items to support cnss2 as dynamic loadable
kernel module.

Change-Id: I848f22fe54e1c8539422c7d0b3f0f2868ed5ead9
CRs-Fixed: 2546266
2019-11-22 04:11:42 -08:00
Jinwei Chen
230918fa0e qcacld-3.0: enable ENABLE_QDF_PTR_HASH_DEBUG macro for debugging
Enable ENABLE_QDF_PTR_HASH_DEBUG macro for Def build only to debug
qdf_ptr_hash related issue.

Change-Id: Ifa35afa716333d3bf777558e15d7b0295abce72c
CRs-Fixed: 2566025
2019-11-18 22:59:36 -08:00