Commit graph

23,042 commits

Author SHA1 Message Date
Vinod Kumar Myadam
76fdddbcb7 qcacld-3.0: Add support for 3rd mode when CLI+CLI exists
Currently support is not there for 3rd mode when CLI+CLI
connection is there on DUT.

Update PCL table for 3rd mode when CLI+CLI exsits and add
support to fetch index based on new connection band and
concurrency.

Change-Id: I6041c40b3208d0b33dff2b4f9dc854d2d2dc17a1
CRs-Fixed: 3050537
2023-02-09 07:10:09 -08:00
Vinod Kumar Myadam
fe0fe96464 qcacld-3.0: Add WLAN_FEATURE_P2P_P2P_STA flag for p2p + p2p support
Add feature flag for conditional compilation of feature to enable
p2p+p2p on a device.

Change-Id: I2c95b39c3db6e51213f7625383c365799fff9e31
CRs-Fixed: 2991307
2023-02-09 07:10:04 -08:00
Vinod Kumar Myadam
f4a551d19e qcacld-3.0: Enhance g_enable_go_force_scc for liberal mode
INI g_enable_go_force_scc states the force MCC to SCC mode.
Mode 1-strict: Implement force scc strictly as part of start bss
Mode 2-liberal: Turn on p2p go on provided channel and move
first p2p go to the new p2p go channel after set key.

Currently for p2p-GO forceSCC, support is present where no matter
what is the GO negotiated channel in start_bss, driver will force
the other GO/STA/GC channel (on the same band) to the current GO
channel. This is force SCC strict mode where value 1 is used for
g_enable_go_force_scc ini. In this mode GC will have to do full
scan as the GO channel may be different from actual negotiated
channel. DUT may see some issues if GC dosent do full scan in
this mode.

As part of this change, add support for value 2(Liberal mode)
in g_enable_go_force_scc ini. As part of this liberal mode,
driver will allow the GO to start in MCC mode and after set key,
it will check any other concurrent GO and will do forceSCC for
that GO to the newly formed GO channel.

Change-Id: Ifc7beb06335616c51dc064f48a78b825dbdbda25
CRs-Fixed: 2992098
2023-02-09 07:09:59 -08:00
Vinod Kumar Myadam
eb48431ea7 qcacld-3.0: Check Fw capability to support p2p + p2p concurrency
Check fw capability to support p2p + p2p concurrency from
soc_fw_ext_caps and based on fw capability, set policy
mgr concurrency for p2p + p2p.

Change-Id: Ia32f81f37174e9d722911b1fae6d4897d0af9816
CRs-Fixed: 2991300
2023-02-09 07:09:54 -08:00
Vinod Kumar Myadam
bec024af28 qcacld-3.0: Argument mismatch in sta_ap work queue
From the caller, the args comes as pm_ctx but in definition
it's assigned as work_info which causes crash.

Change-Id: I9928a2c3862407b02cb34356ad54895e1d3069c7
CRs-Fixed: 3035090
2023-02-09 07:09:48 -08:00
Vinod Kumar Myadam
f3e7ed9751 qcacld-3.0: Don't allow GO/GC+GO/GC+STA on the same band
Add support to allow/disallow three port combinations on
same band based on PCL table

Change-Id: Id2e9ad7d17bab6ea0aff6913b25f0eb330dc6c13
CRs-Fixed: 3028527
2023-02-09 07:09:42 -08:00
Madan Koyyalamudi
23f539a649 Release 2.0.8.32O
Release 2.0.8.32O

Change-Id: I3d0b9f514d82529c2597c4f89eb44f29939f6ed0
CRs-Fixed: 774533
2023-02-09 03:35:51 -08:00
Vinod Kumar Myadam
164ce24671 qcacld-3.0: Limit ROC for listen to max 600 if GO present
Add fixed 300ms extra ROC time instead of multiplying the
ROC duration by 6 as this causes the ROC to be upto 1.5 secs
if GO is present. Firmware will advertize NOA of 1.5 secs
and if supplicant cancels ROC after 200 or 300ms then
firmware cannot cancel NOA. So when supplicant sends next
ROC it will be delayed as firmware already is running previous
NOA which may cause p2p find issues if GO is present.

