Commit Graph

28484 Commitit

Tekijä SHA1 Viesti Päivämäärä
Vinod Kumar Myadam
01153f2605 qcacld-3.0: Fix in parsing INI macro
In CFG_SAP_PS_WITH_TWT and CFG_DISABLE_SAP_BCN_PROT,
passing value as string instead of numeric.
Causes wrong value while macro expansion.

Passing enum value of false in CFG_SAP_PS_WITH_TWT and
CFG_DISABLE_SAP_BCN_PROT.

Change-Id: Ib8b297ef69cebb71c1e6645f49a75e79393b8c94
CRs-Fixed: 3440741
2023-03-25 11:16:20 -07:00
Madan Koyyalamudi
d31f3339ff Release 5.2.1.60N
Release 5.2.1.60N

Change-Id: I36a1e2510766a924891bbf93409c190b7c9156f1
CRs-Fixed: 774533
2023-03-24 23:26:45 -07:00
Aditya Kodukula
177a026707 qcacld-3.0: Update correct vdev_id for the peers in peer_ll_stats
Currently in wma_unified_link_peer_stats_event_handler, the host
updates peer's rx_mpdu value by querying dp_peer stats, using
peer mac address and vdev_id sent by firmware.

In case of MLO connection, the dp_peer stats query fails for
partner link peer, since the vdev_id sent by firmware is for
assoc link. So, the rx_mpdu value for partner link peer is not
updated. To fix this issue, update correct vdev_id for the peer.

Change-Id: I5f45f1cba6399c6ab810d3d94272d035259317a8
CRs-Fixed: 3438061
2023-03-24 23:26:45 -07:00
Madan Koyyalamudi
37bdb328da Release 5.2.1.60M
Release 5.2.1.60M

Change-Id: Ib912f94b5bcce40bb23b1377840bb7fa7c13a1ab
CRs-Fixed: 774533
2023-03-24 19:21:47 -07:00
Rachit Kankane
4eec1b8e78 qcacld-3.0: Restart SAP / GO before STA
In STA + SAP / GO DFS SCC concurrency, switch SAP / GO's operating
channel before STA's switch upon received very first CSA on STA
interface from peer AP.

Once STA moves to new channel, enforce SCC with existing SAP / GO
if its in MCC. This is done to allow traffic on SAP / GO side
during CSA period.

Change-Id: Icb4a15ad21ae96faff1fe338985aa734a4398cd2
CRs-Fixed: 3431386
2023-03-24 19:21:47 -07:00
Madan Koyyalamudi
8c8aae44eb Release 5.2.1.60L
Release 5.2.1.60L

Change-Id: Ibfaba5a08f08d773b3c6bf16692efd9bbec42439
CRs-Fixed: 774533
2023-03-24 05:46:55 -07:00
Vinod Kumar Pirla
de515fcd94 qcacld-3.0: Move VDEV specific fields to per link struct
To support multiple VDEVs in single adapter, the VDEV
specific fields in hdd_adapter needs to be moved to
link specific data structure.

Move the following fields from hdd_adapter structure to
wlan_hdd_link_info structure.
 1) vdev_id
 2) vdev_lock
 3) vdev
 4) vdev_destroy_event

Change-Id: I80d0ed167ca31bff7445b9c7788c86ef6f776018
CRs-Fixed: 3291070
2023-03-23 03:48:51 -07:00
Deeksha Gupta
9864be8a5a qcacld-3.0: Create per link data structure in hdd_adapter
To support multiple links in single adapter, create a new
structure to hold per link info inside the hdd_adapter.
Create a new member in hdd_adapter to point to link zero
of this array of link info.

Move STA and AP context fields into per link info.

Change-Id: Ia1f01865277c3e08254f44a39ba6675a9fea6c65
CRs-Fixed: 3354572
2023-03-23 03:48:19 -07:00
Madan Koyyalamudi
95d7e1d7fc Release 5.2.1.60K
Release 5.2.1.60K

Change-Id: Id9881214be7aa2395cc8e60f0219aa333d844649
CRs-Fixed: 774533
2023-03-22 22:16:42 -07:00
Liangwei Dong
c72ac1a9e4 qcacld-3.0: Avoid SBS channels missing in scan filter
In dual STA case, driver will avoid selecting candidates causing
MCC, but the current hw mode may have some delay updated from firmware.
So the API policy_mgr_are_2_freq_on_same_mac may not get correct
DBS or SBS channel state of two channel frequency.
Fix it by do not depending on current hw mode by using API
policy_mgr_2_freq_always_on_same_mac to check potential MCC or
not of two channel frequency.

