Commit Graph

695 Commitit

Tekijä SHA1 Viesti Päivämäärä
Liangwei Dong
b3b796b915 qcacld-3.0: Increase the max MLD dev context for SDXPINN
For SDXPINN to support 4 SAP concurrency, set
CONFIG_WLAN_UMAC_MLO_MAX_DEV = 4.

Change-Id: I3005efad37a28055492c8297ec21da8851faa34b
CRs-Fixed: 3442194
2023-03-29 01:12:55 -07:00
Karthik Kantamneni
f84c7cc43c qcacld-3.0: Add defconfig and Kbuild changes for WCN6450
Add wcn6450_defconfig configuration file and corresponding
Kbuild changes for WCN6450 platform.

Change-Id: I7189e718aac427f76a251284799ec2169b2495a8
CRs-Fixed: 3382931
2023-03-28 01:26:50 -07:00
Lin Bai
1c7d1fd54a qcacld-3.0: Enable FEATURE_OEM_DATA on sdxpinn
Enable CONFIG_FEATURE_OEM_DATA on sdxpinn target.

Change-Id: I494c68152e998983a4d6e4ced7bed7f0b2ba3907
CRs-Fixed: 3440053
2023-03-21 11:50:56 -07:00
Jinwei Chen
9b10ef6737 qcacld-3.0: enable SRNG pointer register writing history
enable SRNG pointer register writing history for DEF build.

Change-Id: I8426eb7f81cb47633dbe3d1c9efea541f9781a04
CRs-Fixed: 3438306
2023-03-21 07:50:34 -07:00
Aditya Kodukula
b4d34e5284 qcacld-3.0: Add sysfs replacement for dfsnol command
WEXT ioctls are no longer supported by the wlan driver.
So, add a sysfs replacement to setdfsnol and getdfsnol commands.

file path: sys/class/net/wlanxx/dfsnol
	where wlanxx is the adapter interface

usage:	echo arg_0 > /sys/class/net/wlanxx/dfsnol
	cat /sys/class/net/wlanxx/dfsnol

Change-Id: Ia8475b5c6ef39142def38eab0e777840af885c33
CRs-Fixed: 3431517
2023-03-20 13:16:48 -07:00
Mohammed Ahmed
5600f0123e qcacld-3.0: add hdd_dump_log_buffer output to sysfs
Current code doesn't allow output of hdd_dump_log_buffer to sysfs.
Fix this by adding sysfs output functionality.

Change-Id: I077c10e379e542ac99d8ebe01d68fe76a7470e39
CRs-Fixed: 3426193
2023-03-17 17:07:12 -07:00
jinbaoliu
9ed1e2f656 qcacld-3.0: Enlarge the array size of qdf_nbuf_history
Given the fact that the RX nbuf history array size is not enough,
sometimes the dump fails to capture the problematic buffer address
records, leading to failing to identify sources of buffers. This
change is to increase the array size of qdf_nbuf_history, which
makes it possible to record more RX history buffers to be traced.

Change-Id: I7982873daf6fafcb31e77d2aec380f1c00401ee5
CRs-Fixed: 3405585
2023-03-02 14:49:44 -08:00
Qun Zhang
29869c5fa8 qcacld-3.0: Support obtaining thermal level for non-offload case
Currently thermal level can be got from upper layer only
for FW thermal mgmt offload case. Per the requirement,
refine the code to support it for thermal non-offload
case as well.
Similar to offload thermal mitigation, add TX_OFF and
shutdown two states for non-offload case. Host will fully
stop TX traffic in TX_OFF state and target will trigger
shutdown when temperature come to the range of shutdown.
Per above requirement, add below four INI to configure
thermal temperature threshold value as need for TX off
and target shutdown.
gThermalTempMinLevel4
gThermalTempMaxLevel4
gThermalTempMinLevel5
gThermalTempMaxLevel5

Change-Id: I40d097ab8a5801052553ad7adedd38be475c7669
CRs-Fixed: 3413165
2023-03-02 04:17:22 -08:00
Dundi Raviteja
5b76448b72 qcacld-3.0: Properly handle the flags defined as modules
The current way in the driver to handle CONFIG_CNSS_UTILS=m and
CONFIG_WCNSS_MEM_PRE_ALLOC=m will not work if the flags are not
coming from kernel Kconfig directly (e.g. CNSS utils and prealloc
module sources are built out of kernel tree) since "cppflags-
$(CONFIG_FLAG) += -DCONFIG_FLAG" will not take effect if CONFIG_FLAG=m.
Fix it in a proper way to work even if config is defined as m.

