커밋 그래프

2892 커밋

작성자 SHA1 메시지 날짜
Jyoti Kumari
a142d2edde qcacld-3.0: Support Low Latency SAP + SAP/GO concurrency
Add a support to check if low latency SAP is present on 5 GHz
channel then do not allow SAP/GO to come up on 5 GHz for
both gaming and lossless audio profile.

Change-Id: Ibb9e3365522beec541f70c6c45b8cb68405fd3bc
CRs-Fixed: 3294748
2022-10-19 22:30:20 -07:00
Jyoti Kumari
8a1899b457 qcacld-3.0: Support Low Latency SAP + STA/GC concurrency
Add a support to check if low latency SAP is present on 5 GHz
channel then do not allow STA/GC to connect on 5 GHz for
both gaming and lossless audio profile.

Change-Id: I8e1c62dfea3c27306e338392448f5cc6eed912aa
CRs-Fixed: 3302763
2022-10-19 22:30:14 -07:00
Jyoti Kumari
50245e6aa7 qcacld-3.0: Get low latency SAP frequency
Low latency SAP is supported on DBS and SBS hw and it can come
up on below two profile
a. Gaming
b. Lossless Audio

DBS: Allow only 2.4 GHz channel for both gaming and lossless
audio profile
SBS: Allow non low latency SAP 5 GHz channel which are mutually
exclusive for both gaming and lossless audio profile.

Check whether low latency sap is present or not. If it's present
then get the frequency to validate the concurrency with other
interface.

Change-Id: I39715a01e63de612448d4d0f230e6ccb71b76b15
CRs-Fixed: 3294596
2022-10-19 22:30:09 -07:00
Jyoti Kumari
f0ddb3ec45 qcacld-3.0: Convert ap policy config vendor cmd to host enum
Userspace provide below vendor attribute for low latency sap
concurrency
a. QCA_WLAN_VENDOR_ATTR_CONCURRENT_POLICY_AP_CONFIG

This userspace uses the below value defined in enum
qca_wlan_concurrent_ap_policy_config to specify concurrency
policy
a. QCA_WLAN_CONCURRENT_AP_POLICY_UNSPECIFIED = 0,
b. QCA_WLAN_CONCURRENT_AP_POLICY_GAMING_AUDIO = 1,
c. QCA_WLAN_CONCURRENT_AP_POLICY_LOSSLESS_AUDIO_STREAMING = 2,

Convert this above enum value in host to use in concurrency
scenario.

Change-Id: Ibab06f528fd99d8c421376bd02e4c748e9556b70
CRs-Fixed: 3302418
2022-10-19 22:30:04 -07:00
Amruta Kulkarni
2fe6f6adb9 qcacld-3.0: Update link id after roaming
Update the link id in vdev mlme after roam sync is processed.

Change-Id: I4f7a80ad91235ebafd2bab10c1de22ac8798a816
CRs-Fixed: 3314935
2022-10-18 11:56:58 -07:00
Mohammed Ahmed
00fba42e78 qcacld-3.0: move wlan_coex_public_structs.h to qcacmn
Current code has wlan_coex_public_structs.h in qcacld, when it should
be in qcacmn due to convergence of the COEX feature.
Fix this by moving the header file to qcacmn.

Change-Id: Id45c85e0ff492d149cac71c8c0ca5443b879ef15
CRs-Fixed: 3289250
2022-10-18 07:13:31 -07:00
Jinwei Chen
71d2520f79 qcacld-3.0: fix dp memory pre-allocation failure
fix dp memory pre-allocation failure as below,
(1) add pre-allocated memory for extra contexts of
DP_RX_RING_HIST_TYPE on beryllium.
(2) add extra RXDMA_BUF type's memory for SW2RXDMA ring and size same
as RX refill ring size for now.
(3) add pre-allocated memory for REO_STATUS & RXDMA_MONITOR_STATUS ring.
(4) add pre-allocated memory for DP_MON_PDEV_TYPE.