Change-Id: I7d5382e786c421d5f99578e08b62b07864f48974
CRs-Fixed: 3441024
2023-03-22 22:16:42 -07:00
Madan Koyyalamudi
75164a148e Release 5.2.1.60J
Release 5.2.1.60J

Change-Id: I1850bd4804f2e7da30b7f5d98639f93a816e0438
CRs-Fixed: 774533
2023-03-22 13:55:23 -07:00
Pragaspathi Thilagaraj
36f994680f qcacld-3.0: Fix wrong subnet_change_status derivation after roam
Subnet change status field is obtained from bits 4 & 5 of the
roam_reason field in roam synch indication. But in
cm_fill_roam_info() the subnet_change_status is received from
the masked roam reason field and is always 0. So after
roaming to AP with different subnet wrong subnet change
indication is sent to userspace and ultimately NUD failure is
triggered.

Get the subnet_change_status directly from the roam synch
indication

Change-Id: I708276750c0aa3f1586cf9501f55f742d42ebf3f
CRs-Fixed: 3438725
2023-03-22 13:55:22 -07:00
Madan Koyyalamudi
1e1c0f31b9 Release 5.2.1.60I
Release 5.2.1.60I

Change-Id: I2990f2f81361bc98fd1f6da84d4fe07a059319bb
CRs-Fixed: 774533
2023-03-22 10:29:32 -07:00
Zhaoyang Liu
afa9a28c32 qcacld-3.0: change dutycycle level array size to correct value
As now throttle level is extended to THROTTLE_LEVEL_5,
previous array 'dutycycle_level' of size 4 may use index
value 4..5 during initialization. Change the array size to
THROTTLE_LEVEL_MAX to avoid out of bound accessing.

Change-Id: I5f9f8cb15e6fbdd8e5b4deccddca954fc73cd8e3
CRs-Fixed: 3433333
2023-03-22 10:29:31 -07:00
Madan Koyyalamudi
6ef880ad52 Release 5.2.1.60H
Release 5.2.1.60H

Change-Id: Icda6343efc9114388bbf30db155c5c9a26170949
CRs-Fixed: 774533
2023-03-22 00:40:19 -07:00
Jyoti Kumari
4ea4347be1 qcacld-3.0: Pass vdev_id as an argument in policy_mgr_get_pcl()
Pass vdev_id as an argument in policy_mgr_get_pcl()

Change-Id: If016b2ad1e47d1d8364037e44bd984e5b95c8d6f
CRs-Fixed: 3412927
2023-03-22 00:40:19 -07:00
Madan Koyyalamudi
5c43a42b63 Release 5.2.1.60G
Release 5.2.1.60G

Change-Id: I4ab281ea5058613416c4e092b5b88cc1668fa56a
CRs-Fixed: 774533
2023-03-21 13:51:59 -07:00
Gururaj Pandurangi
328c3811f4 qcacld-3.0: Add missing dot at the end of copyright header
Add the missing period at the end of the copyright header.

Change-Id: I9d11ab5e35ae8682340288b1f45a324b5d0dde21
CRs-Fixed: 3439213
2023-03-21 13:51:58 -07:00
Madan Koyyalamudi
d4a66c9799 Release 5.2.1.60F
Release 5.2.1.60F

Change-Id: I26788f59246ab54b9b3d481f2732886f95c444e7
CRs-Fixed: 774533
2023-03-21 11:50:56 -07:00
Lin Bai
1c7d1fd54a qcacld-3.0: Enable FEATURE_OEM_DATA on sdxpinn
Enable CONFIG_FEATURE_OEM_DATA on sdxpinn target.

Change-Id: I494c68152e998983a4d6e4ced7bed7f0b2ba3907
CRs-Fixed: 3440053
2023-03-21 11:50:56 -07:00
Pragaspathi Thilagaraj
06be2cbc56 qcacld-3.0: Add support to disable TDLS offchannel completely
Add support for new TDLS off-channel mode type:
DISABLE_ACTIVE_CHANSWITCH. With this
off channel mode, the TDLS off-channel will be disabled
completely without passive disable mode.
DISABLE_CHANSWITCH -> Passive channel switch can be done i.e if
peer requests channel switch then firmware can do channel switch
DISABLE_ACTIVE_CHANSWITCH -> Disable all off-channel switches.

