커밋 그래프

30063 커밋

작성자 SHA1 메시지 날짜
Rahul Choudhary
c24bb1e958 Release 5.2.1.78U
Release 5.2.1.78U

Change-Id: I007149057f7ea0417fc42c9577fa68e7410b54ed
CRs-Fixed: 774533
2023-09-05 20:18:59 -07:00
Deeksha Gupta
964f138fd9 qcacld-3.0: Added new parameter in p2p_set_noa command
Added support for new "start" parameter in
p2p_set_noa driver command.

Change-Id: I8bc743141ea6d9cfdf49ca89b0835f2e5519a12e
CRs-Fixed: 3557825
2023-09-05 20:18:58 -07:00
Rahul Choudhary
fadf698982 Release 5.2.1.78T
Release 5.2.1.78T

Change-Id: I1eb3c4f86361bf4baca8f2c61ca59275ef6df069
CRs-Fixed: 774533
2023-09-05 15:14:01 -07:00
Srinivas Dasari
e9281af13b qcacld-3.0: Consider peer indicated bw also for SAP final bw
Connected clients may downgrade/upgrade their bandwidth and
send OMN/OMI frame to indicates the same. Firmware sends
PEER_OPER_MODE_CHANGE to host with the received data. Consider
the peer indicated bandwidth also to determine the final
bandwidth to be supported for that peer.
Minimum of new bandwidth(upgrade/downgrade), peer associated
bandwidth and peer indicated bandwidth to be considered while
upgrading/downgrade bw when concurrency comes/gone.

Change-Id: I9a15162df3a46c9cf6c7bc4d861e350349d22201
CRs-Fixed: 3605233
2023-09-05 15:14:01 -07:00
Vijay Patil
52e5d326f6 qcacld-3.0: Add support to handle PEER_OPER_MODE_CHANGE event
Firmware sends PEER_OPER_MODE_CHANGE event to host in SAP
mode when a connected client indicates upgrade/downgrade
of its bandwidth.
Host needs this data as any further SAP bandwidth
upgrade/downgrade should honor the indicated bandwidth for
that specific peer.

Change-Id: I50fecf670b47c56e3f33b8519fde1d5eaec7523f
CRs-Fixed: 3604716
2023-09-05 15:13:55 -07:00
Yu Wang
35c0700b17 qcacld-3.0: decouple TSF auto report from uplink delay feature
TSF auto report is a stand alone feature, which can
be used to sync TQM clock and TSF clock, more than
one features depend on it.
Introduce a new build flag WLAN_FEATURE_TSF_AUTO_REPORT
to decouple it from uplink delay feature.
And also introduce trigger source for TSF auto report to
identify different triggers and maintain the enablement
state.

Change-Id: I61005d0ba29e62995aeb88067d18ad48767bd8b5
CRs-Fixed: 3560239
2023-09-05 15:13:48 -07:00
Ashish Kumar Dhanotiya
a8c35ba698 qcacld-3.0: Add support for audio transport switch event
Based on the new requirement, add support for vendor event to
switch the audio transport bearer.

Change-Id: Iff5733c7552674fb84d225d1aef183577105a276
CRs-Fixed: 3585390
2023-09-05 15:13:42 -07:00
Aravind Kishore Sukla
0d61022ac6 qcacld-3.0: Add comments for the change fixed
Add comments for the fix added to validate security
for 11be connection and Reject partner link based on
security check.

Change-Id: I1b8d5e91e0e07c6c311b8c6ca6427c3fabd6b219
CRs-Fixed: 3605255
2023-09-05 15:13:35 -07:00
Vinod Kumar Pirla
1db86797f4 qcacld-3.0: Only modify local buffer in Link-MLD addr trans
For action frames of category non-public userspace expects
source address in frame as MLD address for which change is
introduced using Ie63c09ece7550dfdc69c82ef8b7111251deee33e.

The lim_send_sme_mgmt_frame_ind() API modifies the actual
frame's SA/DA/BSSID fields and copies to buffer malloc'ed.
Processing RRM frame post notifying userspace results in
trying to use modified SA address as peer address which
will result in failure.

As userspace will only receive on the malloc'ed buffer it
is better to do Link-MLD address translation on only that
buffer so that the callers of lim_send_sme_mgmt_frame_ind()
won't have tampered fields.

CRs-Fixed: 3606603
Change-Id: Iaeed8d4467d759cb8e61cd48404b5bc048f18b9a
2023-09-05 15:13:29 -07:00
Rahul Choudhary
34f0af6eb7 Release 5.2.1.78S
Release 5.2.1.78S

