Commit Graph

28202 Commits

Author SHA1 Message Date
Paul Zhang
ceb51f6e10 qcacld-3.0: Optimize the critical update feature
1\ Optimize the log output;
2\ Remove the duplicate code;
3\ Fix issue about processing partner link in probe response frame.

Change-Id: I05a67cf9ee7c017c6f76924f9cf08bbe2185b81c
CRs-Fixed: 3410878
2023-02-24 08:49:06 -08:00
Madan Koyyalamudi
fff96f4fc8 Release 5.2.1.56L
Release 5.2.1.56L

Change-Id: Ia70c97e3a3426562d18b9f3b9c8ece2608b7541a
CRs-Fixed: 774533
2023-02-24 04:58:42 -08:00
Bing Sun
23dfd3c2f8 qcacld-3.0: Add API to get station TX rate for EasyMesh SAP
EasyMesh application will get current TX rate information of connected
station. Add API to support it.

Change-Id: I6778e1ae18f3efe89930a5423455ebf3f8084a95
CRs-Fixed: 3406509
2023-02-24 04:58:41 -08:00
Jyoti Kumari
d749270732 qcacld-3.0: Rename policy_mgr_is_ll_sap_present() properly
Rename policy_mgr_is_ll_sap_present() into
policy_mgr_is_vdev_ll_sap(). As this api mainly checks
whether the given vdev is ll sap or not

Change-Id: I7f87aceeb0ed6ac5bb7014db1fd6213e62e6305e
CRs-Fixed: 3413644
2023-02-24 04:58:36 -08:00
Deeksha Gupta
b7ea2e6857 qcacld-3.0: Cleanup lim_print_mac_addr() API from lim
Remove lim_print_mac_addr() API from lim and use
QDF_MAC_ADDR_FMT for MAC print.

Change-Id: I7047183768a40a628662588ad7ed53bfe8ba844d
CRs-Fixed: 3400047
2023-02-24 04:58:31 -08:00
Madan Koyyalamudi
bdcb0a49e1 Release 5.2.1.56K
Release 5.2.1.56K

Change-Id: Ib04cc38bf0aaf05a98a5d687b3060800139faef8
CRs-Fixed: 774533
2023-02-24 01:57:34 -08:00
Liangwei Dong
7abfa2d80e qcacld-3.0: Add ML reconfig starting notify for link removal
Handle mlme_vdev_reconfig_notify callback to get notification
after receive the first ML reconfig link removal IE.
Override the delete timer tbtt to 0 to fire the timer early
if timer is less than 1s. This is to avoid host delay of sending
to link inactive command to FW and FW receive deauth before host
inactive link command.

Change-Id: I7865b7942813fd7facf4daa8624c976166814311
CRs-Fixed: 3380147
2023-02-24 01:57:34 -08:00
Liangwei Dong
2f9f0a579b qcacld-3.0: Handle link removal for ML STA
Handle link removal for ML STA vdev:
Send force link command to target if MLO STA link number > 1.
Select other inactive link to active if possible.

Change-Id: I40567364ad240399caf6be6683b96d17f6a4aab0
CRs-Fixed: 3352849
2023-02-24 01:57:28 -08:00
Liangwei Dong
f725025a1d qcacld-3.0: Process MLO Reconfig IE in beacon for link removal
Process MLO Reconfig IE in beacon for link removal with common
api mlo_process_ml_reconfig_ie.

Change-Id: Ie1206794944d7979170a78c895b5b1c4ae45597f
CRs-Fixed: 3352907
2023-02-24 01:57:23 -08:00
Madan Koyyalamudi
6da726cfa5 Release 5.2.1.56J
Release 5.2.1.56J

Change-Id: Iea809f9fd68158d01bcf1a802bc23e02333c436d
CRs-Fixed: 774533
2023-02-24 00:05:31 -08:00
David Oladunjoye
0336ab83b3 qcacld-3.0: Fix kernel doc for TWT
Incorrect parameters exist in TWT documentation. Correct parameters
to match function.

Change-Id: Ida1c223b8e5735cc9126f321142218d56716d4be
CRs-Fixed: 3414468
2023-02-24 00:05:31 -08:00
Venkateswara Naralasetty
0b73cf7d9b qcacld-3.0: Rename CE descriptor macros
Few of the CE descriptor related macros are moved from qdf to
ce_internal.h file. Hence rename the corresponding macros.

