Commit Graph

16166 Commits

Author SHA1 Message Date
Nandha Kishore Easwaran
3a1a2dac52 qcacmn: Fix QUIC Copyright Year Markings
Fix QUIC Copyright Year Markings

Change-Id: I69e1fcc0d505930daa3726760ea1b8ba65f8ae9e
2022-01-19 04:30:16 -08:00
Nandha Kishore Easwaran
58351920f8 qcacmn: Disable interrupt for unused CEs
Add Disable interrupt flag for unused CEs in QCN9224.

Change-Id: I8eb175226a44f79f5e9d91ace4b0e4d32458bdc6
2022-01-19 04:30:11 -08:00
Amit Mehta
bfe03e92a3 qcacmn: Reduce MSI count for DP from 9 to 7
Currently, we are assigning 9 MSI Vector to DP.
But in some target available MSI Vector are less 
because of which they are unable to assign 9 MSI
Vector to DP.

So, to fix the issue reduces MSI requirement for
DP from 9 to 7 and mux DP interrupts.

Change-Id: I48da2d0e8921db3298903a398f981e5b45a60987
CRs-Fixed: 3111170
2022-01-19 03:03:27 -08:00
Balaji Pothunoori
ede155309e qcacmn: initialize variables to address whunt compilation
This change is to initialize the variables to address
whunt compilation issue.

Change-Id: Ib2234137e436f1ddfe1163aed6e1d4b291f19189
CRs-Fixed: 3110041
2022-01-19 03:03:22 -08:00
Manoj Ekbote
8f94e32594 qcacmn: Add QDF API for nbuf truesize
Added API to return size of nbuf including header and
data and variable data area

Change-Id: Ie707a18adab7f2e4407f4aa8c481cd86012011a3
2022-01-18 12:53:51 -08:00
Manoj Ekbote
7d4426b213 qcacmn: Use a memory limit for Tx monitor feature
To avoid any crash/issues due to low memory, a limit
can be specified by the user for each soc.

Change-Id: I5a54b2d8af3769042720f85d0759b487c44e8fcc
2022-01-18 12:53:46 -08:00
Sai Pratyusha Magam
48624fde82 qcacmn: Fix incorrect copyright markings
Fix incorrect copyright markings in wlan_crypto_global_api.h

Change-Id: Ifb64e410d43f33cbd377332fbd6ec703746824b6
2022-01-17 05:43:39 -08:00
Karthik Kantamneni
8ef76b5b38 qcacmn: Fix deleting unused timer in QCA6750 target
In QCA6750 target hif sleep timer is not used but timer
delete is performed during deinit path.

Fix this so that hif sleep timer delete operation is not
performed in QCA6750 target.

Change-Id: I54790f3b20af4f4b265ab37b593d300032f00fa5
CRs-Fixed: 3108047
2022-01-17 05:43:34 -08:00
Subrat Mishra
95a5d8be88 qcacmn: Define cdp api interface for dp_mon_stats
Add new CDP API interface to get monitor pdev rx stats.

Change-Id: Ifbe25c4b804135541e0fb938cc99bc2713dfb344
CRs-Fixed: 3084586
2022-01-17 02:14:44 -08:00
Subrat Mishra
0a5f55fb4a qcacmn: Add more stats to cdp_soc_stats structure
Add more stats to cdp_soc_stats interface structure to ship it to
userspace. Move soc, delay and jitter stats apis from dp_main.c to
dp_stats.c.

Change-Id: Idb7f8b706e8744350d7fb2e8802d9303b3f25b5c
CRs-Fixed: 3084586
2022-01-17 02:14:38 -08:00
Chaithanya Garrepalli
362e95bae6 qcacmn: Add NULL check in dp_mlo_get_soc_ref_by_chip_id
In dp_mlo_get_soc_ref_by_chip_id API add null check
for ml_ctxt

Also correct intraBSS code for mlo disabled cases

Change-Id: I25eb07e9ccd714ba819730c765dc07b00dd15482
2022-01-15 03:03:16 -08:00
Kiran Venkatappa
9d402b668b qcacmn: MLO Teardown sequence
Trigger MLO teardown and wait for response before proceeding with soc
power down.

Change-Id: Ie1d00408862459b0e5240ef3151a0d969ab65e80
CRs-Fixed: 3102143
2022-01-14 20:53:14 -08:00
Pavankumar Nandeshwar
8f62ddf128 qcacmn: Fix QUIC Copyright Markings
Fix QUIC Copyright Markings

Change-Id: I396830ab402318cd2385a5bed8dc3af373b8148b
2022-01-14 11:53:34 -08:00
aloksing
6143dc1b09 qcacmn: Add wmi command to enable probing all bw
initialize wmi command id and service id