Change-Id: I3035c539c82a11e3289df50498fbbad9a2af86df
CRs-Fixed: 774533
2023-09-05 08:26:00 -07:00
Srinivas Dasari
db3618ad48 qcacld-3.0: Include BW_IND_ELEM IE in beacon and ECSA frames
Include BW_IND_ELEM IE in beacon and ECSA frames while advertising
CSA. This is needed when upgrading the bandwidth to 320 MHz.
Send the ECSA IE with switch count as 1. Use a timer to reset it
after sending the beacon out.

Change-Id: I6c38ef1ce4629b7a67bcbf803c7dbcced05ade33
CRs-Fixed: 3604422
2023-09-05 08:25:59 -07:00
Srinivas Dasari
8fe561ad1d qcacld-3.0: Handle 320 MHz SAP + concurrent STA CSA
When a concurrent STA moves to a new channel due to CSA from
peer AP, check if 320 MHz SAP needs bandwidth downgrade/upgrade
operation.

Change-Id: Id207f1c37a65c4638359eb7f2294478f13beed73
CRs-Fixed: 3601349
2023-09-05 08:25:53 -07:00
Rahul Choudhary
42e43fe0de Release 5.2.1.78R
Release 5.2.1.78R

Change-Id: I6bee49ee548fb7ecf58d24a01aeb3b26c9809321
CRs-Fixed: 774533
2023-09-04 22:35:16 -07:00
Srinivas Dasari
db9052a4e7 qcacld-3.0: Add support for 320 MHz SAP + concurrent STA roaming
Check if the roamed channels lead to DBS/SBS with existing
320 MHz SAP after handling roam sync indication.

Change-Id: I3c816378f93b505c59da7aa9c4cfcc6352f5dbb3
CRs-Fixed: 3601348
2023-09-04 22:35:16 -07:00
Srinivas Dasari
f99e06cab3 qcacld-3.0: Add support for 320 MHz SAP + STA concurrency
When a STA connect req comes up, check if any of the candidates
cause DBS/SBS with the concurrent 320 MHz SAP and downgrade the
SAP bandwidth to 160 MHz.
Also, consider to downgrade the SAP bandwidth to 160 MHz when
an ML candidate is found as ML candidates need DBS/SBS mostly.

Change-Id: Icf2c9c26bd953d58bc0702302825493c0937a699
CRs-Fixed: 3601344
2023-09-04 22:35:10 -07:00
Srinivas Dasari
12ffcc8ce1 qcacld-3.0: Use opportunistic timer to upgrade SAP ch_width
When a concurrency is gone, SAP ch_width can be upgraded to
320 MHz if it's still valid. Use opportunistic timer to avoid
frequent upgrade/downgrade operations.

Change-Id: I60e19427af2226970f1801dd00b04e1072ebea01
CRs-Fixed: 3601340
2023-09-04 22:35:03 -07:00
Srinivas Dasari
afcc8c613e qcacld-3.0: Add infrastructure to handle 320 MHz SAP concurrencies
Currently, 320 MHz SAP is supported only when the hardware mode
is SMM. When a new concurrency comes up, firmware may have to
configure the hw_mode to split-phy mode(DBS/SBS). Then the
requirement is to downgrade SAP to 160 MHz as split-phy mode
doesn't support 320 MHz.
As part of the downgrade process,
1. Indicate to the connected peers that SAP is going to be
   downgraded to 160 MHz via ECSA frame
2. Update ECSA IE to the beacon template with count as 1
3. Indicate the final bandwidth of each peer to firmware

Add infrastructure to support these. Reuse some of the existing
APIs of NSS update and hw_mode update.

Change-Id: Ieb964ddb782a547699890a9dbbc3efdf631149eb
CRs-Fixed: 3601336
2023-09-04 22:34:57 -07:00
Srinivas Dasari
45c176a726 qcacld-3.0: Use current oper ch_width to fill EHT_OPER IE
Currently, session->ch_width is used to send the current operating
ch_width of the SAP in beacons/probe rsp/assoc rsp. But the
current operating bw may change due to concurrencies. Refine the
current usage to get operating ch_width from vdev mlme priv object
instead of pe_session.

Change-Id: Ie4be6337fcb1902f38ae5cb2db03c5b6af16ee3a
CRs-Fixed: 3600239
2023-09-04 22:34:51 -07:00
Rahul Choudhary
8145afae72 Release 5.2.1.78Q
Release 5.2.1.78Q

