Commit Graph

25089 Commits

Author SHA1 Message Date
Madan Koyyalamudi
b18b021d05 Release 5.2.1.8P
Release 5.2.1.8P

Change-Id: If5a6748425502b1f27654a2e6bfa0e5c2b8555d9
CRs-Fixed: 774533
2022-01-26 20:47:11 -08:00
Yu Ouyang
675b9de61a qcacld-3.0: Idle shutdown in suspend
To support shutdown WLAN when system goes into suspend, add idle shutdown
in cfg80211 suspend function.

Before suspend/shutdown, user space should stop adapter. And after resume,
user space should restart adapter. This can ensure user and kernel space
to sync adapter state.

Idle shutdown must be processed in system active, so schedule delayed
work to execute it. After calling schedule, retrun EAGAIN directly to PM.

Change-Id: I08818517d05e7866d50e3f92cfdc9fa1a4d0e63f
CRs-Fixed: 3081480
2022-01-26 20:47:11 -08:00
Madan Koyyalamudi
f115d21941 Release 5.2.1.8O
Release 5.2.1.8O

Change-Id: I65897f0c25f22283e8055ea26aa34fe06be2f828
CRs-Fixed: 774533
2022-01-26 01:04:12 -08:00
Wu Gao
5924885bea qcacld-3.0: Set vdev tx data callback properly
When WLAN_FEATURE_DYNAMIC_MAC_ADDR_UPDATE enabled and user space sets
mac address, host will detach vdev and attach again without setting
vdev tx data callback. Then host tx TDLS discovery request timeout
since lim_mgmt_tdls_tx_complete isn't called, finally TDLS link
establish failed. This change set vdev tx data callback after dp vdev
detach and attach done.

Change-Id: Iada58ba2df0612a92503ccfa5f246f7cca9db9ad
CRs-Fixed: 3112831
2022-01-26 01:04:12 -08:00
Jingxiang Ge
60b9b77da6 qcacld-3.0: Enable ce debug history always
Always enable ce debug history feature, but there
is difference for perf&debug build.
On perf build, only ce2/ce3 histroy is enabled.
And for ce debug history memory init/deinit happens
when driver is loading&unloading, even it use when start
module, this will help to check some cases when
stop_module happens.

Change-Id: I4b825f91bc9ede8372291f9d94cb7fae23942a49
CRs-Fixed: 3058735
2022-01-26 01:04:06 -08:00
Madan Koyyalamudi
918cee19d2 Release 5.2.1.8N
Release 5.2.1.8N

Change-Id: I0257d65208a677616e70ba5354c38dd82d66fb16
CRs-Fixed: 774533
2022-01-25 14:57:07 -08:00
Mohit Khanna
2edfcd8f2c qcacld-3.0: Set TX_NOTIFY_COMP flag for all STA pkts
Currently the flag QDF_NBUF_CB_TX_EXTRA_FRAG_FLAGS_NOTIFY_COMP is being
set selectively. Set this flags for all TX  packets in station mode to
allow TDLS packet accounting in TX completion path.

Change-Id: I6f5e3ccad079275bbf8aacd121a3b67f9eaf9e4b
CRs-Fixed: 3111051
2022-01-25 14:57:07 -08:00
Madan Koyyalamudi
bdf5f4a924 Release 5.2.1.8M
Release 5.2.1.8M

Change-Id: I19a8cb5f8eb01965604c3be83696f046429a5082
CRs-Fixed: 774533
2022-01-25 10:54:06 -08:00
Utkarsh Bhatnagar
8edf9f4099 qcacld-3.0: Remove RL for policy_mgr_init_sbs_fw_config() logs
Remove Rate limited for logs in policy_mgr_init_sbs_fw_config()
when updating FWconfig bits.
This function is called at the time initialization and will only
be called once when Fw config Bits are updated with SBS
capabilities.

Change-Id: I68c7d76f85f12d220f85a46dca78ad8463bb5576
CRs-Fixed: 3116571
2022-01-25 10:54:06 -08:00
Ashish
e6da9ca017 qcacld-3.0: Resume all components in case of suspend failure
Currently if driver suspends all the components and after that
if host suspends fails it does not resume all the suspended
components which leads in failure of the operations from these
components.

In current issue driver suspends all the components and it
fails to suspend dp rx refill thread and because of which host
suspend fails. Driver suspends scan component as well as part
of all component suspend which is leading scan requests failures.

TO address above issue, resume all components in case of suspend
failure.

Change-Id: I693049a0c4089eb440f459ed3a066e741e8594fe
CRs-Fixed: 3111885
2022-01-25 10:54:01 -08:00
Madan Koyyalamudi
c771b7a7fc Release 5.2.1.8L
Release 5.2.1.8L

Change-Id: Ibd42d42e7b5331c091508deac895ccf3725eb860
CRs-Fixed: 774533
2022-01-25 06:57:41 -08:00
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