Revīziju grafs

707 Revīzijas

Autors SHA1 Ziņojums Datums
Jeff Johnson
f23b5ba829 qcacld-3.0: Remove macro ol_ctrl_addba_req()
The original snapshot of the driver included the macro
ol_ctrl_addba_req(). However, this macro has never been used and,
since it references an unknown identifier ol_addba_req_reject, it
could never be used, so remove it.

Change-Id: Ib934617376ba241fc7502cfef49bc895e8cc4102
CRs-Fixed: 3428342
2023-03-12 07:28:26 -07:00
Jeff Johnson
6d3daec8a0 qcacld-3.0: Cleanup core/dp/txrx/ol_rx_fwd.h
Prototypes ol_rx_fwd_mcast_check_ap() and ol_rx_fwd_mcast_check_sta()
were part of the initial driver snapshot, but there was never an
actual implementation of these functions, so remove the prototypes.

The prototype for ol_rx_fwd_check() uses a legacy documentation
template, and the prototype for ol_get_intra_bss_fwd_pkts_count() has
no documentation, so make sure both of these have proper kernel-doc
documentation.

Change-Id: I80a9c6f61631dd509b9029312b1e35c235ac2aa9
CRs-Fixed: 3428364
2023-03-10 22:48:25 -08:00
Qun Zhang
5268464ab3 qcacld-3.0: Support TX OFF for LL legacy flow control
For QCA_LL_LEGACY_TX_FLOW_CONTROL data flow control,
currently it cannot support TX off for thermal mgmt.
Similar to thermal implementation in FW, refine
ol_tx_set_throttle_phase_time() to support thermal
mitigation TX off processing when INI throttle duty
cycle set to maximum 100.

Change-Id: I208288bda2ad7ca1a14be0b80a0d57361ce0ec8c
CRs-Fixed: 3413545
2023-03-06 16:00:06 -08:00
Jeff Johnson
b607e016e8 qcacld-3.0: Remove pktlog.h include
The header file pktlog.h is a legacy remnant that doesn't provide any
value, so remove the unnecessary #include. This is a precursor to
removing the actual file.

Change-Id: Ic9def32b2c800a9b05001eb3816d1b421f82288e
CRs-Fixed: 3420816
2023-03-02 16:28:23 -08:00
Tiger Yu
33aef11cd3 qcacld-3.0: Add TX packet trace info for debugging for module QCA6574
Add TX packet trace for module qca6574 to get more info for debugging

Change-Id: I226eb904d9a86a86f7ee4403da97445242b13909
CRs-Fixed: 3405782
2023-02-23 10:48:58 -08:00
Gangadhar Kavalastramath
ac42107b12 qcacld-3.0: Fix wlan idle timeout crash for genoa
Two different crashes are observed due to rtpm get/put count
mismatch for HIF_RTPM_ID_HTT dbgid.
1. During idle timeout shutdown: Missing rtpm related htc packet
   tags for htt_h2t_ver_req_msg(), htt_h2t_frag_desc_bank_cfg_msg()
   and htt_h2t_rx_ring_rfs_cfg_msg_ll() messages cause system crash.
2. During wlan connect: In ol_tx_completion_handler(), rtpm put is
   called without rtpm get.

Fix given:
1. Add relevant HTC_TX_PACKET_TAG_RUNTIME_PUT and
   HTC_TX_PACKET_TAG_RTPM_PUT_RC in the above functions to invoke
   missing rtpm put calls and call htc_dec_return_htt_runtime_cnt()
   to avoid calling rtpm put without rtpm get in htc_cleanup().
2. Remove extra htc_pm_runtime_put() from ol_tx_completion_handler().

Change-Id: Ia9163464af0fc0700046578633e9587c009841f5
CRs-Fixed: 3357909
2023-01-05 14:30:25 -08:00
Chaoli Zhou
4cbca147ba qcacld-3.0: Fix ipa compile error for ROME
Fix the parameters missing issue for ipa
function for ROME.

Change-Id: I1dad21bfa0e6cf0f213a1259bd5cf116cccba9a5
CRs-Fixed: 3345055
2022-12-04 12:07:08 -08:00
Jeff Johnson
dc961a7522 qcacld-3.0: core: dp: Fix misspellings
Fix misspellings in core/dp/...

Change-Id: Ibafb9996aeec83ff18fdad269c2ee918afcb397f
CRs-Fixed: 3303628
2022-10-06 02:12:24 -07:00
sandhu
27a7d9060f qcacld-3.0: fix compilation issue
fix compilation issue by removing stdarg.h and include qdf_types.h

