提交線圖

19432 次程式碼提交

作者 SHA1 備註 日期
Amit Mehta
bc2323fc08 qcacmn: Only allow connectivity logging for STA mode
Currently connectivity logging is done for all opmode
but logging should be done only for STA mode.

So to fix the issue add check for opmode and skip
connectivity logging if opmode is not STA

Change-Id: Ie6175a02c8167f5ebfd81553837206640431f701
CRs-Fixed: 3515365
2023-06-05 08:33:55 -07:00
aloksing
a0805fb4d0 qcacmn: Fix double free of frags
When decap type is invalid, freeing nbuf and while next monitor
buffer tlv picking last nbuf from queue. which has allocated frags
and valid data. expecting MPDU END TLV for previous mpdu
before monitor buffer tlv to allocate new nbuf.

Set rx_hdr_rcvd to false when we receive invalid decap type.

CRs-Fixed: 3503694
Change-Id: I97ede9e52df580769b78afc767ba9528914b3ea5
2023-06-05 03:40:10 -07:00
sivaraman
5ca9d1b8b4 qcacmn: Update the CFR streamfs buf size for Miami
Update the CFR streamfs buf size for Miami

Change-Id: Ie8ddc32161e9c9eafc258da8fbb0c2cd9173cbe7
CRs-Fixed: 3409861
2023-06-05 01:33:34 -07:00
Rakesh Pillai
b0656c1bf0 qcacmn: Fix cdp api to get hal_soc handle
Fix the CDP API to get the hal_soc handle.

Change-Id: Ifdc33e1499a8269aa63d1f059b086c0dd4d8c142
CRs-Fixed: 3512047
2023-06-03 13:44:01 -07:00
Rakesh Pillai
3fab5bd196 qcacmn: Add CDP support to set vdev mac address
Add CDP API support to set vdev mac address.

Change-Id: I3dc6ba5abda04a3b566b8c6c1dd9ff5daa80f362
CRs-Fixed: 3517762
2023-06-03 06:57:04 -07:00
Sai Rupesh Chevuru
b4be829c2e qcacmn: cleanup the link peers before mld peer deletion
During the mode0 target recovery cleanup the link peers
before ml peer deletion.

Change-Id: Ie0037056c2b44f50a64787fa75b5c2d8690e4224
CRs-Fixed: 3515517
2023-06-03 04:27:47 -07:00
Karthik Kantamneni
fb80921508 qcacmn: Sync DP soc/pdev cfg with profile
Sync DP soc/pdev config items with profile selected.

Change-Id: If7fd67117ac512b57934b2d30c00ce8422130970
CRs-Fixed: 3504105
2023-06-02 16:51:02 -07:00
Sachin Kohli
46fcdcfef8 qcacmn: Adding support for IRQ_DISABLE_UNLAZY flag for PPEDS interrupts
Support for setting and clearing the IRQ_DISABLE_UNLAZY flag
during registering and freeing of PPEDS interrupts respectively.

Change-Id: I4a512e434315d2c981e890661adb5686bdb563bc
CRs-Fixed: 3509601
2023-06-02 16:50:53 -07:00
syed touqeer pasha
131126e7b3 qcacmn: Add correct ring number offset for PPE2TCL ring
Target 6432 - Add the correct ring number offset for PPE2TCL ring.

Change-Id: I057fb9ea959078fb0cb49cb65d8600e7aa64f22c
CRs-Fixed: 3512321
2023-06-02 16:50:43 -07:00
Edayilliam Jayadev
43568bb331 qcacmn: Remove zero duration assert for FW consumed mgmt frames
FW drops management frames with zero duration and indicates the same
via FW consumed management Rx WMI event. Hence remove the zero duration
assert for FW consumed management frames.

CRs-Fixed: 3512136
Change-Id: Ifda8831f46860cef0d28a9767a4a18f33e21ac68
2023-06-02 16:50:33 -07:00
Sachin Kohli
2c3744a897 qcacmn: PPEDS support for QCN6432
PPEDS support for QCN6432

Change-Id: I37ae6dc66eb29ccfe1f3e7bff3cc9c627e961782
CRs-Fixed: 3512941
2023-06-02 16:50:21 -07:00
Sachin Kohli
1d0a2d4996 qcacmn: FSE support for QCN6432
Added some support for FSE.