Change-Id: I64b74456fb3f349ab65b3c955461ef3693ca318d
CRs-Fixed: 3388380
2023-02-24 00:05:26 -08:00
Madan Koyyalamudi
4c7d2648f6 Release 5.2.1.56I
Release 5.2.1.56I

Change-Id: I4e2d399cdf26543660014dc8b59a955fde3017c7
CRs-Fixed: 774533
2023-02-23 22:06:39 -08:00
Yu Wang
70c5469566 qcacld-3.0: trigger panic if SSR DSC ops timed out
Trigger panic if SSR timed out.

Change-Id: I72d81da46745d2f6a5ff34a57b6d66b7f7171dde
CRs-Fixed: 3398969
2023-02-23 22:06:39 -08:00
Jianmin Zhu
748f7555ed qcacld-3.0: Get roam stats by vendor cmd
Cache roam information in wlan driver, when qca vendor
cmd of QCA_NL80211_VENDOR_SUBCMD_ROAM_STATS get roam
information, driver send all the cached information to
user space.
Extend WMI_ROAM_STATS_EVENTID event information for
requirement of:
1.Roam trigger related information, include timestamp,
  trigger reason, trigger condition, abort reason,
  scan type, roam status and fail reason.
2.Roam scan related information, include scan channel
  number, dwell type, max dwell time of each channel
  and total scan time.
3.all types of roam related frame information, include
  timestamp and successful or failed status for Preauth,
  Reassoc, EAPOL-M1/M2/M3/M4.

Change-Id: I2a694b7c1df8f5da09505f65c9c797be2177b398
CRs-Fixed: 3391601
2023-02-23 22:06:34 -08:00
Madan Koyyalamudi
8a5495e77a Release 5.2.1.56H
Release 5.2.1.56H

Change-Id: I5791a217ffb1ed95af9a5ecf6b72ca9da3a53aa8
CRs-Fixed: 774533
2023-02-23 10:48:59 -08:00
Tiger Yu
33aef11cd3 qcacld-3.0: Add TX packet trace info for debugging for module QCA6574
Add TX packet trace for module qca6574 to get more info for debugging

Change-Id: I226eb904d9a86a86f7ee4403da97445242b13909
CRs-Fixed: 3405782
2023-02-23 10:48:58 -08:00
Madan Koyyalamudi
ac4fc8b94f Release 5.2.1.56G
Release 5.2.1.56G

Change-Id: I4c9355b4182baad524cbee4787e082b5f7412d6f
CRs-Fixed: 774533
2023-02-23 05:37:24 -08:00
Namita Nair
5e819e461c qcacld-3.0: Disable Optional wifi datapath feature
This change disables IPA offload and optional
wifi datapath feature. This change will be used
until kernel changes are merged.

Change-Id: Ib47d69ba8da2e1fa3f0a1bd05926bbf3d74f51e4
CRs-Fixed: 3401190
2023-02-23 05:37:24 -08:00
Madan Koyyalamudi
a31c4ace81 Release 5.2.1.56F
Release 5.2.1.56F

Change-Id: I55c0277620c7faf3ce192d2e8950d078c1190a0f
CRs-Fixed: 774533
2023-02-23 00:56:50 -08:00
Namita Nair
2e7dcc8c8f qcacld-3.0: Fix use-after-free in IPA exception path
Currently when packets are routed from IPA to
HOST via the exception path, the system encounters
a use-after-free crash. This change eliminates
the access of nbuf pointer after being freed in the
hdd_ipa_send_nbuf_to_network().

Change-Id: Ib126ac9092562067cb8eeb2b1d6464941111796c
CRs-Fixed: 3410414
2023-02-23 00:56:50 -08:00
Rahul Gusain
3064b4603c qcacld-3.0: Out of bound access in ML connection
Currently, while fetching pcl for some vdev id, host driver retrieves
the number of ML connection and provide as max index value for vdev list
and info array. This max index  can't be more than
MAX_NUMBER_OF_CONC_CONNECTIONS from functionality perspective.
But static analyzer tool complains that there are chances for out of
bound access of the given arrays while filling the indexes.
So, to fix this, add checks to avoid any such possible out bound access.

