Commit Graph

28899 Commits

Author SHA1 Message Date
Madan Koyyalamudi
3a27b83db6 Release 5.2.1.66C
Release 5.2.1.66C

Change-Id: Ic7200372111ee4740f53f1cd82cca69fa6e0a256
CRs-Fixed: 774533
2023-05-14 08:11:23 -07:00
Vinod Kumar Pirla
019a05264f qcacld-3.0: Use link_info pointer to get station context
As part of single netdev multi vdev changes, station context
is now per link. To get the station context for a particular
link, pass the link_info pointer instead of adapter.

Change-Id: I786e41c82f349f118d6e45782ff206226cb09901
CRs-Fixed: 3447529
2023-05-14 08:11:22 -07:00
Jinwei Chen
485213758f qcacld-3.0: enable TX ILP for KIWI
Enable TX ILP for KIWI

Change-Id: I8bf44fdf5cb3917c699971c6856189ef1627e95e
CRs-Fixed: 3463701
2023-05-14 08:11:17 -07:00
Madan Koyyalamudi
5389dfe184 Release 5.2.1.66B
Release 5.2.1.66B

Change-Id: Ifec2f9d5bafdb619ffc61a1ba769b5d69dceefd2
CRs-Fixed: 774533
2023-05-14 05:06:52 -07:00
abhinav kumar
f231c54eb9 qcacld-3.0: Process ML Channel Measurement request
Host parse newely added vendor command
QCA_NL80211_VENDOR_SUBCMD_CONNECTED_CHANNEL_STATS and trigger
scan to get connected channel stats from FW in case of MLO
connection.

On scan done host sends scan done indication to upper layer
via QCA_NL80211_VENDOR_SUBCMD_CONNECTED_CHANNEL_STATS vendor
command.

Change-Id: Iff09b6dfe88b5f075a4c81d8f0bfff5bbb0fedaa
CRs-Fixed: 3491058
2023-05-14 05:06:52 -07:00
Madan Koyyalamudi
b0bbaacf76 Release 5.2.1.66A
Release 5.2.1.66A

Change-Id: I4393be63a050f007d3ef9a4dea886317f32031ff
CRs-Fixed: 774533
2023-05-14 02:06:35 -07:00
Chunquan Luo
0edfed82a9 qcacld-3.0: Add p2p-gc mode for uplink delay feature
Add p2p-gc mode for uplink delay feature.

Change-Id: Ibce38b9dc1629023be3e7d7841292cf22ca0135c
CRs-Fixed: 3494188
2023-05-14 02:06:34 -07:00
Madan Koyyalamudi
9ee4260658 Release 5.2.1.66
Release 5.2.1.66

Change-Id: I4d34cb6216d2e49e3c1545cebac458c0c58bb1aa
CRs-Fixed: 774533
2023-05-13 17:02:27 -07:00
Vijay Patil
29d922df4a qcacld-3.0: Don't allow NAN enable when DFS CAC is in progress
When DFS CAC is going on for SAP, if 5 GHz mac is occupied by the
SAP and it's not available for 5 GHz NAN discovery. Enabling NAN
on 5 GHz in such cases cause inconsistency in firmware state machine
and firmware may assert as DFS MAC is not supposed to be disturbed
while CAC is going on.

So, check if NAN enable request has 5 GHz NAN channel also and reject
the request. Allow NAN enable command if it's 2 GHz only NAN enable
request, while CAC is going on.

Change-Id: If3f2b2b40cc2b70bc7a872970bc088204440d519
CRs-Fixed: 3458462
2023-05-13 17:02:27 -07:00
Madan Koyyalamudi
0a9baf724a Release 5.2.1.65Z
Release 5.2.1.65Z

Change-Id: I4e2c9f94c58c792ac2f42106d97cc9e83286724e
CRs-Fixed: 774533
2023-05-13 14:44:33 -07:00
Vinod Kumar Pirla
e99282ca0e qcacld-3.0: Use MAC addr derive logic for link adapters
Currently the link addresses of link adapters are static and
are allocated during adapter create.
To randomize the MAC address as part of connection Android
framework sends new MAC address, which will be set as MLD address
incase of ML interface, but the link addresses are not changed.

Use the MAC address from Android framework and generate new
link addresses from that for each link. Manage interface
change logic and redundant code.