Change-Id: I657860545af945794260689da7154aec14b91899
2022-01-14 10:54:22 -08:00
Chaithanya Garrepalli
5f1d523c46 qcacmn: Fix peer_id passed to mon peer API
Fix peer_id passed to dp_monitor_peer_tid_peer_id_update
API

Change-Id: I16516858abb64a1ff847197cf6a8cc4b64c0df52
2022-01-14 03:50:18 -08:00
chunquan
be297ae0ae qcacmn: Replace blacklist/whitelist with denylist/allowlist
Replace blacklist/whitelist with denylist/allowlist

Change-Id: Ic10f0bb187f44c00f07752cd859a08342a945628
CRs-Fixed: 3087605
2022-01-14 03:50:13 -08:00
Bing Sun
037561c0a4 qcacmn: Add a QCA vendor attribute to indicate ACS over EHT
Add QCA_WLAN_VENDOR_ATTR_ACS_EHT_ENABLED flag attribute to conduct ACS
for EHT mode. The driver can consider EHT specific parameters such as
puncture pattern for ACS when this flag attribute is indicated by
userspace.

Change-Id: I9cb0b7a6bc830a5f4f01a7a7fa5212cc6b2c3a95
CRs-Fixed: 3108987
2022-01-13 15:04:53 -08:00
Pavankumar Nandeshwar
c9f584b99f qcacmn: Handle failure cases in txrx_peer allocation
Handle failure cases in txrx_peer allocation and
return appropriate errors to the callers.

Change-Id: I51fb519af86344e078eabfcc3f2883522361e1d9
2022-01-13 13:04:29 -08:00
Harsh Kumar Bijlani
f4c7e777f0 qcacmn: Add APIs to get txrx peer, tgt peer and primary link peer
Add APIs to get txrx peer, tgt peer and primary link peer from peer
for both MLO enabled and disabled scenarios.

Change-Id: Ie48711972dd3eef35fdd7bf736e91bfce4cd41f3
CRs-Fixed: 3107160
2022-01-13 06:52:58 -08:00
Harsh Kumar Bijlani
8722ec5b68 qcacmn: Add support to set enhanced stats in pdev
Add support to set enhanced stats in pdev via cdp pdev set param
functionality.

Change-Id: I4c271dfc71511a0869a795c2adbb0e0eb55ba9d0
CRs-Fixed: 3108103
2022-01-13 04:54:27 -08:00
abhinav kumar
9c2ce46fc6 qcacmn: Allow FW to scan 6G chan based on RNR flag only
First host checks below two things in host scan request:
1. Userspace sets NL80211_SCAN_FLAG_COLOCATED_6GHZ flag
in host scan request.
2. At least one 6G channel is present in the host scan req.

If any of the above conditions satisfies, Host fills all
remaining (other than channel(s) present in host scan req)
valid 6 GHz channel(s) to scan requests and set the flag
FLAG_SCAN_ONLY_IF_RNR_FOUND for each remaining channel(s).

Host sends this updated channel list via WMI command
WMI_START_SCAN_CMDID_param_tlvs->channel_list for host scan
to firmware.

With this change, driver allows Firmware to scan 6G channels
based on RNR IEs only (for colocated APs reported by 2.4/5
GHz APs).

Change-Id: I2d9d2aac58bbc521b2476756d5919647bdc265cc
CRs-Fixed: 3103873
2022-01-13 04:54:22 -08:00
Rachit Kankane
dffef9958a qcacmn: enable SON target_if
Add WLAN_FEATURE_SON to enable SON target_if

Change-Id: Ib4bca0eb5813d1fdd7becf6705ab7129a26e26e5
CRs-Fixed: 3102441
2022-01-13 03:03:20 -08:00
Amruta Kulkarni
9d1cdbc568 qcacmn: Add MLO roaming callback api
Add MLO roam sync callback api for lfr3 mlo roaming.

Change-Id: I438e63765b0dbda736914fe0ca5e0bd20f96bb86
CRs-Fixed: 3021135
2022-01-13 01:11:50 -08:00
Rakesh Pillai
0972c896cb qcacmn: Enable WMI logging over CE7 for KIWI
Enable the configuration of CE7 to support
FW logging.

Change-Id: Idf103b987c0e5e2d31e7daebfb424cdd9c207610
CRs-Fixed: 3107397
2022-01-12 22:54:14 -08:00
Yu Tian
a20affa799 qcacmn: Avoid overwriting radiotap information in monitor mode
PHY related info. has been updated when processing PPDU status
in Monitor mode, but it's got overwritten uncorrectly when
processing RX_MSDU_START TLV in VHT mode. Change aims bypassing
the wrong update, when it's working in VHT mode.