Change-Id: I038d946cf1b8c9dc67c1539ea972bda8239def4d
CRs-Fixed: 3314198
2022-10-18 05:22:10 -07:00
abhinav kumar
59426b95be qcacld-3.0: Control Pre Punc and UL MU-MIMO feature via INI
Control Preamble Puncturing feature via INI "he_rx_pream_punc"
and UL MU-MIMO feature via INI "enable_ul_mimo".

Change-Id: Ib4d6fd10c9e4f46c1baa5070f94d8dddd4978757
CRs-Fixed: 3305742
2022-10-17 18:16:32 -07:00
Liangwei Dong
74aa28da73 qcacld-3.0: Add 802.11be allowed AP OUI INI support
Add INI g11be_oui_allow_list to config 802.11be AP oui which
is allowed to get connected in 802.11be mode.
If the INI is empty, all the ap are allowed to get connected
in 802.11be mode. If INI is set to "ffffff 00 01", then STA
is not allowed to connect to any AP in 802.11be mode.

Change-Id: I98e545ba909c1746237a20c365f8297f16fe666f
CRs-Fixed: 3304021
2022-10-17 12:57:45 -07:00
Rachit Kankane
183358dc26 qcacld-3.0: Check for HESIGA_VAL15_ALLOWED
Check for HESIGA_VAL15_ALLOWED bit before enabling SR prohibit
in SR control field

Change-Id: Ie902941c7642d76901adbf5d685265c0552a814c
CRs-Fixed: 3308160
2022-10-17 06:47:49 -07:00
Rachit Kankane
14e356b81e qcacld-3.0: Add async event for Spatial Reuse
Add async event for Spatial Reuse and also send Spatial Reuse
enable / disable event to upper layer due to same MAC concurrency.

Change-Id: Idcb5b99e39f1810e63ae7ac1e8d2eab6028a163f
CRs-Fixed: 3307801
2022-10-17 06:47:43 -07:00
Rachit Kankane
45f42c90a8 qcacld-3.0: Add concurrency check with SR
Add check for concurrency with SR, if SR with concurrency
is not enabled then disable the SR on existing VDEV as soon as
new VDEV is up.
When this new VDEV is disconnected, then enable back the SR on
the previous VDEV.

Change-Id: Id6aee592b889bb7006efb44420e6d272212e13ba
CRs-Fixed: 3306181
2022-10-17 06:47:37 -07:00
Rachit Kankane
6cdc4ce277 qcacld-3.0: Send PDEV Param command for SR
Send WMI_PDEV_PARAM_SET_CMD_OBSS_PD_THRESHOLD during PDEV
init with disabled PD-Threshold value to initialize SR related
registers in HW.

Change-Id: I49e73c76974e098b6dfbf647a898b53abf8ea2ba
CRs-Fixed: 3306179
2022-10-17 06:47:31 -07:00
Rachit Kankane
983623c4b8 qcacld-3.0: Spatial Reuse enhancement for SAP
Add below two enhancements for SAP
1. Spatial Reuse enabled in single MAC concurrency
2. Set bit HESIGA_Spatial_reuse_value15_allowed in SRP IE

Change-Id: Id2d3d04ae1b3b9a2e6d84f30749b577bc7b79061
CRs-Fixed: 3305447
2022-10-17 06:47:26 -07:00
Sheenam Monga
c4c40f5217 qcacld-3.0: Handle VENDOR_SUBCMD_SR and operation
Add support to parse VENDOR_SUBCMD_SR and to parse
nested attributes OPERATION and PARAMS and to handle
ENABLE operation, Disable operation and prohibit
operation. Enable opeartion may have PD threshold
or in case vendor command doesn't provide PD threshold
host will send PD threshold advertised by AP.

Change-Id: Ie98a1b8681f41f3a63523ac40b5cfb688a7b0cb0
CRs-Fixed: 3299042
2022-10-17 06:47:00 -07:00
Surya Prakash Sivaraj
38061a4dfa qcacld-3.0: Reset SPMK cache before every connection
SPMK global cache in the vdev private is persistent
across connections. Therefore, in cross-ssid roaming
cases with different AKMs, SPMK in the global cache
will always be sent to the firmware in RSO start, even
for non-SAE connections. This causes roam failure.

