Commit Graph

24654 Commits

Author SHA1 Message Date
Surabhi Vishnoi
6c6b51b2df qcacld-3.0: Ignore idle_shutdown if any interface is up
Ignore idle_shutdown if any interface is up. This is done
to handle special scenario in which platform driver triggers
idle shutdown when it receives Deep sleep/Hibernate entry
notification from modem subsystem in wearable devices.

Change-Id: I0f2a3bd4cbf0d7c0d3577dfbd15c7b3001d827d1
CRs-Fixed: 3091085
2021-12-19 22:47:37 -08:00
Madan Koyyalamudi
4e3fec2dfd Release 5.2.1.4T
Release 5.2.1.4T

Change-Id: I776476fa0f5d3eafd1de84b697acae0c4989ba61
CRs-Fixed: 774533
2021-12-19 20:47:00 -08:00
Bing Sun
aebc2eea6f qcacld-3.0: Move RNR flag from MLO to private mlme component
Besides MLO, legacy mode 6G SAP + 5G(2G) SAP are going to support RNR
IE. Move RNR related flag from MLO to private mlme component.
Remove mlo_rnr_updated in struct mlo_link_ie_info.
Add notify_co_located_ap_upt_rnr and related API in mlme_legacy_priv.

Change-Id: Ife86d1ed2fe8b633f6167750053b2aff37911299
CRs-Fixed: 3092483
2021-12-19 20:47:00 -08:00
Madan Koyyalamudi
680ee5f387 Release 5.2.1.4S
Release 5.2.1.4S

Change-Id: Ib19a0dff27cfc09101f116f658c4dedcae24a600
CRs-Fixed: 774533
2021-12-17 16:37:35 -08:00
Dundi Raviteja
91f2b92480 qcacld-3.0: Reschedule TWT work
TWT work handler is used to send TWT enable/disable commands
to firmware, it does not try to reschedule if it fails to
start psoc sync operation because of which host and FW
may not be in sync.

To address this issue, reschedule TWT work if psoc sync
operation start returns -EAGAIN.

Change-Id: Ib4bbc0fe668ce086ac6997e31eb00a21ebf0d2a0
CRs-Fixed: 3094810
2021-12-17 16:37:35 -08:00
Madan Koyyalamudi
68097f27bb Release 5.2.1.4R
Release 5.2.1.4R

Change-Id: Ia816557c74896cf012ab3a28fb81bbe7ebadb8ac
CRs-Fixed: 774533
2021-12-17 12:17:01 -08:00
Utkarsh Bhatnagar
da01ec4d8c qcacld-3.0: Handle SAP + MLO_STA concurrency after MLO connect
Handle SAP + MLO_STA concurrency after MLO connect, by disabling
one of the SBS link if 2.4Ghz SAP is present.

Also if roam happen to non SBS MLO remove the disable restriction
of MLO.

Change-Id: I7d9503a01bb23cd06808b46c090f0dee39c96af6
CRs-Fixed: 3096310
2021-12-17 12:17:00 -08:00
Madan Koyyalamudi
794a514d13 Release 5.2.1.4Q
Release 5.2.1.4Q

Change-Id: I5127eb47753ec2c602184190bf5d68d2cda920b8
CRs-Fixed: 774533
2021-12-17 11:06:30 -08:00
Jianmin Zhu
fb4cf93504 qcacld-3.0: Fix peer rx tid queue not set up after roaming
After roaming, old peer is deleted and new peer is created,
rx tid queue of new peer need set up again.
In dp_rx_tid_setup_wifi3, if CM is in ROAMING state,
dp_peer_rx_reorder_queue_setup isn't called, REO queue descriptor
isn't configured correctly by host for FW to do reorder/pn check.

To fix it, in dp_rx_tid_setup_wifi3, if CM is in ROAMING state
and not ROAM_START substate, but ROAM SYNC state after roam sync
event received, dp_peer_rx_reorder_queue_setup still can be called,
rx tid queue of new peer will be set up.

Change-Id: I34fbb60ad509a0bc70e112c7ec53a862c8f9ce2d
CRs-Fixed: 3090061
2021-12-17 11:06:30 -08:00
Madan Koyyalamudi
668ec39b51 Release 5.2.1.4P
Release 5.2.1.4P

