Graphe des révisions

27610 Révisions

Auteur SHA1 Message Date
Madan Koyyalamudi
82b5905769 Release 5.2.1.47J
Release 5.2.1.47J

Change-Id: Ic37a769c1890a4e05190d1cae35f573bb9f809c7
CRs-Fixed: 774533
2022-12-02 01:25:17 -08:00
Asutosh Mohapatra
5c6ded482a qcacld-3.0: Restrict mode change to FTM mode scenarios
Currently if driver load/unload is in progress or driver is
loaded and mode change to FTM mode is issued from the sys
path, memory leakage occurs during driver unload.

To address this issue, don't change mode if driver is already
loaded or load/unload is in progress.

Change-Id: I09cacaf11d516c62de1a9699547eb01476afdc1f
CRs-Fixed: 3349217
2022-12-02 01:25:17 -08:00
Krupali Dhanvijay
3ecc75ecc3 qcacld-3.0: Clean up code for sme apis
Clean up code for sme_get_empty_scan_refresh_period_global() and
sme_get_neighbor_scan_refresh_period() apis
and replace it with ucfg api.

Change-Id: Iaa511024467f45dc408da3db202b25f9b5276453
CRs-Fixed: 3335898
2022-12-02 01:25:11 -08:00
Krupali Dhanvijay
091ad81795 qcacld-3.0: Clean up code for sme apis
Clean up code for sme_get_roam_opportunistic_scan_threshold_diff() and
sme_get_roam_scan_home_away_time() apis and replace it with ucfg api.

Change-Id: I7de3bf3faff990cbf667cb8106044a33f16f3a46
CRs-Fixed: 3335898
2022-12-02 01:25:05 -08:00
Krupali Dhanvijay
7c037e6d50 qcacld-3.0: Clean up code for sme apis
Clean up code for sme_get_wes_mode(), sme_get_is_lfr_feature_enabled()
and sme_get_is_ft_feature_enabled() apis and
replace it with ucfg api.

Change-Id: I7715ba361264fcb2c0c93d8d073813538347dd31
CRs-Fixed: 3335898
2022-12-02 01:24:59 -08:00
Krupali Dhanvijay
2c38836b37 qcacld-3.0: Clean up code for sme apis
Clean up code for sme_get_neighbor_scan_max_chan_time() and
sme_get_neighbor_scan_max_chan_time() apis and replace it with ucfg api.

Change-Id: I8a9de18f22e352ed8c64f415fd0455f64227a857
CRs-Fixed: 3335898
2022-12-02 01:24:53 -08:00
Krupali Dhanvijay
45eb0c0f4e qcacld-3.0: Clean up code for sme apis
Clean up code for sme_get_roam_rssi_diff() and
sme_get_is_ese_feature_enabled() apis and replace it with ucfg api.

Change-Id: I226efbcf8ecd44b08684a3e17e2db987c169946d
CRs-Fixed: 3335898
2022-12-02 01:24:48 -08:00
Krupali Dhanvijay
5afc9f98c7 qcacld-3.0: Clean up code for sme apis
Clean up code for sme_get_empty_scan_refresh_period() and
sme_get_neighbor_scan_min_chan_time() apis and
replace it with ucfg api.

Change-Id: I372fcbcf4f96af2c642a5fe93c0f8e2ce98174ea
CRs-Fixed: 3335898
2022-12-02 01:24:43 -08:00
Krupali Dhanvijay
b3021e935e qcacld-3.0: Clean up code for sme apis
Clean up the code for sme_get_neighbor_lookup_rssi_threshold() and
sme_get_roam_rescan_rssi_diff() apis and
replace it with ucfg api.

Change-Id: Idc7503eaa316d68dc05aba8345970ace7bc8ad45
CRs-Fixed: 3335898
2022-12-02 01:24:37 -08:00
Krupali Dhanvijay
a3a9866f7d qcacld-3.0: Clean up code for sme apis
Clean up code for sme_get_valid_channels() and
sme_get_roam_intra_band() apis and
replace it with ucfg api.