Add support to send peer channel lists based on concurrency
combination. Override the ini configured frequency to the
supported frequency based on the current concurrency.

Change-Id: Ie3210178eb8b57d6ab126a730ed91895b70edaa1
CRs-Fixed: 3416213
2023-03-21 11:50:51 -07:00
Madan Koyyalamudi
9d72a8fc92 Release 5.2.1.60E
Release 5.2.1.60E

Change-Id: I36421155909ba00f6b2dca1a6b0c428b602ab3d8
CRs-Fixed: 774533
2023-03-21 10:13:37 -07:00
Karthik Kantamneni
a506f01514 qcacld-3.0: Enable compilation for new dp_rings_main.c file
Add support to compile new dp_rings_main.c file.
This new file is having refactored code of all the DP rings.

Change-Id: I7cd467df8d3f7c4b60d448c88b5cedc76cd62b07
CRs-Fixed: 3423636
2023-03-21 10:13:37 -07:00
Madan Koyyalamudi
f67e32418c Release 5.2.1.60D
Release 5.2.1.60D

Change-Id: I6090834fb0148b07707ae0f756d3046f0f15b4c7
CRs-Fixed: 774533
2023-03-21 07:50:35 -07:00
Jinwei Chen
9b10ef6737 qcacld-3.0: enable SRNG pointer register writing history
enable SRNG pointer register writing history for DEF build.

Change-Id: I8426eb7f81cb47633dbe3d1c9efea541f9781a04
CRs-Fixed: 3438306
2023-03-21 07:50:34 -07:00
David Oladunjoye
1cfdd7c3dc qcacld-3.0: Add a missing dot at the end of copyright header
Add a missing dot at the end of the copyright header.

Change-Id: I1e09eab9d6207c482fb1c4204793442c9cad1ff5
CRs-Fixed: 3439436
2023-03-21 07:50:28 -07:00
Madan Koyyalamudi
46491e2681 Release 5.2.1.60C
Release 5.2.1.60C

Change-Id: I53af9fc74bb6812a60b76937041bc231e4dc3a83
CRs-Fixed: 774533
2023-03-20 17:47:00 -07:00
Arun Kumar Khandavalli
12ddad6b03 qcacld-3.0: validate wmi_handle before dereferencing
wmi_handle is retrieved from psoc handle, validate the same before
dereferencing to avoid any invalid access.

Change-Id: I58c566e1b94c5ba2cd4d74ad4406545ffb39e36e
CRs-Fixed: 3434869
2023-03-20 17:46:59 -07:00
Madan Koyyalamudi
3c1ae745c5 Release 5.2.1.60B
Release 5.2.1.60B

Change-Id: I2913d7a26c84fb2aadf1c15c961acceaae39b9ce
CRs-Fixed: 774533
2023-03-20 13:16:49 -07:00
Aditya Kodukula
b4d34e5284 qcacld-3.0: Add sysfs replacement for dfsnol command
WEXT ioctls are no longer supported by the wlan driver.
So, add a sysfs replacement to setdfsnol and getdfsnol commands.

file path: sys/class/net/wlanxx/dfsnol
	where wlanxx is the adapter interface

usage:	echo arg_0 > /sys/class/net/wlanxx/dfsnol
	cat /sys/class/net/wlanxx/dfsnol

Change-Id: Ia8475b5c6ef39142def38eab0e777840af885c33
CRs-Fixed: 3431517
2023-03-20 13:16:48 -07:00
Madan Koyyalamudi
e8b5c68d0f Release 5.2.1.60A
Release 5.2.1.60A

Change-Id: I7595a58a410e934b61f68d51c5c31f59378b809b
CRs-Fixed: 774533
2023-03-20 09:57:51 -07:00
Jianmin Zhu
d1dde88d53 qcacld-3.0: Update puncture bitmap to upper layer
Update puncture bitmap along with channel to upper layer when channel
or puncture bitmap changed.

