Commit Graph

24878 Commits

Author SHA1 Message Date
Bing Sun
3e6513e3b8 qcacld-3.0: Implement beamforming configuration for EHT
Intersecting EHT beamforming configuration from ini and FW
indication, then save it to eht caps of mlme.
For sta, update mlme EHT beamforming configuration to FW
through WMI_VDEV_PARAM_SET_EHT_MU_MODE directly.
For ap, intersecting mlme EHT beamforming configuration and user
configuration, then send result to FW.

Change-Id: I3d6185896af9fc58eb1fb6db913d4a425f72c696
CRs-Fixed: 3113235
2022-01-25 06:57:40 -08:00
Madan Koyyalamudi
5ecded6e1f Release 5.2.1.8K
Release 5.2.1.8K

Change-Id: Id11f9c6bf8843597f7a30eb3222a60751464573d
CRs-Fixed: 774533
2022-01-25 03:21:24 -08:00
Surya Prakash Sivaraj
79c1885686 qcacld-3.0: Cleanup the CSR API
Cleanup csr_get_cfg_dot11_mode_from_csr_phy_mode API by removing
unused parameters and use vdev id instead of profile.

Change-Id: Id2c8b52845d5e928e315b3af0a3d1289e81b2e7e
CRs-Fixed: 3113395
2022-01-25 03:21:24 -08:00
Madan Koyyalamudi
f0c77a55cd Release 5.2.1.8J
Release 5.2.1.8J

Change-Id: Ia979e9ba252d9305e88722d92952d6d12dd2ab0a
CRs-Fixed: 774533
2022-01-24 19:19:44 -08:00
Bapiraju Alla
7dd230773f qcacld-3.0: Fix MLO compilation issue when kernel doesn't support MLO
Currently, ML adapter info is being accessed only 11BE_MLO feature macro.
This will result in compilation error when, 11BE_MLO is enabled in the
driver but not in the kernel.

To resolve this, check for kernel support for 11BE along with driver
support for MLO.

Change-Id: If3a1f0837483229b94de4036eea5dc08f76f0754
CRs-Fixed: 3115872
2022-01-24 19:19:43 -08:00
Ashish
478a1eb123 qcacld-3.0: Do not allow interop issues ap in FTM mode
Interop issues ap sends vendor event to user space, in FTM
mode vendor events are not initialized which leads to undefined
behavior in kernel if try to send a vendor event if vendor events
are not initialized.

To address this issue, do not allow interop issues ap operation
in FTM mode.

Change-Id: I525dc5ed20a3e615383c535ef65ac7908ede75d4
CRs-Fixed: 3098426
2022-01-24 19:19:38 -08:00
Ashish
d9f45f4acd qcacld-3.0: Reject dynamic set mac address if SAP is in up state
Currently the expectation from host is that user space needs to
set dynamic mac address only before start_ap in case of SAP.
In driver there is no such check to reject set mac address
command if SAP is already in up state which leads to unexpected
behaviour at fw.
To address this issue add a check in host to reject dynamic set
mac address command for SAP mode if SAP is already in up state.

Change-Id: I8f5456490574288afba86ec3a732b3dc7ed65bce
CRs-Fixed: 3109470
2022-01-24 19:19:33 -08:00
Madan Koyyalamudi
4bc7071689 Release 5.2.1.8I
Release 5.2.1.8I

Change-Id: Ib4bbdbe0d2402934fe40f25c841fd0688e6dd99f
CRs-Fixed: 774533
2022-01-24 17:00:15 -08:00
Aditya Kodukula
e205f330d1 qcacld-3.0: Add macro for partial offload regulatory
Add macro WLAN_REG_PARTIAL_OFFLOAD to support
partial offload regulatory.

Change-Id: Ie53851c72645a16b86e877255328e8d7a5675c63
CRs-Fixed: 3114560
2022-01-24 17:00:15 -08:00
Madan Koyyalamudi
41cc0b3115 Release 5.2.1.8H
Release 5.2.1.8H