Fix this by capping the max ROC time to 600ms when GO is present.

Change-Id: I0774b06ff4db1fae7efc387388fdf3059505150e
CRs-Fixed: 3025870
2023-02-09 03:35:50 -08:00
Madan Koyyalamudi
330501b50c Release 2.0.8.32N
Release 2.0.8.32N

Change-Id: Ide2989f9e07aef4c8ba7c292f99b30422200b809
CRs-Fixed: 774533
2023-02-09 01:20:07 -08:00
Vijay Raj
9dacab89f9 qcacld-3.0: remove WLAN_ENABLE_AGEIE_ON_SCAN_RESULTS macro
Remove WLAN_ENABLE_AGEIE_ON_SCAN_RESULTS macro as BSS age
is calculated using NL80211_BSS_SEEN_MS_AGO

Change-Id: I5473f9cea216df4968a43551875b0385605f616f
CRs-Fixed: 3391078
2023-02-09 01:20:07 -08:00
Madan Koyyalamudi
48d7479b6d Release 2.0.8.32M
Release 2.0.8.32M

Change-Id: I6abf1657cdcf371afe0c58042a9c06e8e4138e81
CRs-Fixed: 774533
2023-02-08 22:58:18 -08:00
Vinod Kumar Myadam
372fe9ce5c qcacld-3.0: change mode to p2p device for p2p interface
Currently, mode of p2p virtual interface with type managed
is added as sta mode. This may cause issue during p2p find
as in function p2p_vdev_check_valid probe response frames
are dropped for sta mode.

Fix is to convert mode to P2P DEVICE mode from STA mode in
case added interface string contains p2p substring.

Change-Id: I9bf9d8c44af940b42c38cd7819bcdb9c00a90a26
CRs-Fixed: 3036500
2023-02-08 22:58:18 -08:00
Vinod Kumar Myadam
262bcac43c qcacld-3.0: Update pcl connecton table for p2p+p2p concurrency
Update pcl table for P2P + P2P concurrency for SCC,MCC and
DBS scenarios.

Change-Id: Ibd76db75c68a568fd60f1fece23e4e7146718628
CRs-Fixed: 2991321
2023-02-08 22:58:12 -08:00
Madan Koyyalamudi
20037a19b2 Release 2.0.8.32L
Release 2.0.8.32L

Change-Id: Ide4b73b4d65075b4dcf5fe7ffb927cd01af5c4d0
CRs-Fixed: 774533
2023-02-05 23:47:41 -08:00
Abhishek Singh
475dfe0786 qcacld-3.0: Increase the scan database size to 500 from 300
In very noisy environment and with 6 GHz co-located AP, scan
database size of 300 might not be enough.

So increase the size to 500.

Change-Id: I26077b2ab0d24f73a7c8e29990504d5b284eccf4
CRs-Fixed: 3395834
2023-02-05 23:47:41 -08:00
Madan Koyyalamudi
3431dd8795 Release 2.0.8.32K
Release 2.0.8.32K

Change-Id: I92ee3f6f20f571b33a9d1212afb68e8c55c56a9e
CRs-Fixed: 774533
2023-02-03 01:13:40 -08:00
Abhishek Singh
a2377a8de1 qcacld-3.0: Use freq hint in scan for ssid
When Scan db reaches max size, driver deletes the oldest node,
so chances are that BSS on 1st freq scanned is removed.

This lead to scan for SSID, which will do a scan again on
all freqs, and thus we end up in flushing the entry again.

TO fix this use freq hint to scan for ssid to quickly find the
AP so that required AP remains in scan database as it will
be the latest entry.

Change-Id: I28849ee97ff1f492d372870c362288206c4ec9a5
CRs-Fixed: 3391899
2023-02-03 01:13:39 -08:00
Madan Koyyalamudi
cf8f04d350 Release 2.0.8.32J
Release 2.0.8.32J

