提交图

30147 次代码提交

作者 SHA1 备注 提交日期
Rahul Gusain
59b19dff23 qcacld-3.0: Code refractor for ML debug id
Currently, in some API such as
"wlan_cfg80211_tdls_add_peer_mlo", when driver gets vdev, it is
MLO vdev, so it uses WLAN_MLO_MGR_ID ID, but when it tries to put
the vdev, since disconnection happens and mlo flag is cleared,
so it uses WLAN_OSIF_TDLS_ID ID which is non-ML vdev.
This causes release of vdev reference from different id for which
it never takes reference and result in crash.

To fix this, use same debug id throughout function. For that,
generalize the get_ml_vdev API by passing the debug id as
argument to the function.

Change-Id: I903185ec9b64cc67cc2e0c595ba88b7b0ca8ded2
CRs-Fixed: 3603012
2023-09-13 14:19:19 -07:00
Liangwei Dong
ef494324a1 qcacld-3.0: Skip force SCC check for inactive ML STA vdev
If ML STA vdev is in inactive connection table, do not get
the vdev's channel for force SCC check.

Change-Id: I206aa33461f299847b247e97ea0453186c362795
CRs-Fixed: 3609017
2023-09-13 14:19:13 -07:00
Aasir Rasheed
f8600e0afa qcacld-3.0: Update csa param for assoc and partner link
Revise the csa parameter for both assoc and partner
links within the context of mlo link information.

Change-Id: I6352ae3343f2f3c4641565a6c2b9c36981bcb821
CRs-Fixed: 3599452
2023-09-13 14:19:07 -07:00
Aasir Rasheed
8acd087678 qcacld-3.0: Implement handling of mlo standby csa
Implement handling of mlo sta standby csa event
and initiate the transmission of a link bss request
command tlv to the firmware for standby link.

Change-Id: I68b8260e716fc4e0fd0f991892f54d0547b6c831
CRs-Fixed: 3605777
2023-09-13 14:19:04 -07:00
Aasir Rasheed
ec829d6d7d qcacld-3.0: Incorporate check for ml param in csa event
Incorporate a validation step for mlo parameter
within the context of the csa event.

Change-Id: I813847fd0c3b460881fe3ab074663c2070d93c75
CRs-Fixed: 3599446
2023-09-13 14:19:02 -07:00
Aasir Rasheed
834c09632f qcacld-3.0: Fix sta info len and STA ctrl fields in Per-STA Profile
Currently, Host driver is not accounting STA info length within each STA
profile, and the STA control fields lacks the expected sub-element ID
and length structure.

This commit addresses these issues by correcting the STA info length and
adding two additional bytes for the STA control field.

Change-Id: I7e7b464e4f60349246b6e3b1d8a13843bff44142
CRs-Fixed: 3607158
2023-09-13 14:18:59 -07:00
Vinod Kumar Pirla
f6cc53fbaf qcacld-3.0: Allow channel change only if SAP is started
AP context in adapter will have existing beacon data of SAP
which will be created on SAP start BSS. If userspace requests
channel switch before start BSS then trying to access beacon data
in hdd_softap_set_channel_change() API might result in NULL pointer
dereference.

Check if SAP BSS is started on that link info before processing the
channel switch request.

CRs-Fixed: 3612796
Change-Id: I2d6aefb78914450551f59ee445d76da3dda69a16
2023-09-13 14:18:52 -07:00
Rahul Choudhary
9a7b096350 Release 5.2.1.79H
Release 5.2.1.79H

Change-Id: I85566541eaa97f504e25b34d9170d1de568ae103
CRs-Fixed: 774533
2023-09-12 23:34:28 -07:00
Rakesh Pillai
fcb4c977a8 qcacld-3.0: Skip FISA for small packets
Certain application, which send small packets with
critical info, are unable to process the FISA aggregated
UDP data.

Skip FISA aggregation for packets with UDP payload length
below 64 bytes.