Change-Id: I40c86cfd05b304c48ab048ea793cc34fb4d250f9
CRs-Fixed: 3485639
2023-05-13 14:44:32 -07:00
Vinod Kumar Pirla
d194db7cd2 qcacld-3.0: Introduce link MAC address derive logic
A new logic to derive link address from MLD address to
randomize link MAC address on each connection.

Change-Id: I75ba80da6c9cb97103ed84ef2b9c6d091dd5d90e
CRs-Fixed: 3486110
2023-05-13 14:44:28 -07:00
Ben Wang
5c44ee5d35 qcacld-3.0: Fix SAP get peer state error in AP+AP mode
WLAN driver working on AP0+AP1 mode. After a ref STA move
connection from AP0(vdev0) to AP1(vdev1). vdev0 have release
peer STA. But it can get a peer state from ol_txrx_get_peer_state.
Actually, the state is from vdev1, not vdev0. If vdev0 have data
send to FW, it will cause FW crash.

Change-Id: I7978b758e98a16993d16d53a55d67734aa896979
CRs-Fixed: 3477987
2023-05-13 14:44:23 -07:00
Madan Koyyalamudi
ddad65bbaa Release 5.2.1.65Y
Release 5.2.1.65Y

Change-Id: Ibf10ed2d726984d7865c06e57103278374d68049
CRs-Fixed: 774533
2023-05-12 16:38:22 -07:00
Jeff Johnson
15428634f6 qcacld-3.0: Kbuild: Remove redundant WLAN_PRE_CAC_INC
In Kbuild the macro WLAN_PRE_CAC_INC is defined twice, with the second
definition overriding the first one. Since the second definition
incorporates the logic from the first definition, the first definition
is pointless, so remove it.

Change-Id: I7e679109b6c08d226236c42c20e18e50537036e9
CRs-Fixed: 3490072
2023-05-12 16:38:21 -07:00
Rachit Kankane
67cd36f376 qcacld-3.0: Send WMI_VDEV_PARAM_HEOPS_0_31
Currently WMI_VDEV_PARAM_HEOPS_0_31 is sent after VDEV_START
response received from FW. But FW side, they do not configure
hardware register with sent BSS color as VDEV_UP command is not
sent yet. FW needs to know for which BSSID hardware register,
this BSS color should be configured. Hence send SET_VDEV_PARAM
command with param-id WMI_VDEV_PARAM_HEOPS_0_31 after VDEV_UP
as well.

Change-Id: I7cc4648381464f1c35edee36caabf718ff8eafe3
CRs-Fixed: 3461304
2023-05-12 16:38:08 -07:00
Ananya Gupta
92a1a945d3 qcacld-3.0: Mutex lock to set direct link config
There is a race condition where profile for direct link is set but
hif link was not yet voted up to prevent suspend. Parallelly,
direct link config is cleared in different context causing hif link
to vote down without being voted up which resulted in crash.
To fix this, create a mutex lock and move all the config set
operations inside the lock.

Change-Id: I80924d9ed52a9889a178b98469be15af0454b022
CRs-Fixed: 3490442
2023-05-12 16:38:03 -07:00
Gururaj Pandurangi
f66502847d qcacld-3.0: Call T2LM parser API if critical update flag set
Invoke T2LM parser API if critical update flag is set in the
AP beacon.

Change-Id: Ifc4f3574eac64fef4c71486c8a616ef999c599e6
CRs-Fixed: 3435331
2023-05-12 16:37:58 -07:00
Aditya Kodukula
4924b2aaf5 qcacld-3.0: Extract vdev extended summary stats event
In case of MLO connection, firmware sends each vdev's status
information via vdev extended stats event. Add support in driver,
to extract that information.

Change-Id: Ia7a0a92baf008e6549830672b68e58be5a8202df
CRs-Fixed: 3483731
2023-05-12 16:37:53 -07:00
David Oladunjoye
032ace6233 qcacld-3.0: Remove CONFIG_CONVERED_TDLS_ENABLE
TDLS code is converged and the CONFIG_CONVERTED_TDLS_ENABLE
flag is no longer used.

Change-Id: I33c6c950afb829cad566a6587121de157901c959
CRs-Fixed: 3488525
2023-05-12 16:37:48 -07:00
Madan Koyyalamudi
6cee9da1ab Release 5.2.1.65X
Release 5.2.1.65X

Change-Id: I04261ab788c22ea5ffbf156b5a5dd77f684c807e
CRs-Fixed: 774533
2023-05-12 05:03:06 -07:00
Vinod Kumar Pirla
20f862721f qcacld-3.0: Add API to get link_info pointer from adapter
Introduce a new API which returns the pointer of link info
in adapter. The API returns NULL in case of invalid array
index.