Change-Id: I60c26b1e0d64277b733e534960a00afb5579fb43
CRs-Fixed: 3419566
2023-03-01 10:29:32 -08:00
Gangadhar Kavalastramath
6588df93b1 qcacld-3.0: Support modularization for auto qcn7605/qca6174
Add code to support modularizing CNSS_GENL and CNSS_UTILS
for auto qcn7605 and qca6174.

Change-Id: I69660cba4fa912f8fd6bb009d2c0d62f707c5ae7
CRs-Fixed: 3418583
2023-02-28 20:00:29 -08:00
Tiger Yu
9c48e118d7 qcacld-3.0: Enable delayed peer obj freed feature in the default config
Define the CONFIG_FEATURE_DELAYED_PEER_OBJ_DESTROY to enable peer obj
freed in a delayed work item to avoid any potential scheduling in the
atomic context.

It might invoke wakeup_source_unregister in the peer obj destroy handler
which happens in the atomic context to cause scheduling timeout issue.

Here is the call trace without enabling this flag:
Call trace:
 dump_backtrace.cfi_jt+0x0/0x8
 dump_stack_lvl+0x80/0xb8
 __schedule_bug+0x80/0x134
 __schedule+0x75c/0xacc
 schedule+0x110/0x204
 schedule_timeout+0x48/0x138
 wait_for_common+0x14c/0x314
 __synchronize_srcu+0x13c/0x1e4
 synchronize_srcu+0x2d4/0x414
 wakeup_source_unregister+0xd8/0x1c4
 mlme_peer_object_destroyed_notification+0x3c/0x1ac [kiwi_v2]
 wlan_objmgr_peer_release_ref+0x218/0x300 [kiwi_v2]
 dp_softap_inspect_tx_eap_pkt+0x24c/0x29c [kiwi_v2]
 dp_softap_notify_tx_compl_cbk+0xa4/0xa8 [kiwi_v2]
 dp_tx_comp_process_tx_status+0x28c/0xa90 [kiwi_v2]
 dp_tx_process_htt_completion_be+0x2f4/0x4f4 [kiwi_v2]
 dp_tx_comp_handler+0x5dc/0xaa8 [kiwi_v2]
 dp_service_srngs+0x114/0x4fc [kiwi_v2]
 hif_exec_poll+0xd8/0x3c0 [kiwi_v2]
 __napi_poll+0x64/0x268
 net_rx_action+0x11c/0x3a0
 _stext+0x16c/0x5e4
 __irq_exit_rcu+0x74/0x140
 handle_domain_irq+0xd4/0x154
 gic_handle_irq.33723+0x54/0x2bc
 call_on_irq_stack+0x40/0x70
 do_interrupt_handler+0x44/0xa0
 el1_interrupt+0x34/0x64
 el1h_64_irq_handler+0x1c/0x2c
 el1h_64_irq+0x7c/0x80
 cpuidle_enter_state+0x3b4/0x87c
 do_idle+0x300/0x5a0
 cpu_startup_entry+0x84/0x90
 kernel_init+0x0/0x36c
 start_kernel+0x0/0x61c
 start_kernel+0x500/0x61c
 __primary_switched+0xc4/0x7a7c
bad: scheduling from the idle thread!

Change-Id: Icee1ef30380418596711ef54a95f3286287e1cdd
CRs-Fixed: 3412052
2023-02-24 17:51:53 -08:00
Jianmin Zhu
748f7555ed qcacld-3.0: Get roam stats by vendor cmd
Cache roam information in wlan driver, when qca vendor
cmd of QCA_NL80211_VENDOR_SUBCMD_ROAM_STATS get roam
information, driver send all the cached information to
user space.
Extend WMI_ROAM_STATS_EVENTID event information for
requirement of:
1.Roam trigger related information, include timestamp,
  trigger reason, trigger condition, abort reason,
  scan type, roam status and fail reason.