Change-Id: I0f53495adb994a1483311008f92edc3200f36474
CRs-Fixed: 774533
2021-12-17 07:08:48 -08:00
Will Huang
427122e399 qcacld-3.0: Skip num_vdev-1 if disable NAN feature
Currently if disable NAN support in host and fw, max vdev will still
decrease 1, which make it unable to support 4 SAP currency case.

Fix it by checking WMI_SERVICE_NAN capability, if don't have to support
NAN feature, skip reserve vdev for NAN in host.

Change-Id: I771a8678d285cbbfc2f92598ac63a27a989ac5a0
CRs-Fixed: 3091454
2021-12-17 07:08:47 -08:00
Madan Koyyalamudi
2dcb33080d Release 5.2.1.4O
Release 5.2.1.4O

Change-Id: I8ef2a5cbf39e17ba477943bba709a5d093e7c79c
CRs-Fixed: 774533
2021-12-17 03:09:59 -08:00
Will Huang
d3e968a754 qcacld-3.0: Add pcl table for 4 SAP concurrency on MDM
To support 4 SAP concurrency on sdxlemur, they must work with mode
SAP+SAP(2g/SCC) & SAP+SAP(5g/SCC) or SAP+SAP(2g/SCC) & SAP+SAP(6g/SCC).

Add separate fourth_connection_pcl_dbs_table for mobile route devices,
adding 4 SAP cases, and modify policy manager to get pcl index when 4th
SAP being started.

Change-Id: I919fa6fa0bbacbe1be0d22ed2ffc9e322b6343e9
CRs-Fixed: 3092568
2021-12-17 03:09:59 -08:00
Madan Koyyalamudi
15cf4246e1 Release 5.2.1.4N
Release 5.2.1.4N

Change-Id: I8219ab95933313fb46593c71313e304d8da731e5
CRs-Fixed: 774533
2021-12-16 21:19:36 -08:00
Srinivas Dasari
804f4647a7 qcacld-3.0: Add MLO mgr include directory in INC list
New files are added in qcacld-3.0 to have cld
specific (e.g. roaming) MLO manager changes. But the inc
directory path is not added to INC list in Kbuild and
it's causing compilation issues while compiling the
source file wlan_mlo_mgr_roam.c

Change-Id: I2801a3a5fd04dac7e35fca3a43017bb1d6fd2b10
CRs-Fixed: 3095730
2021-12-16 21:19:36 -08:00
Madan Koyyalamudi
00d1dbade5 Release 5.2.1.4M
Release 5.2.1.4M

Change-Id: I78637fb116792a51d0505b77d8997a7c54c8b25f
CRs-Fixed: 774533
2021-12-16 17:23:06 -08:00
Liangwei Dong
fa125d8437 qcacld-3.0: Fix vdev ref count leak in cm_fw_roam_sync_req
Release vdev ref count if roam sync event is not handled
in connecting or disconnecting in cm_fw_roam_sync_req.

Change-Id: I2575116dc4ed6a4e3ae31dac2c80191d420eaf3e
CRs-Fixed: 3092988
2021-12-16 17:23:06 -08:00
Madan Koyyalamudi
d1a7fff749 Release 5.2.1.4L
Release 5.2.1.4L

Change-Id: I363bef4b0e01fd0ea5cabc1199f6e7da7ccd982c
CRs-Fixed: 774533
2021-12-16 15:07:34 -08:00
Surabhi Vishnoi
0320907b1e qcacld-3.0: Allow suspend in deep sleep or Hibernate
Deep Sleep or Hibernate are system level mode power
modes in which wlan firmware is shutdown gracefully
and linux kernel is suspended. Currently, suspend
is not allowed if firmware is down, with this change
suspend is allowed if firmware is down due to Deep
Sleep or Hibernate low power state.

A new pld api is introduced to know the low power
state from platform driver, this api is enabled based
on CONFIG_ENABLE_LOW_POWER_MODE flag. Currently, this
feature is enabled only for wearable targets.

Change-Id: Iddaa4da8ee4880a4223420f59cbe9c365c30344a
CRs-Fixed: 3090481
2021-12-16 15:07:33 -08:00
Madan Koyyalamudi
e02a370ef5 Release 5.2.1.4K
Release 5.2.1.4K

