Commit Graph

303 Commits

Author SHA1 Message Date
Alan Chen
d463ed704c qcacld-3.0: Add a sysfs replacement for set_dp_trace
As part of WEXT replacement, replace set_dp_trace with a sysfs file.

file path: /sys/kernel/wifi/set_dp_trace

example: echo 1 1 1 > set_dp_trace

Change-Id: I3358ad4f483f66f643c4aa5538fd2c9172d8f077
CRs-Fixed: 2683643
2020-05-15 00:36:35 -07:00
Alan Chen
d9641d06ce qcacld-3.0: Add a sysfs replacement for txrx_stats
As part of WEXT replacement, replace txrx_stats with a sysfs file.

file path: /sys/class/net/wlanxx/txrx_stats
	wlanxx is adapter name

example: echo 1 1 > txrx_stats

Change-Id: I677111a48eb117044ac992616d468c1604b2bae0
CRs-Fixed: 2682369
2020-05-14 23:03:00 -07:00
Alan Chen
072b0b5daa qcacld-3.0: Add a sysfs replacement for txrx_fw_stats
As part of WEXT replacement, replace txrx_fw_stats with a sysfs file.

file path: /sys/class/net/wlanxx/txrx_fw_stats
	wlanxx is adapter name

example: echo 1 > txrx_fw_stats

Change-Id: Icad1f920ef01a4b86efca786da4873a361cd2dfc
CRs-Fixed: 2682352
2020-05-14 23:02:56 -07:00
Alan Chen
3264896675 qcacld-3.0: Add a sysfs replacement for setRadar
As part of WEXT replacement, replace setRadar with a sysfs file.

file path: /sys/class/net/wlanxx/set_radar
	wlanxx is adapter name

example: echo 1 > set_radar

Change-Id: I6451f506c1525dcfc48c988f965cc6dedf64b369
CRs-Fixed: 2680424
2020-05-14 23:02:51 -07:00
Alan Chen
e735aef7ac qcacld-3.0: Add a sysfs replacement for setMonChan
As part of WEXT replacement, replace setMonChan with a sysfs file.

file path: /sys/class/net/wlanxx/set_mon_chan
	wlanxx is adapter name

example: echo 1 1 > set_mon_chan

Change-Id: Id7d21b23129fdf6e37c99924ad91a19e3c03a0d2
CRs-Fixed: 2678501
2020-05-14 23:02:47 -07:00
Alan Chen
96d62585ee qcacld-3.0: Add a sysfs replacement for set_scan_cfg
As part of WEXT replacement, replace set_scan_cfg with a sysfs file.

file path: /sys/kernel/wifi/set_scan_cfg

example: echo 1 1 1 > set_scan_cfg

Change-Id: I0807a0fc7ab4e3963386f5f5979b039c291896d9
CRs-Fixed: 2678470
2020-05-14 21:34:58 -07:00
Utkarsh Bhatnagar
b0bf5ddb1b qcacld-3.0: Removed FEATURE_WLAN_RMC feature
Removed all the API realted to  FEATURE_WLAN_RMC
as well as related SME/WMA code.

Change-Id: Id471ccabcfd183fbcc7ff4e4953991f9e1551526
CRs-Fixed: 2686364
2020-05-14 17:49:11 -07:00
Bapiraju Alla
ba6b3520d3 qcacld-3.0: Add a sysfs replacement for get_sta_info
As part of WEXT replacement, replace get_sta_info with a sysfs file.

This feature can be controlled using configuration flag
CONFIG_WLAN_SYSFS_GET_STA_INFO

file path: /sys/class/net/wlanxx/get_sta_info
	where wlanxx is adapter name

example command: cat /sys/class/net/wlanxx/get_tdls_peers

Change-Id: Iac23cdc92a860279480ec9703697f22b2f0b5223
CRs-Fixed: 2682163
2020-05-14 11:20:42 -07:00
Aditya Kodukula
6e244ca777 qcacld-3.0: Add a sysfs replacement for wowlAddPtrn
As part of WEXT replacement, replace wowlAddPtrn with a sysfs file.

file path: /sys/class/net/wlanxx/wowl_add_ptrn
	where wlanxx is adapter name

example: echo 08:01:FFFFFFFFFFFF0000:FC > wowl_add_ptrn

Change-Id: I46d00fd8a15851cf2838f3b07a0ec2d1050d1087
CRs-Fixed: 2680490
2020-05-14 08:49:43 -07:00
Aditya Kodukula
326f4481d9 qcacld-3.0: Add a sysfs replacemnet for wow_ito
As part of WEXT replacement, replace wow_ito with a sysfs file.