Change-Id: I2e9d85775cd2366c99682825de5cd66612148cc9
CRs-Fixed: 3447331
2023-05-12 05:03:06 -07:00
Rahul Gusain
afe528f7c3 qcacld-3.0: Register auth random TA feature to kernel
Add support for random TA for auth and deauth frames by advertising
the feature flag "NL80211_EXT_FEATURE_AUTH_AND_DEAUTH_RANDOM_TA" to
the kernel.

Change-Id: Id323b9bb1eacdd24fdb02790a7469ac140bb7d8b
CRs-Fixed: 3493510
2023-05-12 05:03:01 -07:00
Rahul Gusain
bba075a057 qcacld-3.0: Set secure NAN feature to kernel
Currently, there is no provision to identify that the driver supports
NAN pairing protocol. So, new kernel will start exchanging PASN frames
without realization that old driver is loaded and thus, frames will be
drops in driver.

So, to resolve the backward compatibility issue, kernel introduces new
feature flag "NL80211_EXT_FEATURE_SECURE_NAN".
Firmware send "max_pairing_session" parameter in NAN capabilities and
host driver extracts the parameter and set the feature flag to kernel
when max pairing session has non-zero value.

Change-Id: I3b83a771c99bf2e91a4ed1a14acafe584d6e17ec
CRs-Fixed: 3493345
2023-05-12 05:02:56 -07:00
Srinivas Dasari
48328ed929 qcacld-3.0: Don't skip RSO enable when single link roaming happens
when STA roams from multi link AP to single link AP,
the non-assoc link gets cleaned up(through disconnect path) and
RSO gets disabled as part of this. But RSO doesn't get re-enabled
when link cleanup is completed. So, STA can't roam further.

Remove the check which skips RSO enable if the current
disconnecting vdev is of type MLO link. Next API
policy_mgr_get_roam_enabled_sta_session_id() can fetch the
right valid vdev to enable RSO. Don't update PCL to
firmware as there is no need to update again as part of link
cleanup. Firmware has already got the PCL as part of assoc
vdev RSO enable.
cm_roam_switch_to_init() takes care of not allowing RSO enable
in disconnect case as the assoc vdev CM is in
WLAN_CM_S_DISCONNECTING state.

Change-Id: I155bb93868653d5575f81559c48b86b40cf5d59c
CRs-Fixed: 3487290
2023-05-12 05:02:51 -07:00
Madan Koyyalamudi
d6a5c59008 Release 5.2.1.65W
Release 5.2.1.65W

Change-Id: Ibea0a8483314b673f4d1cce993bc825d57c4a3b3
CRs-Fixed: 774533
2023-05-11 15:36:35 -07:00
Gururaj Pandurangi
df73ec02e0 qcacld-3.0: Drop EMLSR entry request if concurrency exists
Drop any vendor command request to enter EMLSR mode if there
are any concurrent connections existing with MLSR STA as
this combination is not supported.

Change-Id: I3b1f2bbe714c83628a8394068f7483d3913ce421
CRs-Fixed: 3478257
2023-05-11 15:36:35 -07:00
Chunquan Luo
e86c473360 qcacld-3.0: Fix roam Unit test command fail
Since fw update the logic of roam stats, the data of
wmi_roam_trigger_reason maybe null when fw send event
of WMI_ROAM_STATS_EVENTID to host driver, and at that
time, the num_roam_trigger_reason is zero, we don't
need reduce the length when extract roam stats event.

Change-Id: I332de7ba2d2efeba722e2194af4b9c97ef310a73
CRs-Fixed: 3475501
2023-05-11 15:36:30 -07:00
Madan Koyyalamudi
cdd1f42100 Release 5.2.1.65V
Release 5.2.1.65V

Change-Id: I89bf035b991532bad212fe7f4fe2930d5da809d6
CRs-Fixed: 774533
2023-05-11 09:00:22 -07:00
abhinav kumar
6f8d32955c qcacld-3.0: Update roam scan freq list on connection failure
Host sends roam scan offload channel list via WMI_ROAM_CHAN_LIST
to FW after a successful connection.

