Commit Graph

26453 Commits

Author SHA1 Message Date
Amit Mehta
eea57c0196 qcacld-3.0: Get DP interface by netdev
Currently while attaching vdev to DP interface
we are searching DP interface based on the Adapter
MAC address, but if STA MLD and Link address is
same, we were getting the Link Interface instead of
MLD interface, which was causing the EAPOL packet to drop.

To Fix the issue, instead of searching for DP interface
based on MAC address, use netdev to search DP interface.

Change-Id: I50c7974c053717b496fab0eeb89774af382b4313
CRs-Fixed: 3258684
2022-08-03 11:57:14 -07:00
Madan Koyyalamudi
aba7313b9b Release 5.2.1.31P
Release 5.2.1.31P

Change-Id: I1977604d41b480ad1b7fd22a6c45753dc29192a4
CRs-Fixed: 774533
2022-08-03 05:29:35 -07:00
Utkarsh Bhatnagar
24644fa171 qcacld-3.0: Fix stack frame size warnings for tdls 6 GHz functions
Fix stack frame size warnings during compilation for
tdls_get_6g_pwr_for_power_type and
tdls_is_6g_freq_allowed.

Change-Id: Ic9ca3c3db33acd769720bfcb8a754f8d6e6492ab
CRs-Fixed: 3249672
2022-08-03 05:29:35 -07:00
Liangwei Dong
5f895107e1 qcacld-3.0: Fix set hw mode completion event not reset
During vdev destroy, normally driver will wait for set hw mode
completion before cancel the nonscan serialization Command.
But the “wait” doesn't happen at some time. The reason could be
the qdf event (set hw complete event) is signaled state at the
time of waiting. There are code path the event is set without
reset during hw mode change.
Fix by reset the event in csr_process_set_hw_mode alone with
setting the hw_mode_change_in_progress flag.

Change-Id: I00318ec5d1f3c50233e8a990000ef5b011adf8dd
CRs-Fixed: 3259235
2022-08-03 05:29:28 -07:00
Madan Koyyalamudi
1ce13c225a Release 5.2.1.31O
Release 5.2.1.31O

Change-Id: Ibe7d42d87eebf4f5f2f624520164172eb3bc99db
CRs-Fixed: 774533
2022-08-03 03:36:29 -07:00
Aditya Kodukula
959f9e5eb6 qcacld-3.0: Validate vdev id for link stats before using
In the link layer stats, currently FW sends vdev_id info
for interface stats only, and not for peer and radio stats.
So, in the hdd callback function for the link layer stats,
when we try to get adapter from the vdev_id info sent by
FW, it returns error and ultimately causes LL_STATS timeout.

To avoid this issue, use the vdev_id info sent by FW only
if it is valid.

Change-Id: I7811b7c257cbfa67bdad0d132a1478120121f9fc
CRs-Fixed: 3254760
2022-08-03 03:36:29 -07:00
Madan Koyyalamudi
d02c60f751 Release 5.2.1.31N
Release 5.2.1.31N

Change-Id: Ic5586d85f57429d1f0c62df071287d2f785b738a
CRs-Fixed: 774533
2022-08-03 01:34:02 -07:00
Paul Zhang
25e3dfc1ee qcacld-3.0: Enhance congestion report
Enhance congestion report by pdev extend stats.

Change-Id: Ica61112f95e6264db5b46db807e1f5df04b26c98
CRs-Fixed: 3234080
2022-08-03 01:34:02 -07:00
Vulupala Shashank Reddy
45cfd4b5fc qcacld-3.0: Fix the channel for M2 and M4 packets
Currently in packet capture, channel is updated from connection
manager. Connection manager channel is updated only after
roam is done, because of which for EAPOL tx packets old
connection freq is filled during roam from one AP to other.
So we are seeing previous AP freq in EAPOL tx packets
captured during roam.

So to avoid this fill freq in data tx packets from pdev
which will get update when auth frame is received.