Change-Id: If645a2ceeeae9ddf0b477b04f70aa7960190a007
CRs-Fixed: 774533
2023-02-01 00:21:31 -08:00
abhinav kumar
3dd7895b19 qcacld-3.0: Abort connection for next AP if SAP stop/start is pending
In the case of STA/CLI + STA/CLI, if an STA/CLI is in connecting state
and a disconnect is received on any other STA/CLI, the disconnect can
timeout waiting for the connection on the first STA/CLI to get completed.
This is because the connection is a blocking serialization command and
it can try multiple candidates and thus can take up to 30+ sec to
complete.

Same way if an SAP/GO has a start/stop command or peer disconnect in
pending queue, the delay is processing it can cause timeouts and other
issues.

So abort the next connection attempt if any of the vdev is waiting
for vdev operation to avoid timeouts.

Change-Id: I09077555b4f3a33f5ef5846ffd6e2bc5ea998858
CRs-Fixed: 3386150
2023-01-31 14:02:13 +05:30
Madan Koyyalamudi
a4d1b26ae4 Release 2.0.8.32I
Release 2.0.8.32I

Change-Id: Ic1e97aacbba7d6ac691881c831a68f4533efcd8a
CRs-Fixed: 774533
2023-01-19 02:13:41 -08:00
Balaji Pothunoori
111c1c3c45 qcacld-3.0: Set 160 MHz chan width for 6 GHz band channel
Currently 160 MHz chan width set for 6 GHz band channel is not
allowing.
This change is to set 160 MHz chan width if 6 GHz band channel support.

Example cmd: hostapd_cli DRIVER CHANNEL_SWITCH <Channel> <BW>

Change-Id: I5955ba524d3e77fb49d7acf4098fd0c564e138b0
CRs-Fixed: 3356605
2023-01-19 02:13:40 -08:00
Madan Koyyalamudi
1c3a260524 Release 2.0.8.32H
Release 2.0.8.32H

Change-Id: I52b70f634ea662492df505216849e2f8c88473a4
CRs-Fixed: 774533
2023-01-18 05:59:35 -08:00
Dundi Raviteja
b12563e4c7 qcacld-3.0: Use correct API to unsubscribe pkt_capture wdi event
Use cdp_wdi_event_unsub() to unsubscribe
PKT_CAPTURE_RX_NO_PEER_SUBSCRIBER in
pkt_capture_wdi_event_unsubscribe().

Change-Id: I43575df1402611d468b8523bf948d2dc86f31dd7
CRs-Fixed: 3260272
2023-01-18 05:59:35 -08:00
Madan Koyyalamudi
be5ddcb85c Release 2.0.8.32G
Release 2.0.8.32G

Change-Id: I2deb4da3a411401e9808bf3eb2544bbeb97b97a1
CRs-Fixed: 774533
2023-01-16 22:25:37 -08:00
Krupali Dhanvijay
bebe7c189a qcacld-3.0: Add an attribute to set wfc state via set wifi config
Currently there is no attribute to set the wifi calling state
from user space to fw.
With this change add an attribute to set wifi config vendor
command to configure wifi calling state to fw via platform
driver.

Change-Id: I982e9a7245b9e5108cd6cbcb4162daa4b4b6a412
CRs-Fixed: 3345705
2023-01-16 22:25:37 -08:00
Madan Koyyalamudi
73e41fc294 Release 2.0.8.32F
Release 2.0.8.32F

Change-Id: Ib89b564a6ad8ecd45a8b0d99fae805306cd28a6d
CRs-Fixed: 774533
2023-01-16 12:18:42 -08:00
Krupali Dhanvijay
6054d6c4da qcacld-3.0: Add PLD API to send WFC mode to FW
Add PLD API to send WFC(WiFi Calling) mode to WLAN FW.

Change-Id: I4aef58caa93d255233d2412aa6d03017da4b5f10
CRs-Fixed: 3346545
2023-01-16 12:18:42 -08:00
Madan Koyyalamudi
416e7495ed Release 2.0.8.32E
Release 2.0.8.32E

Change-Id: If57358ff5b8f3284f9f213bd52c3be5db1565f56
CRs-Fixed: 774533
2023-01-16 05:58:26 -08:00
Nagalakshmi
ed07fad8f5 qcacld-3.0: Fix OOB in wma_scan_roam.c
Currently in wma_extscan_hotlist_match_event_handler
API, dest_hotlist get memory allocation based on numap
which takes value from event->total_entries.
But numap is limited to WMA_EXTSCAN_MAX_HOTLIST_ENTRIES
and event->total_entries more than WMA_EXTSCAN_MAX_HOTLIST_ENTRIES
can cause out of bound issue.