Change-Id: I55c64a15a3803b7999d61e6dc4e93adabd8111c8
CRs-Fixed: 3512941
2023-06-02 16:50:12 -07:00
Mukul Dhiman
24fcc62ef2 qcacmn: Fix ol_stats enable if MLO is disabled for BE platforms.
On BE Platforms, currently if MLO is disabled, ol_stats does not
get enable on any soc. Fix is to enable ol_stats on particular
soc if MLO is disabled

Change-Id: I715f06776eda9539f68f440f86e3a403a6b14fa5
CRs-Fixed: 3508711
2023-06-02 16:50:02 -07:00
Aniruddha Mishra
6324e57636 qcacmn: Read MSD values from FW
Get MSD values using FW provided getter functions
and store it

Change-Id: I894ffabd5d46c038c8c552dd670199b94ad6a16a
CRs-Fixed: 3500478
2023-06-02 16:49:52 -07:00
Liangwei Dong
6f9b6db8f8 qcacmn: Add northbound notification for link reconfig
When link removal TBTT expires, indicate the link removal
info to upper layer by vendor event.

Change-Id: Idf882cb22ccbd1c8b4ad6f03c6d27980cdbaef50
CRs-Fixed: 3481313
2023-06-02 16:49:42 -07:00
Shwetha G K
6bce625a5b qcacmn: Fix invalid RSSI issue
For QCN9160 target, uCode reports the dBm converted values
in status tlv. Hence, remove conversion at HOST.
Populate proper chip type for QCN9160's RCC.

CRs-Fixed: 3509733
Change-Id: I8422f661161337cdce5ef8001fb502aebdbe0dc2
2023-06-02 16:49:32 -07:00
KARTHIK KUMAR T
6c446e7547 qcacmn: add recommended err/debug function
add recommended err/debug function

Change-Id: Icc6597991f4c05abe1669ae4c5822ce8dea641b6
CRs-Fixed: 3500671
2023-06-02 16:49:22 -07:00
Jinwei Chen
5e84f6fe25 qcacmn: use right TLV tag header length for peach
In monitor mode, TLV tag header length should be 4 bytes for peach,
fix it.

Change-Id: I78beca168add8626c0fa99bfa407101ce4d36b30
CRs-Fixed: 3512227
2023-06-02 16:49:12 -07:00
Shashikala Prabhu
6bb6eb3b88 cmndev: Initialize the WMI pending command after target recovery
In the case of SSR, the WMI layer callbacks will not be called as part of
tx completion. Hence, the nbuf and HTC packets are freed in
send_packet_completion(). In this case, the WMI pending command count is
not decremented. During target recovery, this wmi pending command will be
increasing eventually, and assert will be seen when pending commands reach
MAX defined value.

To fix this, initialize the WMI pending commands to zero after the target
recovery.

Change-Id: I56d38d7064bc089725d5453883c22f572e51e078
CRs-Fixed: 3513491
2023-06-02 16:49:02 -07:00
abhinav kumar
fe2425cddc qcacmn: Trigger wide band scan only for HMT
Only in the case of HMT, the host sets the
'scan_f_report_cca_busy_for_each_20mhz' scan flag
in scan request.

Trigger wide band scan also only if
scan_f_report_cca_busy_for_each_20mhz flag is set.

Change-Id: I9418d916f1927798ad56460b4c799100fc786378
CRs-Fixed: 3515959
2023-06-02 16:48:51 -07:00
Rahul Gusain
f5f76bb000 qcacmn: Remove NDP_HOST_UPDATE processing
Firmware sends NDP_HOST_UPDATE event as an immediate response to this
request and starts cleaning peers one by one. Once an NDP session is
ended (indicating NDP_END to peer + internal cleanup), firmware sends
NDP_END_IND to host.
Currently, host driver stops the wait timer and change state from NDP
end to disconnected upon receiving the NDP_HOST_UPDATE. But firmware
might still be in the process of NDP cleanup. As the NDP_END_ALL
context is unblocked, driver may send NAN disable request to firmware.
This may cause inconsistency in firmware state machine and firmware may
drop the ongoing NDP_END request. So, peer doesn't get the NDP_END frame
in such cases.
Unblock the NDP_END_ALL-wait call only upon last NDP_END indication to
avoid such issues. This change moves the major functionality of
NDP_HOST_UPDATE processing to last NDP_END indication. Cleanup/remove
the processing of NDP_HOST_UPDATE as it's not needed anymore.

