Commit Graph

28350 Commits

Author SHA1 Message Date
Jeff Johnson
21b4a881d4 qcacld-3.0: Remove TDLS_MAX_NO_OF_2_4_CHANNELS
Use of the macro TDLS_MAX_NO_OF_2_4_CHANNELS was removed by the
following patch:
  qcacld-3.0: Process rx_mgmt_pkt based on frequency
  Change-Id Ib063070738ecdb4f83379eafe50629778a490aae

But the macro itself was not removed, so remove it now.

Change-Id: Iae040652e46795add803056bfe63c18de4dfeaf1
CRs-Fixed: 3426257
2023-03-10 22:48:15 -08:00
Madan Koyyalamudi
9b7e24cfd2 Release 5.2.1.58Q
Release 5.2.1.58Q

Change-Id: I62b8d1fb031ae2b1682b0f42d0046c0bb11526f2
CRs-Fixed: 774533
2023-03-10 16:11:14 -08:00
Liangwei Dong
0cff75eb71 qcacld-3.0: Handle vendor attribute MCC low latency mode
Handle Multi-Channel Concurrency low latency mode enable/disable.
The firmware will do optimization for low latency in Multi-Channel
concurrency state if enabled. And all existing user quota setting
will be overwritten by the target.

Change-Id: I99d909f0b76cfd3876254f9930644061ecd0ea0d
CRs-Fixed: 3411252
2023-03-10 16:11:13 -08:00
Madan Koyyalamudi
142efe20e1 Release 5.2.1.58P
Release 5.2.1.58P

Change-Id: I0faf3579340bd176c29e882dabbcf2383bb6361d
CRs-Fixed: 774533
2023-03-09 23:26:17 -08:00
Srinivas Dasari
d914ed8a81 qcacld-3.0: Don't disable MCC links in eMLSR case
eMLSR allows links in MCC mode(e.g. 5 GHz high + 5 GHz high) as
it's listen only till some data is ready from AP. Actual data
transmission may happen only on one link. So, don't disable any
link though those are operating in MCC when eMLSR is enabled.

Change-Id: I12635027dff658a18bc365299769dc5158ad0a33
CRs-Fixed: 3421444
2023-03-09 23:26:16 -08:00
Pragaspathi Thilagaraj
fbf0ea73d5 qcacld-3.0: Don't allow TDLS on MLO vdev
TDLS is not supported on ML STA but it gets enabled
currently when connected with ML AP and TDLS discovery request
is sent to peer devices.

So don't allow TDLS on MLO vdev.

Change-Id: I5bb9e03a0be3f3249aa7af664666a53a67ee812d
CRs-Fixed: 3416206
2023-03-09 23:26:11 -08:00
Madan Koyyalamudi
bee00a6e56 Release 5.2.1.58O
Release 5.2.1.58O

Change-Id: I27bdb99a9e1a1c58c43ee9c4d02eef1eba8acef7
CRs-Fixed: 774533
2023-03-09 18:45:58 -08:00
Liangwei Dong
373f804c45 qcacld-3.0: Check and update SAP BW before CSA
At present, driver move DFS SAP to STA's non DFS 5 GHz channel
before STA connects to 5 GHz AP. But need to make sure the
new SAP BW doesn't cover DFS sub channels and cause CAC.
Move the BW check and update logic to correct location to handle
such case.

Change-Id: I59cd1e8d92d978429f24963b9cb241d6f89f2307
CRs-Fixed: 3427862
2023-03-09 18:45:58 -08:00
Madan Koyyalamudi
8de9f8ddb3 Release 5.2.1.58N
Release 5.2.1.58N

Change-Id: I5fdda847a5c0d2cb86ecb8d030678754e1922729
CRs-Fixed: 774533
2023-03-09 12:58:12 -08:00
Gangadhar Kavalastramath
1bbd5a953a qcacld-3.0: Remove dfs cac dependency on pre cac feature flag
Remove dfs cac dependency on pre cac feature flag.

Change-Id: If91e3fb4cc94b669e79aa8877e7102b0cb6ef8b6
CRs-Fixed: 3424238
2023-03-09 12:58:12 -08:00
Madan Koyyalamudi
d09a87d787 Release 5.2.1.58M
Release 5.2.1.58M