Change-Id: I251c4dd084b459b7c85e80c5f7ad717d561c09ae
CRs-Fixed: 3248305
2022-08-03 01:33:56 -07:00
Madan Koyyalamudi
d6fe4f4baf Release 5.2.1.31M
Release 5.2.1.31M

Change-Id: Ia39a3451ac85f3d3197582f0f51b17da310dcb18
CRs-Fixed: 774533
2022-08-02 17:16:09 -07:00
Rahul Gusain
b6b1a307e0 qcacld-3.0: Add support for NAN auth tx mgmt frames
Currently, host driver supports auth  tx mgmt frames for SAP,
STA, P2P_GO and P2P_CLI only. Also, need support to send auth
mgmt frames for NAN iface to send auth tx mgmt frames to firmware.

Add check for NAN opmode in tx auth mgmt path to support for
NAN pairing protocol.


Change-Id: I515e49c0d208030ba90cc3df69c366a9742adce0
CRs-Fixed: 3257739
2022-08-02 17:16:09 -07:00
Madan Koyyalamudi
405351b47c Release 5.2.1.31L
Release 5.2.1.31L

Change-Id: Ia755cf569af8bc21625274a8b908bf55af499068
CRs-Fixed: 774533
2022-08-02 15:21:48 -07:00
Rahul Gusain
111dc07642 qcacld-3.0: Exempt pe_session validation for NAN iface
Currently, host driver validates pe_session in lim to send
tx_mgmt frames to firmware and drops the packet if there is
no valid session. This is fine for STA, P2P and SAP modes as
there would be a valid session. But host driver needs to send
mgmt frames through the same interface for NAN pairing protocol,
which doesn't have a valid pe_session. So, exempt the pe_session
validation for NAN interface.

Change-Id: Ia28f12c164fd2e1cd7cdc06103b5cf66cbda5876
CRs-Fixed: 3257657
2022-08-02 15:21:48 -07:00
Rahul Gusain
58e429e53e qcacld-3.0: Add NAN iface for random mac support
Currently, host driver supports random mac for tx mgmt frames
in STA, P2P and P2P CLI opmode only.
Add NAN iface to support for random mac for NAN vdev in NAN 
pairing protocol.
This allows to transmit the NAN tx frames to the lower layer.

Change-Id: I06b9340cf9bfd9f6a5e77ff02d19d8a87baea0ff
CRs-Fixed: 3257667
2022-08-02 15:21:43 -07:00
Madan Koyyalamudi
f1ff372303 Release 5.2.1.31K
Release 5.2.1.31K

Change-Id: I294045aca292053a4f870ab99534f10f19652343
CRs-Fixed: 774533
2022-08-02 12:42:41 -07:00
Rahul Gusain
0a9d58d487 qcacld-3.0: Support add_key for NAN mode for NAN pairing protocol
Currently, host driver supports NL80211_CMD_NEW_KEY only for SAP,
STA, P2P_GO and P2P_CLI. Need add_key support for NAN discovery mode
as well to support the NAN pairing protocol. This allows userspace to
install the keys after deriving from PASN exchange.

Change-Id: I11b8318f89e4b2240dc6fb9d6f4c5b053a6c1387
CRs-Fixed: 3257622
2022-08-02 12:42:41 -07:00
Amit Mehta
bd3debcad8 qcacld-3.0: Use malloc to avoid stack size exceed issue
Currently memory allocation for dp_stats was happening
from stack, which was causing stack frame size limit
exceed error.

To fix the issue use malloc to dynamically allocate memory
equal to size of dp_tx_rx_stats structure.

Change-Id: Ia2a88d6de871b18903296537d7d1064460243773
CRs-Fixed: 3250567
2022-08-02 12:42:35 -07:00
Madan Koyyalamudi
3b324e5c54 Release 5.2.1.31J
Release 5.2.1.31J

Change-Id: I869681f88ec31602056ea5584c18b4295cb42d51
CRs-Fixed: 774533
2022-08-02 10:59:21 -07:00
Amit Mehta
a7089eb621 qcacld-3.0: Fix PLD PM QoS API
Currently in request PM QoS API we are
removing PM QoS and in remove PM QoS API
we are requesting PM QoS.
To Fix the issue rename the APIs to perform
currect action, Also remove unnecessary logs

