Commit Graph

29639 Commits

Author SHA1 Message Date
Rahul Choudhary
dcfc51f49a Release 5.2.1.74M
Release 5.2.1.74M

Change-Id: I87f746138e591cfe4c3fdc9db8339644d57d51d5
CRs-Fixed: 774533
2023-07-18 09:50:35 -07:00
Jianmin Zhu
5ae9465946 qcacld-3.0: Allow SAP for PM_STA_P2P_GO_MCC_24_5
When STA 5GL + SAP 5GH in SBS mode, P2P Go start on 2 GHz, STA and
P2P Go are MCC in same MAC 0, so PCL index is PM_STA_P2P_GO_MCC_24_5_1x1,
when try to switch SAP channel to avoid MCC, PCL got is none, so SAP
failed to restart and stopped.

To fix it, for 2 ports like PM_STA_P2P_GO_MCC_24_5_1x1, when start/restart
SAP, change PCL to PM_SCC_ON_5_SCC_ON_24, allow it SCC with STA or P2P Go.

Change-Id: I7f05c1f430c6fd89a5055781604588366870e4f0
CRs-Fixed: 3561049
2023-07-18 09:50:35 -07:00
Rahul Choudhary
9222cc1cb0 Release 5.2.1.74L
Release 5.2.1.74L

Change-Id: I3cdb8e2606bac19236c9bc4e151cf726d51bf819
CRs-Fixed: 774533
2023-07-18 01:38:48 -07:00
Deeksha Gupta
96c4e8aaeb qcacld-3.0: Fill peer partner link info in peer_assoc_params struct
Below changes are handled as a part of this
1. After receiving the Probe response frame from AP,
   driver will update the links channel_info into the
   mlo_mgr context.

2. Fill the AP partner link info in struct peer_assoc_params.

Change-Id: Ibdc3c82707e2acd8bd1ad1610703077bc506bf65
CRs-Fixed: 3530280
2023-07-18 01:38:47 -07:00
Rahul Choudhary
566b1e492a Release 5.2.1.74K
Release 5.2.1.74K

Change-Id: I6d0a6895b19a2a7f2b971abefcc76cf3edb9b53d
CRs-Fixed: 774533
2023-07-17 22:37:03 -07:00
Aditya Kodukula
32694d5ca9 qcacld-3.0: Use QDF_MAC_ADDR_FMT to print mac address
Currently in driver, %pM is used to print mac address.
Replace all instances of it with QDF_MAC_ADDR_FMT.

Change-Id: Ibd575675804ab6545ed32fde2ec2b08caf837d83
CRs-Fixed: 3555007
2023-07-17 22:37:02 -07:00
Aditya Kodukula
5156c641ee qcacld-3.0: Replace QDF_FULL_MAC_FMT with QDF_MAC_ADDR_FMT
Currently in driver, two macros are defined to specify the
mac address printing format. Since both macros achieve
the same result, replace all instances of QDF_FULL_MAC_FMT
with QDF_MAC_ADDR_FMT.

Change-Id: I88b04fbaeba061a6272427e0daafcc132f53bb1e
CRs-Fixed: 3559489
2023-07-17 22:36:57 -07:00
Chunquan Luo
05133482ca qcacld-3.0: Avoid NULL pointer dereferenced
Pointer 'pre_cac_adapter' returned from call to function
'hdd_get_adapter_by_iface_name' may be NULL and may be
dereferenced.
Array '&param_val' of size 4 may use index value(s) large
than 4.

Change-Id: Ic66628f79a6118bc5ab4d6571f341b80e18c689b
CRs-Fixed: 3559886
2023-07-17 22:36:52 -07:00
Rahul Choudhary
8d6557a26d Release 5.2.1.74J
Release 5.2.1.74J

Change-Id: I1516b4089771724bad30ac9fc4ebd4259254102a
CRs-Fixed: 774533
2023-07-17 19:47:31 -07:00
Pragaspathi Thilagaraj
d324508e7d qcacld-3.0: Use AP channel width to fill OMN IE in assoc request
Currently the pe_session->ch_width is overwritten to maximum
channel width if the AP advertises 20 MHz ch_width, to mitigate
some interopebality issues with faulty AP that changes BW during
association. So save the AP channel width computed in
pe_session->ap_ch_width.