Change-Id: I30ae0aed3fc28c3b9db8b2ce4450211e102b06fa
CRs-Fixed: 3295173
2022-09-29 18:45:58 -07:00
Namita Nair
a1c50a9788 qcacld-3.0: Support same link/mld peer mac address
Handle build errors in legacy chipsets, to support
same link/mld peer mac address handling for MLO.

Change-Id: I8b4e323481c6d327ee579a6b8143215c94341b8e
CRs-Fixed: 3228926
2022-07-29 05:56:46 -07:00
Bing Sun
dc90fbafd4 qcacld-3.0: Use qdf_hrtimer_data_t instead of __qdf_hrtimer_data_t
We should use qdf_hrtimer_data_t, which is QDF abstraction of hr_timers.
We should use QDF_HRTIMER_NORESTART instead of __QDF_HRTIMER_NORESTART.

Change-Id: I02b83a23c94d1acde955313ed39e1b5cc44f76f2
CRs-Fixed: 3253137
2022-07-27 07:22:29 -07:00
Amit Mehta
e5e83b4185 qcacld-3.0: Update HDD to use DP component APIs
All the DP specific code logic is moved out of HDD to
new DP component. So update HDD module to use newly
introduced DP component APIs for DP specific operations.

Changes were backed out because of association issue
introduced by MLO adapter to DP interface mapping issue
and to avoid any further regression.
Re-introduce changes after preforming complete sanity
to vet out any regression which might be introduced
by these changes.

Change-Id: I377aecc4343e75dd17d279a2eb84fc49e737e784
CRs-Fixed: 3198619
2022-07-18 03:21:04 -07:00
Amit Mehta
c87481282c qcacld-3.0: Fix return value
Currently in some cases we are returning
enum of type rx_pkt_fate instead of qdf_dp_tx_rx_status

Fix issue by returning correct enum type.

Change-Id: I97c67003178fd5347de57c1b78602177696e0973
CRs-Fixed: 3234233
2022-07-02 23:11:05 -07:00
Xiaoning Ma
a41c89dd02 qcacld-3.0: Fix compile error for incompatible function pointer types
Fix compile error with '-Werror,-Wincompatible-function-pointer-types'

Change-Id: Iba97ead4e8d5b940463a3786a0b375cbbecf503f
CRs-Fixed: 3226016
2022-06-30 23:28:18 -07:00
David Oladunjoye
ad41728f81 qcacld-3.0: dp: Replace fallthrough comment with attribute
-Wimplicit-fallthrough is being enabled by default. Some compilers
such as clang require the attribute instead of just a fallthrough comment.

Change-Id: Ie320d97a2df018fb0ad1a39c3fb2683e564d1808
CRs-Fixed: 3217418
2022-06-24 20:06:08 -07:00
Amit Mehta
58a1587cdb qcacld-3.0: Make changes to use QDF status and type
Make changes in packet logging to send QDF status
and type instead of packet log type and status.

Change-Id: I8c1d04a78272159f7d34d6034c41d52e1e44b61d
CRs-Fixed: 3224876
2022-06-23 07:03:36 -07:00
Karthik Kantamneni
6bbad18fde Revert "qcacld-3.0: Update HDD to use DP component APIs"
This reverts commit I02fd36c45ec247fbd4fe79e035c1176cba3ebcec.

Change-Id: I26758565ac783b9c76b59eee6c2a526c68646fa5
CRs-Fixed: 3196571
2022-05-16 18:57:59 -07:00
Karthik Kantamneni
2df27526fc qcacld-3.0: Update HDD to use DP component APIs
All the DP specific code logic is moved out of HDD to
new DP component. So update HDD module to use newly
introduced DP component APIs for DP specific operations.

Change-Id: I02fd36c45ec247fbd4fe79e035c1176cba3ebcec
CRs-Fixed: 3172570
2022-05-11 13:20:47 -07:00
Karthik Kantamneni
0474a821f1 qcacld-3.0: Add peer to inactive list based on unmap ref count
Currently dp peer is being added to inactive list during force
delete, but there is possiblity of peer getting freed up if
unmap ref count is not pending and leading to double free during
pdev cleanup.

To avoid this add the peer to inactive list only if unmap ref
count is pending.

Change-Id: Ib55a92dd36c4ec4a26d3103896ca31ff3d845148
CRs-Fixed: 3110728
2022-01-18 05:50:23 -08:00
Balaji Pothunoori
d101ac52b4 qcacld-3.0: update timestamp for TX failed pkt to upper layer
Currently, wlan host driver only report timestamp for TX successful
packets to upper layer.
This change add support to report timestamp for TX failed pkt to
upper layer.