Change-Id: Ie728096833c29096670259ca2cbc397217db75e6
CRs-Fixed: 774533
2023-03-09 03:27:10 -08:00
Tiger Yu
321259b2fa qcacld-3.0: Fix potential pointer dereferenced for hdd_ctx & mac_handle
Add sanity checking to fix the potential pointer dereferenced after call
the __cds_get_context or hdd_adapter_get_mac_handle.

Change-Id: I53bdfa8434bdbbd6b70b0d98469e05c2e05ead28
CRs-Fixed: 3426731
2023-03-09 03:27:10 -08:00
Madan Koyyalamudi
fd34e24b1e Release 5.2.1.58L
Release 5.2.1.58L

Change-Id: Id511946dfb69ce58de627eb286ffa8e8e2ad8b1e
CRs-Fixed: 774533
2023-03-08 23:01:15 -08:00
Jeff Johnson
c8da625f45 qcacld-3.0: Remove legacy P2P debug tables
As part of P2P componentization, debug logic was moved from HDD to the
P2P component, see:
  qcacld-3.0: Activate debug functions in P2P component
  Change-Id I1ff627a553108c74be144232fd0a0406d88de395
and:
  qcacld-3.0: Remove legacy P2P codes in HDD
  Change-Id Idaaacac4fdaf1b964432c33c10b1c86f8a591c2d

However these changes left behind two action frame type "number to
string" tables which are also no longer used, so remove those as well.

Change-Id: I95c2b2b767007f852d9c7ce0acac92089dbf8f23
CRs-Fixed: 3426074
2023-03-08 23:01:14 -08:00
Liangwei Dong
393f3f3d9a qcacld-3.0: Fix standalone SAP ACS HT 40 failure
After ACS completed, wlan_sap_get_concurrent_bw will
override ACS BW based on concurrency interfaces, but
it will hard code 2.4 GHz to 20 MHz BW. Fix it by
return BW from ACS result to avoid ACS request 40 MHz
failure.

Change-Id: Ibb763c275234c7974ba34c4e2d95f1ed4238908d
CRs-Fixed: 3422900
2023-03-08 23:00:55 -08:00
Madan Koyyalamudi
f31b7859f9 Release 5.2.1.58K
Release 5.2.1.58K

Change-Id: I477ce18c11f771f23208bb720a1e749c513c4857
CRs-Fixed: 774533
2023-03-08 21:09:52 -08:00
Paul Zhang
45ad1a75d4 qcacld-3.0: handle MBSSID IE for critical update
With the MBSSID IE, it has to generate the corresponding
beacon and probe response frames. Then handle the generated
frames per critical update feature.

Change-Id: I881bf417e19e013e0b2eddfcd2f614a39ae62f04
CRs-Fixed: 3376510
2023-03-08 21:09:52 -08:00
Madan Koyyalamudi
c785a3b8de Release 5.2.1.58J
Release 5.2.1.58J

Change-Id: Ie8e2cfe734bcff10a86d62cc09b10bcf1bcb8133
CRs-Fixed: 774533
2023-03-08 16:04:41 -08:00
Rakesh Pillai
2a4c6686af qcacld-3.0: WAR to handle invalid flow_idx from HW
Currently if the pkt tlvs indicate flow_invalid=0,
there is no sanity done on the SW flow table entry
retrieved using the flow_idx from pkt tlvs.

In case of HW incorrectly sending a invalid flow_idx,
within the range of allowed flow_idx, and flow_invalid=0,
there will be an attempt to aggregate an invalid flow.
This can also trigger a RX ring id mismatch.

In order to mitigate the above issue, verify if the
SW flow table has been populated, before attempting
FISA aggregation.

Change-Id: Idb445c0c5b249d747dbce61f31513ba4a75c26b7
CRs-Fixed: 3412721
2023-03-08 16:04:40 -08:00
Madan Koyyalamudi
4cba725609 Release 5.2.1.58I
Release 5.2.1.58I

Change-Id: I4e8daa3042dd72c01bdc49a322b7c82272858d7d
CRs-Fixed: 774533
2023-03-08 14:20:51 -08:00
Venkateswara Naralasetty
2bcf36b06f qcacld-3.0: Skip FISA aggregation if RDI is zero
Skip the FISA aggregation and drop the frame if the reo destination
indication is zero in the packet TLVs.

Change-Id: I9bd02652bf321202f6b59e6da98fc6959ab93413
CRs-Fixed: 3426355
2023-03-08 14:20:51 -08:00
Madan Koyyalamudi
6834278f17 Release 5.2.1.58H
Release 5.2.1.58H