2.Roam scan related information, include scan channel
  number, dwell type, max dwell time of each channel
  and total scan time.
3.all types of roam related frame information, include
  timestamp and successful or failed status for Preauth,
  Reassoc, EAPOL-M1/M2/M3/M4.

Change-Id: I2a694b7c1df8f5da09505f65c9c797be2177b398
CRs-Fixed: 3391601
2023-02-23 22:06:34 -08:00
Namita Nair
5e819e461c qcacld-3.0: Disable Optional wifi datapath feature
This change disables IPA offload and optional
wifi datapath feature. This change will be used
until kernel changes are merged.

Change-Id: Ib47d69ba8da2e1fa3f0a1bd05926bbf3d74f51e4
CRs-Fixed: 3401190
2023-02-23 05:37:24 -08:00
Wu Gao
733bdf147b qcacld-3.0: Correct config for ARCH_SDXBAAGHA
This is requirement change to correct config for ARCH_SDXBAAGHA.

Change-Id: Ie3da775b16b66dbf2ca82bebfe337c3c00e7d366
CRs-Fixed: 3406871
2023-02-17 05:08:16 -08:00
Paul Zhang
d7ffab2f50 qcacld-3.0: Enable WLAN_PRE_CAC for mobile router
Currently, for mobile router the DFS CAC feature is not working
because PRE_CAC_SUPPORT does not define.

Change-Id: I5eb335fe738de8438b8ec60f4d69875cb0a45d6e
CRs-Fixed: 3397747
2023-02-16 12:39:10 -08:00
Sheenam Monga
852ca5479e qcacld-3.0: Enable DCS for KIWI target
Channel switch is required whenever unwanted
heavy traffic is observed on SAP channel,
which can be handled by dynamic channel switch
feature. So, enable DCS feature for KIWI target.

Change-Id: Ic433b830f4e1355ae52e796769faec3560819d81
CRs-Fixed: 3402354
2023-02-11 09:20:48 -08:00
Yu Ouyang
32469752c6 qcacld-3.0: Enable FEATURE_STATION_INFO to handle get sta vendor cmd
Enable Genoa FEATURE_STATION_INFO to handle get station info over
vendor cmd QCA_NL80211_VENDOR_SUBCMD_GET_STATION.

Change-Id: I8d2a87f10057c3eaa407b60faed95d56788ede7e
CRs-Fixed: 3395891
2023-02-08 15:07:28 -08:00
Jianmin Zhu
589a32f847 qcacld-3.0: Enable dynamic puncture for DFS radar
Once the radar is found, identify the affected sub 20 MHz channels in the
current channel. From the  position(s) of the sub 20 MHz subchannels, find
the nearest valid puncturing pattern.
If a valid puncturing pattern is found, find the corresponding reduced
bandwidth new channel for the legacy ( <= 11AX) devices and send CSA. At
the end of CSA, do a vdev restart so that the 11BE devices see a new
puncturing pattern.
And If not found, then fallback to the default behavior of changing channel
using Random channel selection.

Change-Id: I41e6206f310722bc3dacc9ce8d024f679ff1af3e
CRs-Fixed: 3386022
2023-02-07 11:32:10 -08:00
Jia Ding
09e536f1ea qcacld-3.0: Disable FEATURE_WLAN_STA_AP_MODE_DFS_DISABLE
Don't enable FEATURE_WLAN_STA_AP_MODE_DFS_DISABLE on SDXPINN
platform, which is similar mobile router platform as SDXPRAIRIE
and SDXLEMUR.

Change-Id: Id6c90be0c7467d85c23cac55fb0e7091e6c4814d
CRs-Fixed: 3393286
2023-02-07 06:59:53 -08:00
Wu Gao
eccf9b40f9 qcacld-3.0: Add config for SDXBAAGHA
This change adds config for SDXBAAGHA.

Change-Id: I72ea691b42674d4d862aad86a34225fb2cc39cd8
CRs-Fixed: 3394045
2023-02-05 18:57:08 -08:00
Vulupala Shashank Reddy
5d291699ed qcacld-3.0: Enable packet capture compilation for parrot
Add check for CONFIG_ARCH_PARROT to enable packet capture
compilation for parrot.