Change-Id: Ib9b021675ebd388107f8bf1a61703f2b6cebb882
CRs-Fixed: 3077222
2021-12-15 12:27:27 -08:00
Nakul Kachhwaha
aabf3d74ff qcacld-3.0: Fix Switch Case fallthrough compiler error
Adding fallthrough statement in switch case to
suppress compile time errors.

Change-Id: I948e87090dd68d2f5cf342e2115d672d2d772b6f
CRs-Fixed: 3079848
2021-11-24 01:14:18 -08:00
Jinwei Chen
21e1618550 qcacld-3.0: CLD change for cdp_pdev_attach
CLD change for cdp_pdev_attach

Change-Id: Ib4c536bc5d4a94ed0456e976cfc32b0ccdc9aa65
CRs-Fixed: 3077258
2021-11-23 03:54:59 -08:00
Ke Huang
9ef83a0f00 qcacld-3.0: change ipa client from wlan1 to wlan4 for genoa
pass rx/tx client information as WLAN4 CONS/PROD instead
of WLAN1_CONS/PROD to support Geona offload.

Change-Id: Ia856b0ad8ca075b2fbda6f581e5523f4483edd28
CRs-Fixed: 3025173
2021-11-13 21:50:49 -08:00
Rakesh Pillai
43079567db qcacld-3.0: Add proto-type changes for vdev/peer attach
Add the changes corresponding to the proto-type changes
for txrx_vdev_atfach and txrx_peer_attach for ol targets.

Change-Id: Ibf31e3d5dd7cdf8c47ab3fe9cfdcbfd5762dc18d
CRs-Fixed: 3053683
2021-10-15 13:12:59 -07:00
Yu Wang
a4791d8279 qcacld-3.0: add build flag for network package timestamping
Network package timestamping is optional for TSF feature,
to make it configurable, add a new build flag
WLAN_FEATURE_TSF_PLUS_SOCK_TS.
This flag will be set only when CONFIG_WLAN_SYNC_TSF_PLUS
is enabled and CONFIG_WLAN_SYNC_TSF_PLUS_DISABLE_SOCK_TS
is not.

Change-Id: I413e85fadf93264cd41c2739b6d870aa08d60efb
CRs-Fixed: 3027378
2021-09-10 15:36:13 -07:00
Vevek Venkatesan
d26b38d254 qcacld-3.0: call CDP API for pkt_log_exit from CDS layer
Once pkt_log_con_service success in cds_pre_enable,
in case of any further failure, pkt_log_exit cleanup is
not done, so calling CDP interface API for pkt_log_exit.

Change-Id: Ibddc99fb47109a73de095f068694b2548849f14d
CRs-Fixed: 2978390
2021-08-14 23:06:43 -07:00
Yeshwanth Sriram Guntuka
b4377be446 qcacld-3.0: Do not do PN check in case of WEP security
In WEP connection, IV values used for consecutive packets
could be random and need not be monotonically increasing
or consecutive in case of fragments. This could result in
incorrect drop of fragments.

Fix is to not do PN check in case of WEP security.

Change-Id: I8bfe16f3bf68752f4279b3fae1cf485a3abc1af7
CRs-Fixed: 2977416
2021-06-28 07:22:29 -07:00
Yeshwanth Sriram Guntuka
e4322f1e96 qcacld-3.0: Add support for GCMP in rx de-fragmentation
GCMP header and MIC are not removed for received
fragments which will result in incorrect ethertype
and presence of LLC hdr in the data when the frames
are sent to network stack.

Fix is to add support for GCMP in rx de-fragmentation
path.

Change-Id: I83ed29a766e40e32f4b712342ebd40d08a2c65e0
CRs-Fixed: 2942099
2021-06-23 14:08:51 -07:00
Qun Zhang
086ebbc79e qcacld-3.0: notify TKIP mic failure to upper layer under fragement case
It's also needed to notify supplicant when TKIP michael mic failure was
detected under fragement case, so supplicat can start 60s protect policy
for association.

Change-Id: I9383d653ac957425e09a60a2f495e575741d073a
CRs-Fixed: 2942680
2021-06-02 15:54:12 -07:00
Yeshwanth Sriram Guntuka
03ec0027f3 qcacld-3.0: Add support to flush fragments for a particular peer
Add support for flushing fragments for a particular peer.