Change-Id: Ia4f527121238842f8d2fd9a792d88e7618cd9cfb
CRs-Fixed: 774533
2023-09-04 18:34:20 -07:00
Ashish Kumar Dhanotiya
a0ad067df0 qcacld-3.0: Add support for audio transport switch vendor command
Based on the new requirement, add support for vendor command
to switch the audio transport bearer.

Change-Id: I1d3b74c18976b0927ebba228b73af5a10cc67391
CRs-Fixed: 3582788
2023-09-04 18:34:20 -07:00
Rahul Choudhary
d700e98e6a Release 5.2.1.78P
Release 5.2.1.78P

Change-Id: I9951c15559225f8bb1b325048b0a4dfc7a4be036
CRs-Fixed: 774533
2023-09-04 14:26:49 -07:00
Surya Prakash Sivaraj
f42a49bfbf qcacld-3.0: Add additional room for runtime OUI extensions
FW allocates memory for action oui extensions only during
init. But, the driver configures some OUIs to the firmware
during connection. For the firmware to accommodate these
new action OUIs during connect, additional room needs to
be sent to firmware during driver initialization itself.

Add changes to send additional room for 10 extensions during
initialization.

Also, currently host adds the count of host only extensions
also as part of the total extensions sent to the firmware.
This leads to wastage of memory allocated in the firmware.

To fix this, keep a separate counter for host only extensions
and remove these from the total extensions saved before
configuring action OUIs to firmware.

CRs-Fixed: 3605032
Change-Id: Ibac93418a873bab53e1c58bf7c06834e38dfd534
2023-09-04 14:26:48 -07:00
Abhinav Kumar
89fc60da82 qcacld-3.0: Process rrm request with link address
Currently host start processing rrm request frame with
source mac address (pHdr->sa) present in frame. But in
case of MLO connection, pHdr->sa address is referred to
MLD address and if host sends response frame with MLD
address to FW, FW discard/drop it.

Fix is to make sure driver should use link address
(pe_session->bssId) to process rrm request
and use same address to send response frame to FW/AP.

Change-Id: Ibffcaf6ca1341f3e22c9cba09f09c99cdc4fd5cd
CRs-Fixed: 3598628
2023-09-04 14:26:42 -07:00
Yu Ouyang
38abf037a1 qcacld-3.0: Increase time to wait adapter stopped
Every adapter takes ~300ms to stop. For 4 adapters, totally 500ms is
not enough. To ensure all adapters stopped, increase sleep time to
1.5s.

Change-Id: I56ecb99519bf7834dd5e00986d847643612936c9
CRs-Fixed: 3604933
2023-09-04 14:26:37 -07:00
Rahul Choudhary
384c20b5fa Release 5.2.1.78O
Release 5.2.1.78O

Change-Id: Id2027e4c26ece0a73244a9bb67de4d77a6e67308
CRs-Fixed: 774533
2023-09-04 06:21:01 -07:00
Zhiwei Yang
638ce57640 qcacld-3.0: Fix respond probe request on wrong channel issue
STA+GO concurrency and MCC mode case, DUT received lots of probe
request in short time on STA role channel, and host always send back
probe rsponse on GO channel, this caused FW TX failed due to current
channel is for STA, then FW has no chance to handle msg buffer in
time, buffer exhausted and crash.

To fix this, the probe request from STA role channel should be
ignored, and just respond the request from AP role channel.

Change-Id: I74a569c156b0ad7a14a32f7e0f0bfd58379e9f35
CRs-Fixed: 3564384
2023-09-04 06:21:01 -07:00
Prasanna JS
ccf0a366e3 qcacld-3.0: Enable CONFIG_BCN_RATECODE_ENABLE for bazel
Enable CONFIG_BCN_RATECODE_ENABLE for bazel

Change-Id: I8a2fffbf792ed31b783eef4b96b78cadc172cfeb
CRs-Fixed: 3602345
2023-09-04 06:20:55 -07:00
Abhishek Singh
4f1ae8538d qcacld-3.0: Fix cb mode calculation for 2.4 GHz
If user configure to not use 40 MHz in 2.4 GHz, then avoid setting
40 MHz capability and use cb mode as
WNI_CFG_CHANNEL_BONDING_MODE_DISABLE for 2.4 GHz.

Change-Id: I4e9153e211e02f6b959e16dad4573c2b490cb215
CRs-Fixed: 3584510
2023-09-04 06:20:49 -07:00
Rahul Choudhary
4b86e41f32 Release 5.2.1.78N
Release 5.2.1.78N