Change-Id: Ic2f07e2193186d1e1ac81f6e5909417c10ab9c89
CRs-Fixed: 3335898
2022-12-02 01:24:32 -08:00
Amruta Kulkarni
a9850cfe67 qcacld-3.0: Parse and save t2lm ie
Adds support to parse and save t2lm ie from beacon or
probe response in t2lm database

Change-Id: Ieea735200ab0ae120c01b632687a82ca972459dc
CRs-Fixed: 3337174
2022-12-02 01:24:26 -08:00
Madan Koyyalamudi
4b473ede81 Release 5.2.1.47I
Release 5.2.1.47I

Change-Id: Ibd3b1bd51e705b5a348a249c23bcf7d69481969d
CRs-Fixed: 774533
2022-12-01 08:19:26 -08:00
Rachit Kankane
f5b2eeb7f6 qcacld-3.0: Fail SR commands in concurrency
Fail all the Spatial Reuse commands if SR in concurrency
is not supported.

Change-Id: Ifcee0cfb6f52bcde5bcb4193f4f8bb336ba6b191
CRs-Fixed: 3338582
2022-12-01 08:19:26 -08:00
Asutosh Mohapatra
b9a928a6c5 qcacld-3.0: Use link_id stored in vdev in case of MLO
Currently, host hardcodes link_id value to 0 and sends to user space
hence getting multiple call traces as the 0th bit of valid links
is not set.

To address this issue send link_id extracted from beacon data to
user space.

Change-Id: I522518eed418b502e2a806ef18743290e465e827
CRs-Fixed: 3338480
2022-12-01 08:19:20 -08:00
chunquan
2a9b4fb35b qcacld-3.0: Skip dfs channel for P2P-GO concurrency mode
If sta connect to an AP at 5 GHz DFS channel, P2P-GO open and would
scc on the same channel. We don't expect filter out the DFS channel
from PCL list.

Change-Id: Idd8707d7aea908d17d720b54c0228a131cf17fcd
CRs-Fixed: 3345700
2022-12-01 08:19:15 -08:00
Madan Koyyalamudi
fee2fd42f6 Release 5.2.1.47H
Release 5.2.1.47H

Change-Id: I07d332caef9431e0a1eaae12fc1c2745e6ddf69f
CRs-Fixed: 774533
2022-12-01 06:20:26 -08:00
Liangwei Dong
e3ae186003 qcacld-3.0: Limit mandatory channel policy to 2 vdev concurrency
The mandatory channel policy was created for STA + SAP 2 vdev concurrency
case. For MLO STA (2+5/6) + SAP 3 vdev concurrency case, use general
force SCC logic until the requirement is updated in this case.

Change-Id: Ifca16824d53f272adc5b6ff763c1b4cc08af6a2f
CRs-Fixed: 3347722
2022-12-01 06:20:26 -08:00
Madan Koyyalamudi
2c6c727695 Release 5.2.1.47G
Release 5.2.1.47G

Change-Id: If47d1584d6fac1d665719c82ee141b8ba34a3cfd
CRs-Fixed: 774533
2022-12-01 04:17:26 -08:00
Jeff Johnson
db8100e67e qcacld-3.0: Fix hdd/inc documentation
The kernel-doc script identified documentation issues in the hdd
layer, so fix the ones in the "inc" folder.

Change-Id: I0fda8ea1ce929ad5e0cc54f86a9de5a46b3f7d38
CRs-Fixed: 3346527
2022-12-01 04:17:25 -08:00
Jeff Johnson
dd8340e82c qcacld-3.0: Rename wlan_hdd_cfg80211_spectral_scam_get_config()
Rename wlan_hdd_cfg80211_spectral_scam_get_config() to replace
incorrect term "scam" with "scan". In addition, clean up existing
documentation issues.

Change-Id: I1d7f11e274bcb0e1e09e8292b75554d256a5c6fd
CRs-Fixed: 3344908
2022-12-01 04:17:20 -08:00
Madan Koyyalamudi
c016cdbc32 Release 5.2.1.47F
Release 5.2.1.47F

Change-Id: I718ea8ed2999a4b1c7933bf8e3d20281be14412d
CRs-Fixed: 774533
2022-12-01 02:25:12 -08:00
Jeff Johnson
e27691cfb8 qcacld-3.0: Rename hdd_get_ml_adater()
Rename hdd_get_ml_adater() to fix misspelling of "adapter".