file path: /sys/kernel/wifi/wow_ito

example: echo 1 > wow_ito

Change-Id: I11cf9acfc4282b910145efa527682ab1738eaaa0
CRs-Fixed: 2680332
2020-05-14 02:17:00 -07:00
Aditya Kodukula
5d77b1b715 qcacld-3.0: Add a sysfs replacement for scan_disable
As part of WEXT replacement, replace scan_disable with a sysfs file.

file path: /sys/kernel/wifi/scan_disable

example: echo 1 > scan_disable

Change-Id: Icaa7083d0f7b2cefd0f77cb7da7fe0d3d52d36c5
CRs-Fixed: 2676764
2020-05-14 02:16:55 -07:00
Bapiraju Alla
9171aece4a qcacld-3.0: Add a sysfs replacement for connect info
Add sysfs entry to get connection info instead of debugfs.

This feature can be controlled using configuration flag
CONFIG_WLAN_SYSFS_CONNECT_INFO

file path: /sys/class/net/wlanxx/connect_info
	where wlanxx is adapter name

example command: cat /sys/class/net/wlanxx/connect_info

Change-Id: Ibe183e4665cdbea66b83abd4732e7ef33843612d
CRs-Fixed: 2682856
2020-05-13 12:39:41 -07:00
Ashish Kumar Dhanotiya
229a7c7200 qcacld-3.0: Enable FW log parsing feature by default
Currently FEATURE_FW_LOG_PARSING is enabled if the
target is not lahina. With the new requirement it is
required to enable this feature by default.

To address above requirement enable this feature by default.

Change-Id: I2a1e944c7ae76b3747c73202f3b25fa880111d2f
CRs-Fixed: 2683325
2020-05-12 13:45:00 -07:00
Naman Padhiar
c5f417af3d qcacld-3.0: Enable 6GHz Band capability for WCN6750
Enable 6GHz Band capability flag in host driver for WCN6750.

Change-Id: Id17e64a283aeee6c09491c13a0a3aa5cb7d4f6bf
2020-05-10 03:03:00 -07:00
Alan Chen
e93ba0f5b1 qcacld-3.0: Add a sysfs replacement for reassoc
As part of WEXT replacement, replace reassoc with a sysfs file.

file path: /sys/class/net/wlanxx/reassoc
	where wlanxx is adapter name

example: echo 0 > reassoc

Change-Id: Ib4f3582bb8c164dd4f3ab739367520b9aeb0f5b9
CRs-Fixed: 2676629
2020-05-08 12:33:18 -07:00
Alan Chen
549fb49793 qcacld-3.0: Add a sysfs replacement for set_fw_mode_cfg
As part of WEXT replacement, replace set_fw_mode_cfg with a sysfs file.

file path: /sys/kernel/wifi/set_fw_mode_cfg

example: echo 1 1 > set_fw_mode_cfg

Change-Id: I851df440f9eb5f73798deaf3b4d0f128f6925f26
CRs-Fixed: 2675570
2020-05-08 12:33:13 -07:00
Jianmin Zhu
e9a56b5fb2 qcacld-3.0: Enable GENOA link layer stats
Enable GENOA link layer stats.

Change-Id: Ibee8b9456e5ee8d33f8fdc874c725e6f3c29807b
CRs-Fixed: 2674233
2020-05-04 21:27:49 -07:00
Nisha Menon
5cfa485d6b qcacld-3.0: Enable flag to check return val of deliver to stack
Enable DELIVERY_TO_STACK_STATUS_CHECK to check if return status
of deliver to stack function is a success. If not then drop the
nbufs and update the appropriate stat counters.

Change-Id: I0576016b66ada8696824855da1893ce0b18ee50e
CRs-Fixed: 2677414
2020-05-03 18:18:46 -07:00
Nirav Shah
851c4068eb qcacld-3.0: Enable inline sw_index update for QCN7605
Enable inline sw_index update for QCN7605 as download complete
interrupt is disabled.

Change-Id: Id769275fdbd28a3af6323f2d98de519f8cf1970b
CRs-Fixed: 2649842
2020-04-22 14:02:26 -07:00
Rakesh Pillai
a1b85ad256 qcacld-3.0: Enable flag for increased Tx descs in QCA6390
Enable the increased tx descriptors flag for qca6390.
Based on 1Tx:8Rx NAN test case experiment, it requires
increase in Tx descriptors to burst trafficto each Rx device.