Reset the spmk global cache for every new connection.

Change-Id: I03deefe16242ef79d0985a8c05881914e6f7af01
CRs-Fixed: 3310182
2022-10-17 04:52:03 -07:00
Surya Prakash Sivaraj
2517893ac1 qcacld-3.0: Enhance the debugs in RSO path
Add changes to enhance the debugs in the RSO path,
to identify the current pmk stored in the rso config.

Also, restrict the PMK dumps to a minimum size of 2.

Change-Id: I6e89afed45f5d43b45508ae43b59400a6e24e5ef
CRs-Fixed: 3312677
2022-10-17 04:51:57 -07:00
Nirav Shah
2e86058c4a qcacld-3.0: Handle twt renegotiation failure scenario
Handle twt renegotiation failure scenario when there is
error reported by firmware as part of
wmi_twt_ack_complete_event_id event.

Change-Id: I91e4bfd8f08ae81b474354c90ab8c770dcdfe19b
CRs-Fixed: 3297783
2022-10-17 03:02:15 -07:00
Ashish Kumar Dhanotiya
013edc14e3 qcacld-3.0: Update vendor1 requirement1 version for feature set
With change update vendor1 requirement1 version to the latest
version 3.3.

Change-Id: I5079c47c65487a9dc97e3f0fe3b38f696a3753bc
CRs-Fixed: 3309523
2022-10-14 13:42:48 -07:00
Yu Wang
61d6a7e8d1 qcacld-3.0: print SSID with QDF_SSID_FMT and QDF_SSID_REF
To protect user privacy, print SSID with QDF_SSID_FMT
and QDF_SSID_REF, then SSID will be hide in logs if
anonymization is enabled.

Change-Id: I3dd129b52c85c84e666f4f07b28a1e58f81259b7
CRs-Fixed: 3291841
2022-10-14 08:31:04 -07:00
Pragaspathi Thilagaraj
df6cc68e7f qcacld-3.0: Update the AKM data type
Currently the AKM information is sent as uint16_t variable
this leads to truncation of 1byte in connecting event of
advanced connectivity logging.

Update the AKM data type from uint16_t to uint32_t.

Change-Id: Ibe359636cb32b66ed99ee8ccb8ce33299908325b
CRs-Fixed: 3307515
2022-10-14 08:30:59 -07:00
Amruta Kulkarni
40598153fa qcacld-3.0: Store and send keys after peer assoc
For STA mlo connection the AP might send M1 right after assoc
response on assoc link which can result in keys sent down to FW
for mlo links before host has sent wmi_peer_assoc for link vdev.
Current code does not have handling for this case.

To solve this, store the keys and once connection is completed
on link vdev send keys.

Change-Id: I3675451ef0e047caf8c77d256ea67f0eac6ed797
CRs-Fixed: 3289589
2022-10-12 23:22:17 -07:00
Vinod Kumar Myadam
bc164e3ba0 qcacld-3.0: Fix to pre CAC interface clean up
If is_pre_cac_on is set, in __wlan_hdd_del_virtual_intf firstly
frees the sap context by calling hdd_clean_up_interface and then
frees the pre cac by calling hdd_clean_up_pre_cac_interface this
will fails to access the sap context which is already freed.

So, replace order of calling, firstly hdd_clean_up_pre_cac_interface
and then hdd_clean_up_interface.

cds flush work will cancel the work which will not delete the pre cac
vdev. Replace with qdf_flush_work will wait for a work to finish,
executing the last queueing instance.

Assign NULL to fn and arg of pre cac work to ensure proper cleanup
of work

Change-Id: I093bf627ce7a73e7c4f7c4cf30e2ec56814a80ed
CRs-Fixed: 3286477
2022-10-12 09:56:34 -07:00
Pragaspathi Thilagaraj
3a49e2cdfe qcacld-3.0: Converge p2p_set_mac_filter for management frame tx
In management frame TX path from userspace, the
p2p_set_mac_filter structure is used and is defined under P2P
converged macro.