Change-Id: Ie39cd53ab8028593262ac0b14347e6123e090f46
CRs-Fixed: 774533
2021-12-16 11:07:19 -08:00
Rakesh Pillai
4355e8bf0b qcacld-3.0: Enable Monitor mode for WCN7850
Enable monitor mode for WCN7850.
Enable the interrupt based processing in monitor
mode for WCN7850.

Change-Id: I6f8c6951794d0754977fa0d45086a95df25a13e6
CRs-Fixed: 3095456
2021-12-16 11:07:19 -08:00
Madan Koyyalamudi
0494d82191 Release 5.2.1.4J
Release 5.2.1.4J

Change-Id: I5d3274cea686fb12d53b60b7ae4737ec21723b48
CRs-Fixed: 774533
2021-12-16 07:17:42 -08:00
Utkarsh Bhatnagar
c7e3610309 qcacld-3.0: Handle SAP + MLO STA concurrency
Handle SAP and MLO STA concurrency such as:

  1) If MLO STA is present with both links
     in 5/6 Ghz then SAP comes up on 2.4 Ghz,
     then Disable one of the links.

  2) If there is channel switch for sap from
     2.4 ghz to 5 ghz, then enable both the
     links as they were disabled by previous
     operations when sap was on 2.4 ghz.

  3) If MLO STA is present with both links in
     5/6 Ghz and SAP, which was present on
     2.4 ghz, stops then renable both the as
     one of the links were disabled because
     of sap on 2.4 ghz.
     Also, in case where MLO STA roamed from
     5 + 6 link to 2.4 + 5/6 link force scc
     will happen and the disabled link has
     to be enabled.
     Both links should only be enabled if mlo
     sta has more than one links.

Change-Id: I0fd0093b20336ae32325981589c399b44a44b64e
CRs-Fixed: 3092202
2021-12-16 07:17:42 -08:00
Madan Koyyalamudi
177d353f4a Release 5.2.1.4I
Release 5.2.1.4I

Change-Id: Ife5144108dc3f0b8e59e879303b2825f19602635
CRs-Fixed: 774533
2021-12-16 05:35:16 -08:00
Huashan Qu
9560cddbc1 qcacld-3.0: Add extended capabilities IE length check
When send assoc req frame, if the length for extended capabilities
IE is zero, but present field is non-zero, it will cause assoc req
frame malformed issue.

Fix is to set present field value to zero when the length for
extended capabilities IE is zero.

Change-Id: Ie8826e6cfb1fc3a44ee52115ad4482e040f2c38a
CRs-Fixed: 3085943
2021-12-16 05:35:16 -08:00
Gaurav Sharma
2ebb5a37c1 qcacld-3.0: Add support for new attribute in TWT setup command
Add support for QCA_WLAN_VENDOR_ATTR_TWT_SETUP_ANNOUNCE_TIMEOUT
attribute as part of TWT setup command. This attribute is used
to configure the announce timeout value (in us) in the firmware.
This timeout value is only applicable for the announced TWT. If
the timeout value is non-zero, the firmware waits up to the
timeout value to use Data frame as an announcement frame. If the
timeout value is 0, the firmware sends an explicit QoS NULL frame
as the announcement frame on SP start.

Change-Id: If7a9c761ef5a657cc1ecba81851291a4711e6c1f
CRs-Fixed: 3086816
2021-12-16 05:35:08 -08:00
Madan Koyyalamudi
38c07f8398 Release 5.2.1.4H
Release 5.2.1.4H

Change-Id: Icb45d956a2e7dd3519c6f064c611798a6ca0acf6
CRs-Fixed: 774533
2021-12-15 13:40:24 -08:00
Utkarsh Bhatnagar
07c8b305e9 qcacld-3.0: Optimize SBS prints for continuous freq range prints
Optimize excessive SBS prints in policy_mgr_are_sbs_chan and
policy_mgr_is_cur_freq_range_sbs.

Change-Id: I379f3b1b050e08f6d76a7e657067ae66fe45c93c
CRs-Fixed: 3094259
2021-12-15 13:40:24 -08:00
Gururaj Pandurangi
6f248a774b qcacld-3.0: Update caller APIs of get power type for 6G API
Update the caller functions of wlan_reg_get_6g_power_type_for_ctry
to include AP's power type as a factor along with existing ctry
codes to determine STA's power type for 6G.