Change-Id: If2d13823308042c60cd4c16208a21142fa41ffd6
CRs-Fixed: 3343876
2022-12-01 02:25:12 -08:00
Jeff Johnson
c91958c650 qcacld-3.0: Fix hdd/src documentation
The kernel-doc script identified documentation issues in the hdd
layer, so fix the ones in the "src" folder.

Change-Id: I20307c4c7e02163a13a79dfd4fcf8fc734a4b230
CRs-Fixed: 3343791
2022-12-01 02:25:06 -08:00
Madan Koyyalamudi
9a320101ef Release 5.2.1.47E
Release 5.2.1.47E

Change-Id: I67970c0193480c27c2f0b16a45e011d86f790dc5
CRs-Fixed: 774533
2022-12-01 00:34:38 -08:00
Jeff Johnson
276e2d4a76 qcacld-3.0: Fix lim_session.h documentation
The kernel-doc script identified a large number of documentation
issues in lim_session.h, so fix them.

Note that many members of struct pe_session did not have existing
documentation, so for now these just have the tags. Hopefully these
can be updated to add proper documentation in the future.

Change-Id: I2053b87b62fa992e654e292b534a9a12d4e6d767
CRs-Fixed: 3346625
2022-12-01 00:34:38 -08:00
Madan Koyyalamudi
4c365e3c1b Release 5.2.1.47D
Release 5.2.1.47D

Change-Id: Ic622571e6a1916ee1d528c03fe24004dfa6b2ce8
CRs-Fixed: 774533
2022-11-30 22:51:23 -08:00
Srinivas Dasari
9d6fa2ef4d qcacld-3.0: Free the NAN buffer when fail to serialize the command
When same NAN commands are issued back to back, serialization
module rejects the commands when there is a command present
in the pending queue. But the memory allocated for the NAN buffer
is not freed in such failure cases.
Free the NAN buffer in such failure cases to avoid memleaks.

Change-Id: I1d1f9c077d4b6239f4400d9b3ed185e63e471b56
CRs-Fixed: 3341229
2022-11-30 22:51:22 -08:00
Madan Koyyalamudi
40b10658a5 Release 5.2.1.47C
Release 5.2.1.47C

Change-Id: I28b3b74c9168f119fa7f47b37f47d0fa2e5088f4
CRs-Fixed: 774533
2022-11-30 15:00:22 -08:00
Amruta Kulkarni
7566d61fff qcacld-3.0: Assign op mode after null vdev check
To avoid assignment before null check for vdev.
First check null vdev and then assign operational
mode value.

Change-Id: Ifbff1f79f04d51dddf6a6c1aec27793389516045
CRs-Fixed: 3340858
2022-11-30 15:00:21 -08:00
Madan Koyyalamudi
8b20cab606 Release 5.2.1.47B
Release 5.2.1.47B

Change-Id: I12156264a655002eea3be00ef13d1217483c039f
CRs-Fixed: 774533
2022-11-30 13:07:07 -08:00
Tiger Yu
a98c209617 qcacld-3.0: Fix potential uninitialized peer might be used directly
The uninitialized peer might be used directly if device mode is SAP mode
and the link_vdev is not mlo vdev in the wlan_hdd_add_key_all_mlo_vdev.

Init the peer to NULL before checking the each link_vdev to address this
potential issue.

Change-Id: Ifbf2b68a030fada8a2a1b1cacf5d2a6ef703befe
CRs-Fixed: 3344320
2022-11-30 13:07:07 -08:00
Madan Koyyalamudi
9b3cf88ab5 Release 5.2.1.47A
Release 5.2.1.47A

Change-Id: I9b2b9d83423b16fe5bda9c1904d85c76f816fca1
CRs-Fixed: 774533
2022-11-29 05:28:46 -08:00
Sheenam Monga
728998c4af qcacld-3.0: Send async event to user space in case of roaming
Currently, if SR (Spatial Reuse) is supported by AP and then
STA roams to another AP then host needs to parse SR IE and
send events to userspace and commands to Fw based on below
scenarios:

i.) Roamed AP doesn't support SR: If roamed AP doesn't support
SR then async event with SR disable is required to be sent to
userspace.

ii.) Roamed AP supports SR: If roamed AP supports SR then below
validations are required.

a.) existing thresholds are in range of roamed AP: Send SR enable
command to FW with previous thresholds , as FW disables SR during
roaming.

b.) existing thresholds are not in range of roamed AP: then decision
will be based on whether threshold is provided during SR enable command
or not. If threshold is provided along with SR enable command then send
disable to userspace and in other case update thresholds as per roamed
AP , send async event to userspace with new configured values and send
enable command to fw with new thresholds.

Change-Id: I0c39de349c0f723d49d510c6e8ba09dcb98c6d17
CRs-Fixed: 3316985
2022-11-29 05:28:46 -08:00
Madan Koyyalamudi
1689071af8 Release 5.2.1.47
Release 5.2.1.47

Change-Id: Ibde55098930e5fdf2b5a86f2f7fbadaf49a4239b
CRs-Fixed: 774533
2022-11-28 22:07:44 -08:00
Chaoli Zhou
a00721bb91 qcacld-3.0: Fix compile error if CONFIG_WLAN_SYSFS not enable
Fix 'defined but not used' compile issue for some
sysfs functions if CONFIG_WLAN_SYSFS not set.

Change-Id: If067afe95ae98355e92a5b914bdce34b3c7c2342
CRs-Fixed: 3345060
2022-11-28 22:07:43 -08:00
Madan Koyyalamudi
a6e0727067 Release 5.2.1.46Z
Release 5.2.1.46Z

Change-Id: I91e1635841e4d8a5b2c9bbfc19841585d2c35dda
CRs-Fixed: 774533
2022-11-28 17:36:29 -08:00
Pragaspathi Thilagaraj
3ee2631939 qcacld-3.0: Fix potential wma NULL pointer dereference
Potential NULL pointer dereference of wma pointer in
wma_pasn_peer_delete_all_complete() API.

Add validation of wma pointer before passing it to the
wma_resume_vdev_delete() API.

Change-Id: I9ccb7baa0dba4cb6bbb4a16fd90ee7e2aafde1c5
CRs-Fixed: 3340866
2022-11-28 17:36:29 -08:00
Madan Koyyalamudi
686eae1109 Release 5.2.1.46Y
Release 5.2.1.46Y

Change-Id: I38afa16e0d111905320f1a82bbbcb6b3a74101dd
CRs-Fixed: 774533
2022-11-28 15:51:48 -08:00
Jyoti Kumari
4c0dab6980 qcacld-3.0: Add edca_param_type ini for LL SAP
Add edca_param_type ini to configure edca or pifs param for
LL SAP.
If edca_param_type is 0 then set edca param or
if edca_param_type is 1 then set pifs param.

Based on this ini, host configures either edca or pifs param
and send it to firmware and earbud via OTA frames.

Change-Id: I46a5efea4f516b145d04d8b8ad79c5d47ceb7f89
CRs-Fixed: 3344875
2022-11-28 15:51:48 -08:00
Madan Koyyalamudi
bccde86c6e Release 5.2.1.46X
Release 5.2.1.46X

Change-Id: I949c34154de62533630db9c904bf98a5d99f6340
CRs-Fixed: 774533
2022-11-28 12:20:04 -08:00
abhinav kumar
a9a821db64 qcacld-3.0: Use self cb mode check to change HT bandwidth
Currently, the driver uses the current capability to check
if it supports 40 MHz instead of self-cap, so once it
switches to 20 MHz it cannot switch back to 40 MHz again.

To fix check self capability to determine if the bandwidth
switch can be allowed in HT-only mode.

Change-Id: I4bfe893d1c745c82d96d763f92a635d1f6d7d8ce
CRs-Fixed: 3341954
2022-11-28 12:20:04 -08:00
Madan Koyyalamudi
9230d41f90 Release 5.2.1.46W
Release 5.2.1.46W

Change-Id: I8581080290161a15354122a60772527b38c8561c
CRs-Fixed: 774533
2022-11-28 10:26:37 -08:00
Chaoli Zhou
563bc8f3f6 qcacld-3.0: Update regulatory info to cfg80211
Update the regulatory info to cfg80211 as well
if some channel information to be changed
by QCA_NL80211_VENDOR_SUBCMD_AVOID_FREQUENCY_EXT.