Change-Id: I2c78db66bc7222e3eebf052fb6e57d6f9d859286
CRs-Fixed: 3108059
2022-01-12 22:54:08 -08:00
Himanshu Batra
49204da745 qcacmn: Clear MLO_STA_LINK flag when clearing MLO capability
Currently the MLO_STA_LINK flag is not getting cleared. If a connect is
received on a different link as assoc link, because of STA_LINK flag,
none of the link will be considered as assoc link.
Add fix to clear MLO_STA_LINK flag when clearing MLO capability.
And also clear the MLO_STA_LINK flag on handling pending connect req.

Change-Id: Iaf7c557786bac7754c4b33c80f0f92cb007870ae
2022-01-12 10:03:51 -08:00
Aakanksha Doda
d92a7a0776 qcacmn: Fix issues with rdkstats
The following issues are fixed with this change-
1. Sojourn stats were printing incorrect values
2. RSSI values were junk numbers

Change-Id: Ibed73cf370a309bf9db5baad37a0e8261c58463b
2022-01-12 05:34:00 -08:00
Chaithanya Garrepalli
3d9c419f95 qcacmn: Fix ML peer refleaks reported in wifi down
Delete MLO peer from primary SOC while ML peer delete

Change-Id: Ideb78964718699397a1fb5da22c28ec787c5bd0c
2022-01-12 05:33:55 -08:00
Namita Nair
09afbc7282 qcacmn: Handle unsupported EAPOL packet type
In function qdf_fill_wlan_connectivity_log, the unsupported EAPOL
packet types are not dropped.This results in setting the
log_subtype to invalid value zero and the log buffer being forwarded
to wlan_connectivity_log_enqueue. The fix is to drop the unsupported
packets by returning from the function.

The local variable log_buf,of type struct wlan_log_record, is not
null initialized.This could cause some of the  member elements to have
unexpected values.This fix is to null initialize the log_buf structure.

Update Qualcomm copyright to include year 2022

Change-Id: I651329fead1e42282d7811c32eea2359ba970527
CRs-Fixed: 3079947
2022-01-12 01:52:33 -08:00
Ashish Kumar Dhanotiya
1060f380f0 qcacmn: Add new self recovery reason QDF_STATS_REQ_TIMEDOUT
Currently there is no recovery reason for stats request failure.
With this change add QDF_STATS_REQ_TIMEDOUT for stats request
failure.

Change-Id: Ie9ae8259fc20b4d8829b760e818b6a1f9194a9d0
CRs-Fixed: 3106570
2022-01-12 01:52:09 -08:00
Varsha Mishra
64401977de qcacmn: Remove vlan tag from eapol in multipass
EAPOL frame should not have vlan tag when delivering to stack.

Change-Id: Ia961a96489345229d6ee2ea8c2105deb114c0ab5
2022-01-12 01:52:02 -08:00
Chaithanya Garrepalli
1e9b37b023 qcacmn: fix WHUNT compilation issue
Fix compilation issue on WHUNT with MLO
enabled in WCN7850

Change-Id: I57ff334e9cf47468c30bc6884a9ead0a65a92eb5
2022-01-12 12:16:59 +05:30
Aditya Sathish
877cf5ef7e qcacmn: Add QCA attribute for ACS puncturing bitmap
Add support for a new QCA attribute to pass the puncturing
bitmap as part of the DO_ACS vendor command.

CRs-Fixed: 3102366
Change-Id: Ic0e54d82e48bae695baf3be4fd388ec15f81a416
2022-01-11 06:53:14 -08:00
Amir Patel
484c917fbf qcacmn: Fix WKK monitor compilation issues
Fix WKK monitor compilation issues

Change-Id: I04bd89341e61bdcef59ecb03baa6cf53ca970cbe
CRs-Fixed: 3100286
2022-01-10 23:54:10 -08:00
Amir Patel
3abc7d0459 qcacmn: Add API to free sw mon_desc to pool
Add API to free sw mon_desc to pool

Change-Id: Ibc10c7dc9a41d4c972471683b7232c76d46c5109
2022-01-10 23:54:04 -08:00
Amir Patel
76c23ddc4b qcacmn: Add RxMON filter config support
Add RxMON filter config support for WKK

Change-Id: I2f2972d1bc6f6d0b5c8db69bdf21b22854f35fa4
2022-01-10 23:53:57 -08:00
Amir Patel
2219ac036c qcacmn: Use appropriate srng id in htt_srng_setup and ring_selction_cg
Use appropriate srng id in htt_srng_setup and ring_selction_cg
for WKK monitor