Change-Id: I53a5208546172ad4ded3192dd2ec7c93a1426a04
CRs-Fixed: 774533
2022-01-24 15:50:03 -08:00
Balaji Pothunoori
458d19b8d7 qcacld-3.0: set tx power changes for SAP if is in unsafe channel
Set tx power for SAP interface if it is unsafe channel and
if user sets restriction mask.
If interface unable to find safe channel and if restriction
mask is set then stop the SAP.

Change-Id: Ibdec18b9b749f18b1e9d704974f4cbaabbc4e613
CRs-Fixed: 3103307
2022-01-24 15:50:03 -08:00
Madan Koyyalamudi
936e94aabd Release 5.2.1.8G
Release 5.2.1.8G

Change-Id: I46f9d40627e079a04bef8bd1df03ef136019eb78
CRs-Fixed: 774533
2022-01-24 14:40:55 -08:00
Balaji Pothunoori
abc80f8a60 qcacld-3.0: Add ini support to prefer user coex unsafe freq list
Currently coex unsafe freq event is honored from firmware using
"wmi_wlan_freq_avoid_event_id".

As per requirement, add ini to don't honor coex unsafe freq
event from firmware and use the coex unsafe freq list from
vendor QCA_NL80211_VENDOR_SUBCMD_AVOID_FREQUENCY_EXT.

Change-Id: Ia3acbc133cab4865d8ad69992e893be91439f705
CRs-Fixed: 3114742
2022-01-24 14:40:54 -08:00
Balaji Pothunoori
8baf30bb48 qcacld-3.0: parse coex unsafe freq list from vendor cmd
This change is to parse coex unsafe freq list from
command QCA_NL80211_VENDOR_SUBCMD_AVOID_FREQUENCY_EXT.

Change-Id: Id9122841cc6a0c4beaa660e5cb96013f06138107
CRs-Fixed: 3103318
2022-01-24 14:40:50 -08:00
Yu Ouyang
bb202375fe qcacld-3.0: Avoid repeatedly call dump station API
For AP/P2P GO mode, API wlan_hdd_cfg80211_dump_station() is designed to
return multiple records in a loop until the last record is returned. So,
return -ENOENT if there are no more entries to dump.

For STA/P2P client mode, it is designed to return self record.

Add checking index, it should return -ENOENT for station/p2p client mode
if index not zero. Otherwise, kernel will repeatedly call dump API.

Change-Id: Ic84c08c8edf5f0590c6e2aef97074097fd739798
CRs-Fixed: 3112477
2022-01-24 14:40:45 -08:00
Madan Koyyalamudi
183a762fdf Release 5.2.1.8F
Release 5.2.1.8F

Change-Id: I37e5942b267796074a7bfee277c32bc0bd3ed1eb
CRs-Fixed: 774533
2022-01-22 11:59:52 -08:00
Bing Sun
8b0b8a7e4c qcacld-3.0: Cleanup EID 221 when populating assoc rsp mlo IE
There are several IE with the same EID 221. If any 221 IE of reported link
is different with reporting link, every 221 IE should be populated in per
sta profile of mlo IE.

Change-Id: Ia8f2d0f68829ccee558c64dbf5b58d4b9925b0ea
CRs-Fixed: 3106339
2022-01-22 11:59:52 -08:00
Madan Koyyalamudi
aa60b78417 Release 5.2.1.8E
Release 5.2.1.8E

Change-Id: I237620fc47d20b7254c0a96cb19277b3999113aa
CRs-Fixed: 774533
2022-01-22 06:07:00 -08:00
Will Huang
86420d911f qcacld-3.0: Strip RSNXE from Reassociate request if bss beacon don't have
If interop with AP H2E flag not match with STA, like AP don't have
RSNXE but STA has, don't add RSNXE in reassociate request when roaming.

Change-Id: I592baf5d0c5af25ccb817d38873147e4fe719e60
CRs-Fixed: 3104528
2022-01-22 06:06:59 -08:00
Madan Koyyalamudi
001ad1640a Release 5.2.1.8D
Release 5.2.1.8D