Change-Id: Ib5c026adc26c1c32dcdaaf0e663406a60313fbd9
CRs-Fixed: 774533
2023-03-08 11:06:38 -08:00
Jeff Johnson
23b2f70362 qcacld-3.0: Remove enum oem_capability_mask
The enum oem_capability_mask was introduced by:
  qcacld-3.0: Add support for get and set OEM capability
  Change-Id I8c4a8c19633845750ec9d2492632471c68ba410d

However, the enum wasn't actually used by that patch, and instead
struct sme_oem_capability represents that information, so remove the
enum.

Change-Id: Ie52fa8d69c95c1021bf94b052f373e3e75da6f80
CRs-Fixed: 3425038
2023-03-08 11:06:37 -08:00
Jeff Johnson
026e9c0830 qcacld-3.0: Remove wlan_hdd_send_igmp_offload_params() stub
The stub function wlan_hdd_send_igmp_offload_params() was added by the
following patch:
    qcacld-3.0: Add support to offload igmp feature to fw
    Change-Id I05fbf23dc2836f8f5dc6e2f45b35bf2d30c39790

However there isn't a corresponding "real" function, nor is there a
caller. Since this was added in error, remove it.

Change-Id: I738a2be81e613138e13544f7335ad2876436a73b
CRs-Fixed: 3426018
2023-03-08 11:06:32 -08:00
Madan Koyyalamudi
2005976561 Release 5.2.1.58G
Release 5.2.1.58G

Change-Id: If6b7b07c2fac676c59587427124b50230ee3fa0e
CRs-Fixed: 774533
2023-03-08 09:28:58 -08:00
Liangwei Dong
9250cd8a0c qcacld-3.0: Fix channel width not match with driver
802.11be mode is non legacy phy mode, add 802.11be mode
handling in hdd_hostapd_chan_change.

Change-Id: I8c62614ea7830206b0a4fa8b9edfc25a5ca0855f
CRs-Fixed: 3418073
2023-03-08 09:28:57 -08:00
Madan Koyyalamudi
b6b4c9c582 Release 5.2.1.58F
Release 5.2.1.58F

Change-Id: Id7b4f170187f3e3697274530d6d3ff87916ea873
CRs-Fixed: 774533
2023-03-08 07:41:33 -08:00
Jeff Johnson
726b2cba56 qcacld-3.0: Remove hdd_sysfs_*_adapter_root_obj() stubs
The functions hdd_sysfs_create_adapter_root_obj() and
hdd_sysfs_destroy_adapter_root_obj() were removed in the
following patch, replaced with mode-specific APIs:
  qcacld-3.0: Add a sysfs replacement for reassoc
  Change-Id Ib4f3582bb8c164dd4f3ab739367520b9aeb0f5b9

However the stubs for when WLAN_SYSFS is not defined were
not removed, so remove them now.

Change-Id: I8c82b410d2891cbf8f3d619fcb6c1c60a5a0a9ca
CRs-Fixed: 3425058
2023-03-08 07:41:32 -08:00
Madan Koyyalamudi
81401c6007 Release 5.2.1.58E
Release 5.2.1.58E

Change-Id: I5cde7eb1ae67e6d2442bf590a75b9ca54a8fd84a
CRs-Fixed: 774533
2023-03-08 05:59:03 -08:00
Jeff Johnson
af6cc9c688 qcacld-3.0: Remove obsolete hdd_context packet capture members
Usage of the enable_pkt_capture_support and val_pkt_capture_mode
members of struct hdd_context was removed by the following patch as
part of packet capture componentization:
  qcacld-3.0: Remove packet capture ini's in cds
  Change-Id Ice4765c7eb697743b1dccc8a70be1b7ce766e037

Since these are obsolete, remove them

Change-Id: I28ffd0fe209b1d663046e8dec96d18ef5e269755
CRs-Fixed: 3424981
2023-03-08 05:59:03 -08:00
Jeff Johnson
8206ca810e qcacld-3.0: Remove unused wlan_ptp_gettime() stack variable
There are two different implementations of wlan_ptp_gettime()
depending upon the version of the Linux Kernel. The implementation
for versions before Linux Kernel 4.1 has an unused stack variable,
tsf_reg_read_enabled. This can result in compiler warnings, so
remove it.

Change-Id: I1ed7e15ff0cf8867356e8cea39bff5f4ee362877
CRs-Fixed: 3426059
2023-03-08 05:58:57 -08:00
Madan Koyyalamudi
e8817877c0 Release 5.2.1.58D
Release 5.2.1.58D