Change-Id: I09261e23620df5fc73887c9e5633b408afa66796
CRs-Fixed: 3412348
2023-02-23 00:56:43 -08:00
Madan Koyyalamudi
d98325bcea Release 5.2.1.56E
Release 5.2.1.56E

Change-Id: Ie9a975747cf1f28a1aa72f4877c6a4e10ee56f9f
CRs-Fixed: 774533
2023-02-22 13:51:16 -08:00
Divyajyothi Goparaju
ba9349852b qcacld-3.0: Correct the debug print
Currently vdev set parameters sends through
wma_cli_set command, during processing of cli_set command
some vdev set params stores in vdev_cli_config
For remaining params printing invalid
which creates confusion.

To fix this modify debug print to param is not part of
vdev_cli_config to avoid confusion.

Change-Id: I5644adfe6d7cff61b09a6191813109877c378fdd
CRs-Fixed: 3412198
2023-02-22 13:51:16 -08:00
Madan Koyyalamudi
5ca2a7beed Release 5.2.1.56D
Release 5.2.1.56D

Change-Id: I9d9a11da9173f5e2d7485e26c2045bf608acff9f
CRs-Fixed: 774533
2023-02-22 07:34:02 -08:00
Jianmin Zhu
f6035ce635 qcacld-3.0: Extend WMI_ROAM_STATS_EVENTID for enhanced roam
Extend WMI_ROAM_STATS_EVENTID event information for
requirement of:
1.Roam trigger related information, include timestamp,
  trigger reason, trigger condition, abort reason,
  scan type, roam status and fail reason.
2.Roam scan related information, include scan channel
  number, dwell type, max dwell time of each channel
  and total scan time.
3.all types of roam related frame information, include
  timestamp and successful or failed status for Preauth,
  Reassoc, EAPOL-M1/M2/M3/M4.
Cache roam information in wlan driver, when qca vendor
cmd of QCA_NL80211_VENDOR_SUBCMD_ROAM_STATS get roam
information, driver send all the cached information to
user space.

change-Id: Ic5e1120b51c20c103100833b4296002c5939b021
CRs-Fixed: 3389269
2023-02-22 07:34:02 -08:00
Madan Koyyalamudi
9e4527d12b Release 5.2.1.56C
Release 5.2.1.56C

Change-Id: I3e9eff742025eaa6f1fa9ececb3790bb32b99960
CRs-Fixed: 774533
2023-02-22 01:54:25 -08:00
Bing Sun
63c4c052ea qcacld-3.0: Add new ACL command type to not deauth STA
When EasyMesh controller steers client from AP in EasyMesh controller
to AP in EasyMesh agent, EasyMesh controller will add this client to
blacklist ACL of its AP, then send BTM request to this client. When
client is added to ACL, deauth is not expected since EasyMesh controller
would like client to do roaming with BTM request.

Add new ACL command for EasyMesh. Do not deauth station when add station
to ACL or delete station from ACL.

Change-Id: I499c69108259799a9f0742d1371a666f2b3bbed1
CRs-Fixed: 3408175
2023-02-22 01:54:25 -08:00
Yu Wang
27b170d4e5 qcacld-3.0: add enter/exit logs for some functions
Add enter/exit logs for hdd_psoc_shutdown_notify() and
hdd_soc_recovery_cleanup().

Change-Id: Idf80f84d0bda8de57bc094556fb572b13cb6fc5e
CRs-Fixed: 3410104
2023-02-22 01:54:18 -08:00
Sheenam Monga
672e0a7766 qcacld-3.0: Check previous N freq based on BW to select Best channel
As per current logic previous N-1 frequencies are passed by caller
to validate considering the current frequency as Nth freq. But
instead of comparing previous_n_freq - 1, index - min_index
is compared with previous_n_freq . Due to this current frequency
will not be selected as best frequency even if previous 3 or 4
freq depending on BW are free.

Fix is to pass previous N frequencies based on BW instead of N-1 and
compare index - min_index < prev_n_freq.

Change-Id: Ib78a6774f8d33b264fa2941255f043ea76c6e08b
CRs-Fixed: 3409806
2023-02-22 01:54:11 -08:00
Madan Koyyalamudi
51f76eef31 Release 5.2.1.56B
Release 5.2.1.56B