Change-Id: Ie2c85b1dfe187cd9edc9d90b30bcd7d0a05a43d3
CRs-Fixed: 774533
2022-01-21 18:07:31 -08:00
Li Feng
813660e27f qcacld-3.0: Implement CBS for EasyMesh
Implement the continuous background scan for EasyMesh.

Change-Id: I2607474d5663f21b4d740316ae407bf1398a8ef7
CRs-Fixed: 3095580
2022-01-21 18:07:31 -08:00
Madan Koyyalamudi
764df553b9 Release 5.2.1.8C
Release 5.2.1.8C

Change-Id: I5006c9a84a68d266359c49dd81703ac3756ebe1a
CRs-Fixed: 774533
2022-01-21 15:47:31 -08:00
Srinivas Dasari
accd92e85d qcacld-3.0: Peer may not be present if NDP confirm fails
NDP peer gets created as part of NDP indication in case of NDP
initiator. But NDP may fail to form due to various reasons and
firmware may send NDP confirm with reject status in such cases
instead of NDP indication event.
Below is the detailed scenario,
1. On initiator side, it has sent an NDP request and is waiting
   for NDP response.
2. On responder side, application/framework is preparing to send
   NDP response with reject due to some config mismatch. At the
   same time, NDP termination is also issued. So NDP termination
   frame is sent successfully.
3. Initiator firmware receives this NDP end and it sends an NDP
   confirm with REJECT to the host and it shall clean-up the
   session.

Currrently, there is a check for the peer existence while
indicating this NDP confirm status to framework. There is no need
of this check in such failure cases as peer is not yet created.

Change-Id: Ibe94a5b67df1ce3d65eaf2ef37b11b08155752c9
CRs-Fixed: 3086975
2022-01-21 15:47:31 -08:00
Madan Koyyalamudi
163970bc27 Release 5.2.1.8B
Release 5.2.1.8B

Change-Id: Ia8a7220d7e635541d16e87632495831c99c43cea
CRs-Fixed: 774533
2022-01-21 11:42:17 -08:00
Ananya Gupta
6b792f40f0 qcacld-3.0: Enable DP_TX_TRACKING flag
Enable DP_TX_TRACKING flag for lithium

Change-Id: I952dcf44ce6cb282f839d5af13482a4272d62693
CRs-Fixed: 3111510
2022-01-21 11:42:17 -08:00
Madan Koyyalamudi
8a1401a0db Release 5.2.1.8A
Release 5.2.1.8A

Change-Id: I65ab7d8d3f90a5f6418b43f7e2347fbc4e5db85f
CRs-Fixed: 774533
2022-01-21 06:27:22 -08:00
Jyoti Kumari
e1fc3f8fad qcacld-3.0: Add twt sap sta and pdev count in hmt config
CONFIG_WLAN_TWT_SAP_STA_COUNT and CONFIG_WLAN_TWT_SAP_PDEV_COUNT
are missing for HMT config.

Add this two macro in HMT config

Change-Id: Ib72c91e720711e72761f0a5526fd48c1e6e2ea1b
CRs-Fixed: 3099486
2022-01-21 06:27:22 -08:00
Madan Koyyalamudi
1fa5d1d7ff Release 5.2.1.8
Release 5.2.1.8

Change-Id: If67b571369df27c016f3e109841f547203c5513d
CRs-Fixed: 774533
2022-01-21 05:16:28 -08:00
sheenam monga
c5a88e2f18 qcacld-3.0: Don't invoke QDF_BUG in case of timeout
Currently, when bus resume is triggred by host then host waits
for resume event from fw and in case of failure QDF_BUG is
triggered but QDF_BUG is triggred in case of timeout/fw doesn't
send resume event within 4 seconds which may cause unwanted
crash instead of self recovery.

Fix is not to invoke QDF_BUG in case of failure to avoid
unwanted crash instead of self recovery.

Change-Id: I34a2fa9374d35beff719499557f5fbc78ced28d8
CRs-Fixed: 3110014
2022-01-21 05:16:28 -08:00
Abhishek Singh
5247ffb1e1 qcacld-3.0: Add SBS logic for gWlanMccToSccSwitchMode as 4
Check mandatory freq for SAP only if STA is present.
Also allow SAP on a freq which can lead to SBS with STA freq and is
in mandatory freq list, if gWlanMccToSccSwitchMode is set to
QDF_MCC_TO_SCC_SWITCH_WITH_FAVORITE_CHANNEL.