Converge this p2p_set_mac_filter structure to set_rx_mac_filter
structure in qca-wifi-host-cmn to use this by all components

Change-Id: Iefcf36f8b327458b2418bd364ae84b28ca56e7f9
CRs-Fixed: 3306700
2022-10-12 08:18:35 -07:00
Qun Zhang
d0790fd3ac qcacld-3.0: Post wma_vdev_detach_callback() to driver scheduler
To avoid wma_vdev_detach_callback() is run under interrupt
context, post wma_vdev_detach_callback() to driver scheduler
when vdev delete is failed to send to FW.

Change-Id: I87a603de326789ac43dac34de31eb564f13d11f5
CRs-Fixed: 3308547
2022-10-12 06:35:39 -07:00
Jia Ding
b55558710e qcacld-3.0: Fix TDLS componentization
With FEATURE_WLAN_TDLS=n, compiler is throwing implicit
declaration error of function wlan_tdls_get_features_info.

Hence add wlan_tdls_get_features_info stub declaration for
FEATURE_WLAN_TDLS=n.

Change-Id: Ia9820e630b756befbfda98330be193760a331c93
CRs-Fixed: 3309612
2022-10-12 03:28:52 -07:00
Yu Wang
0e8ac06ee6 qcacld-3.0: fix build failures caused by QDF_MAC_ADDR_REF
Build failed once WLAN_TRACE_HIDE_MAC_ADDR is enabled,
due to 'error: type mismatch in conditional expression'.

To fix it, correct the parameter for QDF_MAC_ADDR_REF.

Change-Id: Ifd89b02ab5fb2e3b59291c303ad93b691616dc57
CRs-Fixed: 3308193
2022-10-11 22:21:19 -07:00
abhinav kumar
83d3138157 qcacld-3.0: Drop TX MGMT Frame if no ROC
In case if supplicant issues probe request without ROC,
Host should drop it for STA mode.

Change-Id: I290f441f6ddc41dd8d7434ad7d4fd1b4fcc0c22e
CRs-Fixed: 3296264
2022-10-11 17:35:07 -07:00
Amruta Kulkarni
434bb9c7ca qcacld-3.0: Roam abort on mlo links
Currently for mlo roaming if roam sync event is not
handled roaming is aborted only on that vdev,
other vdevs are not cleaned up.
Another issue is link vdev is added to connection manager
list but not removed.

To fix this code change made to abort roaming on all links.
Also remove request from connection manager list.

Change-Id: Ib6e9db21b64e5c44ab7d51ebf795b169c5e7eb29
CRs-Fixed: 3305685
2022-10-11 00:47:16 -07:00
Rahul Gusain
87a052f1f5 qcacld-3.0: Optimize NAN state machine when driver recovers
Currently, host driver sends NAN enable and disable request to
firmware and wait for its response to change the NAN state in
driver. But, when firmware is down (during SSR), driver is in
recovery state and so, timeout occurs while waiting for response.

To fix this, driver does not need to wait for NAN enable/disable
response from firmware in recovery state. It can directly take the
action and change the NAN state machine. Hence, add flag to check
the driver recovery state. If recovery is in progress, then driver
does not wait for firmware NAN enable/ disable responses.

Change-Id: I0325240cc082d8ef91d48793d3da2eea552d59cd
CRs-Fixed: 3307543
2022-10-10 04:32:46 -07:00
Jeff Johnson
6c88cf1b32 qcacld-3.0: components: pmo: Fix misspellings
Fix misspellings in components/pmo/...

Change-Id: I2394b572f07bc02d029a4f4381c76f11143ea475
CRs-Fixed: 3303636
2022-10-08 13:55:32 -07:00
Jeff Johnson
767fcd7bf2 qcacld-3.0: components: mlme: Fix misspellings
Fix misspellings in components/mlme/...