Change-Id: I878f67688dd2b17cbd92322d8c51aedb4e7a5223
CRs-Fixed: 3613115
2023-09-12 23:34:27 -07:00
Sheenam Monga
67cee81bcd qcacld-3.0: Consider measurement duration in ms
Currently measurement duraton is converted to seconds
internally in host which needs to be processed
as provided by AP in ms without any change in units.

Change-Id: I414324d5477f7aecb435c73c8b85a0a26da97e0e
CRs-Fixed: 3609485
2023-09-12 23:34:22 -07:00
Rahul Choudhary
56e4e16c94 Release 5.2.1.79G
Release 5.2.1.79G

Change-Id: Ib9ae6f2a3f25a629d3fd3e6db52461e78bbff0b2
CRs-Fixed: 774533
2023-09-12 14:41:51 -07:00
Jia Ding
d4742a9ad0 qcacld-3.0: Properly pass is_2g_iface to IPA component
is_2g_iface is retrieved from policy_mgr component based on
new and existing connections, where IPA pipe selections are
properly determined.

Change-Id: I90c58f03621a3407e1ab0cfd519562da5069a344
CRs-Fixed: 3599449
2023-09-12 14:41:50 -07:00
Srinivas Girigowda
6cc267f6c2 qcacld-3.0: Remove monitor interface upon wifi off
Remove monitor interface upon wifi off.

Change-Id: Iea7f91a065da9d7a961a829c0a9c37544c045303
CRs-Fixed: 3610123
2023-09-12 14:41:44 -07:00
Jyoti Kumari
28659c5579 qcacld-3.0: Modify STORED_ACS_FREQ_TIMEOUT from 500ms to 5sec
During XPAN turn-on, two ACS request will come to driver, first
BT initiate the ACS and then hostapd. This is to get the channel
by BT before actual ACS is triggered. But both req should return
same freq if both are coming within 500ms.

Due to country code setting in hostapd during initial SAP turn
on, it causes 1sec delay to turn on SAP which results two
different ACS results and in some scenario it may take 5secs
also.

To avoid delay in SAP turn on, modify STORED_ACS_FREQ_TIMEOUT
from 500ms to 5sec

Change-Id: I7cac7b557a78faa00c6e97444c7a918b012eadb5
CRs-Fixed: 3607574
2023-09-12 14:41:39 -07:00
Guisen Yang
4c85a1d91e qcacld-3.0: Enable IPA P2P support when IPA is enabled
Enable the wlan IPA events for P2P GO/CLI mode in default config
file so that qca6490 can support this feature.

Change-Id: I0f79991f5bf93a489e713d05db5d1e1d06e87763
CRs-Fixed: 3598553
2023-09-12 14:41:33 -07:00
Lin Bai
c3000c8c66 qcacld-3.0: Replace magic number with enum type
Replace 0/1 with corresponding hdd_ba_mode type.

Change-Id: I638c81be0cd0b53f2db8351931abd54f80c5525c
CRs-Fixed: 3610890
2023-09-12 14:41:26 -07:00
Jia Ding
c1976f41a1 qcacld-3.0: Select IPA TX pipe based on connection details
This change is one part of patch series to address IPA TX pipe
selection on sdxpinn platform, which is attached with 11BE/WiFi-7
capable chipset. One of the typical user scenarios are the SBS/HBS
configuration supported by the WiFi chipset.

From WLAN point of view, a pipe stands for a pair of TX and TX
completion ring resources. Starting from DBS capable chipset on
SDX platforms, two pipes are allocated for IPA usage, which are the
primary pipe and the alternate pipe. By design, the primary pipe
is used for 5 GHz/6 GHz connection while the alternate pipe is
for 2 GHz connection. Due to different throughput requirements
between two bands and memory saving considerations, two pipes are
initialized with different ring sizes as well as number of buffers
available, where the primary pipe has larger ring sizes as well as
number of TX buffers.

