커밋 그래프

29865 커밋

작성자 SHA1 메시지 날짜
Rahul Choudhary
d1f1a03e82 Release 5.2.1.76S
Release 5.2.1.76S

Change-Id: Ib2aafbc738dd140d97d32e9675b3a80325085e2a
CRs-Fixed: 774533
2023-08-11 22:45:09 -07:00
Paul Zhang
ee98b703d8 qcacld-3.0: Race issue when link switch happens
For N-link, TDLS sends discovery request on different links
and starts timer to receive discovery response. There is one
race issue: if link switch happens before the timer stopped,
the timer count is reset because disconnection happens.

To resolve this issue, return if timer count is reset in
timer callback.

Change-Id: I7603de507f59dd988d70daad52fd4f4a2aa48d51
CRs-Fixed: 3586393
2023-08-11 22:45:09 -07:00
Rahul Choudhary
db46fed034 Release 5.2.1.76R
Release 5.2.1.76R

Change-Id: I16fc1eeb404cd81e00c7348d915a90903bb40ef0
CRs-Fixed: 774533
2023-08-11 19:23:57 -07:00
Vishal Miskin
268783d48e qcacld-3.0: Implement User defined OPM mode
Allow userspace to configure power save inactivity timeout and
opm speculative wake interval through vendor NL interface.
STA enters into power save mode(PM=1) after TX/RX inactivity of
time duration specified by QCA_WLAN_VENDOR_ATTR_CONFIG_PS_ITO
in milliseconds.

STA speculatively wakes up to look for buffered data by AP at
QCA_WLAN_VENDOR_ATTR_CONFIG_SPEC_WAKE_INTERVAL interval after
entering into power save. If configured zero, STA wakes up at
upcoming DTIM beacon.

Change-Id: I86cbd35d6f61ae600b4784bd95209fac62021941
CRs-Fixed: 3567042
2023-08-11 19:23:57 -07:00
Vishal Miskin
a9c42d3d8f qcacld-3.0: Move OPM parameters to PMO module
Store OPM parameters in PMO per vdev context.

Change-Id: I97b84171db434af0e43246d61416b37849728a6d
CRs-Fixed: 3567042
2023-08-11 19:23:51 -07:00
Vishal Miskin
6a7f372d75 qcacld-3.0: Add User defined OPM and g_wow_spec_wake_interval INI
Pass g_wow_spec_wake_interval along with g_wow_data_inactivity_timeout
to firmware through WMI which are used in WOW mode. These configs are
honored by firmware when User defined OPM is set.

Change-Id: I24306e8aa0b7b3f7fce9453f6a98d4922b7c3f62
CRs-Fixed: 3567042
2023-08-11 19:23:44 -07:00
Surya Prakash Sivaraj
adf275a6c6 qcacld-3.0: Fix wrong bandwidth upgrade for STA
STA connected to an 2.4 GHz BSS fails to get IP
due to VDEV restart triggered by bandwidth upgrade.
Wrong bandwidth upgrade happens upon the reception
of the first beacon after connection.

Beacon opmode change logic considers supported channel
width cap in the HT capability IE to retrieve the
bandwidth of 2.4 GHz BSS. However, the AP can support
both 20 & 40 MHz, so using this capability will lead to
wrong bandwidth upgrade.

Use the recommended channel width set from HT Info IE
to retrieve the proper bandwidth.

Change-Id: Icf07501a97f34125158ea643a9e5b848a5b18e3e
CRs-Fixed: 3585499
2023-08-11 19:23:38 -07:00
Pragaspathi Thilagaraj
94762fd248 qcacld-3.0: Enable TDLS on link vdev after roaming
After roaming TDLS is enabled only on associated vdev and
it remains disabled on link vdev. This causes TDLS peer
update to be sent with TDLS disabled on that vdev.

Enable TDLS on link vdev after roaming.

Change-Id: I7fe42ea2eebe02ae282965cfa6116f1e35de4490
CRs-Fixed: 3583163
2023-08-11 19:23:33 -07:00
Vinod Kumar Myadam
54797b19a9 qcacld-3.0: Fix in accessing pre_cac adapter
Trying to get the pre_cac adapter by iface before its created,
which will return NULL always, leads to pre_cac open failure.

Remove accessing the pre_cac adapter before create.

Change-Id: I31363d0ff8eb39fb1b16d3be20743d26fc7469a2
CRs-Fixed: 3586239
2023-08-11 19:23:27 -07:00
Rahul Choudhary
4577079468 Release 5.2.1.76Q
Release 5.2.1.76Q