Change-Id: I96567a76d7cb0cb38fe860b31980f15c128aa0f4
CRs-Fixed: 774533
2023-02-21 14:30:44 -08:00
Vinod Kumar Pirla
ede71596ed qcacld-3.0: Report best RSSI and SNR in the ML STA links
If wlan_hdd_get_sta_stats() is called with non-assoc link's
peer MAC address, it will fetch link adapter with that BSSID.
Link adapter doesn't have pointer to partner link's adapter
and wlan_hdd_mlo_update_stats_info() cannot return the best
RSSI and SNR among all the links.

In wlan_hdd_mlo_update_stats_info() API, if link adapter is
passed to get the best RSSI and SNR of all links, then first
fetch ML adapter to loop through all the link adapters.

Change-Id: I33090fecfa0a20221fc8c465ad9f36f3eb941e60
CRs-Fixed: 3399641
2023-02-21 14:30:43 -08:00
Madan Koyyalamudi
c19be2415d Release 5.2.1.56A
Release 5.2.1.56A

Change-Id: I0d3686220e4a9ebdeb2d21b62a0a896ee15ab007
CRs-Fixed: 774533
2023-02-21 12:55:11 -08:00
Vinod Kumar Pirla
3ec1adb554 qcacld-3.0: Fix bad channel in cfg80211 get channel for SAP
The cfg80211 callback for get channel is returning invalid
channel in case of SAP as the check for is vdev associated
will return false for SAP mode.

Keep this check only for STA mode only so SAP can return
the valid channel in get_channel callback.

Change-Id: I5a03626291f0e20c8e07ae8fde48cb9eacafb2e4
CRs-Fixed: 3410453
2023-02-20 14:16:10 -08:00
Madan Koyyalamudi
f9b558b07f Release 5.2.1.56
Release 5.2.1.56

Change-Id: I48fb619dcbbd619ad4a44c5216bb5544afecaa25
CRs-Fixed: 774533
2023-02-18 20:49:56 -08:00
Abhinav Kumar
ffca2ee19e qcacld-3.0: Send proper RCL list to upper layer
Host receives channel list via an event
WMI_ROAM_SCAN_CHANNEL_LIST_EVENTID as
getroamscanchannels command response on disconnection.

Host sorts the channel list in descending order before
sending the list to the supplicant. As per current
logic, the host fills only the value of LSB for the
second channel onward. This results in host respond
the RCL list with an invalid format of frequencies
to the upper layer.

Fix is to make sure the host should respond RCL list
with the correct format of frequencies.

Change-Id: I1670ec4a99a7c9c7c438c430a9476802f8af83ce
CRs-Fixed: 3397397
2023-02-18 20:49:56 -08:00
Madan Koyyalamudi
925d3ebd58 Release 5.2.1.55Z
Release 5.2.1.55Z

Change-Id: Ia34a4e09dc90c3ad0c783921b59b88fc37c274b7
CRs-Fixed: 774533
2023-02-18 18:45:59 -08:00
Liangwei Dong
c84d6090e1 qcacld-3.0: Add MLO STA concurrency dump info
Add API policy_mgr_dump_ml_sta_conc dump MLO STA
concurrency state.

Change-Id: Ia6e5d5b1abb653a970668f6cc81e3c665f1c0446
CRs-Fixed: 3400383
2023-02-18 18:45:58 -08:00
Madan Koyyalamudi
4b3cb9cfc5 Release 5.2.1.55Y
Release 5.2.1.55Y

Change-Id: I3396bedd9883aab7c483524fa9fab5f9aba6fcfc
CRs-Fixed: 774533
2023-02-18 13:32:33 -08:00
Rahul Gusain
0b2d42188a qcacld-3.0: Peer leak while process the action frame
Currently, while processing EHT protected action frames for action
id as EHT_T2LM_REQUEST, driver takes the peer reference but never
release it. This causes peer leak.

So, to fix this, release peer reference if peer is not null.

Change-Id: I826bfff3510e3b6ea4ce63762cac4bfc689dad4f
CRs-Fixed: 3406567
2023-02-18 13:32:33 -08:00
Madan Koyyalamudi
d72b90088f Release 5.2.1.55X
Release 5.2.1.55X