Allow ML SAP (SAP+SAP) on valid channels if gWlanMccToSccSwitchMode
is QDF_MCC_TO_SCC_SWITCH_WITH_FAVORITE_CHANNEL.
As QDF_MCC_TO_SCC_SWITCH_WITH_FAVORITE_CHANNEL is only valid for
STA+SAP case.

So if STA is not present skip the mandatory freq and allow ML SAP
on original freq.

Change-Id: I6e8cbc7f944b2fa99c1449c288b9593cc4ad9454
CRs-Fixed: 3114208
2022-01-21 05:16:23 -08:00
Madan Koyyalamudi
ca21055f3a Release 5.2.1.7Z
Release 5.2.1.7Z

Change-Id: I343b0d8c09b3fc457136cd2f5562dd9c2c6e798d
CRs-Fixed: 774533
2022-01-20 18:59:38 -08:00
Lihua Liu
dc7dc2e2a7 qcacld-3.0: Add logic to check if OCI is valid or not
Add logic to check if OCI element in SA query request/responese
valid or not while host and peer both OCV capable.
Don't transmit SA query response when SA query request with
invalid OCI is received from peer.
Similarly, Don't treat it as a valid SA query response if the
OCI element in it is invalid.

Only with logic above, we can pass the WFA WPA3 R3 OCV test
case 14.4.1/14.4.3.

Change-Id: Iefd19f2f7de13b2ed725afed6921ad320307a372
CRs-Fixed: 3106166
2022-01-20 18:59:38 -08:00
Madan Koyyalamudi
b9fdfd9f2f Release 5.2.1.7Y
Release 5.2.1.7Y

Change-Id: If4b7f3b214dffad88147be8e154124866a36b7c7
CRs-Fixed: 774533
2022-01-20 15:27:11 -08:00
Jianmin Zhu
cd9d714bbb qcacld-3.0: Consider connected AP for roaming candidate
If reassoc MAC from user space is broadcast MAC as:
"wpa_cli DRIVER FASTREASSOC ff:ff:ff:ff:ff:ff 0",
user space invoked roaming candidate selection will be based on firmware
score algorithm, current connection will be kept if current AP has highest
score. It is requirement from customer which can avoid ping-pong roaming.

Change-Id: I8de3e2a26a6f346c900157aa823205f849d233f7
CRs-Fixed: 3106276
2022-01-20 15:27:11 -08:00
Madan Koyyalamudi
03832d28a5 Release 5.2.1.7X
Release 5.2.1.7X

Change-Id: Icdd3b2c7282298737d5cd6845293f4e25a4ebdfe
CRs-Fixed: 774533
2022-01-20 12:09:47 -08:00
Yu Wang
9191958c92 qcacld-3.0: replace mac checing with correct API
Check whether the two connections are on the same mac with
policy_mgr_are_2_freq_on_same_mac().

Change-Id: I480a344386d22aa2a210b6b4663f68998d9af8b1
CRs-Fixed: 3103087
2022-01-20 12:09:47 -08:00
Madan Koyyalamudi
0257976d59 Release 5.2.1.7W
Release 5.2.1.7W

Change-Id: I8e7fdc81f9ea7f6806cbb6f97e888514f4d9ecd4
CRs-Fixed: 774533
2022-01-20 10:00:47 -08:00
sheenam monga
8261fe17ac qcacld-3.0: Provide LP/VLP/SP valid freq list for curr country code
Add support to provide valid frequency list for provided power mode

Change-Id: I5855258402604c5ca20b9f0a3eaebe7412b7db4b
CRs-Fixed: 3103671
2022-01-20 10:00:47 -08:00
Madan Koyyalamudi
c785c5e24e Release 5.2.1.7V
Release 5.2.1.7V