Change-Id: I72f2f3ba24f7b535822b0d116502afd771a0498a
CRs-Fixed: 774533
2023-08-11 14:59:11 -07:00
Ashish Kumar Dhanotiya
6b2ec385a2 qcacld-3.0: Add helper APIs in policy manager
With this change add below helper APIs:
1. API to get number of SAP interfaces.
2. API to get number of beaconing interfaces.
3. API to get all active SAP interface channels and vdev ids
4. API to get all active beaconing interface channesl
and vdev ids.

Change-Id: Ib4781ff529fce494772cc12c7921c914adf5555b
CRs-Fixed: 3579760
2023-08-11 14:59:11 -07:00
Pragaspathi Thilagaraj
9bbeb71bf3 qcacld-3.0: Clear current connected ML AP keys upon roaming
Clear the current connected ML AP keys for all the links
including standby links after roaming to new AP.

Change-Id: I9cc548ba21648d1a1c123d15d1c8524dba141ea5
CRs-Fixed: 3581733
2023-08-11 14:59:05 -07:00
Aditya Kodukula
31a357c562 qcacld-3.0: Send aggregated stats when queried on AP mld
In case of mlo connection, when get_station stats is queried on
STA mld_mac address, driver sends aggregated mlo vdev station
stats to the framework. But framework expects driver to fetch
aggregated stats when queried on AP mld_mac address.

So, to satisfy framework's expectation, send mlo aggregated stats
when queried on AP mld_mac address.

Change-Id: I59b93c32939fddb56492a475d3f55b67f8eeab4b
CRs-Fixed: 3585276
2023-08-11 14:59:00 -07:00
Pragaspathi Thilagaraj
e25cd1cafb qcacld-3.0: Allow 3 link roam sync based on fw capability
Currently while processing roam synch indication event, the
setup links info is filled for WLAN_UMAC_MLO_MAX_VDEVS(2). But
with 3 Link MLO support, it will reject the roam synch
indication event.
So allow 3 Link roam synch based on fw capability and ini
intersection for number of links supported. Use
wlan_mlme_get_sta_mlo_conn_max_num() API to get max allowed
links for connection.

Also replace array length declaration for setup_links having
WLAN_UMAC_MLO_MAX_VDEVS and use WLAN_MAX_ML_BSS_LINKS instead.

Change-Id: I1982e50f5036ba4eacbab50044444a7238cd1073
CRs-Fixed: 3573066
2023-08-11 14:58:54 -07:00
Pragaspathi Thilagaraj
8a8f33379e qcacld-3.0: Update mlo_support_link_num to 3
Update the mlo_support_link_num config to 3. This will enable
support to connect/roam to 3 Link AP with 3 links advertised.

Change-Id: I6241f7024271208c8d1584549edb91cc37fadcb8
CRs-Fixed: 3582858
2023-08-11 14:58:49 -07:00
Yu Tian
a7de1ef33a qcacld-3.0: Fix crash when FISA is disabled
If FISA is not enabled in config file, driver will
crash. Change adds error handling for no_support
return case.

Change-Id: I82e886a16f51e4e6db049b9224547b30bb9a10b4
CRs-Fixed: 3582517
2023-08-11 14:58:44 -07:00
Mohammed Ahmed
91537161ea qcacld-3.0: Fix ddk enable check
Current code checks vendor version not target to determine
whether or not to enable bazel ddk. Fix this by checking
both vendor version and target to enable DDK.

Change-Id: I7503ce966d128d9a1350426eb8a9aee6dd013a1d
CRs-Fixed: 3581963
2023-08-11 14:58:38 -07:00
Vinod Kumar Pirla
e2f045f763 qcacld-3.0: Use netdev addr if connection is legacy
In hdd_adapter_get_link_mac_addr() API return netdev addr
if the connection is not ML-type as netdev addr is used for
connection.

Change-Id: Id32694c645c27c8a7d7d738d0f980054f85e5b94
CRs-Fixed: 3585513
2023-08-11 14:58:33 -07:00
Aditya Kodukula
a1ad9d7743 qcacld-3.0: Enable HIDE MAC Address feature in GKI builds
Enable WLAN_TRACE_HIDE_MAC_ADDRESS feature in GKI builds

Change-Id: I775e27bb97a77660baf6071064762d1080425760
CRs-Fixed: 3563924
2023-08-11 14:58:27 -07:00
Srikanth Marepalli
2f36392f08 qcacld-3.0: Update session EHT 320 MHz support status from beacon
If AP EHT cap doesn't support 320 MHz then DUT STA session EHT
cap shouldn't support 320 MHz sounding dimensions.