Change-Id: I00e73d211de4626484ffb2483c00adce1a7302c1
CRs-Fixed: 3512923
2023-06-02 16:48:41 -07:00
Venkateswara Swamy Bandaru
f4f5f1cb88 qcacmn: Add API to authorize/deauthorise mac address
Add APIs to authorize and deauthorise mac address for
EPCS feature.

Change-Id: I69ac46fe59de85ac57a6142b6a1ed710e02a8cca
CRs-Fixed: 3510154
2023-06-02 03:34:01 -07:00
Venkateswara Swamy Bandaru
2a20dc67d1 qcacmn: Update Priority access ML IE parsing
Update Priority access ML IE processing with below.
1. Check for ie header before updating sub elements
2. Add WME vendor IE parsing support

Change-Id: If479f95517946511d5e94feadf92a10c61efd2a6
CRs-Fixed: 3508861
2023-06-02 03:33:49 -07:00
Sai Rupesh Chevuru
0cdd3f48a7 qcacmn: Do not flush SLO peers in mode1 recovery
Do not flush SLO peers in mode1 recovery.

Change-Id: Ie2f9d07943a48c21dd786afe0421672b1315f3bb
CRs-Fixed: 3512377
2023-06-01 23:19:36 -07:00
Karthik Kantamneni
7990bb266d qcacmn: Add cdp params to configure soc/pdev cfg items
Add soc/pdev level cdp config params, so that these can be used
to get and set config context items.

Change-Id: I6cfeafb4333bf2f267121dce37b64f22cb86e98c
CRs-Fixed: 3502588
2023-06-01 07:30:59 -07:00
Liangwei Dong
94cb877e2a qcacmn: Add QCA vendor command to indicate STA MLD setup links removal
Add a new vendor command and attributes to indicate STA MLD setup links
removal.

Change-Id: If5dca34fa533fa76a8a1e8af456e3c893affbba0
CRs-Fixed: 3510765
2023-06-01 05:14:52 -07:00
Gururaj Pandurangi
d05a09b4e5 qcacmn: Add vendor attributes for forcing MLO power save and STR TX
Add vendor attributes for EHT testbed STA configuration.
This includes enabling STR MLMR mode and forcing power save
on active MLO links for a defined number of beacon periods.

Change-Id: Ie1808319c9e05901a996d122cc5afeb45bc07ce5
CRs-Fixed: 3497681
2023-06-01 05:14:39 -07:00
Gururaj Pandurangi
6ef577c4fb qcacmn: Add vendor attributes for EHT OM control, EMLSR padding delay
Add vendor attributes related to MLO and EMLSR mode
capability configuration for EHT testbed STA. It includes
EHT OM control support and EMLSR padding delay configuration.
Also, generalise the naming of HE OMI control enumeration to
OMI control as it now consists of both HE and EHT OMI control
fields.

Change-Id: I31f4935d59356f67a8ca0f065001325bafb3474a
CRs-Fixed: 3497673
2023-06-01 05:14:20 -07:00
KARTHIK KUMAR T
cbf0adf63f qcacmn: add recommended err/debug function
add recommended err/debug function

Change-Id: I8a943582bc88c617d257f313c0cd80bb4a3ca8bc
CRs-Fixed: 3499081
2023-06-01 02:58:51 -07:00
Shwetha G K
06106258e5 qcacmn: Gain 62, 63 & 64 support for 11be targets
11be target support 65 gain values from 0 to 64.
Add changes to support the same.

Change-Id: I4239683ca7e49b2cc8c5de7b0a719e27a74b8494
CRs-Fixed: 3513135
2023-06-01 02:58:40 -07:00
Adwait Nayak
8ba7bd7ab8 qcacmn: Hal specific changes for TXMON in QCN6432
Hal specific changes for TXMON in QCN6432