Change-Id: I7978732fda7149bf4c6ffaf4ea29f4e5dd30fd95
CRs-Fixed: 2665503
2020-04-21 16:55:07 -07:00
Manjunathappa Prakash
4fd77c6d83 qcacld-3.0: Add flag for increased Tx descs
Add flag for increased Tx descs. And Enable the flag for qca6490.
Based on 1Tx:8Rx NAN test case experiment, it requires increase in
Tx descriptors to burst trafficto each Rx device.

Change-Id: I364ada1ee80afcaf3db3d50efa16a95054a4f7f4
CRs-Fixed: 2658549
2020-04-21 16:54:52 -07:00
Aditya Kodukula
f1c3387ee4 qcacld-3.0: Add a feature flag WLAN_POWER_DEBUG for power stats
Power stats is moved from debugfs to sysfs, and hence add the feature
flag WLAN_POWER_DEBUG such that this feature can be compiled out for
low memory foot print drivers.

Change-Id: Ic395f393580fcd59faa4e4676f67a39ff37bdd1a
CRs-Fixed: 2665089
2020-04-18 05:00:54 -07:00
Manjunathappa Prakash
2c10ce10dc qcacld-3.0: Add WAR to confirm WBM IDLE ring LSB write
On Lahaina platform it is seen that WBM IDLE ring init is failing,
Write to WBM_IDLE link ring LSB write is failing.
Add temporary WAR to do back to back write of WBM IDLE link ring
LSB address config register.

Change-Id: I8d6766e33a3912d197e543f0e7e252513e0253ab
CRs-Fixed: 2662295
2020-04-16 00:12:54 -07:00
Wu Gao
4933c905f5 qcacld-3.0: Enable CFR in Kbuild
This is part of adding channel frequency response. Enable CFR and
streamfs in Kbuild for QCA6490 only.

Change-Id: I7ef0eff10cfbe09e7fb3e14cefede0a352af5d9a
CRs-Fixed: 2637187
2020-04-13 21:13:41 -07:00
Nisha Menon
5a8ea4c3a3 qcacld-3.0: Enable MCL feature flag HIF_CPU_PERF_AFFINE_MASK
This feature is enabled in order to move the WLAN IRQs
to the gold cores only for defconfig builds. The IRQ
affinity hint is updated on boot up and when the cpu
hotplugs in.

Change-Id: I8014c181c8ba66875f13736638db91f6a5174f49
CRs-Fixed: 2656331
2020-04-09 05:20:14 -07:00
Madhvapathi Sriram
3e48ab869c qcacld-3.0: Enable PN check in host for qcn7605
qcn7605 firmware does not support full PN check.
Disable PN check offload to firmware and enable host check.

Change-Id: I4720c3fed80bda6626a62bd396e01ec88dc22dd3
CRs-Fixed: 2657576
2020-04-08 06:30:03 -07:00
gaurank kathpalia
82511bc630 qcacld-3.0: Add support for STA+NAN+NDI+NDI
Add support for four port concurrency for
STA+NAN discovery + NDI + NDI.

Change-Id: I7d6d3f482a61bef7f3d0a31eee3fdfe5e5e9d879
CRs-Fixed: 2633982
2020-04-01 10:46:22 -07:00
Naman Padhiar
ea010535c6 qcacld-3.0: Enable FEATURE_HAL_DELAYED_REG_WRITE based on target
Feature HAL_DELAYED_REG_WRITE for hastings family is enbale based
on MSM_PCI flag. But MSM_PCI flag could be set for MSM where
hastings is not connected.
To make this feature exclusive for hastings family enable it based
on target flag.

Change-Id: I9896b3c9a61a3192638ef8413a7eef12dbd6906c
2020-03-26 00:08:20 -07:00
Karthik Kantamneni
06a63cafdd qcacld-3.0: Moselle changes for WHUNT simulation support
Add PLD layer and config changes for simulating
IPCI virtual device in WHUNT.

Change-Id: Ia07ce0884f0e5ffe9b4d23977476c1789390e1c9
CRs-Fixed: 2648150
2020-03-25 15:25:13 -07:00
Nisha Menon
87339e1de9 qcacld-3.0: Support ipa stats quota for sta + sap offload
Support ipa stats quota for sta + sap offload in Lahaina+HSP.

Change-Id: I224cf0d1a3e924e02f7e8f2ea5affe0d0a0461a5
CRs-Fixed: 2648696
2020-03-25 11:34:02 -07:00
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