Change-Id: Iec9fc71d7221b929c003114235c0c2101438127f
CRs-Fixed: 774533
2023-03-08 04:18:46 -08:00
Surabhi Vishnoi
6176b7062f qcacld-3.0: Prevent suspend when bss color change is in progress
Currently, on obss color collision detection driver sends bss color
change IE in beacon and updates the color switch count in IE in
every beacon until color switch count reaches 0.

If the wlan driver enters suspend during this updation of bss color
change IE in beacon, the bss color change is not completed until wlan
resumes. This will lead to delay in bss color change after bss color
collision is detected.

To fix this issue, acquire wakelock once obss color collision is
detected and release it once obss color change is completed. This fix
is similar to how CSA is handled currently in driver.

Change-Id: I9c3e7cfe16da116905121b044054c0987afbca09
CRs-Fixed: 3405919
2023-03-08 04:18:45 -08:00
Jeff Johnson
dd5dca9ea3 qcacld-3.0: Remove struct hdd_roaming_info::defer_key_complete
The following patch removed all usage of the defer_key_complete member
in struct hdd_roaming_info:
    qcacld-3.0: Remove unused code for defer key
    Change-Id I8afcebf00b00bcf39ba7da999c55e5eacdf26aaa

Since it is obsolete, remove it.

Change-Id: I4ed0eeba29ed74ddc82bf2a6723d73b49a9b907f
CRs-Fixed: 3424957
2023-03-08 04:18:40 -08:00
Madan Koyyalamudi
accdd95c2e Release 5.2.1.58C
Release 5.2.1.58C

Change-Id: I4c578162c7739339dbe89e74441d31e0218adfbd
CRs-Fixed: 774533
2023-03-08 02:30:12 -08:00
Lin Bai
c4def7dc3a qcacld-3.0: Add log to show netif queue operation
Add log to show the vdev_id/action/reason of net_if queue operation.

Change-Id: I207121d19c78272b1d084b18fbfba4d1364670e6
CRs-Fixed: 3425474
2023-03-08 02:30:12 -08:00
Jeff Johnson
5f018b0988 qcacld-3.0: Remove obsolete tAniSirLim counters
The tAniSirLim struct contains multiple counters. Although all of them
are initialized, only some of them are ever incremented, and very few
of them actually have their values read. Since it is pointless to keep
counters that are never examined, remove the ones that are never read.

As part of the cleanup replace the tAniSirLim typedef with a properly
named struct to align with the coding standard.

Change-Id: I8b306ff9ae92a54953dd54b80c58e691612c43a0
CRs-Fixed: 3424936
2023-03-08 02:30:06 -08:00
Madan Koyyalamudi
e21af86b35 Release 5.2.1.58B
Release 5.2.1.58B

Change-Id: I2a767f6ed80698e95d9eba8074db825b0d2757ba
CRs-Fixed: 774533
2023-03-08 00:44:29 -08:00
Jeff Johnson
4f168c325a qcacld-3.0: Remove struct csr_scanstruct::numChannelsDefault
Member numChannelsDefault in struct csr_scanstruct is written but
never read. Since the value is unused, this member is obsolete, so
remove it.

Change-Id: Id08de8421a1891a4b7cde5d191c4e168b2313c12
CRs-Fixed: 3424922
2023-03-08 00:44:29 -08:00
Madan Koyyalamudi
17be2809dd Release 5.2.1.58A
Release 5.2.1.58A

Change-Id: I5c652df1bf7b12e7e9b86b020cf87b78bd886ead
CRs-Fixed: 774533
2023-03-07 19:46:55 -08:00
Jeff Johnson
1e578993f3 qcacld-3.0: Remove obsolete legacy NAN data structures
NAN componentization removed the usage of most legacy NAN data
structures in sir_api.h, so remove those that are no longer used.

Change-Id: I8389dee19a8a044e8d06ff52207fc11a3bbf97a0
CRs-Fixed: 3424918
2023-03-07 19:46:54 -08:00
Jeff Johnson
5df9dd37ec qcacld-3.0: Remove wlan_hdd_display_txrx_stats() prototype
The function wlan_hdd_display_txrx_stats() was removed as part of
datapath componentization in:
    qcacld-3.0: Code cleanup from HDD module
    Change-Id If5f1cf432b5c02848202debee7de696b2f20be9a

However the prototype was left behind, so remove it as well.