Change-Id: I8e1c54a5e760b173532fc001790fb76c70120c54
CRs-Fixed: 3087093
2021-12-15 13:40:19 -08:00
Madan Koyyalamudi
ff03bfbafc Release 5.2.1.4G
Release 5.2.1.4G

Change-Id: Id20466d707c793fba2504180e1b56e6b809c7b35
CRs-Fixed: 774533
2021-12-15 12:27:27 -08:00
Balaji Pothunoori
d101ac52b4 qcacld-3.0: update timestamp for TX failed pkt to upper layer
Currently, wlan host driver only report timestamp for TX successful
packets to upper layer.
This change add support to report timestamp for TX failed pkt to
upper layer.

Change-Id: Ib9b021675ebd388107f8bf1a61703f2b6cebb882
CRs-Fixed: 3077222
2021-12-15 12:27:27 -08:00
Madan Koyyalamudi
fd0bd78bfc Release 5.2.1.4F
Release 5.2.1.4F

Change-Id: I15b5002558f0bf6475c40af7f8a4cd7fb5d81d77
CRs-Fixed: 774533
2021-12-15 11:07:35 -08:00
Utkarsh Bhatnagar
2c20f1dffa qcacld-3.0: Handle MLO STA + Legacy STA concurrencies
Handle MLO STA + Legacy STA concurrencies such that:

1) Don't disable any link if STA form SCC with any of the
   link.

2) Disable the link on the same MAC which can cause MCC.

   a) On non-SBS devices disable the ML link on the same
      band as STA, As the same band means the same MAC
      in non-SBS mode.
   b) On SBS devices, disable the ML link on the same MAC:
     - If STA freq is 2.4Ghz disable the 2.4Ghz link.
       If a 2.4Ghz link is not present, disable any of the
       5/6Ghz links (FW to decide the link depending on
       SBS mode, low share or high share).
     - If STA freq is 5Ghz and can lead to SBS with on of
       the link, disable the non-SBS link (link which will
       remain on the same MAC).
     - If STA freq is 5Ghz and cannot lead to SBS with
       one of the links, disable the link on the same MAC/
       band.

e.g:

 STA freq:    STA ML combo: NON SBS Action: SBS Action:
 ------------------------------------------------------------------
 2Ghz         2Ghz+5/6Ghz   Disable 2Ghz    Disable 2Ghz
 5Ghz         2Ghz+5/6Ghz   Disable 5Ghz    Disable 2.4Ghz
                                            if both 5Ghz lead
                                            to SBS, else
                                            disable 5Ghz

 5Ghz(lower)  5Ghz+6Ghz     Disable 5Ghz    Disable 5Ghz
 5Ghz(higher) 5Ghz+6Ghz     Disable 5Ghz    Disable 6Ghz
 2Ghz         5Ghz+6Ghz     Disable Any     Disable Any

Change-Id: Ie8ca51b5e108c1cfce1a02fc97f4849c617216b7
CRs-Fixed: 3090333
2021-12-15 11:07:34 -08:00
Madan Koyyalamudi
912e44f4ff Release 5.2.1.4E
Release 5.2.1.4E

Change-Id: I32e5d21aadad0f6127e04a5e5f27dab23a2eb0f5
CRs-Fixed: 774533
2021-12-15 07:39:49 -08:00
Utkarsh Bhatnagar
3da6181e11 qcacld-3.0: Fix filling of the SBS range
Fix filling of the SBS range, in current freq range.
And Add is current mode SBS in required APIs.

Change-Id: Ief334aa236ad18512ac5d8cf80b3a2d13d77529a
CRs-Fixed: 3093159
2021-12-15 07:39:49 -08:00
Madan Koyyalamudi
117ba7016e Release 5.2.1.4D
Release 5.2.1.4D

Change-Id: I5363c4aaf0fae8f89f36fdd0e020a841c2392561
CRs-Fixed: 774533
2021-12-15 06:27:37 -08:00
Vulupala Shashank Reddy
17b4a5b9d6 qcacld-3.0: Add ref count for global vdev used in packet capture
Currently the global vdev gp_pkt_capture_vdev used in packet capture
does not have ref count.

Add ref count for global vdev used in packet capture component.

Change-Id: I1cc619b31c81a77af0842ce219cfcc96060626a0
CRs-Fixed: 3049225
2021-12-15 06:27:02 -08:00
Madan Koyyalamudi
996fea0a9d Release 5.2.1.4C
Release 5.2.1.4C