Change-Id: I9eab0c37f5a4a849ed6e340bb8b26153030ad5b6
CRs-Fixed: 3377226
2023-02-05 12:40:30 -08:00
Vijay Raj
2d5ac65bf2 qcacld-3.0: remove WLAN_ENABLE_AGEIE_ON_SCAN_RESULTS macro
Remove WLAN_ENABLE_AGEIE_ON_SCAN_RESULTS macro as BSS age
is calculated using NL80211_BSS_SEEN_MS_AGO

Change-Id: I5473f9cea216df4968a43551875b0385605f616f
CRs-Fixed: 3391078
2023-01-31 02:35:08 -08:00
Mohammed Ahmed
e51f225258 qcacld-3.0: Change peach chip version number
Change chip version number from 2 to 1.

Change-Id: I1f424acd23937647b06666f9acf20884d64fb6e0
CRs-Fixed: 3386952
2023-01-24 19:12:26 -08:00
Rakesh Pillai
56c9e8a47c qcacld-3.0: Enable datapath config events history
Enable datapath config events history for debug builds.

Change-Id: If76a5592177ba844736a1ec01e82a8cbe20e408f
CRs-Fixed: 3379155
2023-01-19 02:53:59 -08:00
Aditya Kodukula
b561685fe2 qcacld-3.0: Add peach defconfig file
Add peach_defconfig configuration file for peach device.

Change-Id: I5be7e29c544defbef33a7bd8efcb28f9fbb17980
CRs-Fixed: 3360828
2023-01-13 23:20:21 -08:00
Vinod Kumar Myadam
096eb8ce07 qcacld-3.0: Add support to disable concurrency
Add feature flag to disable concurrency

1. STA+P2P+P2P
2. STA+SAP+P2P
3. SAP+P2P
4. P2P+P2P
5. SAP+NAN
6. STA+SAP
7. STA+NAN

Change-Id: Ibbdfa866e5cdefc036ea7f401997a8ab71e0629b
CRs-Fixed: 3345359
2023-01-13 23:20:16 -08:00
Aditya Kodukula
a0878dc902 qcacld-3.0: Remove unused config flag
Remove legacy unused config flag from defconfig files.

Change-Id: Iec3c760be7e6cf2cc789d6bd916642e922ae43a1
CRs-Fixed: 3380334
2023-01-13 20:23:14 -08:00
Zhaoyang Liu
e658de3e5e qcacld-3.0: enable defer reo queue descriptor free config for qca6390
Enable defer reo queue descriptor free feature for QCA6390.

Change-Id: I54adea9f73b38507795687a7c1507d59a4132b7a
CRs-Fixed: 3375631
2023-01-11 03:47:04 -08:00
Divyajyothi Goparaju
ee4ca3b005 qcacld-3.0: Optimize pdev set param command frequency
Currently wlan_mlme_configure_chain_mask API sends many
pdev set param commands separately to firmware.

Combine all pdev set params of wlan_mlme_configure_chain_mask
send to WMI to reduce number of transactions.
Also replace target wmi pdev params with host wmi
pdev params to fix existing broken layering
violation.

Change-Id: If0b7bce9a7c87d0f07e7a9f1d2cd80139f027308
CRs-Fixed: 3151438
2022-12-26 05:51:59 -08:00
VIJAY RAJ
453bc8d113 qcacld-3.0: Add vendor command for Green AP power save mode
Introducing vendor command for Green AP power save mode.

Change-Id: I23b5c12ed3ca3c3b134c59e6c93df72a9072b174
CRs-Fixed: 3265087
2022-12-26 03:23:18 -08:00
Rakesh Pillai
62942097b1 qcacld-3.0: Enable WAR for incorrect first_msdu flag indication
Enable the WAR to handle incorrect setting of first msdu
in mpdu flag for an mpdu with more than 6 msdu.

Change-Id: I7f7219828f2787b889a26092476bd76b97dee149
CRs-Fixed: 3363780
2022-12-20 11:56:23 -08:00
Tiger Yu
099f09d746 qcacld-3.0: Enable the PRE_CAC_SUPPORT for qca6390 by default
Enable the PRE_CAC_SUPPORT for qca6390 by default to fix the AP start
failure on the DFS channel.