Change-Id: I9b41bceff4a149e3aaf2938713ad0ca4a6735aa6
CRs-Fixed: 3426033
2023-03-07 19:46:49 -08:00
Srinivas Dasari
27ebcc45c2 qcacld-3.0: Don't clear vdev MLO flags upon roam sync abort
Host driver may abort the roam sync due to multiple reason.
The expectation is to revert the state of vdevs/links to original
state i.e. before receiving the roam sync indication.
Currently, there is a cleanup of vdev MLO bitmap assuming that
roam abort should reset whatever is set as part of roam sync
handling. But these flags might get set in previous connection
and are not supposed to reset upon roam sync abort.
Driver does the disconnection as part of HO_FAIL event handling
and corresponding vdev MLO flags gets cleared as part of that.

So, don't cleanup any vdev flags as part of roam sync abort.
Cleanup wlan_connect_req_links which is set only when roam sync
starts.

Change-Id: I5ca0d789a49fcf954dac332f494650866913f94b
CRs-Fixed: 3418430
2023-03-07 19:46:44 -08:00
Aditya Kodukula
37ad7204d2 qcacld-3.0: Update link peer mac address for mlo stats
Currently in the driver as part of ML unified_ll_get_sta stats,
the peer mac address for partner link is not being updated in
the callback function, causing driver to report incorrect
stats to upper layers.

To fix this issue, update peer mac address before invoking
vdev station stats callback function.

Change-Id: I39c460467a3572aad05e4c5fab136a844b753941
CRs-Fixed: 3421153
2023-03-07 19:46:39 -08:00
Madan Koyyalamudi
3f3b154907 Release 5.2.1.58
Release 5.2.1.58

Change-Id: I487062b4e7b4d75d1b005f6266d02e71b05b8527
CRs-Fixed: 774533
2023-03-07 16:39:21 -08:00
Jeff Johnson
29beb1eb3e qcacld-3.0: Remove struct hdd_config::enable_fisa_lru_deletion
The following patch added logic to HDD to read the value of the
CFG_DP_RX_FISA_LRU_DEL_ENABLE configuration item and store it in
struct hdd_config:
  qcacld-3.0: Add ini to enable FISA LRU eviction
  Change-Id I9930ec260bcab5ba8c8f1e594dbfde35965dff2e

However, the datapath maintains this configuration item on its own, and
the copy maintained by HDD is not used, so remove that logic.

Change-Id: I970195cf199c33802db5f84eeea4f622306703cd
CRs-Fixed: 3424797
2023-03-07 16:39:21 -08:00
Aditya Kodukula
fe2f35ad2e qcacld-3.0: Log ini config info to host_driver_log
In the driver, the debugfs replacement command for getConfig
WEXT command logs ini configuration into a separate file only
but doesn't log into the wlan host_driver_logs file.

So, fix this by logging ini configuration to wlan host_driver_logs.

Change-Id: I134847a7b498defbcdd58b575fb775b2d0ef3070
CRs-Fixed: 3424575
2023-03-07 16:39:15 -08:00
Jeff Johnson
f442688267 qcacld-3.0: Remove hdd_txrx_get_tx_ack_count()
The functionality that called hdd_txrx_get_tx_ack_count() was remove by:
  qcacld-3.0: Code cleanup from HDD module
  Change-Id If5f1cf432b5c02848202debee7de696b2f20be9a

Since datapath componentization made hdd_txrx_get_tx_ack_count()
obsolete, remove it.

Change-Id: I86cb82794f6ae324034d8a4fb76ac5084aced3aa
CRs-Fixed: 3424800
2023-03-07 16:39:10 -08:00
Madan Koyyalamudi
57da59abe2 Release 5.2.1.57Z
Release 5.2.1.57Z

Change-Id: Icf6d13ec4053ab1bebc0384988fa61f2b343a00a
CRs-Fixed: 774533
2023-03-07 14:49:18 -08:00
Jeff Johnson
68a43bd7b0 qcacld-3.0: Remove obsolete struct lim_max_tx_pwr_attr
The logic that utilized struct lim_max_tx_pwr_attr was removed with:
    qcacld-3.0: Add TPC calculation logic to obtain max tx power
    Change-Id I80a2454c2ef0dbc3b1d69e8b233b1a56567ec1a1

Since this struct is obsolete, remove it.

Change-Id: I5c885e5b37ee2e451a0c5474c2d6e7540ada93b9
CRs-Fixed: 3423249
2023-03-07 14:49:18 -08:00