Fix is to populate dest_hotlist->numOfAps from numap
instead of event->total_entries to avoid any out of bound issue.

Change-Id: I756f7e4a4dcd454508bba83d4a8bbbb139530905
CRs-Fixed: 3346781
2023-01-16 03:27:58 -08:00
Madan Koyyalamudi
ec29f63087 Release 2.0.8.32D
Release 2.0.8.32D

Change-Id: I1f44d0bc903176648c80baf8044f5de5eb6d65c1
CRs-Fixed: 774533
2023-01-16 00:06:04 -08:00
Krupali Dhanvijay
dd02608be5 qcacld-3.0: Add debug logs to check how tx power is calculated
Currently, there is no print to check local constrtaint which
may be reason of tx_power updation based on power constarint is
absolute or not. Add print to check local constarint, so that
tx power updation can be monitored.

Change-Id: I463828aab69e189c6cd6c4e61e01af1ba140ab29
CRs-Fixed: 3260542
2023-01-16 00:06:04 -08:00
Madan Koyyalamudi
8d0637f083 Release 2.0.8.32C
Release 2.0.8.32C

Change-Id: I89d98c8640edd97394fea8a3b855058e9fb70565
CRs-Fixed: 774533
2023-01-10 08:42:55 -08:00
Huashan Qu
5d863d9770 qcacld-3.0: Add check to avoid potential OOB access for bssid_list
In wma_group_num_bss_to_scan_id(), bssid_list may be accessed out
of boundary.

Add check to avoid potential OOB access for bssid_list.

Change-Id: I218af0fe617f64a50c7c296c622f7fac01e1b4fc
CRs-Fixed: 3357461
2023-01-10 08:42:55 -08:00
Rahul Gusain
9242481149 qcacld-3.0: Add support to send FILS discovery frame
Prepare FILS discovery template with mandatory fields
including fd cpabilities and center frequency and also
TPE IE and send the template to firmware.
It is called when beacon template is updated.

Change-Id: I927f6a1c0bcd8fa531d48b1fa84cc256b4c1665f
CRs-Fixed: 3081251
2023-01-10 08:42:49 -08:00
Madan Koyyalamudi
b43c4037ff Release 2.0.8.32B
Release 2.0.8.32B

Change-Id: I5aef6e08ea72bf67585dcff928c7246788b2fbbd
CRs-Fixed: 774533
2023-01-09 05:21:53 -08:00
Srikanth Marepalli
4c3c4ddb3d qcacld-3.0: Correct BW parameter for CSA concurrency check
In SAP+GO concurrency, if move SAP to DFS channel (BW 160 MHz)
and cause MCC with GO, the target will do CAC on SAP, but target
doesn't support MCC with GO when SAP is CAC state.
Fix by checking correct BW of CSA target channel so that correct
DFS flag can be got and if target channel is DFS causing MCC
with other AP interface then reject CSA request.

Change-Id: Ic7821cf62d3b364e4d2ea052dc82d65d18054091
CRs-Fixed: 3275285
2023-01-09 05:21:52 -08:00
Madan Koyyalamudi
18cdf519d8 Release 2.0.8.32A
Release 2.0.8.32A

Change-Id: I5cea00273a72e3f3f2d77aea33db0aaadc52bed8
CRs-Fixed: 774533
2023-01-09 01:10:34 -08:00
Divyajyothi Goparaju
e07f7f3ccb qcacld-3.0: Avoid illegal memory access
Currently In os_if_monitor_mode_configure API,
tb attribute is getting accessed before parsing
the data coming from userspace.
This is leading to illegal memory access.

Move tb attribute access after parsing userspace
data with API wlan_cfg80211_nla_parse.

Change-Id: Ia972ebb87e18ed82c6c3a2ff3ce2d10a4b9685b9
CRs-Fixed: 3241952
2023-01-09 01:10:33 -08:00
Madan Koyyalamudi
48d9d51bfa Release 2.0.8.32
Release 2.0.8.32