Change-Id: Idc0ffbd4358c328ba22453c6b523843c8d4fc486
CRs-Fixed: 3436336
2023-03-20 09:57:51 -07:00
Madan Koyyalamudi
e2f37d76f4 Release 5.2.1.60
Release 5.2.1.60

Change-Id: I0c4e265a59fd2b1a44d25e87ae2651491bd21e59
CRs-Fixed: 774533
2023-03-20 04:48:55 -07:00
Liangwei Dong
797ac8a6f9 qcacld-3.0: Fix no CAC on SAP disable and enable
Driver uses global value cac_state in mac_ctx->sap.SapDfsInfo
to record the CAC state of first SAP on DFS channel. If
first SAP CAC is completed, the second SAP can skip CAC
on the channel.
The problem is single SAP stop and restart the cac_state is
not updated and keep value of eSAP_DFS_SKIP_CAC. Then driver
skips the CAC for the SAP start.
Remove the global value cac_state in mac_ctx->sap.SapDfsInfo
and use API sap_plus_sap_cac_skip to check the other SAP's CAC
state dynamically.

Change-Id: Id486a6e605d08845f03b38450a2c021f76ae23f6
CRs-Fixed: 3426671
2023-03-20 04:48:55 -07:00
Madan Koyyalamudi
46a5aee8d8 Release 5.2.1.59Z
Release 5.2.1.59Z

Change-Id: I6ecd27a0a9137842a1b2bfb713fadf7c436e4326
CRs-Fixed: 774533
2023-03-19 21:36:52 -07:00
Will Huang
20c75efc27 qcacld-3.0: Get SAP adapter of DFS with correct condition
Currently hdd_get_sap_adapter_of_dfs() only check home channel is
DFS or not, but didn't consider other channel in bandwdith.
It caused can't get SAP adapter which home channel is non-DFS but
channel in bandwidth has DFS channel.

Update this function to check DFS with channel frequency and bandwidth.

Change-Id: Id12a73ac01d20116463718fe7cc66c46efad37e4
CRs-Fixed: 3422944
2023-03-19 21:36:51 -07:00
Madan Koyyalamudi
d84102eee7 Release 5.2.1.59Y
Release 5.2.1.59Y

Change-Id: Iee3c495c1a85e116efcc3decb2c7944070e7f4ba
CRs-Fixed: 774533
2023-03-19 07:55:47 -07:00
Jeff Johnson
2bf0280318 qcacld-3.0: Remove wma_handle_btm_denylist_event() prototype
Previously the function wma_handle_btm_blacklist_event() was removed
by:
  qcacld-3.0: Cleanup ROAM_TARGET_IF_CONVERGENCE usage
  Change-Id I6973d9c366ec6a9c6164dd19f6f4775dd3ebf5f0

However, the prototype was left behind.

This prototype was renamed as part of:
  qcacld-3.0: Replace blacklist/whitelist for denylist/allowlist
  Change-Id I9ba61dde3b3ea008ca3777448d1f8dab83d33ec1

But this is still a prototype without a function, so remove it.

Change-Id: I7b9ad27e7f9fd3195bbae77c07104a0ee4764e0b
CRs-Fixed: 3434500
2023-03-19 07:55:47 -07:00
Jeff Johnson
edd29df19c qcacld-3.0: Remove wma_register_roam_vdev_disc_event_handler()
A prototype for wma_register_roam_vdev_disc_event_handler() was added
by:
  qcacld-3.0: Process Disconnect request from FW
  Change-Id Ic1e83aace48a3e8424f23641b0e77c66f4283587

However, no actual function was added, so remove the prototype.

Change-Id: I4c6f41f93bb80f733031f4a77a94ee0b4cad6f1c
CRs-Fixed: 3434499
2023-03-19 07:55:41 -07:00
Amruta Kulkarni
095e152d33 qcacld-3.0: Handle fast reassoc with mac address set to zero
When fast reassoc command is received with bssid
and channel frequency set to zero, if no candidate
found, STA DUT should disconnect.
Currently STA DUT stays on the same AP.

Fix is to add bssid zero check and disconnect from
current AP.

Change-Id: Id6a26703929f7783e852bb42eebd57f5d5ba8b13
CRs-Fixed: 3433308
2023-03-19 07:55:36 -07:00
Madan Koyyalamudi
2da0f0d370 Release 5.2.1.59X
Release 5.2.1.59X