Change-Id: Ibc7161d2bda32db03873bf354831b5276eb48f27
CRs-Fixed: 3573428
2023-08-11 14:58:22 -07:00
Liangwei Dong
97e9fab458 qcacld-3.0: Move GO to SCC channel of STA before SAP start
If GO is MCC with STA on 2.4 GHz, move GO to STA channel for
SCC before 2.4 GHz preferred SAP start. This is to avoid SAP
start failure because we don't support 3 Home channel MCC in
same mac.

Change-Id: I507fe8d9d283c54524ea647d8b74c7e167a031d0
CRs-Fixed: 3562893
2023-08-11 14:58:16 -07:00
Rahul Choudhary
1540dbfad3 Release 5.2.1.76P
Release 5.2.1.76P

Change-Id: I8dc48e71a9cea504a26916fd9d27ceaafc79f4b9
CRs-Fixed: 774533
2023-08-11 04:35:14 -07:00
Amruta Kulkarni
ecf1fa04c5 qcacld-3.0: Add frame length in T2LM api
Pass frame length in t2lm api's and
add boundary check while parsing.

Change-Id: Id48cd77710e6f0ea922e2dea989dc599dc9325c5
CRs-Fixed: 3579186
2023-08-11 04:35:13 -07:00
Pragaspathi Thilagaraj
46a19eb3f7 qcacld-3.0: Add support to handle WMI_ROAM_SYNCH_KEY_EVENTID
Register event handler for WMI_ROAM_SYNCH_KEY_EVENTID.

Store the roamed AP keys for all links in crypto module
Add CM function pointers to iterate and store the parsed
keys for each link.

Change-Id: Icee5eeea23724a7d69cf895023e75e856d88a685
CRs-Fixed: 3577927
2023-08-11 04:35:08 -07:00
Jyoti Kumari
6051d5be28 qcacld-3.0: Rename policy_mgr_is_vdev_ht_ll_sap() api
Rename policy_mgr_is_vdev_ht_ll_sap() api to
policy_mgr_is_vdev_ll_ht_sap() api.

Change-Id: I919963a1ee899d34f3e924ef4adf474032beb8a9
CRs-Fixed: 3560573
2023-08-11 04:35:04 -07:00
Rahul Choudhary
3ed2946a4c Release 5.2.1.76O
Release 5.2.1.76O

Change-Id: I224eb4944e5e88043614ae53fde6757191427bf4
CRs-Fixed: 774533
2023-08-11 01:23:54 -07:00
Pragaspathi Thilagaraj
72c6ae5928 qcacld-3.0: Don't enable roaming till vdev is up during link switch
During link switch, as part of the disconnect sequence, roaming
is enabled on the other connected vdev and this causes RSO start
to be sent before vdev up is sent on that vdev. This causes
abnormal firmware behavior.

So don't send enable roaming till the vdev is up in case of link
switch. RSO start will be sent as part of the install key sequence.

Change-Id: Ib9fe520ec3d2b5c91fdba192934418e235082a31
CRs-Fixed: 3581618
2023-08-11 01:23:54 -07:00
Balaji Pothunoori
5b34ce8d94 qcacld-3.0: Add PM QoS CPU affinity support for QCS405
Enable PM QoS support for QCS405 Target in 5.x kernel

Change-Id: I9c7565b44a72145e11178fe360f413ff578142cc
CRs-Fixed: 3551399
2023-08-11 01:23:48 -07:00
Rahul Choudhary
76d967d8f1 Release 5.2.1.76N
Release 5.2.1.76N

Change-Id: Ic2d24223963d5e8b5ea0e332caf82e89fc2d4cde
CRs-Fixed: 774533
2023-08-10 22:11:10 -07:00
Arun Kumar Khandavalli
ad3cf51017 qcacld-3.0: Add support to use MLD addr for one link
If INI is enabled don't derive first link's MAC address
and directly use MLD address in that place and derive
next link addresses.

Change-Id: I3c2b9f64df3f75799adf8718ee83d157f6dd9097
CRs-Fixed: 3584062
2023-08-10 22:11:09 -07:00
Rahul Choudhary
a20b139e1b Release 5.2.1.76M
Release 5.2.1.76M