Starting from 11be/WiFi-7 chipset, SBS/HBS features are supported.
Take SAP-SAP concurrencies for instance, SAP1 can be configured to
run with channel 36 on 5 GHz while SAP2 can be configured to run with
channel 149 on 5 GHz or even in the 6 GHz band. With legacy DBS solution,
both SAP1 and SAP2 will use the primary pipe, which in turns TX
starvations are observed on the SAP which has higher phyrate.

To resolve such TX starvation issue, this change is to properly
select TX pipes for interfaces that are possible to be run
on 2 GHz/5 GHz/6 GHz bands but with below considerations being
considered as of the implementation time.
a. 3 home channels are not possible.
b. at same time, only two bands are possible.
c. two 11be SAP concurrencies are not possible.
d. 11be 320 MHz is only possible for single STA or single SAP.

This means that at one time with a maximum of 4 interfaces,
there must be two interfaces with same frequency.

Hence this change properly selects the TX pipe between the
primary pipe and the alternate pipe for all concurrencies that are
supported.

Change-Id: I60453ce0dae5a67f1af9304beeebaab9189c6896
CRs-Fixed: 3599453
2023-09-12 14:41:20 -07:00
Abhinav Kumar
49c7a74dbf qcacld-3.0: Init channel load and statistics rrm caps
During rrm_initialize () set RRM cap for Channel Load
and statistics to enable by default. Same rrm capabilities
driver sends to AP in association request during connection.

Change-Id: I3a9d87b8bd8b28b84ccc3578fff2ad1c7ebd8a6e
CRs-Fixed: 3609838
2023-09-12 14:41:14 -07:00
Mohammed Ahmed
38a6b6bc2e qcacld-3.0: cld sun changes
Changes needed to build cld driver
on sun.

Change-Id: I3bbb0180b070a65364b6768f4e4fd8c4b3fbee4f
CRs-Fixed: 3601936
2023-09-12 14:41:08 -07:00
jinbao liu
5966672c5f qcacld-3.0: Fix a long time reporting max rx rate issue
Currently, driver reports rx rate according to the data
frames received. Driver reports max rx rate if there is
no rx data frame after association or roaming. However,
sometimes driver reports max rx rate for a long time
because of no rx data frame after association or roaming
in some cases. This change uses FW rate instead of max
rate if there is no data frame.

Change-Id: I48721d2ec2607f6bdb86ece0c15b3d51e0032650
CRs-Fixed: 3606163
2023-09-12 14:41:02 -07:00
Ashish Kumar Dhanotiya
b517feb9d9 qcacld-3.0: Do not filter MCC channel for LL_LT_SAP
Currently host driver filters out MCC channels for SAP
mode from the pcl, since LL_LT_SAP can operate in MCC,
so do not filter MCC channels for LL_LT_SAP.

Change-Id: If947a286a97203644b47f41bdb4881e00a25df34
CRs-Fixed: 3609868
2023-09-12 14:40:56 -07:00
Yu Tian
a7016840a6 qcacld-3.0: Change WMA wakeup event dump level
Change WMA wakeup event dump level to not output to console

CRs-Fixed: 3606123
Change-Id: I4898cba2fbea0cb05fc7edd8498af77957777ce1
2023-09-12 14:40:49 -07:00
Aditya Kodukula
f24545dc7c qcacld-3.0: Update cumulative mlo interface stats properly
The interface information as part of cumulative interface stats is
not updated properly before sending to userspace. So, update it
properly before sending to userspace.

CRs-Fixed: 3612067
Change-Id: Ic2e41d61191cc4ca187ebc94398025c56c5a341c
2023-09-12 14:40:43 -07:00
Jianmin Zhu
bcad2864be qcacld-3.0: Active ini he_max_ampdu_len
Active ini he_max_ampdu_len and change default value from 0 to 3.
Use min(ini,  he_max_ampdu_len from F/W band/MAC cap) as final
he_config.
Mdm platform need set different value to pass throughput KPI.