Change-Id: Ieef9c71edf583bf7e8558185b357be3f181b1f58
CRs-Fixed: 774533
2023-03-17 17:07:12 -07:00
Mohammed Ahmed
5600f0123e qcacld-3.0: add hdd_dump_log_buffer output to sysfs
Current code doesn't allow output of hdd_dump_log_buffer to sysfs.
Fix this by adding sysfs output functionality.

Change-Id: I077c10e379e542ac99d8ebe01d68fe76a7470e39
CRs-Fixed: 3426193
2023-03-17 17:07:12 -07:00
Mohammed Ahmed
61fc438cdc qcacld-3.0: move hdd_dump_log_buffer to wlan_hdd_ioctl.[ch]
Current code has hdd_dump_log_buffer and hdd_ioctl_log_buffer in
wlan_hdd_wext.c. This will not be included in build if wext is not
enabled. Fix this by moving the functions to wlan_hdd_ioctl.[ch].

Change-Id: Idb4824815890c605961e802e0d5a43ca2181a13d
CRs-Fixed: 3436349
2023-03-17 17:07:06 -07:00
Madan Koyyalamudi
5abbab0e8b Release 5.2.1.59W
Release 5.2.1.59W

Change-Id: I56a971b658273584f70ad7e5dac3b000549961bc
CRs-Fixed: 774533
2023-03-17 12:42:01 -07:00
Sheenam Monga
d05fc12d8b qcacld-3.0: Add support to handle HT LL and LT LL policy separately
Currently, policy_mgr_is_ll_sap_present api is used to check if
ll sap is present or not but different operations may be required
for HT and LT LL AP policy example for LT policy i.e gaming/loss
less audio MCC is acceptable but for HT MCC is strictly prohibited.
So, wrapper functions are added to check HT, LT and any AP policy.

Change-Id: I93dbcd65b1a102d0f879366db26f3d2cf01e030e
CRs-Fixed: 3435203
2023-03-17 12:42:01 -07:00
Madan Koyyalamudi
c9471c3707 Release 5.2.1.59V
Release 5.2.1.59V

Change-Id: I360afd45a703d14e5a486a0d3905d9548fa9f3ca
CRs-Fixed: 774533
2023-03-17 09:12:50 -07:00
Aditya Kodukula
b150d1328c qcacld-3.0: Add support for gStaKeepAliveMethod ini
Currently the ini gStaKeepAliveMethod doesn't support
Unsolicited ARP response packets. So, add it.

Change-Id: I614e87e7f173ea5c25c34eaf56de0805d37b26a4
CRs-Fixed: 3433020
2023-03-17 09:12:49 -07:00
Rachit Kankane
430b5d9224 qcacld-3.0: Add check before SAP / GO Restart
In STA+P2P-GO DFS SCC concurrency when INI
g_move_sap_go_1st_on_dfs_sta_csa is set, the movement of P2P-GO / SAP
is reversed. i.e. upon getting CSA on STA interface, P2P-GO will move
first before STA's movement.

SCC is enforced after STA moves and observes 1st beacon on the new
channel. Add check here to avoid call to legacy flow of restarting
SAP / GO as this has to be triggered only when 1st beacon is observed.

This is applicable only for special case where SAP / GO moves 1st
before STA's movement.

Change-Id: I7e804a0f7e7d4c4739f05f68f471184503ca2930
CRs-Fixed: 3431391
2023-03-17 09:12:44 -07:00
Deeksha Gupta
daf55602d0 qcacld-3.0: Add utils_mlo.h to avoid compilation issue
Currently utils_mlo.h is not present in lim_process_auth_frame.c
which may cause compilation issue because headerfile
is used in some files.

Change-Id: Icfb63c33bcd14c6cfd19828f95d29320ebf13356
CRs-Fixed: 3433968
2023-03-17 09:12:37 -07:00
Mohammed Ahmed
85cc22516f qcacld-3.0: add custom print for hdd_dump_log_buffer
Current code doesn't allow for custom print output for
hdd_dump_log_buffer.
Fix this by adding ability to pass custom print function.

Change-Id: I6a32008d8c18dbe02aada520d0e0bb168949ba80
CRs-Fixed: 3426192
2023-03-17 09:12:31 -07:00