Change-Id: Ic97db5893ef463e3f97903bfa244b0801e28e224
CRs-Fixed: 774533
2023-01-03 23:31:23 -08:00
Surya Prakash Sivaraj
df4878edf3 qcacld-3.0: Add debugs for max allowed tx power
Max tx power limit is received as part of the
WMI_VDEV_START_RESP_EVENTID. Add debugs to print the
max_allowed_tx_power in host.

Change-Id: I4ca0d4a4a2a1e452b8a6a9f1c48ad52fcd2f6213
CRs-Fixed: 3167045
2022-12-28 17:09:21 +05:30
Madan Koyyalamudi
1e1fac45ea Release 2.0.8.31Z
Release 2.0.8.31Z

Change-Id: I35f76c62c9edc63bcd716968f05a48a46eb4fc43
CRs-Fixed: 774533
2022-12-27 04:58:20 -08:00
Asutosh Mohapatra
5307d19a75 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-27 04:58:19 -08:00
Madan Koyyalamudi
9c9d6f8257 Release 2.0.8.31Y
Release 2.0.8.31Y

Change-Id: If244ada004a904352724a57c43d1b8e8f7d493e6
CRs-Fixed: 774533
2022-12-23 12:38:12 -08:00
Sandeep Puligilla
d1372d6e6a qcacld-3.0: Incorrect MCS index is passed
Fix the potential out of bound read of the supported MCS rate
array.

Change-Id: I172dcac9d1ce79b16e4cd2a4ee321d9e93102866
CRs-Fixed: 3304227
2022-12-23 12:38:11 -08:00
Madan Koyyalamudi
0a1a87c7bd Release 2.0.8.31X
Release 2.0.8.31X

Change-Id: Ia7698f3498f3d2fad9442cbee7f8755086290e24
CRs-Fixed: 774533
2022-12-23 01:12:47 -08:00
Vinod Kumar Myadam
7a3a40a77a qcacld-3.0: Change default value of gSoftApMaxPeers
In the current driver implementation, the default ini value of
gSoftApMaxPeers is set to 32, but for mobile devices, FW can
only support 10 SAP peers at max. Hence, change the default
value of gSoftApMaxPeers to 10.

Change-Id: I8c5a2a8422f02bb464a11d823f8528ebb88bb34c
CRs-Fixed: 3227078
2022-12-23 01:12:47 -08:00
Madan Koyyalamudi
9713cd0293 Release 2.0.8.31W
Release 2.0.8.31W

Change-Id: I7b38836d14b9ea6c1f06a22a4ca14d7b406279a9
CRs-Fixed: 774533
2022-12-13 11:47:32 -08:00
Srikanth Marepalli
d54888ac08 qcacld-3.0: Introduce ini to configure roam RSSI diff for 6 GHz AP
This is applicable only when the roaming happens from 2.4 GHz/5 GHz
to 6 GHz AP.
The value is used to check if the 6 GHz AP to which we are roaming
(from 2.4 GHz/ 5 GHz) is better than current AP in terms of RSSI.
This checking is disabled if the value is set to zero.

Change-Id: I77f1183e1fd704dfa153841e669a20c9e75d0fe7
CRs-Fixed: 3353346
2022-12-13 18:32:57 +05:30
Madan Koyyalamudi
0b62273e54 Release 2.0.8.31V
Release 2.0.8.31V

Change-Id: I478f1db63bb6e070348c9b9ceac6d4d61859869b
CRs-Fixed: 774533
2022-12-13 02:51:38 -08:00
Srikanth Marepalli
30d7a094d6 qcacld-3.0: Add vendor attribute to include 6 GHz in roam full scan
During the roam scan, if there are no desired APs found in the partial
frequency list, an immediate full scan on all the supported frequencies
is initiated as a fallback. This would include the 6 GHz PSC
frequencies by default.
This attribute allow that behavior to be modified to include PSCs only
if 6 GHz use has been detected in the environment.

Change-Id: I6dc380419f14b920737fd87cd9a487c28364563b
CRs-Fixed: 3351697
2022-12-08 18:31:20 +05:30