Change-Id: Ib0580a0e68b72b6b7cd02d327ba643cfd1508080
CRs-Fixed: 3609154
2023-09-12 14:40:37 -07:00
Aravind Kishore Sukla
28952dec4f qcacld-3.0: Add rf test mode sysfs functionality
Add support to configure rf_test_mode_enabled.

Change-Id: I6a42cb078549ecccc5f5c769b97de14fc6f1ee79
CRs-Fixed: 3581791
2023-09-12 14:40:31 -07:00
Srinivas Dasari
8ac466a6fb qcacld-3.0: Allow SAP to move to unsafe channel if ini allows
User may set the ini param g_sta_sap_scc_on_lte_coex_chan=1 if SAP
is allowed to come up on unsafe channels. Currently, this doesn't
cover the below case,
1. SAP is enabled on a 5 GHz channel in a non-DBS platform
2. Concurrent STA enabled and connected it to an AP that's in
   unsafe channel.
3. SAP doesn't move to the STA channel though the ini to enable
   force SCC(gWlanMccToSccSwitchMode) is set and it's a non-DBS
   platform as the target channel(STA channel) is unsafe channel.

Allow SAP to move to unsafe STA channel if the ini
g_sta_sap_scc_on_lte_coex_chan is set to true.

Change-Id: I3e2b8ae57e843a938e4799f473da87664dbabb85
CRs-Fixed: 3609503
2023-09-12 14:40:24 -07:00
Gururaj Pandurangi
c297e9d018 qcacld-3.0: Enable AMSDU support by default for STAUT
The STAUT should have AMSDU support enabled by default and
only be reset if user space requests for it. On contrary,
the testbed STA needs to disable AMSDU support by default.
Currently, a unit test command is being issued to FW via
reset EHT defaults that disables the global AMSDU flag in
FW and without another unit test command, AMSDU is kept
disabled. Remove the unit test command logic as sigma_dut
itself disables AMSDU through cli set command in reset
defaults. For STAUT, a user config is set to true in reset
defaults and cli set command in pre vdev start uses this
flag to enable AMSDU support by default.

Change-Id: If49cb137ac4e0354b68d8d3a1aeceae49c4863aa
CRs-Fixed: 3601076
2023-09-12 14:40:18 -07:00
Gururaj Pandurangi
faeed38706 qcacld-3.0: Reset BTM abridge flag for Cert cases
For BTM certification cases, FW is unable to roam to
testbed AP BSS due to scoring logic. Reset the BTM
abridge flag that is used to enable FW to select
candidates based on score.

Change-Id: I29b6e1b5dea969263eb263103c6d2c10d5047f20
CRs-Fixed: 3591574
2023-09-12 14:40:12 -07:00
Gururaj Pandurangi
aac4254e32 qcacld-3.0: Configure MCS 15 tx/rx and full state BA support
Add support to disable MCS 15 tx and rx as part of reset
EHT capabilities. Also, add support to configure full state
BA for buffer size 512.

Change-Id: I314fc7c14330166e5e1daf8a6d423ba66ed21738
CRs-Fixed: 3526185
2023-09-12 14:40:06 -07:00
jinbao liu
897250389d qcacld-3.0: Set the default BT Low RSSI Threshold to -65dbm
Currently the default value of gSetBtLowRssiThreshold is -80 for both
mobile and auto platforms. However, it should be -65 for mobile platforms.
This change modifies the default value of gSetBtLowRssiThreshold to -65.

Change-Id: Ib45e63984f8ce3bba0b4ae28c17e2e325e479a50
CRs-Fixed: 3599770
2023-09-12 14:40:00 -07:00
Deeksha Gupta
9c6c572a82 qcacld-3.0: Add CFG80211_11BE_BASIC to avoid compilation issue
Add CFG80211_11BE_BASIC to avoid compilation issue.

CRs-Fixed: 3610544
Change-Id: I6f16eb2be41537b12ae6ed42d76d6cb6ae501751
2023-09-12 14:39:54 -07:00
Rahul Choudhary
e1ae8dbfc4 Release 5.2.1.79F
Release 5.2.1.79F