Change-Id: Id40f257ec23c2331f8aacc4a4680cbccba175d31
CRs-Fixed: 3258087
2022-08-02 10:59:21 -07:00
Madan Koyyalamudi
68ef335398 Release 5.2.1.31I
Release 5.2.1.31I

Change-Id: I4ccf887655066da6d6b50715f631dde6edfda586
CRs-Fixed: 774533
2022-08-02 08:54:27 -07:00
VIJAY RAJ
29a90a5971 qcacld-3.0: Incorrect auth_type value during SAE logging
In the api lim_process_sae_auth_frame(), the value for
auth_type is set to '0' in api wlan_connectivity_mgmt_event()
for SAE authentication, resulting in auth_type to be logged
as zero.

Pass the correct value of auth_type in the api
wlan_connectivity_mgmt_event() for SAE authentication
logging.

Change-Id: I65833ceb89e7db8fd2134b5c7e9fb0a415581061
CRs-Fixed: 3253900
2022-08-02 08:54:27 -07:00
Ananya Gupta
9b6a5c2bfc qcacld-3.0: Release spinlock if bypassing fisa
Spinlock recursion is occured as dp_rx_fisa_add_ft_entry() is
returning without releasing the spinlock and from another CPU,
same process is trying to acquire the spinlock.
To fix this, if fisa is being bypassed, release spinlock before
returning.

Change-Id: I93a59a727683e1235b0ead96df5cd30f6c56d5a1
CRs-Fixed: 3257174
2022-08-02 08:54:20 -07:00
Madan Koyyalamudi
d65a83d2e7 Release 5.2.1.31H
Release 5.2.1.31H

Change-Id: I88537f155580f1242fb1dbc506e2a7abdd2fef35
CRs-Fixed: 774533
2022-08-02 05:15:48 -07:00
Bing Sun
f967191903 qcacld-3.0: Add parameter to skip 6 GHz chan for SON
EasyMesh spec does not support 6 GHz officially. Our EasyMesh application
only supports 6 GHz in very new version.
Add parameter for the interface between SON and Wlan driver, so that
including 6 GHz or not can be configurable.

Change-Id: I37b07697200747521bec598806cb533774fa3a91
CRs-Fixed: 3256469
2022-08-02 05:15:48 -07:00
Madan Koyyalamudi
39e786b519 Release 5.2.1.31G
Release 5.2.1.31G

Change-Id: I91f0d994fd223806b6bbd28947ff24acfbeb7cbf
CRs-Fixed: 774533
2022-08-02 03:22:35 -07:00
Namita Nair
dd3bb7718a qcacld-3.0: Disable FEATURE AST macro
FEATURE AST is not needed for HMT as
host will not need any AST entry SW copy
in host side. So we disable FEATURE AST
and bypass handling same mac address
for dp_ast.

Change-Id: I48c7449b14ac34ee1cf65fc453970fb28500872f
CRs-Fixed: 3228975
2022-08-02 03:22:34 -07:00
Madan Koyyalamudi
c1cde4cd47 Release 5.2.1.31F
Release 5.2.1.31F

Change-Id: I8f5a49853eb3e995e9a14299a6a93401308c85e0
CRs-Fixed: 774533
2022-08-01 21:42:55 -07:00
Amruta Kulkarni
4f7f5a20b7 qcacld-3.0: Handle deauth received on link vdev
AP sends deauth on link vdev, triggering a disconnect on link vdev
followed by assoc link vdev. The smeState is not updated for assoc
link vdev resulting in host not sending Peer delete and vdev stop/down
commands to fw.
To solve this if deauth or disassoc is received on link vdev
update the smeState.

Change-Id: I1ec834118642c82ab05b752b0bc343959b651072
CRs-Fixed: 3247801
2022-08-01 21:42:54 -07:00
Wu Gao
fa00b99b19 qcacld-3.0: Align command "setMaxAssoc" to INI "cfg_assoc_sta_limit"
Align command "setMaxAssoc" to INI "cfg_assoc_sta_limit" since they are
for same configure of host side.