The host creates a ROAM_SCAN_CHAN list with BSSID entries present
in the scan database. If the connection to an AP fails due to
Auth/Join/Assoc timeout, Host removes the AP entry from the Scan
database, assuming it’s not reachable (to avoid reconnecting to the
AP as it's not responding). Due to this, FW does not include the
frequency(s), for which the connection failed, in roam scan.

Fix is to store the frequency(s) of all the candidates to which the
driver tried connection in the rso config during connect resp failure
and use the same list to update the roam channel list on the top of
entries present in scan db.

Change-Id: I7a4bb3961a64fcf987cb6f2be87b6475363d500a
CRs-Fixed: 3486154
2023-05-11 09:00:22 -07:00
Madan Koyyalamudi
1ab07f238e Release 5.2.1.65U
Release 5.2.1.65U

Change-Id: Idb6b1bea4618acfd98f2c287ff8e731381cdc75f
CRs-Fixed: 774533
2023-05-11 06:31:08 -07:00
Srikanth Marepalli
59bf42fbdb qcacld-3.0: Notify TDLS disable to FW only after deleting the peers
With the commit(Ic425cc065a29bbc444531f523eaccb14014ae47a) driver
enqueues the TDLS peer deletion as part of roam sync indication
and then enqueues the TDLS disable notify to firmware. But before
this driver is processing the TDLS enable notify which is part of
add_sta and then the TDLS disable is getting processed and
notified to firmware, which results in disabling the TDLS after
roam.
The correct sequence during roam should be delete the TDLS peers,
followed by TDLS disable notify to FW and then TDLS enable notify
to FW.
Driver already take care of deleting the TDLS peers as part roam
sync indication callback. This change calls the TDLS disable
notify API only after deleting the TDLS peers during roam.

Change-Id: I58ef78852290c95e6709e6aa1b0671916322625f
CRs-Fixed: 3486585
2023-05-11 06:31:07 -07:00
Madan Koyyalamudi
2d2736400f Release 5.2.1.65T
Release 5.2.1.65T

Change-Id: I41238f85e4dd883f758584b213de23fc85baf3d1
CRs-Fixed: 774533
2023-05-10 19:12:18 -07:00
Sheenam Monga
69d0edd123 qcacld-3.0: Add api to get freq for ll sap separately
Currently, single API is being used to get sap freq for
both HT and LT profile type sap which may cause issue in
future because one could be in MCC but other will be strictly SCC.

To avoid any issue different APIs are introduced for different
AP profile type.

Change-Id: I7108ef96896d3bec2116c6936884500d82b24fa0
CRs-Fixed: 3489049
2023-05-10 19:12:17 -07:00
Madan Koyyalamudi
2c1e5634ea Release 5.2.1.65S
Release 5.2.1.65S

Change-Id: Ic83a989523a50d5b7c9bc4443477f01759b0277d
CRs-Fixed: 774533
2023-05-10 17:08:39 -07:00
Jeff Johnson
59d58b682e qcacld-3.0: Kbuild: Remove duplicate -I[...]/lmac_if/inc
Currently, in Kbuild, the following switch is duplicated in the
ccflags: -Icmn/umac/global_umac_dispatcher/lmac_if/inc

One instance is populated here:
UMAC_DISP_DIR := umac/global_umac_dispatcher/lmac_if
UMAC_DISP_INC_DIR := $(UMAC_DISP_DIR)/inc
[...]
UMAC_DISP_INC := -I$(WLAN_COMMON_INC)/$(UMAC_DISP_INC_DIR)

The other instance is populated here:
[...]
UMAC_OBJMGR_INC := [...]
		-I$(WLAN_COMMON_INC)/umac/global_umac_dispatcher/lmac_if/inc

Remove the duplicate switch.

Change-Id: I46333836b427d047d8b5471c67b65698ca0b5417
CRs-Fixed: 3490071
2023-05-10 17:08:39 -07:00
Jeff Johnson
a1c61c1fee qcacld-3.0: Finish removing CONFIG_MCL_REGDB
Change I12af832d81815277ec6014ff5047bf960f01534a ("qcacld-3.0: Replace
CONFIG_MCL_REGDB with CONFIG_REG_CLIENT") replaced all usage of
CONFIG_MCL_REGDB.

Subsequently Change If2fb00bd2298aa6f43418b3e4694aa995887b4f3
("qcacld-3.0: Add qcs40x.snoc.perf_defconfig") added a new
instance. Since this instance is pointless, remove it.

Change-Id: If464eb9f510ded7fe9f2cfac3e16263f35fe3af6
CRs-Fixed: 3489450
2023-05-10 17:08:34 -07:00
Jeff Johnson
29f6779efc qcacld-3.0: Finish removing CONFIG_WLAN_FEATURE_NAN_DATAPATH
Change If98ecaace17f8724e9c28325ef61e721f42e1d8f ("qcacld-3.0: Combine
all NAN related flags with WLAN_FEATURE_NAN") removed all usage of
CONFIG_WLAN_FEATURE_NAN_DATAPATH, but did not remove the references
from the defconfig files, so do it now.

Change-Id: I1484a8917c1128637bd16009bd2237b6e99976f0
CRs-Fixed: 3489449
2023-05-10 17:08:28 -07:00
Madan Koyyalamudi
373bdf74a8 Release 5.2.1.65R
Release 5.2.1.65R

Change-Id: I39ec300018ba81aaa5f84986b1925d4405cbdc3e
CRs-Fixed: 774533
2023-05-10 14:45:26 -07:00
Yeshwanth Sriram Guntuka
f1620fb98b qcacld-3.0: Add prealloc pools for direct link consistent memory
Add multi page prealloc pools for TX buffers and CE
TX buffers for direct link datapath.

Change-Id: I8c8be42b0530de39293ad8e45f47e16f90ea7767
CRs-Fixed: 3490109
2023-05-10 14:45:25 -07:00
Madan Koyyalamudi
d807118e9c Release 5.2.1.65Q
Release 5.2.1.65Q

Change-Id: If701180d763d5e56a3487b461524ac11ec2b8de0
CRs-Fixed: 774533
2023-05-10 11:47:55 -07:00
Srinivas Girigowda
8189869ef9 qcacld-3.0: Enable local pkt capture feature
Enable local pkt capture feature.

Change-Id: Ib674027f84d30ed20b28187e83deb5b420c5c91c
CRs-Fixed: 3415890
2023-05-10 11:47:55 -07:00
Srinivas Girigowda
ad537fb8e7 qcacld-3.0: Enable WLAN_PKT_CAPTURE_TX_2_0
Enable WLAN_PKT_CAPTURE_TX_2_0.

Change-Id: I33f225f08140fbcdd86057b148cedcc04505ed39
CRs-Fixed: 3415889
2023-05-10 11:47:48 -07:00
Srinivas Girigowda
99eb4ce97a qcacld-3.0: Provide ucfg_fwol_set_ilp_config() api
Provide ucfg_fwol_set_ilp_config() api.

Change-Id: Id003eb8605c513bb1209e5a3b5073b9ad972b2fe
CRs-Fixed: 3415887
2023-05-10 11:47:42 -07:00
Srinivas Girigowda
69d21b22e9 qcacld-3.0: Add Tx Mon to prealloc
Add Tx Mon to prealloc.

Change-Id: I09d5558d0115ba148469047d03f33a029c43a287
CRs-Fixed: 3415885
2023-05-10 11:47:36 -07:00
Srinivas Girigowda
1a6bd34a09 qcacld-3.0: Add support to query local packet capture status
Add support to query local packet capture status.

Change-Id: I8582b8af89b0582cc94ba04ea3e875916617505b
CRs-Fixed: 3415881
2023-05-10 11:47:16 -07:00
Srinivas Girigowda
e41ef343b8 qcacld-3.0: Handle concurrency scenarios in local packet capture
Handle concurrency scenarios in local packet capture.

Change-Id: Ie464f4f2402e7f67f8eb16738dc107f09293a26b
CRs-Fixed: 3415879
2023-05-10 11:47:10 -07:00
Srinivas Girigowda
faa441c3eb qcacld-3.0: Add support for stop capture
Add support for stop capture.

Change-Id: I809163c033b09239adf79518a4baa40965a29f8f
CRs-Fixed: 3415876
2023-05-10 11:47:04 -07:00
Srinivas Girigowda
72b8810c2c qcacld-3.0: Add support for start capture
Add support for start capture.

Change-Id: I93a15b0bf8b9c26bd53d33378a7daefece448d68
CRs-Fixed: 3415870
2023-05-10 11:46:58 -07:00
Srinivas Girigowda
9af1145749 qcacld-3.0: Add config CONFIG_WLAN_DP_LOCAL_PKT_CAPTURE
Add config CONFIG_WLAN_DP_LOCAL_PKT_CAPTURE.

Change-Id: I221af4dda5e752c9e0775131b3d693aa8e9afdd1
CRs-Fixed: 3415866
2023-05-10 11:46:52 -07:00