Change-Id: I213064bcbf12aaabf84d7f0f824ebc1ecece76c7
CRs-Fixed: 774533
2023-02-17 11:00:20 -08:00
Sheenam Monga
49a247ab1b qcacld-3.0: Consider Random 6 GHz channel if DCS triggers CSA
Currently, if Channel change is required via DCS then ACS
is triggered to select the best available channel . In case of
XR SAP optimization, SAP can not come on 2 GHz and frequencies
that can be shared by current SAP frequency on same MAC are
removed from scan list. As result of which frequencies
5/6 GHz in case of DBS and 5 GHz low/5 GHz high + 6 GHz based
on which 5 GHz range is shared with 2 GHz will be disacrded from scan
list. In short Scan can not be  triggered on freqeuncies of same MAC
on which SAP is up and can not come in MCC. So, if any other device
mode is up on 2 GHz on other MAC turning on SAP on other MAC can
cause MCC in case of SBS and DBS HW which is not preferred.

Fix is to start SAP on random 6 GHz channel when case CSA is required
due to DCS in case SAP can't come up on 2 GHz and scan can not be
triggered for same MAC on which SAP is enabled i.e ACS optimization
is enabled for XR SAP.

Change-Id: I0cb46a409e3ee04044f7a0b12addec464e87ef7d
CRs-Fixed: 3404097
2023-02-17 11:00:20 -08:00
Sheenam Monga
59c0c703fe qcacld-3.0: Send AP Profile to FW
Indicate AP profile to FW , so that FW can
keep HW mode as SBS mode if BIT 0 is set in
param of vdev command.

Change-Id: I9ba024d11380590a31836ab468715e0b52c83fe8
CRs-Fixed: 3401583
2023-02-17 11:00:14 -08:00
Chaoli Zhou
d00ac1644e qcacld-3.0: Fix Argument list too long compile issue
Change absolute path to relative to fix below compile
issue for yocto system:
make[4]: /bin/sh: Argument list too long

And just need to do like this in the bb recipes files:
1. set LINUX_BUILD_TOP="${WORKDIR}/WLANSRC"
2. keep WLAN_ROOT=""

Change-Id: I2f03eb9aa5501eae887b41b4e6a134b55da16462
CRs-Fixed: 3408645
2023-02-17 11:00:09 -08:00
Madan Koyyalamudi
c49d8b6ea7 Release 5.2.1.55W
Release 5.2.1.55W

Change-Id: I5237248c6ae6ce63ded3df25baa132f468aef80e
CRs-Fixed: 774533
2023-02-17 09:32:01 -08:00
Paul Zhang
708b3542a3 qcacld-3.0: Enhance logic to support mlo 2+ links
Enhance the code logic to support mlo 2+ links.

Change-Id: I618d789a502f0577d62d62243a25e7324e685315
CRs-Fixed: 3193628
2023-02-17 09:32:01 -08:00
Madan Koyyalamudi
595f20d1f4 Release 5.2.1.55V
Release 5.2.1.55V

Change-Id: Ief8a29620660be182b28571b259181fd961b5e8f
CRs-Fixed: 774533
2023-02-17 08:00:28 -08:00
Kiran Kumar Lokere
31bc110c0d qcacld-3.0: Vendor command support for MLO and EHT config
Add vendor command support to configure MLO and EHT
capability support.

Change-Id: I10f4fffb1fc7382bad7feb4cd82d2f4f3c366e1b
CRs-Fixed: 3271417
2023-02-17 08:00:28 -08:00
Gururaj Pandurangi
0deb4831e8 qcacld-3.0: Fix EHT capability element get/set macros
Fix EHT capability IE get and set macros. The EHT capability
element set and get macros for subfields
max_a_mpdu_len_exponent_ext, eht_trs_support, and
txop_return_support_txop_share_m2 use byte index 0. Thus,
these values are not populated correctly into EHT cap
structure that is sent via probe request frames.
The macros are fixed to use byte index 1 since the above
subfields are part of the second octet in EHT cap element.

Change-Id: I1a60f460c84b2678d729e7cd16e35777f0462bd5
CRs-Fixed: 3392063
2023-02-17 08:00:22 -08:00
Gururaj Pandurangi
e2119da18d qcacld-3.0: Add API for EMLSR padding delay
Add support to configure EMLSR padding delay subfield.
Host should advertise this value in assoc request if
it's greater than the value configured by FW during boot.

Change-Id: Ia9b1e748745278ed502980697f4851f8044db658
CRs-Fixed: 3364158
2023-02-17 08:00:16 -08:00