提交图

29736 次代码提交

作者 SHA1 备注 提交日期
Rahul Choudhary
ef9583a9e1 Release 5.2.1.75K
Release 5.2.1.75K

Change-Id: I444666e592fa30c6c32b77a1de0f47f05e2f749c
CRs-Fixed: 774533
2023-07-28 23:42:41 -07:00
Jianmin Zhu
263d0d2296 qcacld-3.0: Fix tdls vdev ref issue for race condition
When wpa_supplicant sent tdls mgmt frame during sta disconnecting for NUD
failure, scheduler thread clear MLO flag of vdev0, in
wlan_key_get_link_vdev, wlan_vdev_mlme_is_mlo_vdev(vdev0) return true,
in wlan_key_put_link_vdev, wlan_vdev_mlme_is_mlo_vdev(vdev0) return false,
WLAN_OSIF_TDLS_ID vdev ref count is released in both
wlan_key_get_link_vdev and wlan_key_put_link_vdev, while WLAN_MLO_MGR_ID
vdev ref count isn't released, assert will happen.

To fix it, add check in os_if, if vdev not up, reject tdls frame to
avoid such race condition issue.

Change-Id: I90e60c95888cc63e57d0bd0b75c570d8d677cbaa
CRs-Fixed: 3572133
2023-07-28 23:42:41 -07:00
Rahul Choudhary
9618136de3 Release 5.2.1.75J
Release 5.2.1.75J

Change-Id: I325d733a124289a58c18e44feafee4b01a4b8726
CRs-Fixed: 774533
2023-07-28 15:36:51 -07:00
Asutosh Mohapatra
ee00b1ff09 qcacld-3.0: Create unit_test_target sysfs file in FTM mode
Add support to create unit_test_target sysfs file
in FTM mode.

Change-Id: I1a80b2d1f2cc4c5718319cceb9cf4375d90d9fbb
CRs-Fixed: 3565774
2023-07-28 15:36:51 -07:00
Asutosh Mohapatra
0005d2bf45 qcacld-3.0: Send signed rssi for SAP big data stats
Add changes to send signed rssi value to user space as part
of the SAP big data stats command in disconnected case
to maintain uniformity with the connected case.

Change-Id: I8c48ff00ead7728db76ee73176bf82443dea4836
CRs-Fixed: 3567295
2023-07-28 15:36:46 -07:00
Aasir Rasheed
480f4a07e1 qcacld-3.0: Update logic to add mlo_link_info
This change is to update the logic for mlo_link_info
iterator in wlan_hdd_mlo_link_add_pairwise_key.

Change-Id: I30d7c56c7f340fa44847e5f915f2b1ccdff60426
CRs-Fixed: 3573067
2023-07-28 15:36:41 -07:00
Pragaspathi Thilagaraj
24a4afc38a qcacld-3.0: Fix invalid DFS channel check for TDLS off-channel
While populating peer channel list to firmware, the channel
is checked if the state is CHANNEL_STATE_DFS. But for indoor
channels also this state CHANNEL_STATE_DFS is set. So the
indoor channels are removed from tdls peer supported channels
in tdls_extract_peer_state_param().

Use wlan_reg_is_dfs_for_freq() API to check if the given peer
frequency is DFS or not.

Change-Id: Ia16e55f8d00ba2686187a2b08c67a1e4a63a3d4d
CRs-Fixed: 3565520
2023-07-28 15:36:36 -07:00
Rahul Choudhary
ef4f3758ab Release 5.2.1.75I
Release 5.2.1.75I

Change-Id: I114383e886c73ac848b073473a3b4a06fab3484e
CRs-Fixed: 774533
2023-07-28 05:32:47 -07:00
Surya Prakash Sivaraj
c3fd62f1fb qcacld-3.0: Allow station stats during roam start
In existing design, get_station stats request is
not entertained right from roam start till roam
complete/abort.
In some roam invoke cases, FW would do back to
back partial and full scan if good candidates are
not available. Therefore, the station stats are not
collected for a long time ~7secs.

Instead of blocking the stats request through out the
roaming, block only when roam sync is in progress
which would prevent unnecessary delays in roam sync
processing.

Change-Id: I47567a81eca08a0daabbd4d490b349392e5cd505
CRs-Fixed: 3572625
2023-07-28 05:32:47 -07:00
Deeksha Gupta
65c4c2d412 qcacld-3.0: Add support to Dynamic TDLS disable
Add support to dynamic disabling the TDLS.