Change-Id: I5ea251e1d2e55b838f6c4595df542023e5fb2f02
CRs-Fixed: 774533
2023-09-03 22:32:55 -07:00
Srinivas Dasari
26a2f2e4ce qcacld-3.0: cache SAP current oper bw in vdev mlme priv obj
SAP operating bandwidth may get updated due to concurrencies.
This might be temporary and SAP moves back to its original
bandwidth once concurrency is gone. So, add set and get APIs
to maintain the SAP current operating bandwidth.
These can be used during/after bandwidth update operations.

Change-Id: I386ad20bcbd0902672a890bde510ecc50e58512b
CRs-Fixed: 3600223
2023-09-03 22:32:54 -07:00
Rahul Choudhary
3eaf9ecf08 Release 5.2.1.78M
Release 5.2.1.78M

Change-Id: Ieb919fa2a7c84bcb9fec9abbb545f10d05122939
CRs-Fixed: 774533
2023-09-03 10:41:27 -07:00
Jianmin Zhu
4c956d73ba qcacld-3.0: Don't set country to target after idle shutdown
Currently, kernel invoke the regdomain notifier to host driver using
registered callback, if kernel call this callback after idle shutdown,
will send CURRENT_COUNTRY to F/W after WOW ENABLE cmd.

To fix it, add driver status check when handle regdomain notifier.

Change-Id: I718f46b9cb02bd885ecc19684a6af9a26bd9410f
CRs-Fixed: 3602098
2023-09-03 10:41:26 -07:00
Rahul Choudhary
37d1c3742d Release 5.2.1.78L
Release 5.2.1.78L

Change-Id: I16588061de8ea17534eb5236c75465e3eeaf151b
CRs-Fixed: 774533
2023-09-02 21:23:15 -07:00
Srinivas Dasari
72b3998eeb qcacld-3.0: Add BW_IND_ELEM IE to ECSA and beacon structures
BW_IND_ELEM is needed to indicate updated bandwidth to peers
through ECSA frame/along with CSA IE in beacon. Add the IE
in ECSA frame structure and beacon structures.
Generate corresponding APIs with the help of frame parser.

Change-Id: Ia38d40050f945136bd01313bd3e17011b256afad
CRs-Fixed: 3604384
2023-09-02 21:23:14 -07:00
Aditya Kodukula
f59d692b84 qcacld-3.0: Add support for n-link mlo peer stats
Add support for n-link mlo link layer peer stats.

Change-Id: I9f860c744377b0c6375bf06210999b69156e626c
CRs-Fixed: 3600475
2023-09-02 21:23:09 -07:00
Aditya Kodukula
bf9795bdea qcacld-3.0: Refactor mlo ll interface stats code
Refactor current mlo link layer interface stats code.

Change-Id: I94326ae8fc8abaa2f1abd6d0e0e5ac9a9750433b
CRs-Fixed: 3602068
2023-09-02 21:23:03 -07:00
Srinivas Dasari
825a7d1dd9 qcacld-3.0: Add an API to check if a new connection causes DBS/SBS
Add an API to loop through all existing connections and check if
the new connection frequency causes DBS/SBS.

Change-Id: Ib7929fc969cd04a26e082f6f9a3acf991befcc5d
CRs-Fixed: 3600235
2023-09-02 21:22:57 -07:00
Rahul Choudhary
1d6c4f420f Release 5.2.1.78K
Release 5.2.1.78K

Change-Id: Ic59aab8ad9ebb5538bdbfb69e58fa12fc92a075e
CRs-Fixed: 774533
2023-09-01 21:01:00 -07:00
Liangwei Dong
84250fda26 qcacld-3.0: Disable force SCC check for link switch disconnection
If disconnection event is for link switch, do not trigger SAP
force SCC check. And if link switch is in progress, skip
the force SCC workqueue.
And if link is in middle of switching, do not run link force logic.

Change-Id: I4a8bf59ff16dca2caf560eb36e1bc58f7d6a919b
CRs-Fixed: 3590814
2023-09-01 21:01:00 -07:00
Rahul Choudhary
f636e38043 Release 5.2.1.78J
Release 5.2.1.78J

Change-Id: Iceb84c1b1b5e939ef193b89139e823dfc0d6edfd
CRs-Fixed: 774533
2023-08-31 18:35:29 -07:00
Amit Mehta
663120a0f7 qcacld-3.0: Replace rcu lock with rtnl lock
Currently mutex is being called while taking rcu read lock
which is resulting in "sleeping function called from invalid context"
warning as mutex is not allowed while holding rcu_read_lock.

To fix the issue replace rcu lock with rtnl lock.