Change-Id: I77cab890d8640258520b3e93f6f64b273b3269fa
CRs-Fixed: 774533
2023-08-10 18:22:13 -07:00
Srinivas Dasari
b3bedcb9c0 qcacld-3.0: Don't delete ml_peer as part of pe_session cleanup
Currently, sta_ds corresponds to old pe_session bssid is
cleaned up and new sta_ds is created with new bssid when DUT
roams to a new AP. ml_peer is also cleaned up as part of this.
But the ml_peer corresponds to old connection is already
freed up in wma_delete_all_peers() at the beginning of roam
sync handling.
This is not an issue when roamed ml_peer is different from
the current ml_peer as the attempt to delete the old ml_peer
second time gets rejected. But in self roaming cases,
current ml_peer might be valid for other links post roaming.
So, delete the ml_peer in pe_roam_synch_callback() only
if DUT roams to a non-11BE target as the same is not
cleaned up in wma_delete_all_peers() for non-11BE candidates.

Change-Id: I2f92608b880960328cc1b104a8ab55f08c154c42
CRs-Fixed: 3579053
2023-08-10 18:22:12 -07:00
Amruta Kulkarni
b37953bc1c qcacld-3.0: Add check for valid t2lm ie direction
When validating t2lm ie, check if the direction is valid.

Change-Id: I5eaa5e67653960647ebb65a57690692dd95ad6f3
CRs-Fixed: 3575491
2023-08-10 18:22:06 -07:00
Rahul Choudhary
d8b4a3c375 Release 5.2.1.76L
Release 5.2.1.76L

Change-Id: I2ba160f59707861987d861a1165dd587810b54e5
CRs-Fixed: 774533
2023-08-10 14:42:28 -07:00
Jyoti Kumari
fe0c9461e0 qcacld-3.0: Allow TWT responder for LL_LT_SAP in MCC mode
Do not send TWT disable command to firmware if LL_LT_SAP
and other infra connection are present in MCC mode.

Change-Id: I38727bb2bda4afcc00d68560bd46cc26048ef5be
CRs-Fixed: 3550206
2023-08-10 14:42:27 -07:00
Jianmin Zhu
5a19eb6a50 qcacld-3.0: Do not handle regdomain notifier after cfg80211 suspend
Currently, kernel invoke the regdomain notifier to host driver
using registered callback. If kernel call this callback after
cfg80211 aka system suspend, Then because of race condition host
might send the PDEV SET REGDOMAIN/PARAM to fwr after WOW ENABLE
cmd which is not correct cmd sequence.

Change-Id: I3a5ebcbedc529b188e43e4d0ae60510fff8a703d
CRs-Fixed: 3583337
2023-08-10 14:42:22 -07:00
Pragaspathi Thilagaraj
0f7d749e5f qcacld-3.0: Add support to parse ROAM_SYNCH_KEY event
ROAM_SYNCH_KEY event will be sent after roaming to a ML AP
with STA advertising standby-links.

WMI_ROAM_SYNCH_KEY_EVENTID TLV format:
-- wmi_roam_ml_key_material_param: PTK (link_id = 0xf)
-- wmi_roam_ml_key_material_param: GTK (link_id = 0)
-- wmi_roam_ml_key_material_param: IGTK (link_id = 0)
-- wmi_roam_ml_key_material_param: BIGTK (link_id = 0)
-- wmi_roam_ml_key_material_param: LTF KEYSEED (link_id = 0xf)
-- wmi_roam_ml_key_material_param: GTK (link_id = 1)
-- wmi_roam_ml_key_material_param: IGTK (link_id = 1)
-- wmi_roam_ml_key_material_param: BIGTK (link_id = 1)
-- wmi_roam_ml_key_material_param: GTK (link_id = 2)
-- wmi_roam_ml_key_material_param: IGTK (link_id = 2)
-- wmi_roam_ml_key_material_param: BIGTK (link_id = 2)

If length of any key exceeds WMI_MAX_KEY_LEN, then multiple
TLVs will be included for that key.

Change-Id: I64238acfbd29bc40df5971f098ad5802360d8777
CRs-Fixed: 3577923
2023-08-10 14:42:16 -07:00
Karthik Kantamneni
89c1955cd1 qcacld-3.0: Reset nbuf data offset properly in RX fast path handling
Currently RX nbuf data pointer is reset considering
headroom reserve size of NET_SKB_PAD. So while reattaching
buffer back to H.W always data pointer is reset back to head plus
NET_SKB_PAD offset. But if skb is not allocated with head room
reserve then we should not reset data pointer taking NET_SKB_PAD
as consideration.

Fix this by pushing nbuf data pointer back to the state when
nbuf entered the host.