Vendor subcmd: QCA_NL80211_VENDOR_SUBCMD_TDLS_DISABLE

Change-Id: I1bbd00bacd81cdd3d8ef4a6b68fbe7908039228c
CRs-Fixed: 3562162
2023-07-28 05:32:41 -07:00
Rahul Choudhary
aa7b7470dc Release 5.2.1.75H
Release 5.2.1.75H

Change-Id: I6345d717786b2c5f2042d22c96e4cc4d17e83df6
CRs-Fixed: 774533
2023-07-27 22:24:14 -07:00
Asutosh Mohapatra
4a58eb1c4f qcacld-3.0: Do SAP CSA if bonded channels are disabled
Currently if STA+SAP SCC on a 6 GHz channel is present and
host received SET_FCC_CHANNEL 0 command then host disables
all 6 GHz channels except for STA connected channel. If
SAP's bandwidth is greater than 20 MHz then kernel sends
stop_ap as SAP bonded channels are disabled.

To address this issue, do CSA to a non 6 GHz frequency.

Change-Id: I89edf3c862c5b02f0eb5865428bdbb0d43d07f85
CRs-Fixed: 3563476
2023-07-27 22:24:14 -07:00
Deeksha Gupta
bbece0a981 qcacld-3.0: Add support to Dynamic TDLS enable
Add support to dynamic enabling the TDLS.

Vendor subcmd: QCA_NL80211_VENDOR_SUBCMD_TDLS_ENABLE

Change-Id: I3b9164ba04a4d9c23d7f580020966c222f8bd359
CRs-Fixed: 3562148
2023-07-27 22:24:09 -07:00
Deeksha Gupta
ea029e0c45 qcacld-3.0: Add support to get the TDLS wider bandwidth cap
Extend the bitwise mask in
QCA_WLAN_VENDOR_ATTR_TDLS_GET_CAPS_FEATURES_SUPPORTED.
attribute to get the TDLS wider bandwidth capability.

Vendor subcmd: QCA_NL80211_VENDOR_SUBCMD_TDLS_GET_CAPABILITIES
Vendor attr: QCA_WLAN_VENDOR_ATTR_TDLS_GET_CAPS_FEATURES_SUPPORTED
BIT: WIFI_TDLS_WIDER_BW_SUPPORT

Change-Id: Ia9a8859cfd15426b190b92b6606bf257bd6f1fe8
CRs-Fixed: 3556159
2023-07-27 22:24:03 -07:00
Deeksha Gupta
167488b437 qcacld-3.0: Add support to send TDLS avail and no. connected peer
Add support to send whether currently TDLS is available or not.

Vendor subcmd: QCA_NL80211_VENDOR_SUBCMD_TDLS_GET_STATUS
Vendor attr: QCA_WLAN_VENDOR_ATTR_TDLS_GET_STATUS_AVAILABLE

Also add support to get the TDLS number of active sessions
using below vendor attr.

Vendor subcmd: QCA_NL80211_VENDOR_SUBCMD_TDLS_GET_STATUS
Vendor attr: QCA_WLAN_VENDOR_ATTR_TDLS_GET_STATUS_NUM_SESSIONS

Change-Id: Ie9ad09de9593559c4d57599a9af58a95af99e60f
CRs-Fixed: 3554429
2023-07-27 22:23:58 -07:00
Rahul Choudhary
35e5e0117e Release 5.2.1.75G
Release 5.2.1.75G

Change-Id: Ia1d3b71132d1af5310ab9ee72e099c1e884d6464
CRs-Fixed: 774533
2023-07-27 04:49:43 -07:00
Gururaj Pandurangi
42c5033011 qcacld-3.0: Do not advertise EMLSR support to draft 2.0 AP
Add a check to distinguish 11BE draft 2.0 AP vs 3.0 AP
based on MSD params received in beacon/probe response rather
than assoc frame and if the params are present (draft 2.0),
then do not advertise EMLSR support in association request
as EMLSR mode will not be supported.

Change-Id: I5f3e9ce76dc634f4fea1422f0d8b9da3edbb0587
CRs-Fixed: 3560902
2023-07-27 04:49:43 -07:00
Jianmin Zhu
9e0d78bf29 qcacld-3.0: Add OUI config to send SMPS frame along with OMN for IoT AP
Add gActionOUISendSMPSFrameWithOMN to send SMPS frame along with OMN for
specified IoT APs.