Change-Id: I33f60b4891fce0334b8f649f0066deafd1c5e322
CRs-Fixed: 3500892
2023-05-31 23:38:55 -07:00
Nandha Kishore Easwaran
b88e368419 qcacmn: prefetch only required fields in skb
Remove prefetch of data + 128 since skb fields in that offset
are not usied when processing. Also, prefetch next->data, so that
there is no cache miss.

Change-Id: Ida9fc7e4db86e181de82acb2364dd63d37d51e2c
CRs-Fixed: 3505042
2023-05-31 23:38:46 -07:00
Vijay Raj
794da8760c qcacmn: Add WMI_PEER_CONFIG_VLAN_CMDID support for vlan config
Add WMI_PEER_CONFIG_VLAN_CMDID support for to vlan
configuration to FW.

Change-Id: I2f6d15448bb9b2568bdafa21a2c9bca94a915622
CRs-Fixed: 3478611
2023-05-31 21:21:01 -07:00
Surya Prakash Sivaraj
0240a195f9 qcacmn: Include FT-SAE-SAE-KEY AKM as WPA3 AKM
Include WLAN_CRYPTO_KEY_MGMT_FT_SAE_EXT_KEY as an
WPA3 AKM in WLAN_CRYPTO_IS_WPA3()

Change-Id: I3a7fcaf95ad2e132d8c650c3ffce9ba4b9849705
CRs-Fixed: 3512592
2023-05-31 19:08:33 -07:00
Shashikala Prabhu
925a2a3d1c qcacmn: Define umac reset API under 11BE MLO compile time macro
dp_umac_reset_is_inprogress() unknown symbol issue is seen for the customer
profile. The definition of this API is present in dp_mlo.c file which is
complied when WLAN_MLO_MULTI_CHIP compile time macro is enabled.
For the customer profile, DP_UMAC_HW_RESET_SUPPORT is enabled and
WLAN_MLO_MULTI_CHIP is disabled. Hence unknown symbol issue is seen.

To fix this issue, call dp_umac_reset_is_inprogress() defined in dp_mlo.c
file if DP_UMAC_HW_RESET_SUPPORT, WLAN_MLO_MULTI_CHIP and
WLAN_FEATURE_11BE_MLO are defined.

Change-Id: Ibc91ff73595bc502e970375f59515a2a523e19b2
CRs-Fixed: 3512322
2023-05-31 19:08:23 -07:00
Himanshu Batra
b7ad8efcf9 qcacmn: Add null check for connect req while handling deferred connect
Add null check for connect req while handling deferred connect

Change-Id: Iea54005240e5f8608d8da655e8f0fbc0d535291e
CRs-Fixed: 3506588
2023-05-30 23:56:16 -07:00
Priyadarshnee Srinivasan
23421e9478 qcacmn: Allow AP to come up on radar channel if punctured
Add an API dfs_is_radar_on_punc_chan() which determines if
radar is found on a punctured channel and if so, does not mark
the channel as radar.

CRs-Fixed: 3504792
Change-Id: I5b38499baa794138f94898a24918eedc91f314e9
2023-05-30 16:56:49 -07:00
Venkateswara Swamy Bandaru
3e0b45fc11 qcacmn: Add priority access ML IE support
Add support to parse priority access multi link IE.

Change-Id: I7a226e0fd1a4d229d721244aeb675e1c09cc5ed3
CRs-Fixed: 3490404
2023-05-30 16:56:39 -07:00
Krupali Dhanvijay
6fdf8a4a53 Revert "Revert "qcacmn: Fix low TPC power for vendor DTPC IE""
This reverts Change-Id: I52660d70cfa752114e2fa7e2b3c5f55e93e1a453

Change-Id: I46943765fc47a62c94dddddfbe2522c42e218dc4
CRs-Fixed: 3387238
2023-05-30 16:56:28 -07:00
Yeshwanth Sriram Guntuka
d2b4b226d4 qcacmn: Use prealloc multi pages for direct link CE dest buffers
The IOVA for the buffers that are attached to the direct
link receive copy engine need to be contiguous for optimal
memory mapping on ADSP.