Change-Id: Iccd8d908cf14b3f433ac0e762fd602927bd436de
CRs-Fixed: 774533
2023-09-11 15:50:04 -07:00
Abhinav Kumar
258b190861 qcacld-3.0: Fix channel load report invalid channel issue
As per the spec, the expectation is that in a given country
if the channel load is requested on a channel not present
in that country, STA should respond with incapable set in
the report.

Fix is to validate channel and op class present in channel
load request before processing channel load rrm request.

Change-Id: I6e282478cd41c9aca8f6c95c2dfde1466b678889
CRs-Fixed: 3603919
2023-09-11 15:50:04 -07:00
Rahul Choudhary
6dd7297346 Release 5.2.1.79E
Release 5.2.1.79E

Change-Id: I4bad1905814fc8e473eace67e8eb56b033d2c54a
CRs-Fixed: 774533
2023-09-11 07:02:14 -07:00
Vijay Raj
454a96b1bd qcacld-3.0: Add support for MLO specific data for RRM logging
Add support to add band info for Neighbor report request,
Neighbor request response, Beacon report request and
Beacon report response logging for MLO usecase.

Band info will indicate the band of the link involved
in MLO connection.

Change-Id: I758be63f085be46244f727a842806fb27660e8dd
CRs-Fixed: 3583958
2023-09-11 07:02:14 -07:00
Rahul Choudhary
ea99a8b1c9 Release 5.2.1.79D
Release 5.2.1.79D

Change-Id: Id739336dd3df1f5f4f7598fd1fad8254f800521b
CRs-Fixed: 774533
2023-09-11 03:38:34 -07:00
Will Huang
b79e45814b qcacld-3.0: Filter out MCC channel from PCL list for SAP
For SAP mode MCC is not allowed, but some SAP PCL table including SAP
current channel frequency which is allowed in current HW mode, and will
be selected with priority by policy_mgr_get_pref_force_scc_freq(), but
it will lead to MCC with existing non-movable connection.

Fixed by checking whether MCC with exist non-SAP connections and filter
out it from PCL list for SAP mode.

Change-Id: Ifdd1ca347db258aaa183466ecb1b44bbf5f37d0d
CRs-Fixed: 3543336
2023-09-11 03:38:33 -07:00
Aravind Kishore Sukla
a05c70ac06 qcacld-3.0: Configure CFG_T2LM_NEGOTIATION_SUPPORT as INI
As per customer requirement, to enable or disable t2lm support
configure CFG_T2LM_NEGOTIATION_SUPPORT as INI.

Change-Id: I8eb4c78a04bbaa5ce0c155d04ddb793d31b092ee
CRs-Fixed: 3608649
2023-09-11 03:38:27 -07:00
Rahul Choudhary
6cb64b5750 Release 5.2.1.79C
Release 5.2.1.79C

Change-Id: I0a1cbee1ffaf9b704c2eb375703aee473c16db0e
CRs-Fixed: 774533
2023-09-09 22:44:59 -07:00
Liangwei Dong
ea05a56755 qcacld-3.0: Configure RTSCTS profile for all link vdev for MLO
At present the RTSCTS profile is only configured for adapter->deflink
vdev in hdd_set_fw_params. Target expects the parameter set on
all vdev of MLO.
Move rtscts configure to hdd_vdev_configure_opmode_params for each
vdev created.

Change-Id: Ida5d5059b40d8ce6ebb01f6486181e86b177ae68
CRs-Fixed: 3608072
2023-09-09 22:44:59 -07:00
Vinod Kumar Myadam
20ee382151 qcacld-3.0: Fill eht operation info in big data stats
Currently if STA connected in 11BE mode, EHT Operation IE is not
getting updated in big data stats.

Add support to update EHT operation info while sending big data
stats to supplicant.

Change-Id: Ib61d69b3b5f2f902d16bdf0feaab450cecb2115b
CRs-Fixed: 3598646
2023-09-09 22:44:53 -07:00
Aditya Kodukula
3b1c11d9d2 qcacld-3.0: Fix nesting error for MLO link layer stats
Currently while nesting link layer interface and peer stats
sanity check for valid links is present after nesting. So,
move it before nesting to resolve nesting error.