Change-Id: Ie485e9e2a57a04921e32d5f029b3c9535970186f
CRs-Fixed: 3335527
2022-11-28 10:26:37 -08:00
Yu Wang
cc42389ad0 qcacld-3.0: use nla_total_size() to determine the size for attribute
The length calculations in __wlan_hdd_cfg80211_get_wifi_info() are
not accounting for netlink attribute padding.
To fix it, use nla_total_size() to determine the size for attribute.

Change-Id: Ia6a632d32c59af0fac30f19e38f23b2955a0f8f6
CRs-Fixed: 3345051
2022-11-28 10:26:31 -08:00
Madan Koyyalamudi
05d882b848 Release 5.2.1.46V
Release 5.2.1.46V

Change-Id: I79764c467a99fa3b279ba29cd4561a30af2e8f7b
CRs-Fixed: 774533
2022-11-27 23:28:04 -08:00
Jianmin Zhu
60c511d230 qcacld-3.0: Enable vdev PCL for SBS mode to avoid roaming to MCC
When dual sta connected as SBS mode instead of dbs mode, driver didn't set
pcl per vdev, so dual sta had same PCL in firmware, MCC may happened after
roaming.

Fix:
1. Host pass roaming MCC disallow flag to F/W by checking primary vdev id.

2. For platform SBS supported, when doing dbs or sbs, send PCL from table
to F/W directly, allow SCC and SBS<->DBS roaming, don't limit to intra
band, only avoid mcc case if no primary vdev.

3. Use policy_mgr_concurrent_sta_on_different_mac to replace
policy_mgr_concurrent_sta_doing_dbs, add logic to consider SBS when set
PCL to F/W.

4. Change dual sta PCL table to remove mcc channels.

5. When STA channel switch, also update PCL to F/W.

6. For roaming case, do vdev level PCL update for all sta after connection
update in policy mgr, or wrong PCL is got.

Change-Id: I631c84c96da2bba4011b69e4c076db174205c874
CRs-Fixed: 3336768
2022-11-27 23:28:03 -08:00
Arun Kumar Khandavalli
dcabca8772 qcacld-3.0: Check the netdev state when sending the scan done
When the SSR and interface down happen in parallel,
the driver rejects the interface down since the
recovery is in progress. Kernel ignores the -EAGAIN
request from the driver and as part of NET_DOWN notification
in cfg80211_netdown_notifer the kernel invokes the
___cfg80211_scan_done to free the scan request.

As part of the driver recovery, the driver also tries to
invoke the scan done on the scan request which is already freed
by kernel resulting in invalid access, so check the driver state
and send the scan done indication to kernel.

Change-Id: I7aa9286e32c407af88fe7be301b825506140d5a3
CRs-Fixed: 3345420
2022-11-27 23:27:58 -08:00
Madan Koyyalamudi
626b48645d Release 5.2.1.46U
Release 5.2.1.46U

Change-Id: I59f08f486807be16ed5e78bfeba6bf10349a1d1d
CRs-Fixed: 774533
2022-11-27 03:34:23 -08:00
Jianmin Zhu
8b9b29fbc0 qcacld-3.0: Avoid deadlock for back to back SAP CSA
While SAP doing CSA, NAN enabled, SAP tries to do CSA to force SCC with
NAN in scheduler thread, since last CSA in progress, scheduler thread is
blocked to wait last CSA finished, CSA timer can't be handled in scheduler
thread any more, last CSA can't finish, deadlock happens until timeout.

To fix it, let SAP force scc with NAN logic run in work thread instead of
scheduler thread.

Change-Id: Icb774ffcfc70f279ba3b18b3c5cd4a169180e99b
CRs-Fixed: 3344905
2022-11-27 03:34:23 -08:00
Madan Koyyalamudi
185bed4c99 Release 5.2.1.46T
Release 5.2.1.46T

Change-Id: If887b5ede2a504ce7b3fc51741df1b6cc7570fd2
CRs-Fixed: 774533
2022-11-26 19:23:35 -08:00