Use the pe_session->ap_ch_width to validate if the ch_width is
20 MHz to fill the IE.

Change-Id: Iafe60f8497fde946f0135a6586e524143f3902f5
CRs-Fixed: 3548484
2023-07-17 19:47:31 -07:00
Rahul Choudhary
2d45230b17 Release 5.2.1.74I
Release 5.2.1.74I

Change-Id: I6a38b0a97af0f00783de8221a07086b6e06dd4b3
CRs-Fixed: 774533
2023-07-17 13:24:41 -07:00
Aravind Kishore Sukla
303fd0563d qcacld-3.0: Update host version for feature set info
Update host version for feature set info

Change-Id: I0e3721335f95609dcb340bfcb52e114bc94efd40
CRs-Fixed: 3553221
2023-07-17 13:24:40 -07:00
Rahul Choudhary
31cabbcf22 Release 5.2.1.74H
Release 5.2.1.74H

Change-Id: I48c04456a2db5b0c4921255c8fad12a55a742741
CRs-Fixed: 774533
2023-07-17 10:38:38 -07:00
Deeksha Gupta
4941611135 qcacld-3.0: Send partner link info during peer_assoc_cmd
Send partner link info during peer_assoc_cmd

Change-Id: I64b7b6c9aee8d436ec813ae2b0eac025c985d212
CRs-Fixed: 3530233
2023-07-17 10:38:38 -07:00
Rahul Choudhary
e3ea165872 Release 5.2.1.74G
Release 5.2.1.74G

Change-Id: I9b98def119969efa15973583aacf7f3bd864cce8
CRs-Fixed: 774533
2023-07-17 07:51:03 -07:00
Vijay Raj
ab389ecd74 qcacld-3.0: Add RSO state check for disconnect event
Firmware sends final bmiss indication as part of roam scan
stats event. Disconn log is sent as part of the final bmiss
indication from roam scan stats event with specific reason.
But if RSO stop or RSO deinit happens after first bmiss due
to concurrent interface connection, then firmware doesn't
send the final bmiss indication to driver since roam scan
will be disabled. This will lead HOST to unable to send
disconnect log to userspace.

In api lim_tear_down_link_with_ap(), add rso state check
to send discon connectivity event in case when RSO state
change to STOPPED or DEINIT after initial BMISS.

Change-Id: I318590ea5758b19a2542b4b581a07221f5195b24
CRs-Fixed: 3530673
2023-07-17 07:51:03 -07:00
Rahul Choudhary
bfbd43d82c Release 5.2.1.74F
Release 5.2.1.74F

Change-Id: I1b7cd191b6426f37e87897ba5c075f10087f8bbf
CRs-Fixed: 774533
2023-07-17 05:01:06 -07:00
Amit Mehta
af94327676 qcacld-3.0: Add WALT_GET_CPU_TAKEN_SUPPORT flag
set WALT_GET_CPU_TAKEN_SUPPORT if walt_get_cpus_taken
is present to avoid issue on target where changes are
not present in kernel branch.

Change-Id: I550291b5fb2dc38b6a26eaece3fbe3ede5604a7d
CRs-Fixed: 3559245
2023-07-17 05:01:05 -07:00
Rahul Choudhary
6e093a5d89 Release 5.2.1.74E
Release 5.2.1.74E

Change-Id: I281265ab8c811511d39d0302a7b24313db92793f
CRs-Fixed: 774533
2023-07-17 00:05:48 -07:00
Shailendra Singh
dc45a92479 qcacld-3.0: Add change to get per vdev tx power
Add change to get txpower per vdev in vdev extended
stats from firmware. If per vdev tx power is set
then get it from extended stats received from
firmware. Otherwise, get pdev tx power.

Change-Id: I62b4516ee2951ef3e71600575e7e69a5213fdb40
CRs-Fixed: 3495828
2023-07-17 00:05:47 -07:00
Rahul Choudhary
1b78fbea88 Release 5.2.1.74D
Release 5.2.1.74D