Change-Id: Ica154337d2b9b2a05c5178c7833a7624e1ff8c27
CRs-Fixed: 3606263
2023-09-09 22:44:47 -07:00
Rahul Choudhary
7c0df6df9b Release 5.2.1.79B
Release 5.2.1.79B

Change-Id: I5bf439082658149e4d3d901e92cb104f8f9b6c7f
CRs-Fixed: 774533
2023-09-09 19:32:01 -07:00
Deeksha Gupta
c9f7d8c0b8 qcacld-3.0: Add sysfs for mlo related info
Add a sysfs for mlo related info in connect_info file.

CRs-Fixed: 3608769
Change-Id: I9aba1f0c9f70110bf5b7e7b6367c5f4912fa575d
2023-09-09 19:32:00 -07:00
Abhinav Kumar
fca34ab0c7 qcacld-3.0: Calculate max rx_clear_count in case of wide band scan
In case of wide band scan, FW sends cca_busy_subband_info tlvs
via WMI_CHAN_INFO_EVENTID, which contains value of rx_clear_count
for each 20 MHz freq space.

Instead of doing average host should use max rx_clear_count for
each 20 MHz freq space to calculate channel load more accurately.

Fix is to calculate max rx_clear_count coming via above
tlvs and update same to cp stats component.

Change-Id: Ie9c472156bec11f5325aec407c40b70a12aa5871
CRs-Fixed: 3601484
2023-09-09 19:31:55 -07:00
Jinwei Chen
9a1879b2e2 qcacld-3.0: Fix invalid dp_vdev accessing during FST update
scenario:
(1) DP FST update node with dp_vdev A has been inserted into
DP FST update list, but FST update work has not been queued due
runtime PM or it has not been scheduled for long time.
(2) dp vdev A get deleted after disconnection, but DP FST node with
dp vdev A still exists in list.
(3) new connection established, DP FST update work get scheduled,
invalid accessing to stale dp vdev A in
dp_fisa_rx_get_dp_intf_for_vdev() and hit panic.

solution:
(1) re-queue DP FST update work when runtime PM resume.
(2) validate dp vdev in dp_fisa_rx_fst_update_work() before
using it.

Change-Id: I7073a9d744806c33ddb5a7cbe9f7960890511eec
CRs-Fixed: 3607437
2023-09-09 19:31:49 -07:00
Vijay Raj
2ee8079a6b qcacld-3.0: Add support for MLO setup event logging
Introduce support for MLO setup event for connectivity
logging.

For MLO setup event bssid, band, link_id and status
are sent as part of logging.

Change-Id: Idd16b4ec7eeb245a5ce99b383bd40f169f579ebc
CRs-Fixed: 3605678
2023-09-09 19:31:43 -07:00
Aasir Rasheed
de4b1f31e9 qcacld-3.0: Add mlo context to get link info
Currently, Host driver uses vdev object to retrieve
mlo link info. However, there is a need to use
mlo dev context in case of standby link.

This change is to use mlo dev context for fetching
link info, As it is available for both psoc and vdev.

Change-Id: Idccf91eb191a9fc24108648b885d6e9c7832a051
CRs-Fixed: 3568936
2023-09-09 19:31:37 -07:00
Rahul Choudhary
194593a7af Release 5.2.1.79A
Release 5.2.1.79A

Change-Id: I9d931aa8875a20a81a1bf2de2969636265c03815
CRs-Fixed: 774533
2023-09-09 12:56:45 -07:00
Aasir Rasheed
a0d7a17208 qcacld-3.0: Add support for extended MLD Capabilities
Add support for Extended MLD Capabilities And Operations.
Change-Id: I5a2acad46fccfd224e68c4e61ddebded43a156ac
CRs-Fixed: 3571323
2023-09-09 12:56:45 -07:00