Change-Id: I91236d2edc73317380590458b974013a02e858a1
CRs-Fixed: 2860131
2021-05-13 06:19:43 -07:00
Yeshwanth Sriram Guntuka
7ccead5da9 qcacld-3.0: Do not intrabss fwd frag EAPOL frames in HL
Do not intrabss forward fragmented EAPOL frames that have
DA different from the SAP vdev mac addr when high latency
is enabled.

Change-Id: Idb6e6c001f4dae51c2181e70ab9adbbb964f0ee3
CRs-Fixed: 2942096
2021-05-12 14:31:13 -07:00
Yeshwanth Sriram Guntuka
62374f3883 qcacld-3.0: Do not intrabss forward fragmented EAPOL frames
Do not intrabss forward fragmented EAPOL frames that have
DA different from the SAP vdev mac addr.

Change-Id: I4145227c9b02fe8cec86ef4ffc3bc2025f906923
CRs-Fixed: 2888467
2021-05-12 12:30:49 -07:00
Yeshwanth Sriram Guntuka
5deab77487 qcacld-3.0: Modify check to ensure consecutive PN for frags
Modify check to ensure packet number is consecutive for
fragments and drop the fragments if the check fails.

Change-Id: Ica24f65aff65ca58bb010c876f27964b5b2bae6a
CRs-Fixed: 2860242
2021-05-12 12:30:45 -07:00
Yeshwanth Sriram Guntuka
403bc635eb qcacld-3.0: Drop mcast and plaintext frags in protected network
Multicast frames should not be fragmented and plaintext
frags should not be reassembeld in protected network.

Fix is to drop mcast frags and plaintext frags received
in protected network.

Change-Id: I98cf0715f5832f2f86f86b79dbdbc3a7c86dbfd0
CRs-Fixed: 2860245
2021-05-12 10:34:49 -07:00
Gururaj Pandurangi
9996bc7175 qcacld-3.0: Remove feature flag WLAN_FEATURE_11W for pmf
Remove all of the conditional compilation for pmf since this
feature is mandatory for future scope from protocol point
of view.

Change-Id: Id3a2127e9ecb343ad2a0354dcbc331c22167d7fb
CRs-Fixed: 2852630
2021-03-18 00:39:42 -07:00
Surabhi Vishnoi
5fd71222a8 qcacld-3.0: Fix incorrect condition for TSO frags in pkt capture
The number of fragments in TSO packet are assembled incorrectly
due to wrong loop condition in packet capture mode.
Fix the condition to assemble all segments of TSO packet
correctly in packet capture mode.

Change-Id: Ifd7be13e56c12b2cb4e6a5000b355c9fa972962d
CRs-Fixed: 2877021
2021-02-25 11:43:22 -08:00
Karthik Kantamneni
153db6d0a5 qcacld-3.0: Fix race during peer deletion in roaming scenario
There is possiblity of peer being accesed in rx napi context,
when peer is getting freed up at same time from scheduler
thread context in roaming scenario.

To avoid this race free up the peer when unmap handlers received
from F.W for all the peer ids.

Change-Id: Ia0b1fcc6b56e91efe914ca431aeac6e83b773a81
CRs-Fixed: 2867382
2021-02-25 04:03:22 -08:00
Karthik Kantamneni
2d3be81051 qcacld-3.0: Fix MIC verification in helium family
Currently MIC verification is not proper for fragmented packets,
fix MIC verification for helium family.

Change-Id: Iac95c579287bafedf6521b38f2c628fd08cca72d
CRs-Fixed: 2869483
2021-02-03 05:41:26 -08:00
Qun Zhang
c07607873c qcacld-3.0: Update deficient_desc when the TX pool is replenished
It's needed to update deficient_desc count when the deficient pools
are replenished, otherwise, when there are multiple interfaces and
do intetfaces on/off stress test, it's possible some interfaces will
run out of system tx pool descriptors when do ol_tx_flow_pool_resize,
and other interface can't get any available tx descriptors.

Change-Id: I07ded6c7f39637f6f2734edac5add8fef7bb8cf3
CRs-Fixed: 2857659
2021-02-02 19:02:38 -08:00
Karthik Kantamneni
8c1447c31d qcacld-3.0: Add NAN UDP/TCP checksum offload DP cfg entry
Recently NAN UDP/TCP checksum offload INI is added
but corresponding DP cfg entry is missing.
Add NAN UDP/TCP checksum offload DP cfg entry.

Change-Id: I9c6549cbe4cb9e67a538c0743d99404b515e2006
CRs-Fixed: 2815904
2020-11-26 16:38:36 -08:00
Tiger Yu
f702106630 qcacld-3.0: Enable TSO/SG feature by the FEATURE_TSO/dp_sg_support
The hdd_set_netdev_flags enable the TSO feature regardless of the
FEATURE_TSO, which will cause the performance regression issue on
the non-tso supported chip.