Change-Id: I98641d9bc2d61b8c5196e5c2803e95e2b2c33ebf
CRs-Fixed: 3303641
2022-10-08 12:15:52 -07:00
Srinivas Dasari
8a48ce4c7c qcacld-3.0: Treat ROAM enable and RSO enable as different
Host driver sends ROAM enable to firmware by setting the
vdev param WMI_VDEV_PARAM_ROAM_FW_OFFLOAD and the internal
state is moved from WLAN_ROAM_DEINIT to WLAN_ROAM_INIT.
Then host driver can send ROAM SCAN OFFLOAD enable and firmware
honors it. Firmware drops the RSO enable command if ROAM enable
vdev param is not sent. Host tracks RSO enable through the states
WLAN_ROAM_RSO_ENABLED/WLAN_ROAMING_IN_PROG/
WLAN_ROAM_SYNCH_IN_PROG/WLAN_MLO_ROAM_SYNCH_IN_PROG.

Have different APIs to track ROAM enable and RSO enable which can
help to cleanup the corresponding params/states.

It's observed that ROAM enable/disable vdev param is not sent
to firmware properly when RSO is stopped in some other path
than disconnect (e.g. SAP concurrency, fast_roaming_disable
through wpa_supplicant). Check if the roam state is INIT and
send ROAM DISABLE to firmware while disconnect.


Change-Id: I1074c8f93e21f02086dfbcfae61fa6deb91c7d9d
CRs-Fixed: 3305563
2022-10-08 03:33:26 -07:00
Amruta Kulkarni
825c289d24 qcacld-3.0: Fix validation check for roam sync frame event
More than one roam sync frame event can be sent from FW so
the beacon, reassoc req or rsp length can be zero.
Hence the current code validation check is incorrect resulting
in roam abort.

To fix this, change the validation to check if beacon,
reassoc req or rsp value is non zero and then check the size.

Change-Id: I6ddec91686c23d9b8dac4c891b37bb1ce9d0fb30
CRs-Fixed: 3306428
2022-10-08 00:17:43 -07:00
Aravind Kishore Sukla
3510a69ea6 qcacld-3.0: Adjust beacon miss timeout in awake and sleep modes
In beacon loss, roaming condition is triggered when client doesn't
receives beacon packets from connected AP for 3 to 5 Secs.
There is no significance of 6Secs and 10Secs timeout in wakeup
and sleep modes respectively, as STA will disconnect after
partial+full roam scan.

Trigger beacon loss roaming that is half of link loss timeout
in wakeup and sleep modes.

Change-Id: I12ef4201a0457ca716ad857caad6c1be334e17f0
CRs-Fixed: 3306658
2022-10-07 21:01:42 -07:00
Rachit Kankane
20d290c694 qcacld-3.0: Add INI for SR concurrency
Add INI to enable / disable SR in same MAC concurrency

Change-Id: I00ead369df4deb21d1ccb14c862fe136c034cbca
CRs-Fixed: 3299529
2022-10-07 15:53:20 -07:00
Jeff Johnson
e1de35f994 qcacld-3.0: components: dsc: Fix misspellings
Fix misspellings in components/dsc/...

Change-Id: I1dbeabd5882415a16a686d87f00e7337e923ba2f
CRs-Fixed: 3303644
2022-10-07 03:49:29 -07:00
Jeff Johnson
56e9a4a4ef qcacld-3.0: components: nan: Fix misspellings
Fix misspellings in components/nan/...

Change-Id: I674974e300e440205676f822d0068e90ae1cc0c8
CRs-Fixed: 3303640
2022-10-07 03:49:24 -07:00
Jeff Johnson
2f101b8d1a qcacld-3.0: components: son: Fix misspellings
Fix misspellings in components/son/...

Change-Id: I8edc1db438921ff0422cbc98997c18a01783ab09
CRs-Fixed: 3303635
2022-10-07 02:05:55 -07:00
Jeff Johnson
a7ec378dd8 qcacld-3.0: components: interop_issues_ap: Fix misspellings
Fix misspellings in components/interop_issues_ap/...