Change-Id: Iacc513c6804c1b51dd6752a74423fb9d5e6a8194
CRs-Fixed: 3353106
2022-12-16 12:33:20 -08:00
Will Huang
9029c332a6 qcacld-3.0: Enable AFC feature for sdxlemur
Add AFC common include path to regulatory include path.
Enable AFC feature for sdxlemur.

Change-Id: I6b936b3f6443868f05cf86351bcf31d24d65bbbc
CRs-Fixed: 3154178
2022-12-14 11:57:13 -08:00
Jinwei Chen
ad9fd42f9f qcacld-3.0: enable TX completion ring desc sanity check
set CONFIG_DP_TX_COMP_RING_DESC_SANITY_CHECK for Def build to
enable TX completion ring desc sanity check.

Change-Id: Ia9cd28f6bcce234d0e7bf7f621cc33208479e899
CRs-Fixed: 3349744
2022-12-12 09:54:32 -08:00
Sheenam Monga
b24ee5cee9 qcacld-3.0: Enable FEATURE_SR and OBSS_PD for kiwi and 6490
Currently, FEATURE_SR and OBSS_PD is enabled for all targets
which is not required. Enable FEATURE_SR and OBSS_PD based on
Target type and only if 11AX is enabled to avoid compilation
issues.

Change-Id: I919faaff34bd73ad022a32853169ce096a6bb3cd
CRs-Fixed: 3336017
2022-12-06 22:19:19 -08:00
Guisen Yang
10d89a0494 qcacld-3.0: Define mobile_router for SA515M arch
Enable MOBILE_ROUTER for qca6174 and qca6595 when
CONFIG_ARCH_SA515M is enabled.

Change-Id: I26147521d9ad4c180a10589ec82319620d68435b
CRs-Fixed: 3339312
2022-11-23 10:52:15 -08:00
Vinod Kumar Pirla
4f491c277c qcacld-3.0: Increase the max MLD dev context for kiwi_v2
For kiwi_v2 target increase the value of max MLD dev contexts
to three. Define WLAN_UMAC_MLO_MAX_DEV with the new value in
kiwi_v2 defconfig file.

Change-Id: If9f86cbf5c98f69b9f56b0e4226fcf26f2b663c3
CRs-Fixed: 3337651
2022-11-19 07:43:53 -08:00
chunquan
dcbebde9e4 qcacld-3.0: Optimize wlan memory for kuno
Disable CFR/EPPING/NAN/more_tx_desc/OEM DATA and
RSSI_MONITOR/APF/P2P_DEBUG/P2P_LISTEN/SPECTAL_SCAN

Update wlan_hdd_debugfs_offload.c for APF compile error.

Change-Id: I8ede890b0b821cec5f03f2ede535f34d8883638d
CRs-Fixed: 3332742
2022-11-18 00:31:15 -08:00
Asutosh Mohapatra
6a753e7002 qcacld-3.0: Advertise unspecified SAR versions as default to userspace
Currently, if fw sends any SAR version that is not having mapping
in host, host advertises SAR version unspecified to userspace.
And if userspace sends set SAR V1 to host, host converts it
to SAR V2 only if fw is configured to SAR V2 or Sar V3.

Instead of SAR version unspecified advertise SAR V1 to userspace
and add changes in host to convert SAR V1 to SAR V2 if fw is not
configured to SAR V1.

Change-Id: Ifd862cf9107ae3bbac9a4336b5c2a03c1bd5bb98
CRs-Fixed: 3326711
2022-11-14 18:05:26 -08:00
Venkateswara Naralasetty
1b32411a89 qcacld-3.0: Enable HIF_LATENCY_PROFILE_ENABLE in debug mode
Enable NAPI schedule latency histogram stats in debug mode
which helps to debug the NAPI shcedule delay issues.

Change-Id: Idc58a5c2eab6fcb9ac55ab04cf083982d0aed003
CRs-Fixed: 3318049
2022-11-10 09:33:04 -08:00
Jia Ding
b36a07bb25 qcacld-3.0: Disable unneeded features on SDXPINN
arch=SDXPINN is a new MDM platform. Hence disable some
unneeded features for it.