Change-Id: I4715bfd01674e9eb697c6dcb6883ab59ae4ef1ee
CRs-Fixed: 774533
2023-07-16 14:02:28 -07:00
Aasir Rasheed
478a67b05b qcacld-3.0: Use psoc based api to save keys for the standby link
This change is to save crypto key for standby link using
wlan_crypto_save_ml_sta_key api based on psoc level.

Change-Id: I93a886de3dec470f5905609939735830d9e9904d
CRs-Fixed: 3549392
2023-07-16 14:02:28 -07:00
Rahul Choudhary
c67ac15790 Release 5.2.1.74C
Release 5.2.1.74C

Change-Id: I58a9c6b5e5788f207dddee2aec30cc7054fbe27e
CRs-Fixed: 774533
2023-07-15 16:06:28 -07:00
Arun Kumar Khandavalli
deb06bc73b qcacld-3.0: take vdev reference before passing the vdev around
While STA is connecting we check if SAP is on any of the dfs
channels passing the vdev without taking vdev reference.

SAP interface can be removed in the other thread resulting in
invalid access. So take the vdev reference before passing the
vdev.

Change-Id: I5e1e24c5c8a3f877143bc2fc1b7a5744452ac9c6
CRs-Fixed: 3541378
2023-07-15 16:06:28 -07:00
Rahul Choudhary
c719dbf10d Release 5.2.1.74B
Release 5.2.1.74B

Change-Id: I50e82f09ab73600035cc2707f6f46baf4ec0937a
CRs-Fixed: 774533
2023-07-15 08:07:03 -07:00
Vinod Kumar Pirla
7627d7c410 qcacld-3.0: Reject start adapter if no assoc adapter found
Driver creates all SAP add virtual interface as ML-type adapter
and when driver receives change interface mode to STA type on
that adapter, it will not reset the ML-type flag and during
VDEV create driver is trying to search link adapter for this
STA adapter to fill link address of the VDEV. As there won't be
any link adapter for virtually created interface, driver is not
filling MAC address and attempting VDEV create with NULL MAC.

If link adapter is not found for any reason, result in failure
for start adapter.

Change-Id: I639c384964b15a92eb7dea4e6a69fd588025e850
CRs-Fixed: 3559740
2023-07-15 08:07:03 -07:00
Rahul Choudhary
36b2cba833 Release 5.2.1.74A
Release 5.2.1.74A

Change-Id: Ic2645d4b02861f7db7e35faa8b6eafd43dc48472
CRs-Fixed: 774533
2023-07-14 18:47:59 -07:00
Aditya Kodukula
5d0fdc0b92 qcacld-3.0: Cache mlo ll_peer stats in hdd context
Currently for mlo connection, the peer_stats sent by FW
are cached into the link_info structure. Since FW sends
peer stats for all connected peers in a single event,
cache it in hdd context for easy access.

Change-Id: I5e13694683f96f9c0d4e11026f5f2737d8454c65
CRs-Fixed: 3559549
2023-07-14 18:47:59 -07:00
Rahul Choudhary
248c051ae5 Release 5.2.1.74
Release 5.2.1.74

Change-Id: I6b8a65b1f746b7c2caf7c7986b940148d5b15dd5
CRs-Fixed: 774533
2023-07-14 15:41:19 -07:00
Abhinav Kumar
c6cda92c56 qcacld-3.0: select pri20 frequency in a wideband scan list
As 320 MHz wideband scan is not supported host splits 320 MHz
bandwidth into two 160 MHz scans. Currently, none of these
two 160 MHz wideband scan requests carry the pri20 sub-band
frequency of the connected 6 GHz ML link.
Due to this, DUT is not able to receive beacons sent by 6 GHz
AP (AP sends beacons only on primary 20 MHz freq).

The fix is to fill the pri20 sub-band freq of the connected
6 GHz ML link as one frequency in the wide band scan list
request.

CRs-Fixed: 3552131
Change-Id: I3da18d5801fb7af84b6e20b8134af2d738cc57e1
2023-07-14 15:41:18 -07:00
Jyoti Kumari
8b0e06658f qcacld-3.0: Store TWT SI and SP in twt peer private object
Store TWT SI and SP in twt peer private object. This info will be
use in LL_LT_SAP to decide CSA via GATT message or ECSA action
frame.