CRs-Fixed: 3600635
Change-Id: I41aa27094ef58363eeda4bdb15f23d312e7bac37
2023-08-31 18:35:28 -07:00
Deeksha Gupta
4a8fcb43d0 qcacld-3.0: Hold mutex lock while channel switch notify
From the kernel, it is expected to hold the mutex lock while
channel switch notify. Currently it is not done hence kernel
is asserting while channel switch notify.

To avoid kernel assert, hold mutex lock before driver
invokes channel switch notify.

CRs-Fixed: 3598047
Change-Id: I8838aa07bc12c317c494ad7e17116d090582944a
2023-08-31 18:35:22 -07:00
Vinod Kumar Myadam
cbeedb2c6b qcacld-3.0: Cleanup unused declaration of hdd_get_num_chains
Cleanup unused function declaration of hdd_get_num_chains

Change-Id: I32b2a0d58f3c7da1d7f496998964dd0120017b3a
CRs-Fixed: 3601235
2023-08-31 18:35:16 -07:00
Rahul Choudhary
999e1f45d6 Release 5.2.1.78I
Release 5.2.1.78I

Change-Id: I88ee5f71c57439ac089f9f9370f629c55c42d8cf
CRs-Fixed: 774533
2023-08-31 11:00:21 -07:00
Abhinav Kumar
663120a684 qcacld-3.0: Send proper control mode value to upper layer
1. Upper layer sends QCA_WLAN_VENDOR_ATTR_LINK_STATE_CONTROL_MODE
vendor command to configure control mode in host/fw.
2. Host receives GET_ML_LINK_STATE driver command to return
control mode (configured at step 1) to upper layer.

Host should reply as a response of GET_ML_LINK_STATE with same
value of control mode configured at step 1 to upper layer.

Change-Id: I6ae82c2a1c0e4ff13cea678bf27916a3cda8ad81
CRs-Fixed: 3595730
2023-08-31 11:00:21 -07:00
Amruta Kulkarni
dd4b6d0ea6 qcacld-3.0: Add null check for mlo sta context
Currently mlo sta context is accessed without null
check in mlo api's.

Add null check for mlo sta context in mlo_check_if_all_links_up
and mlo_check_if_all_vdev_up api's.

CRs-Fixed: 3601823
Change-Id: Iea3f1daf1d9aef40efdff21a02e8a3c23494bfad
2023-08-31 11:00:14 -07:00
Amruta Kulkarni
fc51b6ff4f qcacld-3.0: T2LM timer changes
Code changes to run the T2LM timer in FW instead of host.

Change-Id: Ic66da9e0311121d2ae23c600c97f225c56aa215f
CRs-Fixed: 3595388
2023-08-31 11:00:07 -07:00
Liangwei Dong
0084ccba11 qcacld-3.0: Fix SAP not move back to 6 GHz after STA disconnected
The API wlansap_get_valid_freq was used to get new SAP channel
when country code changed from world mode to non world mode.
In STA+SAP concurrency case, SAP may be force SCC to STA channel
or the other band's channel. And If STA is disconnected, normally
the SAP should move back to original channel frequency on 5 GHz or
6 GHz. But in current code the API wlansap_get_valid_freq will
still be invoked to get new SAP channel based on PCL after STA
is disconnected. It is not expected.

Fix by add new master_ch_list_updated flag to indicate
the master channel list has been changed from 2.4 GHz only to
2.4 GHz + 5/6 GHz and based on the flag to invoke
wlansap_get_valid_freq to get new SAP channel.
The move back to original channel has been handled by
policy_mgr_is_sap_restart_required_after_sta_disconnect.

Change-Id: I33b7a4cda3b45221b45e2aec85069477d0999d4e
CRs-Fixed: 3596546
2023-08-31 11:00:01 -07:00
David Oladunjoye
71fb47d8ca qcacld-3.0: Add support for aux eMLSR HW modes in policy mgr
Currently, if FW advertises more than three HW modes, host
returns error as the current max is 3. Need to increase value
to 4 to support aux eMLSR single and aux eMLSR split modes.
In addition, add path to handle aux caps when advertised from FW.

Change-Id: I4ee873951952c5b1abd31e9e28084d32eda782bd
CRs-Fixed: 3599089
2023-08-31 10:59:53 -07:00
Vinod Kumar Pirla
46d3fc5376 qcacld-3.0: Don't stop netdev queues on link switch failure
If link switch connection fails due to any reason the netdev
queues are stopped which leads to NUD failure and finally results
in connection teardown.

As we have one non-transitioning link for data transmission
in case of link switch, don't disable the netdev queues.

CRs-Fixed: 3599028
Change-Id: I4555ca3705950ce874b90f8a6e8cc5a50ea92793
2023-08-31 10:59:47 -07:00