Change-Id: Ida35779d11f9c6d6340afdbebeb788520fa7afdc
CRs-Fixed: 3568463
2023-07-27 04:49:35 -07:00
Rakesh Pillai
273eee3139 qcacld-3.0: Add support to reset def_link during dynamic mac addr update
Dynamic mac address update is a special case, where the
(sta)connection can change without the vdevs corresponding
to an interface. The tx/rx happens on the def_link of the
dp_intf, which does not get reset in case of dynamic mac
addr update. Due to this, all the tx of packets might be
attempted on an invalid dp_link, leading to drop of all
the packets queued for TX.

Add support to reset the def_link of an interface during
dynamic mac address update.

Change-Id: I1e87c083f39b56525f69c225117bcce538931dbb
CRs-Fixed: 3570440
2023-07-27 04:49:26 -07:00
Rahul Choudhary
5a47621879 Release 5.2.1.75F
Release 5.2.1.75F

Change-Id: Ib7eb179b20aa0a8e15bb92a33da9e12564e25c13
CRs-Fixed: 774533
2023-07-26 21:24:29 -07:00
Rachit Kankane
affd0fc86e Revert "qcacld-3.0: Set max supported BW for STA"
Revert core/mac/src/pe/lim/lim_prop_exts_utils.c done as part of
commit - 29fa4e5ac8.
This change is causing roaming failure and power leaks since VDEV
channel width value is read by FW.

Change-Id: I1712522d11a1ee1262c3a6d35dea3a1238812548
CRs-Fixed: 3556513
2023-07-26 21:24:29 -07:00
Rakesh Pillai
f09727ebc7 qcacld-3.0: Fix incorrect arg passing to stats (ol_txrx_ops)
dp_tx_rx_collect_connectivity_stats_info expects dp_link
handle as an argument. Currently many of the direct callers
of this function is passing dp_intf as an argument to this func.

Fix this by passing dp_link as an argument to the function
dp_tx_rx_collect_connectivity_stats_info.

Change-Id: Icfedc1cc721de4ad0b536967dc32a6af53b86e9e
CRs-Fixed: 3571037
2023-07-26 21:24:24 -07:00
Rahul Choudhary
7548be769c Release 5.2.1.75E
Release 5.2.1.75E

Change-Id: Ic6522d0134ef55f35cede343c7618d9000938514
CRs-Fixed: 774533
2023-07-26 10:52:14 -07:00
Chunquan Luo
babe235645 qcacld-3.0: Fixed BTM roam update to userspace
Since driver support special roaming and common roaming,
support common BTM roaming update to userspace, and we
can fetch the info by vendor_cmd_tool.

Change-Id: I753ded47d650ae4c9c579265485f081c16581c25
CRs-Fixed: 3568450
2023-07-26 10:52:14 -07:00
Aditya Kodukula
2614683a35 qcacld-3.0: Add a sanity check to prevent integer overflow
Currently in the function hdd_send_roam_scan_channel_freq_list_to_sme,
the num_chan variable is declared as uint8_t and is incremented
for each nested attribute PARAM_SCAN_FREQ_LIST.

If the number of attributes sent by userspace is more than max value
of uint8_t, then an integer overflow occurs.

To avoid this issue, add a sanity check to see if num_chan has reached
SIR_MAX_SUPPORTED_CHANNEL_LIST before incrementing variable.

Change-Id: I601a73a118eb65ebb8575f6ed5ed1f29d915f59e
CRs-Fixed: 3568577
2023-07-26 10:52:09 -07:00
Rahul Choudhary
4ce00a946b Release 5.2.1.75D
Release 5.2.1.75D

Change-Id: Ib6c599f2f5d3422e052531582e5ebb27991752ce
CRs-Fixed: 774533
2023-07-26 04:39:45 -07:00
Chunquan Luo
dabad521e8 qcacld-3.0: Avoid NULL pointer dereferenced
Pointer 'driver_sync' returned from call to function
'__osif_driver_sync_trans_start' may be NULL and will be dereferenced.

CRs-Fixed: 3566149
Change-Id: Ibf75390bcdf246f2f96f331cb6123b78aea33203
2023-07-26 04:39:44 -07:00
Rahul Choudhary
7250978556 Release 5.2.1.75C
Release 5.2.1.75C

Change-Id: I80da308c40362a73ff2350f2e4e9e5497d5347da
CRs-Fixed: 774533
2023-07-25 22:29:24 -07:00
Vijay Raj
936a1452d8 qcacld-3.0: Add individual TWT support for 11be
During VDEV creation, vdev parameter "DISABLE_2G_TWT"
is populated in accordance to the value of ini
"enable_twt_24ghz" in order to indicate FW
to support TWT for 2.4GHz band.