Change-Id: I93026179b11befe8957f40847a3c6ec7e71e7747
CRs-Fixed: 774533
2022-01-19 17:27:01 -08:00
Namita Nair
c22b7a5e0a qcacld-3.0: Enable multi SW2TCL and Tx completion IRQ affinity for KIWI
The flags, CONFIG_TX_MULTI_TCL for multi SW2TCL and DFEATURE_IRQ_AFFINITY
for Tx completion IRQ affinity, were turned on for KIWI.

Change-Id: I44a7b1c889d7113f078a75c549a632809dbebad0
CRs-Fixed: 3110299
2022-01-19 17:27:00 -08:00
Madan Koyyalamudi
2c453dff7e Release 5.2.1.7U
Release 5.2.1.7U

Change-Id: I7dd02e4d42a0f1660d09904b42babe985a768fe7
CRs-Fixed: 774533
2022-01-19 15:30:16 -08:00
Amruta Kulkarni
586338bcff qcacld-3.0: MLO roaming handling
CM, PE and WMA changes for mlo roaming
- Roam start and roam sync propogation updates.
- Handling connected link bitmap.
- Link specific assoc response generation
- WMA changes to handle add/remove peer
for mlo roaming scenarios.

Change-Id: I365a26ebb761d93dadd33c9fb8248c28e9eda94b
CRs-Fixed: 3033766
2022-01-19 15:30:15 -08:00
Mohammed Siddiq
1c61feb5de qcacld-3.0: Add pld api to get PCI slot of attached device
Add pld api to get PCI slot of attached device.

Change-Id: I5adb49a8c28d4211ede5aee4e5bc0e8046bbf542
2022-01-19 15:30:10 -08:00
Madan Koyyalamudi
58beac2703 Release 5.2.1.7T
Release 5.2.1.7T

Change-Id: Id8950e047b2c23a5ca9f59c026b5a8b02ccc48b9
CRs-Fixed: 774533
2022-01-19 12:35:04 -08:00
Bing Sun
3f3362dc79 qcacld-3.0: refine lim_set_eht_caps with new eht cap IE definition
Refine lim_set_eht_caps as wlan_eht_cap_info is updated according to
draft 1.3.

Change-Id: I2361caa928bfbdf4d6fdf0ef35bc76cebb041d99
CRs-Fixed: 3108905
2022-01-19 12:35:03 -08:00
Liangwei Dong
f01e9fec4b qcacld-3.0: Fix hw mode update failure by roam sync event
Update HW mode change tlv information to wma/policy mgr.
Losing the information will cause FW/host out of sync.

Change-Id: I1ba9931d10617664da653e85335fade1352c3600
CRs-Fixed: 3109789
2022-01-19 12:34:56 -08:00
Madan Koyyalamudi
99f240f15b Release 5.2.1.7S
Release 5.2.1.7S

Change-Id: I720ff3627162222c15ea511eaad3e20da7bca583
CRs-Fixed: 774533
2022-01-19 09:31:06 -08:00
Arun Kumar Khandavalli
35401bdb78 qcacld-3.0: Randomize mac address using the kernel api
Currently mld address are getting collied over different instances
of driver, use kernel api to randomize the mld address.

Change-Id: I79685f6884769a58f2b125481a2e809c318b3eab
CRs-Fixed: 3108547
2022-01-19 09:31:06 -08:00
Balaji Pothunoori
08a8867c8c qcacld-3.0: Enable extended avoid frequency update config
Enable compile macro to include extended avoid frequency update
for sub vendor command QCA_NL80211_VENDOR_SUBCMD_AVOID_FREQUENCY_EXT.

Change-Id: Ibdec18b9b749f18b1e9d704974f4cbaabbc4e612
CRs-Fixed: 3098824
2022-01-19 09:31:00 -08:00
Arun Kumar Khandavalli
68a04e245d qcacld-3.0: Increase the stats timeout higher than transport timeout
Currently the higher layer osif timeout is less than the underlying
transport layers qmi timeout resulting in the userspace queuing
multiple command without the transport layer timing out.

Change-Id: Ib18dc0532b883bda3fd1dc234488baf90ba5da5f
CRs-Fixed: 3112038
2022-01-19 09:30:54 -08:00