Change-Id: I8797855202b776b2632bf8bc8f3aad42e708eb5d
CRs-Fixed: 3303642
2022-10-07 02:05:50 -07:00
Jeff Johnson
1f2062962b qcacld-3.0: components: target_if: Fix misspellings
Fix misspellings in components/target_if/...

Change-Id: I0beae0116127034c4c5effb3d48f0cc1356d720f
CRs-Fixed: 3303634
2022-10-07 00:27:18 -07:00
Jeff Johnson
fe99b99d11 qcacld-3.0: components: umac: Fix misspellings
Fix misspellings in components/umac/...

Change-Id: I6464cb4708ffa099987e086edcd6852b681f6003
CRs-Fixed: 3303632
2022-10-07 00:27:13 -07:00
Arun Kumar Khandavalli
254b29126e qcacld-3.0: Print mld address as part of the connection info
Add the logs for the mld address of the self and peer mld as
part of the current connection info.

Change-Id: Ie73a9b94cb13cf0f4c70eb4ad212e2fc3bd7ff22
CRs-Fixed: 3300168
2022-10-06 15:15:29 -07:00
Divyajyothi Goparaju
3498515802 qcacld-3.0: Replace wlan_reg_get_channel_state_for_freq
Replace all occurrences of
wlan_reg_get_channel_state_for_freq with
wlan_reg_get_channel_state_for_pwrmode and use extra
parameter as REG_CURRENT_PWR_MODE.

Change-Id: I7f7e4e700091918eeebc87ccbbc85ececdd9bf52
CRs-Fixed: 3145011
2022-10-06 13:01:14 -07:00
David Oladunjoye
5f21308490 qcacld-3.0: Update min/max bounds for RoamRSSI_Trigger
We need to update RoamRSSI_Trigger min/max to support new INI values.
Fix is to revert min/max and default back to original values.

Change-Id: I75f0b76ae920c885a1150d95ea011e5612ef62fd
CRs-Fixed: 3304654
2022-10-05 16:07:06 -07:00
Jeff Johnson
5db65cd24b qcacld-3.0: components: ocb: Fix misspellings
Fix misspellings in components/ocb/...

Change-Id: Id7ed91a43e1ba097b85a0ddf53ffbc9020ab2e0e
CRs-Fixed: 3303639
2022-10-05 13:05:40 -07:00
Liangwei Dong
da0b340655 qcacld-3.0: Check 11be supported before send MLO roam config
Add check 11be supported before send the MLO roam config wmi
command by API wlan_psoc_mlme_get_11be_capab.

Change-Id: I101e2c614efd44c7eabac0f45dc558e044185b6b
CRs-Fixed: 3305746
2022-10-05 12:19:59 +08:00
Jeff Johnson
66902adf96 qcacld-3.0: components: pkt_capture: Fix misspellings
Fix misspellings in components/pkt_capture/...

Change-Id: Ib56201fd25e3c11b79be1fa83a70cc9f7d006e59
CRs-Fixed: 3303637
2022-10-04 20:34:31 -07:00
Rajesh Chauhan
7a91ba9a6a qcacld-3.0: replace complete_and_exit with kthread_complete_and_exit
In kernel 5.17, complete_and_exit is replaced with
kthread_complete_and_exit. So if kernel version is >= 5.17,
then use kthread_complete_and_exit.

Change-Id: I8b5ed5bbeade9d2044e375695e6e15208e10147d
CRs-Fixed: 3297438
2022-10-03 18:58:54 -07:00
Asutosh Mohapatra
d64cb46a9c qcacld-3.0: Fix prevent issues
This change
1.fixes the use of uninitialized
variable in host driver.

2.Adds validation in extract_roam_sync_frame_event_tlv
Where these frame lengths are getting populated,
also at the place where subtraction happens to prevent
overflows

3.Adds NULL check in wma_handle_roam_reason_deauth, to avoid
the null pointer dereference.

Change-Id: I2d5ba61fb109f6d8b497df29cfa2dd572c00adeb
CRs-Fixed: 3297792
2022-10-03 13:01:30 -07:00