Change-Id: I0ca223e29ae196fd8ea942cb8c949d84df7afd88
CRs-Fixed: 774533
2021-12-14 21:22:33 -08:00
Yeshwanth Sriram Guntuka
46d86f50df qcacld-3.0: Enable wlan tracepoints config flag for LI/BE
Enable wlan tracepoints config flag for Lithium and
Beryllium.

Change-Id: Idf40e510f084a9b4e2b3d67160c80dba8a49f7e2
CRs-Fixed: 3080798
2021-12-14 21:22:33 -08:00
Yeshwanth Sriram Guntuka
5e38109641 qcacld-3.0: Use tracepoints to trace rx packets
Use tracepoints to trace receive packets.

Change-Id: I0124c3c4d577018497e940ced299960fc9a21d8c
CRs-Fixed: 3083361
2021-12-14 21:22:29 -08:00
Madan Koyyalamudi
554002c536 Release 5.2.1.4B
Release 5.2.1.4B

Change-Id: I684398b23649ee959e202bf14e1a23981a107995
CRs-Fixed: 774533
2021-12-14 14:09:13 -08:00
Amruta Kulkarni
ee567ed1fa qcacld-3.0: Change param name "is_assoc_link" to "is_first_link"
In cdp_peer_setup_info "is_assoc_link" flag is changed to
"is_first_link" flag to avoid confusion caused by naming.
is_first_link flag means the first link in the ML connection
trying to setup DP ML peer, it can be assoc or non-assoc link.

Change-Id: I2643866dfd465025d98cef14d06e44276799098d
CRs-Fixed: 3092858
2021-12-14 14:09:13 -08:00
Ashish
fd8abaebdb qcacld-3.0: Enable nan only for VLP channels for 6GHz
Currently for 6GHz, nan is allowed on LPI channels as well,
nan should be allowed only on VLP channels.

With this change allow nan only on VLP channels.

CRs-Fixed: 3072585
Change-Id: Ic8cd8a5ca5c096530762cc0f9d199cef30155838
2021-12-14 14:09:08 -08:00
Amruta Kulkarni
a32e3f1a0c qcacld-3.0: Add new files for mlo roaming
Add new files for mlo roaming and update Kbuild file.

Change-Id: I3e672a5e068648fd836ecccb0edbac084850f11d
CRs-Fixed: 3090925
2021-12-14 14:09:03 -08:00
Utkarsh Bhatnagar
5becebe02d qcacld-3.0: Optimize SBS prints part 2
Dump SBS range while checking for SBS mode in
policy_mgr_are_3_freq_on_same_mac and
policy_mgr_are_2_freq_on_same_mac

Change-Id: Ic8e6a49d60dcc82746a2b3e392576399dd1ad417
CRs-Fixed: 3092338
2021-12-14 14:08:58 -08:00
Madan Koyyalamudi
d80f95c274 Release 5.2.1.4A
Release 5.2.1.4A

Change-Id: I1010a2d9834704112f4926a60a48d3c3a512fcd8
CRs-Fixed: 774533
2021-12-13 11:15:51 -08:00
Jinwei Chen
8c9674d9c4 qcacld-3.0: enable FISA for HMT
Enable FISA for HMT

Change-Id: I94d078381d397c6eb5d02a13e85b6b6f22b170de
CRs-Fixed: 3085397
2021-12-13 11:15:51 -08:00
Madan Koyyalamudi
2e38f42221 Release 5.2.1.4
Release 5.2.1.4

Change-Id: Id0e3b16d31ec385ee70f1ef439928ae2a0e829ca
CRs-Fixed: 774533
2021-12-09 17:11:31 -08:00
Utkarsh Bhatnagar
1e067759de qcacld-3.0: Optimize SBS prints
policy_mgr_dump_sbs_freq_range is flooding the logs with
SBS range, instead print it once when we check for
SCC channel.

Change-Id: I60e17f6fed3d0973f29d5225458a392021e482f7
CRs-Fixed: 3091231
2021-12-09 17:11:31 -08:00
Madan Koyyalamudi
cb92473987 Release 5.2.1.3Z
Release 5.2.1.3Z

Change-Id: I1342f27800061539722bedd30146dc7d21b53162
CRs-Fixed: 774533
2021-12-09 13:41:32 -08:00