Fix is to use multi pages prealloc when posting buffers
for direct link receive buffer.

Change-Id: Ieb253bd3c1b6550e4c1c63cd587993891ac817f2
CRs-Fixed: 3502633
2023-05-30 08:19:24 -07:00
Ashish Kumar Dhanotiya
a82c7a6227 qcacmn: Create new ll_sap component
Add enums for ll_sap component.

Change-Id: I17011aa35bf0c99adb2b8b6ef60ea014fc1bbe37
CRs-Fixed: 3482575
2023-05-30 06:06:20 -07:00
Sai Rupesh Chevuru
764bbf4192 qcacmn: clear the peer ref from obj_map during soc detach
In the case of mode1 target recovery a single soc can go down,
as part of obj_map detach clear the peers if any exists.

Change-Id: I977a152eafe6659b951018f19cf2afc2431e7713
CRs-Fixed: 3512361
2023-05-30 06:06:10 -07:00
Rakesh Pillai
01e112b3a8 qcacmn: Fix compilation error for TX multipass to repeater
In case when repeater is not supported for TX multipass,
there is a compilation error due to implicit definition of
dp_tx_multipass_send_pkt_to_repeater.

Fix this compilation error by adding a stub function.

Change-Id: Iad5d19d1d72fc0d2594c893f610de8647308bce0
CRs-Fixed: 3511618
2023-05-30 06:06:01 -07:00
Naveen S
1aacf20138 qcacmn: Fix for qdf spinlock destroyed twice or never created
Fix for qdf_spinlock_destroy being destroyed twice or never created.

Change-Id: Id2a471c7f1efbdba5b31dfc106263c587dae2c1a
CRs-Fixed: 3471529
2023-05-30 02:58:03 -07:00
Naveen S
450a3d2fa4 qcacmn: Fix for qdf spinlock destroyed twice or never created
Fix for qdf_spinlock_destroy being destroyed twice or never created.

Change-Id: Ib45843ecd1c859be112fb75d218aa3d01e6ccdcf
CRs-Fixed: 3471529
2023-05-30 02:57:53 -07:00
Naveen S
78a6dc3b84 qcacmn: Fix for qdf_get_log_timestamp_lightweight not being defined
qdf_get_log_timestamp_lightweight function is defined only when
ENHANCED_OS_ABSTRACTION is not enabled, defining it when
ENHANCED_OS_ABSTRACTION is enabled as well.

Change-Id: Ia146feed5536a7b99653d7690f3204e6cbaf3f4c
CRs-Fixed: 3471529
2023-05-30 02:57:44 -07:00
Naveen S
d8890ce513 qcacmn: Fix return value in qdf_usecs_to_log_timestamp function
qdf_usecs_to_log_timestamp() was returning the remainder value
of do_div operation instead of the quotient. Now fix has been
made to return the correct value.

Change-Id: I6c7041b4a837b311f63616aff23bf2a20dbe7adb
CRs-Fixed: 3471529
2023-05-30 02:57:34 -07:00
Zhiwei Yang
eb95c8b60f qcacmn: Correct spelling errors
Correct spelling errors
s/QCA_PADDR_CHECK_ON_3TH_PLATFORM/QCA_PADDR_CHECK_ON_3RD_PARTY_PLATFORM

Change-Id: I92e22fb116e4505c43c604a86a90ed507a277ef4
CRs-Fixed: 3462780
2023-05-29 20:44:02 -07:00
Karthik Kantamneni
8487e8e057 qcacmn: Add new set and get APIs to manage cfg items
Add new set and get APIs for cfg items so that
those cfg items can be managed from the external
components.

Change-Id: I52eb747fc6c544cfe43273c3b8b0fcc27b5a4a5f
CRs-Fixed: 3502582
2023-05-29 18:27:12 -07:00
Zhiwei Yang
617367f8d2 qcacmn: Fix txrx_stats not completely cleared
In some mode txrx_stats can't be cleared completely such as NDP.
we need to iterate each vdev and clear their tx/rx stats.

Change-Id: Iab45742dbe914b7354ad5593d7ee14b9e109cef6
CRs-Fixed: 3475177
2023-05-29 18:27:01 -07:00