Change-Id: Iccf60f261beef7fb7cc776ee691992e06bc7fa76
CRs-Fixed: 3241183
2022-08-01 21:42:48 -07:00
Madan Koyyalamudi
09a826ad38 Release 5.2.1.31E
Release 5.2.1.31E

Change-Id: I1161d4e88a064771b95fe92e86c6826d83358213
CRs-Fixed: 774533
2022-08-01 19:40:59 -07:00
sandhu
d06092a4d4 qcacld-3.0: Update assocId from association response
Update assocId from assoc response.

Change-Id: If62a6082f073ce4f7084a48a4f8e60407ddfeec8
CRs-Fixed: 3257406
2022-08-01 19:40:59 -07:00
Madan Koyyalamudi
6305a46a4a Release 5.2.1.31D
Release 5.2.1.31D

Change-Id: Icb68d2ef6f866817ba9907e75206c7abba5f3888
CRs-Fixed: 774533
2022-08-01 16:36:11 -07:00
Gururaj Pandurangi
617edf3f7b qcacld-3.0: Fix lim update EMLSR caps API
The lim_objmgr_update_emlsr_caps API updates EMLSR
caps based on the support bit from assoc response
on both links currently. But assoc response present
bit check should be for assoc link only. Add a check
to enable this logic.

Change-Id: I714fbb84a84bb3173e37eba1cc20c5ccdc5c5464
CRs-Fixed: 3254996
2022-08-01 16:36:11 -07:00
Madan Koyyalamudi
720bb30fb4 Release 5.2.1.31C
Release 5.2.1.31C

Change-Id: I4cd889286b5f2645ce5f60c4d52fb3fed086c22f
CRs-Fixed: 774533
2022-08-01 14:52:32 -07:00
Karthik Kantamneni
6ace4e5448 qcacld-3.0: Fix improper setting of RPS CPU mask
RPS CPU mask is getting set even if feature is not enabled,
due to this RPS config is taking affect and throughput is degraded.

Fix this by checking dynamic RPS enablement before setting RPS CPU mask.

Change-Id: I472a600e665271db7ea1e6fa650d88cba7804ab8
CRs-Fixed: 3258049
2022-08-01 14:52:31 -07:00
Madan Koyyalamudi
557a226add Release 5.2.1.31B
Release 5.2.1.31B

Change-Id: Ic04b861c87fcc83284b945da9f0fdf9a0dcdb4ca
CRs-Fixed: 774533
2022-08-01 11:53:50 -07:00
Asutosh Mohapatra
52f5a29062 qcacld-3.0: Failure in stats_get_station when MAC is all zeros
Currently __wlan_hdd_cfg80211_get_station gives failure when
incorrect MAC is received.
To address this issue add validity check for mac.

CRs-Fixed: 3239854
Change-Id: I9ecbcbc7681b839d29b31748c63d445da546ff09
2022-08-01 11:53:49 -07:00
Madan Koyyalamudi
34e84e298e Release 5.2.1.31A
Release 5.2.1.31A

Change-Id: I1a2e7b50d9719750e34d788fde332c0a2a46de2c
CRs-Fixed: 774533
2022-08-01 06:53:59 -07:00
Surabhi Vishnoi
7ec19a2b9a qcacld-3.0: Allow monitor mode vendor cmd only if mon iface is created
QCA_NL80211_VENDOR_SUBCMD_SET_MONITOR_MODE is used to set the
config for packet capture feature on STA interface.
Currently this vendor command is allowed even if monitor interface
which will be used in packet capture mode is not created, which is
wrong.

To fix this, allow monitor mode config related to packet capture
feature only if monitor interface is created.

Change-Id: Iea94b4cd5f21d8ce13643c209d4027972d7a16d3
CRs-Fixed: 3256298
2022-08-01 06:53:59 -07:00
Tiger Yu
44e9e5e12d qcacld-3.0: Fix TX failure message flooding in the cnss diag log
Fix TX failure message flooding in the cnss diag log in the third
party platform when running UDP performance test in high bandwidth.