Change-Id: I163b38a46267a2f1453cdb91d90dc97d0e6265e4
CRs-Fixed: 3517009
2023-07-14 15:41:13 -07:00
Deeksha Gupta
fb6061d91f qcacld-3.0: Reset the vdev level T2LM info as default mapping
Currently, during disconnection vdev level T2LM established
mapping set as 0.

Add changes to reset it to default mapping T2LM mapping
instead to 0.

Change-Id: I4590045a65d3e715ceddcbf73252ec853abc7cb3
CRs-Fixed: 3560022
2023-07-14 15:41:08 -07:00
Rahul Choudhary
ae93efe6e8 Release 5.2.1.73Z
Release 5.2.1.73Z

Change-Id: Ic87aa2c8da67563610afec1bb6ff9d30bc4d2f36
CRs-Fixed: 774533
2023-07-14 10:07:00 -07:00
Surya Prakash Sivaraj
3ff6b85589 qcacld-3.0: Add sanity checks to prevent incorrect CSA
Prevent DFS-to-NON-DFS CSA, if the chosen candidate
frequency is passive or if the SAP is not 6 GHz capable.
Instead, select a non-dfs channel from PCL and move the
SAP. Later, the SAP will be re-oriented to SCC if there
is interference.

Change-Id: I954a5e810639fe41b9b4e16bd84a93c24a7b03e6
CRs-Fixed: 3550941
2023-07-14 10:06:59 -07:00
Vinod Kumar Pirla
797fca51a5 qcacld-3.0: For add key VDEV use proper link info pointer
To add key for particular VDEV, the following API is using
deflink and this will lead to saving keys for wrong VDEV
incase the add key is for non-deflink VDEV.

Use the proper link info fetched from the IEEE link id or
vdev id.
APIs:
1) wlan_hdd_add_key_vdev()
2) wlan_hdd_add_key_sta()
3) wlan_hdd_add_key_sap()

Change-Id: Ia51452b56bd490976dbf677d3d27b4e0f84415d5
CRs-Fixed: 3547669
2023-07-14 10:06:52 -07:00
Rahul Choudhary
8028007ef7 Release 5.2.1.73Y
Release 5.2.1.73Y

Change-Id: I834f82f9b34d74116cef579f5e551672c005a49e
CRs-Fixed: 774533
2023-07-14 01:11:24 -07:00
Jyoti Kumari
1c4333ac79 qcacld-3.0: Create new file in ll_sap component
Create new file in ll_sap component to add api's
related with ll_sap

Change-Id: Ic3829ecd1f00268dae9ddf138caeb4288a47fb3c
CRs-Fixed: 3550283
2023-07-14 01:11:24 -07:00
Abhishek Singh
2f4d5c28be qcacld-3.0: Fix SAP start on DFS freq due to invalid sap fsm state
SAP FSM state is not moved to STARTING from STARTED for DFS freq,
thus CAC complete is not handled in STARTED state and VDEV does
not move to UP state.

Fix this by moving state to STARTING from STARTED for DFS Freq.
Also add vdev id in all FSM logs.

Change-Id: Id8f178d8d7838bdeacdeea50b41dbb19146108c2
CRs-Fixed: 3556248
2023-07-14 01:11:18 -07:00
Rahul Choudhary
d34e8536b9 Release 5.2.1.73X
Release 5.2.1.73X

Change-Id: I9fbaaadd8e8cbed8851a7a2774d5c722cbf72e55
CRs-Fixed: 774533
2023-07-13 19:23:29 -07:00
Deeksha Gupta
0837347372 qcacld-3.0: Update T2LM direction if T2LM IE is present
Currently, if T2LM IE is not present in the beacon, probe
or assoc resp frame still host is updating established_t2lm
T2LM info 0. Updating the T2LM info as 0 leads to incorrect
info after T2LM teardown.

To fix this, update the T2LM info if T2LM IE is present in
beacon, probe or assoc resp frame.