Change-Id: I3f2162591a0d0d6278712c325c93fb13b200381e
CRs-Fixed: 3331499
2022-11-09 14:02:46 -08:00
Rakesh Pillai
400ac6a862 qcacld-3.0: Enable feature to drop packets from non-monitor PMAC
Enable the feature to drop the packets which are
arriving from PMAC on which monitor vdev is not running.

Change-Id: I2a5056f40e961102d01b5776577bd11a551a780d
CRs-Fixed: 3319409
2022-10-27 19:38:31 -07:00
Madhvapathi Sriram
39477b258e qcacld-3.0: Enable MCC quota and peer TX queue flush
MCC quota and peer TX queue flush are needed for
QCA6490 and WCN785x.

Change-Id: Ia89fa08937e159e5b09e3b10b3ae8cf5c92d1461
CRs-Fixed: 3316349
2022-10-21 21:30:53 -07:00
Yu Wang
4d9dfe08fd qcacld-3.0: Introduce CONFIG_WLAN_TRACE_HIDE_SSID
Introduce the feature to hide SSID in the logs.
To enable this feature, set CONFIG_WLAN_TRACE_HIDE_SSID to y.
If this feature is enabled, SSID 'my_ssid' will be printed as
'*' in the logs.

Change-Id: I97ef84ecdcbfd1b36b7874cfc30760f5fda5df14
CRs-Fixed: 3294520
2022-10-18 16:30:28 -07:00
Sheenam Monga
93c62a8893 qcacld-3.0: Compile spatial reuse files based on flag
Currently, files related to spatial reuse are compiled
based on 11AX feature flag instead of SRP feature flag
and OBSS_PD feature is disabled always.

Fix is to avoid dependency of spatial reuse compilation
on 11AX and conditionally compile spatial reuse based on
SRP feature flag and Enable OBSS_PD feature based on 11AX
feature flag.

Change-Id: Ia5a882f7c842c3c2979da9b73139c59af765d23c
CRs-Fixed: 3306965
2022-10-17 06:47:55 -07:00
Jia Ding
1b3e7ed476 qcacld-3.0: Fix WLAN_SYSFS componentization
Move 11be_rate sysfs entry implementation from HDD EHT main body
to separate source files and define WLAN_SYSFS_EHT_RATE feature
flag accordingly in Kbuild.

All sysfs implementations shall be built only if CONFIG_WLAN_SYSFS=y.
Hence correct dp_tx_delay_stats and the closing endif.

Change-Id: I84aa7fc34aeff932bb51800e70c4c3611bf0d627
CRs-Fixed: 3309689
2022-10-14 08:31:09 -07:00
Jia Ding
340d31f8c8 qcacld-3.0: Add configs for ARCH_SDXPINN
ARCH_SDXPINN uses kiwi_v2 profile and hence add ARCH_SDXPINN
specific configurations.

Change-Id: I32c9e44768e0fbd79bb906c2111b796f79942b5a
CRs-Fixed: 3308318
2022-10-11 20:48:27 -07:00
Rakesh Pillai
0481bbb9af qcacld-3.0: Enable the flag setting for NO_MSDU_START for kiwi
For kiwi target, there is no MSDU_START tlv, and hence
the tlv information has to be obtained based on MSDU_END.

Enable this flag, which is used for monitor mode frame
processing for KIWI target.

Change-Id: I160133a92b5f8b79573717b53f248c24935a67eb
CRs-Fixed: 3304764
2022-10-10 01:10:57 -07:00
Prakash Manjunathappa
8d0a10a421 qcacld-3.0: Move CONFIG_WLAN_FEATURE_DP_BUS_BANDWIDTH up in config
Other config CONFIG_WLAN_CLD_PM_QOS is dependent on
CONFIG_WLAN_FEATURE_DP_BUS_BANDWIDTH. Later enablement in config
file will fail to enable dependent config.

Change-Id: Ib0234505365d037d7b8fc50df639d93685d1781a
CRs-Fixed: 3305952
2022-10-08 03:33:31 -07:00
Sheenam Monga
dca999a564 qcacld-3.0: Add feature flag to support SR
Add WLAN_FEATURE_SR to enable/disable
Spatial Reuse support which is futher
dependent on 11AX support.

Change-Id: Iaa6f2a50c073eb279f967b6820bf5551bf100e3f
CRs-Fixed: 3301884
2022-10-01 11:35:06 -07:00