Change-Id: I1c3838a54f87f747e3695e86e54e0e663ba4f182
CRs-Fixed: 3582877
2023-08-10 14:42:00 -07:00
Rahul Choudhary
48015daf83 Release 5.2.1.76K
Release 5.2.1.76K

Change-Id: Id7582f0893f700455c24d5f2548199cffcc004e7
CRs-Fixed: 774533
2023-08-10 05:13:03 -07:00
Liangwei Dong
6db9e28a32 qcacld-3.0: Fix wrong bitmap to update inactive link
Use link bitmap to update inactive link bitmap instead of
link id in Roam indication.

Change-Id: Ibdffbf7a4ab06f34affb0f4b1876c9dbbe95c395
CRs-Fixed: 3583587
2023-08-10 05:13:03 -07:00
Rahul Choudhary
0217ade6a1 Release 5.2.1.76J
Release 5.2.1.76J

Change-Id: I4f64b9acff625f7c1109810a9c6487db62421063
CRs-Fixed: 774533
2023-08-09 17:25:47 -07:00
Will Huang
50902e6caa qcacld-3.0: Enable AP(STA)+AP+AP SCC for SBS PCL table
For AP(STA)+AP+AP case, there is case which will disable 5 GHz and
6 GHz band, and all AP should move to 2 GHz band same SCC channel.

Currently it is only enabled for DBS PCL table, update SBS PCL
table as well.

Change-Id: I6e5f44988d4faa33a6df7e28792d35b6122f15a2
CRs-Fixed: 3543792
2023-08-09 17:25:47 -07:00
Surabhi Vishnoi
123541616b qcacld-3.0: Release wakelock when psoc idle timer is stopped
Currently, wakelock with timeout is acquired when psoc idle timer is
started to prevent suspend but it is not released when psoc idle timer
is stopped. So, in scenarios where wlan is turned off/on frequently,
psoc idle timer will be started and wakelock with timeout will be
acquired as part of wlan off but after wlan is turned on suspend will
not be allowed until wakelock timeout occurs as wakelock is not released
when psoc idle timer is stopped.

To allow suspend after wlan is turned on, release wakelock which was
acquired as part of wlan off in psoc idle timer start.

Change-Id: I85ad9ce4ae9618a88601295d2194b4033be88c2d
CRs-Fixed: 3578872
2023-08-09 17:25:42 -07:00
Abhishek Singh
ca05f1b3db qcacld-3.0: Remove repetitive log in probe resp processing in LIM
Remove repetitive log in probe resp processing in LIM.

Change-Id: I33619aba02a0113c9b02b2a2afc84bc214cc56e3
CRs-Fixed: 3582292
2023-08-09 17:25:37 -07:00
Rahul Choudhary
45d7dd08b0 Release 5.2.1.76I
Release 5.2.1.76I

Change-Id: I884a2e8bf6e2c435e0294786c68d1180f80202de
CRs-Fixed: 774533
2023-08-09 07:25:10 -07:00
Deeksha Gupta
17ba53ac08 qcacld-3.0: Resolve compilation errors with older kernels
Resolve the compilation issues with older kernels.

Change-Id: I437b2875dcf6174bd07ac33b9975e761ad36eab9
CRs-Fixed: 3581206
2023-08-09 07:25:10 -07:00
Rahul Choudhary
473919eaf1 Release 5.2.1.76H
Release 5.2.1.76H

Change-Id: I05d88bd31764a1bd2de5f72b31058a484fc0e1a5
CRs-Fixed: 774533
2023-08-09 04:01:17 -07:00
Aditya Kodukula
22fab13104 qcacld-3.0: Check connection before sending mlo peer stats
Currently the function, wlan_hdd_send_mlo_ll_peer_stats()
is invoked for non-MLO connections as well. So, add
a check for MLO connection before invoking the function.

Change-Id: I5da61a5bc68515ec6f50000b82baa43c0c835f91
CRs-Fixed: 3581864
2023-08-09 04:01:16 -07:00
Rahul Choudhary
365da9b971 Release 5.2.1.76G
Release 5.2.1.76G

Change-Id: Ia5942f898d351c6343dcef0e8b9d10101e82b5ff
CRs-Fixed: 774533
2023-08-08 18:38:43 -07:00
Arun Kumar Khandavalli
c86007738a qcacld-3.0: resolve compilation errors with older kernels
Resolve the compilation issues with older kernels.

Change-Id: I5cbafcf84f5bb76d0ffb1b3c72981a93e0b0b519
CRs-Fixed: 3571648
2023-08-08 18:38:42 -07:00