Change-Id: I610bbaad3c5d12a8303939488ed2d7486dda404f
CRs-Fixed: 3560288
2023-07-25 22:29:24 -07:00
Rakesh Pillai
a074f04323 qcacld-3.0: Select tx_dp_link in datapath component
Currently datapath uses the vdev provided by UMAC for
tx of any packet. With the single-netdev-multi-vdev
model, there are chances that the vdev, in MLO case,
selected for packet TX in UMAC may not be the def_link
which datapath expects to use for tx/rx.

Hence, to mitigate, this issue, datapath will not use
the vdev provided by UMAC, but instead select a dp_link,
inside the dp_component, for tx/rx

Change-Id: I5ff4a79365b3426e1bcc6d4cac31a44058ee18db
CRs-Fixed: 3568989
2023-07-25 22:29:19 -07:00
Aasir Rasheed
f7f54352e6 qcacld-3.0: Update mlo manager mac address
This change is to update mlo manager mac
address when the station adapter is coming up.

Change-Id: Ie80683043922fdac7807c7b4ae2fd3605a41e256
CRs-Fixed: 3570015
2023-07-25 22:29:13 -07:00
Rahul Choudhary
cd952bfd19 Release 5.2.1.75B
Release 5.2.1.75B

Change-Id: I7c877f4668c3e004a8cdae138ac0e42f3374a8cb
CRs-Fixed: 774533
2023-07-25 15:21:40 -07:00
Vijay Raj
b02c135bd7 qcacld-3.0: Add key index check for Multi password SAP
In the api wlan_hdd_add_vlan(), key index value check
is not present which can cause buffer overflow.

Add keyindex check in the api wlan_hdd_vlan_sap()
in order to prevent the buffer overflow.

Change-Id: I87c606eed6b4e169d6e059cd5d06342c2bc0adaf
CRs-Fixed: 3560531
2023-07-25 15:21:40 -07:00
Rakesh Pillai
8f9d742ef5 qcacld-3.0: Cleanup datapath component code
Code cleanup in datapath component.

Change-Id: I03585bd319e835a28de37ae98fb8edafbc1820ee
CRs-Fixed: 3568991
2023-07-25 15:21:35 -07:00
Rakesh Pillai
cd187812d3 qcacld-3.0: Fix incorrect typecast in txrx_ops handlers
Currently the opaque context passed to txrx_ops handlers
is incorrectly typecasted to dp_intf. The context being passed
is dp_link handle. This leads to unwanted memory access.

Fix this by correctly typecasting the context passed to
all the txrx_ops handlers as dp_link handle.

Change-Id: I587b12056625bb68e86ecb54118bb2f6bfa62bd9
CRs-Fixed: 3569531
2023-07-25 15:21:30 -07:00
Rahul Choudhary
570e533669 Release 5.2.1.75A
Release 5.2.1.75A

Change-Id: Ib053335a25a3340cae4027ac1e5b9e941651acbc
CRs-Fixed: 774533
2023-07-25 03:18:37 -07:00
Mohammed Ahmed
a19d20e842 qcacld-3.0: Add unregister netdevice log
Current code does not have logs when a
netdevice is unregistered. Fix this by
adding a log when unregistering a
netdevice

Change-Id: I5f811093e16efcb6e286d9c0839738603eef758a
CRs-Fixed: 3564014
2023-07-25 03:18:37 -07:00
Mohammed Ahmed
d6cc451bfb qcacld-3.0: Enable BMPS power save for emulation
For emulation builds, remove ps timer stop and
reduce timeout to 11ms, allowing BMPS for
emulation.

Change-Id: Ib633f716ce4bd792a12a08652abe0eb1d36a5750
CRs-Fixed: 3526207
2023-07-25 03:18:31 -07:00
Rahul Choudhary
fcae21bf78 Release 5.2.1.75
Release 5.2.1.75

Change-Id: I072ccbe3808a7d7cdb5d7e8911d1c9349e2a5ad0
CRs-Fixed: 774533
2023-07-25 00:18:58 -07:00
Aasir Rasheed
3086b00b54 qcacld-3.0: Add 11be BW 320 in GETSTAINFO
Implement changes to support 11be mode
and bandwidth 320 required for EHT.
Change-Id: I0b5e82e4d5fa0c2f1c8c8921d2b13a111582184c
CRs-Fixed: 3554106
2023-07-25 00:18:57 -07:00
Rahul Choudhary
4739033fd5 Release 5.2.1.74Z
Release 5.2.1.74Z