Change-Id: If3f4f9b1ee4296a0dca5f85833944fbe28df5d5e
CRs-Fixed: 3541848
2023-07-13 19:23:29 -07:00
Vinod Kumar Pirla
0cecec6df6 qcacld-3.0: Update the derived link address in mlo mgr
After all VDEV in the ML dev context are created, update the link
addresses derived in the ML dev context for connecting with 3 link APs.
For the link address which doesn't have valid VDEV id, mark the VDEV ID
invalid, for valid VDEV ID fill the corresponding VDEV ID.

Change-Id: I5e9b3414d0e0db7135cb977f48abb072cc1b6e8b
CRs-Fixed: 3492039
2023-07-13 19:23:23 -07:00
Rahul Choudhary
eabfc1a5ae Release 5.2.1.73W
Release 5.2.1.73W

Change-Id: I646f485a88f888fe6e44fcc79830ec9b91d5f2fa
CRs-Fixed: 774533
2023-07-13 11:23:59 -07:00
Vinod Kumar Pirla
780f32137a qcacld-3.0: Use array size for checking valid link idx
Use array size of link info for checking valid link idx

Change-Id: I197fbc011bd71e6a56b607726a8029c4247e6926
CRs-Fixed: 3554841
2023-07-13 11:23:59 -07:00
Deeksha Gupta
cc9067400c qcacld-3.0: Move wma_host_to_fw_phymode to WMI layer
Move wma_host_to_fw_phymode() from WMA to WMI.

Change-Id: Ib781a3fa78a15c435e22a90ca46321cd3c4b18f9
CRs-Fixed: 3557263
2023-07-13 11:23:54 -07:00
Rahul Choudhary
ec292bd305 Release 5.2.1.73V
Release 5.2.1.73V

Change-Id: Idb2c5fb8e1c734508947c53c9a936778501c978f
CRs-Fixed: 774533
2023-07-13 04:49:49 -07:00
Jianmin Zhu
331bebf233 qcacld-3.0: Don't enable roam if MLO vdev is not up
When MLO sta disconnected, sta_ctx->wlan_connected_links is cleared,
mlo_check_if_all_vdev_up return true, RSO can be enabled on this stopped
vdev, F/W assert will happen for roam struct is absent.

To fix it, for MLO vdev, don't enable roam if current vdev is not up like
legacy vdev.

Change-Id: I32e1b50525edcc4e7f6b42078e4fda9f415c9841
CRs-Fixed: 3555349
2023-07-13 04:49:49 -07:00
Yu Ouyang
cc781de492 qcacld-3.0: Disable HIF_CPU_PERF_AFFINE for Genoa
Auto GVM platform, cluster 0 is gold core, cluster 1 is siliver core.
Disable HIF_CPU_PERF_AFFINE to ensure WLAN CE can work on gold core.

Change-Id: Idc6a0400d5fc232e93af1a2c362f58d62805c836
CRs-Fixed: 3549998
2023-07-13 04:49:43 -07:00
Paul Zhang
fa3d782584 qcacld-3.0: Update the EHT CAP IE to firmware
When EPCS priority access flag changed, it needs to update
the EHT CAP IE to firmware for the probe request when offload
scan happens.

Change-Id: I37ed8edcbc05ec4e6fe5edec7cfe20de0d64b7bb
CRs-Fixed: 3552311
2023-07-13 04:49:38 -07:00
Asutosh Mohapatra
43249aa86c qcacld-3.0: Avoid allocating large chunk of memory statically
Currently in wlan_is_nan_allowed_on_6ghz_freq and
__wlan_hdd_sysfs_freq_show static allocation of 6 GHz
channel list is present which leads to stack overflow.

To address this issue allocate 6 GHz channel list
dynamically.

Change-Id: If363270ab51516b67c68399f805a0434ccbb5bd3
CRs-Fixed: 3557442
2023-07-13 04:49:32 -07:00
Rahul Choudhary
3a331ae870 Release 5.2.1.73U
Release 5.2.1.73U

Change-Id: Ia5ac5f348a86cc98c3e4da776f9926b04492dbea
CRs-Fixed: 774533
2023-07-12 21:59:36 -07:00