Change-Id: Ibe04f51f787e6fa3fe0b9d8a8c6a54a33f673139
2022-01-10 23:53:51 -08:00
Naga
ca09c6cd98 qcacmn: Change BE monitor soc and pdev assignment with macro
Change BE monitor soc and pdev assignment with macro

Change-Id: I0bf47391dea37461cc8356cf3b41c20af0516662
CRs-Fixed: 3096222
2022-01-10 23:53:45 -08:00
Naga
315229c57c qcacmn: Add buffer mgmt for monitor vap
Add buffer mgmt for monitor vap creation
and deletion.

Change-Id: Iabe4c49e1395fa44368a13c3c178e1fd1467e9b5
CRs-Fixed: 3087839
2022-01-10 22:14:12 -08:00
Naga
a78c5cfb98 qcacmn: Filter settings for monitor 2.0
Filter setting for monitor 2.0

Change-Id: I008c38977952767b9901705f0cf667178f38a786
CRs-Fixed: 3087759
2022-01-10 22:14:07 -08:00
Naga
902e67deb9 qcacmn: Fixes for wkk monitor bringup
Fixes for initial wkk monitor bringup in emulation.

Change-Id: Ic7b05b8822ef68daee7dd614fcac7a7de7b9b3fa
CRs-Fixed: 3087563
2022-01-10 22:14:01 -08:00
Chaithanya Garrepalli
32bc004766 qcacmn: Fix reo register config for BAR frame routing
Do not configure BAR frame routing keep routing default
to WBM release

Change-Id: I349e25030bf6e018385dd18e68d4b020b928f152
2022-01-10 07:33:05 -08:00
Naga
7798784bc5 qcacmn: Fixes for compilation issues
- Fixes for compilation issues after enabling
  monitor 2.0 support.
- change copyright year for all files in the chain.

Change-Id: I885e257bd8ca83850656d8a1f408c1bc34920d7a
CRs-Fixed: 3086483
2022-01-10 06:24:34 -08:00
Rakesh Pillai
165f79e802 qcacmn: Fix compilation error in whunt
Fix whunt compilation error for QCA6390

Change-Id: Ice806612552fad2ab3f1e1298e449f788f61be3d
CRs-Fixed: 3104503
2022-01-10 05:13:09 -08:00
Bing Sun
385e355013 qcacmn: Add vdev mlme API to get/set dfs cac duration
For MCC, dfs cac duration is saved in vdev mlme object. Add API to
get/set dfs cac duration from/to vdev mlme object.

Change-Id: Iafcf382f884fe453bd4cc4c733f44f43ab00df69
CRs-Fixed: 3103634
2022-01-09 23:10:14 -08:00
Himanshu Batra
cc46006b7d qcacmn: Use correct variable to iterate reo dest rings
Currently the MAX_REO_DEST_RINGS is used to iterate reo dst ring. If the
MAX_REO_DEST_RINGS is more that no. of reo dest ring initialize, the
print is seen on console as hal_ring_hdl will be null for extra
iterations.
Add fix to use correct variable to iterate reo dest rings

Change-Id: Ibcb44dda49696a7bb029b49ce3d50acd8741590a
2022-01-09 23:10:09 -08:00
Shiva Krishna Pittala
a739a0cabb qcacmn: Add support to extract FFT size capabilities
WMI_SPECTRAL_CAPABILITIES_EVENTID event will be sent by the FW to
indicate different capabilities of the Spectral HW.
Add support to extract the FFT size capabilities from this event.

Change-Id: I9640fa51e4249b9d1c2d9d3ac5da7f1d56c9d006
CRs-Fixed: 3098880
2022-01-09 23:10:04 -08:00
Himanshu Batra
003a476648 qcacmn: Use QAL API for RCU lock
Use QAL API for RCU lock to avoid GPL symbol usage in host driver

Change-Id: I0d71cc60072b6e3e3e7b067a522f2bdb38c8f457
2022-01-08 22:53:16 -08:00
Pavankumar Nandeshwar
d47133aed9 qcacmn: Avoid creating txrx_peer in peer reuse case
Avoid creating txrx_peer in peer reuse case when
peer setup is called.

Change-Id: I862fb61e71a857670869f0e6b2374a3dc2da54f0
2022-01-08 12:56:36 -08:00
Neha Bisht
15b88ae15e qcacmn: Prefetch Tx HW desc, SW desc and SKB in pipeline fashion
Prefetch TX HW desc, SW desc and SKB in pipeline fashion in Tx.
completion path.
This improves the UDP DL CPU idle% by ~4.5%

Change-Id: I48096e996cd835321ce2681d3981fa94c7189f54
2022-01-08 06:09:15 -08:00