Change-Id: Iee3d158c16bdce2eeda7c9af241986047427723a
CRs-Fixed: 774533
2023-07-24 15:50:43 -07:00
Rakesh Pillai
854bd8cafb qcacld-3.0: Fix incorrect arg passed in dp_rx_pkt_thread_enqueue_cbk
Currently dp_rx_pkt_thread_enqueue_cbk passed dp_intf to
dp_rx_packet_cbk, though it expects the caller to pass
dp_link context. This leads to an invalid memory access
due to incorrect typecasting.

Fix this by passing the correct dp_link context to
dp_rx_packet_cbk.

Change-Id: If37fd18d49a6d5464e01c07160a1be612e564ffb
CRs-Fixed: 3568233
2023-07-24 15:50:42 -07:00
Rahul Choudhary
b31b97faf7 Release 5.2.1.74Y
Release 5.2.1.74Y

Change-Id: I83afef5c1b0ff72cee8048f9e968b3d68d04ffac
CRs-Fixed: 774533
2023-07-24 05:09:57 -07:00
Jianmin Zhu
dbbd250f26 qcacld-3.0: Fix assert for MLO AP channel switch
When MLO AP start, lim_create_peer_idxpool_legacy isn't called, so
gpLimPeerIdxpool in pe session keeps NULL. When AP do channel switch,
MLO concurrency check failed for current AP not ignored, AP MLO flag is
cleared. When Ref sta disconnect, access gpLimPeerIdxpool to free peer
id, assert happens.

To fix it, when AP restart, ignore current AP when check MLO concurrency.

Change-Id: I3625dcd4f8c1a5020588311706faa1eb70ae8e9d
CRs-Fixed: 3548564
2023-07-24 05:09:56 -07:00
Chaoli Zhou
cc116d9893 qcacld-3.0: Strip WAPI IE from additional IEs
Support to strip WAPI IE from additional IEs for
beacon frame. Otherwise, it will have duplicated
WAPI IE, which mean one is from rsnIE and the other
is from probeRespBCNData_buff.

Change-Id: Id9708c81445fbb88e5ceb79698bff6bd02f931df
CRs-Fixed: 3562798
2023-07-24 05:09:51 -07:00
Rahul Choudhary
ee915da128 Release 5.2.1.74X
Release 5.2.1.74X

Change-Id: I08057fd75f8935ed4efd89a8ac907f8835161167
CRs-Fixed: 774533
2023-07-23 17:08:56 -07:00
Aditya Kodukula
c91ee1f29d qcacld-3.0: Send MLO_LINK_ID only in connected state
Currently in driver, MLO_LINK_ID attribute is sent to
userspace as part of LL interface stats even in disconnected
state. This might cause an issue in userspace. So to avoid it,
send MLO_LINK_ID attribute in connected state only.

Change-Id: Icdf5fdb57b1d52bec7b17a90a57adcee86535ffb
CRs-Fixed: 3567677
2023-07-23 17:08:56 -07:00
Aditya Kodukula
ef0cb63958 qcacld-3.0: Initialize signal field in hdd_sinfo with default value
When aggregated mlo station stats are requested, driver
will get vdev station stats for all the ml links and updates
hdd_sinfo struct, which is then sent to userspace.

But, in the current implementation of the driver, if a vdev
is inactive, we return from the function wlan_hdd_update_mlo_sinfo
without updating the hdd_sinfo struct, and when active vdev tries
to update the signal field it fails because the initial value
for the signal is 0dBm which is very high compared to the link's RSSI.

So to resolve the issue, initialize the signal field with a default
value of -128dBm.

Change-Id: I7b584bf431bda38ed9154f2945c9c81fdfd96902
CRs-Fixed: 3562515
2023-07-23 17:08:51 -07:00
Rahul Choudhary
a753e8f65f Release 5.2.1.74W
Release 5.2.1.74W

Change-Id: I405f26990613816a3bf72d37bae6bd0efd4c9bad
CRs-Fixed: 774533
2023-07-21 16:49:44 -07:00
Amit Mehta
f301f8de06 qcacld-3.0: Move tsf_sync_get_completion_evt create to start during init
Move tsf_sync_get_completion_evt create to start during init to avoid
any issue while handling tsf vendor command as host tries to
reset the event flag in the vendor command handler API.

Change-Id: I9469abe6adcd77291bacb03a4cc79657cc233660
CRs-Fixed: 3565005
2023-07-21 16:49:44 -07:00