The TX follow controller might be disabled for the legacy ROME module
due to IPA might be not enabled in the kernel config.

Use rate limit print version to mitigate this error msg flooding.

Change-Id: Id33c2a42a6490f734e83343f6d26e37cd6887bbe
CRs-Fixed: 3256599
2022-08-01 06:53:53 -07:00
Madan Koyyalamudi
210c0b723f Release 5.2.1.31
Release 5.2.1.31

Change-Id: If96e4b01010a0041e40a4f7e60f71ff39d58bdbd
CRs-Fixed: 774533
2022-07-31 20:59:17 -07:00
Lin Bai
3b90b4d399 qcacld-3.0: Dump raw ACS chanlist from hostapd
Dump the raw ACS chanlist from hostapd.

Change-Id: I0c66831c9b6c65bffd03c849ad40495987d4e181
CRs-Fixed: 3255634
2022-07-31 20:59:17 -07:00
Madan Koyyalamudi
51b07c6946 Release 5.2.1.30Z
Release 5.2.1.30Z

Change-Id: Ia4a2adca890e555861e5905cdb29eabd34ab0266
CRs-Fixed: 774533
2022-07-30 11:11:59 -07:00
Jinwei Chen
e9a3221c8f qcacld-3.0: enable DP packet statistics per lmac
enable DP packet statistics per lmac

Change-Id: I00f4145834b90f88d876a09a00b7728e106435e9
CRs-Fixed: 3251814
2022-07-30 11:11:59 -07:00
Madan Koyyalamudi
00b78774a3 Release 5.2.1.30Y
Release 5.2.1.30Y

Change-Id: I01cf86d9c411315b4acb4402357a572463f807a1
CRs-Fixed: 774533
2022-07-29 16:24:18 -07:00
Utkarsh Bhatnagar
1c919df40e qcacld-3.0: Ensure TDLS BW doesn't exceed AP BW in 2.4 GHz band
Irrespective of whether channel bonding is enabled or
disabled, BW of TDLS connection on 2.4 GHz should always
follow AP's Bandwidth.

Change-Id: Ic077ece540e4e70065f9eb8b5728187753613ff2
CRs-Fixed: 3253261
2022-07-29 16:24:17 -07:00
Madan Koyyalamudi
de0451a5df Release 5.2.1.30X
Release 5.2.1.30X

Change-Id: I284220ab516f46b90224c7da94cc5abbc6d38ef5
CRs-Fixed: 774533
2022-07-29 12:57:39 -07:00
Yu Ouyang
96b70b39b7 qcacld-3.0: Ignore idle_shutdown if any interface is up
In function __hdd_psoc_idle_shutdown(), after getting sync context,
ignore idle_shutdown if any interface is up. This is done to handle
special scenario in which platform driver triggers idle shutdown
when it receives Deep sleep/Hibernate entry notification from modem
subsystem in wearable devices.

And return EAGAIN to platform driver once checking failure.

Change-Id: I6ca2a1cb33aaf8a3b475f81109803fcdde86bbc4
CRs-Fixed: 3242998
2022-07-29 12:57:38 -07:00
SACHIN AHUJA
c021da7cd5 qcacld-3.0: Set add virtual interface flag for monitor interface
Due to Kernel 5.15+ upgrade, the correct kernel function must be used
to register netdevice. Hence, set the add virtual interface flag during
monitor mode interface creation in order to properly call
cfg80211_register_netdevice().

CRs-Fixed: 3247266
Change-Id: I69517052ae2aa71f5a903c4127f952cbe5f65e69
2022-07-29 12:57:31 -07:00
Arun Kumar Khandavalli
13e8cb80f9 qcacld-3.0: support ml through new netdev model
Remove the wdev reistration/unregistration for link wdev's
and support the open association through new netdev model.

Change-Id: I3f5c5e969bec4430ad8812073e396cba87c0e27b
CRs-Fixed: 3241850
2022-07-29 12:57:26 -07:00