Enable TSO feature based on the FEATURE_TSO, and enable the SG feature
separately by ini dp_sg_support for legacy chip to fix it.

Change-Id: I0fcb189069f0aa2069ae8427ad96a8db25a91a2f
CRs-Fixed: 2812953
2020-11-22 21:13:12 -08:00
Amruta Kulkarni
65fe69ff37 qcacld-3.0: Add support for STA + monitor mode
In mission mode, add support for virtual add/del monitor
mode interface. In addition to STA vdev, create and maintain
a new vdev for monitor interface.

Change-Id: I91ea8e56976cce92f9b1ae308d4bd0fb30815366
CRs-Fixed: 2818499
2020-11-19 22:45:53 -08:00
sandhu
a31cfcd002 qcacld-3.0: Add function to convert HW to qdf status
Enhance qdf tx rx to hw tx completion status mapping.
Add inline function to convert hw status to qdf
status. Add dummy argument to qdf_dp_trace_ptr function.

Change-Id: If225bf385a3ce12f354f761594bf3d51ff710a13
CRs-Fixed: 2810592
2020-11-19 20:39:02 -08:00
Guisen Yang
c169b214f9 qcacld-3.0: Check pointers for NULL before use
Some pointers returned from functions may be NULL, so fix these
issues to aviod some null pointer usage.

Change-Id: Ic2e801013d9edf1442b1317fe82718d2e89f9210
CRs-Fixed: 2772605
2020-11-12 16:53:51 -08:00
Srinivas Girigowda
04d156c944 qcacld-3.0: dp: Remove logs for cds_get_context() checks
cds_get_context() function already takes care of logging the
caller function name in case of any error.
Hence there is no need to add the error log again.
Getting rid of these unnecessary logs reduces driver memory footprint.

CRs-Fixed: 2816598
Change-Id: Ide7e1cacb3752f8e9e5797629549079bf4ab8557
2020-11-12 13:53:28 -08:00
Kai Liu
52aec7a272 qcacld-3.0: Enhance hang info feature
Use separate hang reason for case that lack of credit after suspend.
Meanwhile add hang buf offset check to avoid overflow.

Change-Id: Ic794d02672cd663598da66b9e75924c41b5ef0e8
CRs-Fixed: 2801343
2020-10-30 13:03:23 -07:00
Vevek Venkatesan
d9d707266a qcacld-3.0: fix the error in smmu_enable conditional check
Fix the error in smmu_enable condition check for IPA Tx buffer
and also add the flag to mark smmu map/unmap.

Change-Id: I1a9b768c6f17a76b7a857367f342ffbe82e48379
CRs-Fixed: 2793156
2020-10-09 09:43:14 -07:00
Guisen Yang
7608656e86 qcacld-3.0: Change ROME IPA pipe names
With IPA team's request, in order to match
the pipe setting in the ipa driver of linux
kernel 4.14, we need to change ROME IPA
pipes from IPA_CLIENT_WLAN1_CONS and
IPA_CLIENT_WLAN1_PROD to IPA_CLIENT_WLAN3_CONS and
IPA_CLIENT_WLAN3_PROD. Meanwhile change MCC pipe
to IPA_CLIENT_WLAN2_CONS. Also add one feature
flag to avoid affecting other SPs

Change-Id: I99dd442801b1278742c19e4565da2201e1303607
2020-10-07 15:16:18 -07:00
Vevek Venkatesan
bbcf12c70d qcacld-3.0: add cdp ops for IPA Tx buf smmu_unmapping
Add cdp ops for IPA Tx buf SMMU-S1 unmapping and
call unmap from ipa_uc_ol_deinit if IPA uc_loaded,
also assert if mapping/unmapping failed.

Change-Id: I79f293fcf5d6f02e3a01d6c8ff829f4ca87e76e8
CRs-Fixed: 2788811
2020-10-05 17:50:08 -07:00
Srinivas Girigowda
eab3348cb2 qcacld-3.0: dp: Remove logs for qdf_mem_malloc() checks
qdf_mem_malloc() function already takes care of logging the
caller function name and line number in case of any allocation error.
Hence there is no need to add the error log again.

Getting rid of these unnecessary logs reduces driver memory footprint.

Change-Id: If24f25fb61bda6f9cd18ec45c5ded2eb53748736
CRs-Fixed: 2781932
2020-09-25 12:59:55 -07:00