Commit Graph

10165 Commitit

Tekijä SHA1 Viesti Päivämäärä
Vivek
7d38880a19 qcacmn: Enable rate limiting on for prints in interrupt context
The current print rate limiting for prints to console is 
for all contexts.
There are some debug prints which come to console via work queues
which we don't want to rate limit and only rate limit coming via 
interrupt context or bottom halves which causes 
FW backpressure due to excessive prints.

So rate  limit prints coming to console if in 
interrupt context or bottom halves

CRs-Fixed: 2853590
Change-Id: I867b2c0d17b54037ee45eb6b7871a16c2668d7ba
2021-01-29 00:04:31 -08:00
Vivek
5589f598a5 qcacmn: Abstract the qdf_in_interrupt API
The qdf_in_interrupt API was defined in the internal
Linux util file.
Move the API from internal to qdf_util.h and provide
the appropriate abstraction

CRs-Fixed: 2853590
Change-Id: I512155776275684223c1901d789853d2529fcc83
2021-01-29 00:04:27 -08:00
Bapiraju Alla
2bd0e399d9 qcacmn: Fix compilation issues when WLAN_DEBUGFS feature is disabled
Fix compilation issue when WLAN_DEBUGFS feature is disabled.

Change-Id: Ifb186212e4d50f79f3492e194bbe82e3ed735ff7
CRs-Fixed: 2865197
2021-01-29 00:04:23 -08:00
Rakesh Pillai
783f811315 qcacmn: Send ring sel cfg to configure rx pkt tlvs offset
Currently the FW configures the mac with appropriate
offsets for rx pkt tlvs using the structure defined in
te FW and the host does not send the ring selction config
HTT message. This can create a problem when FW stops subscribing
to tlvs or changes its rx pkt tlvs offset.

Fix this by configuring the rx pkt tlv offsets via HTT
ring selection config message.

Change-Id: I1a2865f91b34dd7bda1af8651d7831097dac0bee
CRs-Fixed: 2860504
2021-01-29 00:04:19 -08:00
Vijay Krishnan
63f4a150bb qcacmn: Debug prints to check Average params
During DFS_SPOOF_FAILURE Check, the reason for failure is unknown.
So for debugging analysis purposes, add debug prints to print the
average params that are sent to FW.

CRs-Fixed: 2847047
Change-Id: If1e20352f62f4286396a9f93f49c528bbf38f95e
2021-01-28 21:57:15 -08:00
Ruben Columbus
33c340b945 qcacmn: reinitialize frequency even with 0 for cypress
mu code is not sending frequency in top 16 bits of tlv.
this check makes sure not to check for freq 0 and still be able to use
channel to generate freq.

Change-Id: If18c400e51bc41f8fec4fd50bdd180adfd79e578
2021-01-28 13:47:55 -08:00
Shwetha G K
2edfcb793f qcacmn: Change mgmt_rx_event_params status type to uint8_t
Change mgmt_rx_event_params status type to uint8_t

Change-Id: I02e5cc82248266ee7fc006373a8c0923946744b0
CRs-Fixed: 2850283
2021-01-28 11:38:11 -08:00
sheenam monga
3dbaf035c3 qcacmn: Remove unused api reg_chan_to_freq
Usage of api reg_chan_to_freq is replaced
with wlan_reg_legacy_chan_to_freq. So remove
unused api reg_chan_to_freq.

Change-Id: Ic14d5204c68698ef4cfd5953cf511503b211d461
CRs-Fixed: 2853570
2021-01-28 06:19:49 -08:00
Kiran Venkatappa
53d0aec26d qcacmn: Set error code when ce_init fails to alloc ce_state
Set proper error code when ce_state creation fails. Sending success from
here results in inconsistent state of CE data structures resulting in
invalid access. Send failure as return so that proper handling is done
by the caller.

CRs-Fixed: 2855116
Change-Id: I9c063760656a8125e627aaa62b309a2bb4c0ac6f
2021-01-28 06:19:45 -08:00
sheenam monga
5743559888 qcacmn: Remove utils_dfs_bw_reduced_channel
Remove utils_dfs_bw_reduced_channel as this
function is not used by MCL or WIN.

Change-Id: I042578fea76cd845b90f240fa3e814e50f2eaf5b
CRs-Fixed: 2859799
2021-01-28 06:19:41 -08:00
Debasis Das
3c30b6dd2b qcacmn: Update WMI to use non-inline OS abstraction API's
Use non-inline OS-abstraction APIs to avoid direct call to
OS APIs in wmi.

CRs-Fixed: 2742480
Change-Id: Ic87a8e74ba7f8c0095821b0dd2e21f8eecb6833f
2021-01-28 06:19:38 -08:00
Chaithanya Garrepalli
a912add6c3 qcacmn: Fix duplicate tx buffer issue in send multiple
In tx send multiple API stop processing of msdu_info
when next segment is NULL

Change-Id: I9bc6a90987bb03c86b110d9398bc0188218a348d
2021-01-28 04:18:24 -08:00
Chaithanya Garrepalli
b2a9c0155b qcacmn: set nbuf next to NULL before calling ME convert API
ME code calls dp_tx_send_msdu_multiple API for Tx the converted
unicast packets. Set nbuf next to NULL before calling ME
convert API to avoid Tx of nbuf->next multiple times

Change-Id: Id063e227b56c494108dc23bd2fdbdc9c085ba4ab
2021-01-28 04:18:19 -08:00
Jianmin Zhu
7630ff783b qcacmn: Fix delay when request dp stats when RTPM suspended
When RTPM suspended, wlan_hdd_cfg80211_stats_ext_request and
dp_peer_rxtid_stats are called to get tx rx status, dp and ring
spin_lock_bh is held, if RTPM suspended, printk happens in
hif_pm_runtime_get which consumes 1 ms. In dp_peer_rxtid_stats,
REO cmd CMD_GET_QUEUE_STATS and CMD_FLUSH_CACHE are called for each of
17 tid, so total 34 printk delayed 34 ms.

To fix it, disable prink in hif_pm_runtime_get when called in
dp_peer_rxtid_stats.

Change-Id: If043d6772e337e42a5478de17480253f45d779c6
CRs-Fixed: 2858534
2021-01-28 04:18:14 -08:00
Shwetha G K
40b24b9e5d qcacmn: Ensure the CFR period is multiple of 2ms
Change the minimum CFR periodicity from 0 / 10ms to 0 / 2ms,
and ensure that the period value is multiples of 2ms.

Change-Id: I9112e47d21cbb40c83852e404bac3ce1b48897a4
CRs-Fixed: 2862591
2021-01-27 19:11:41 -08:00
Mainak Sen
059ed74e8b qcacmn: Placeholder for peer mesh latency changes
Add support to update per peer latency parameter
from datapath

Change-Id: I1096374ebd3aeb5dc11759f1512cdee744e170c6
2021-01-27 00:27:00 -08:00
Ruben Columbus
01fb814b7f qcacmn: changing 32 bit timestamp to 64
expected 64 bit timestamp and making change in header file accordingly

Change-Id: I6258188f1e819592e2dab7136d47ddca8a45055c
2021-01-26 04:06:28 -08:00
Ruben Columbus
2864444839 qcacmn: copying over mcs for delayed frames
mcs is copied over to already in used ppdu_desc
this prevents ppdu_desc to increase lower mcs counts during stats
process

Change-Id: Iec68438a86359ec791302ecf2eeaec4fbd941632
2021-01-26 01:36:40 -08:00
Karthik Kantamneni
93f7aa1869 qcacmn: Fix DBR srng undefined address passed to F.W
DBR srng details are not sent properly to F.W via WMI_DMA_CFG_REQ
msg, this leads to F.W accessing undefined address.
Fix this by passing DBR srng details properly.

Change-Id: I15b393ad809dc0757e3637558f0bddd05530149d
CRs-Fixed: 2861621
2021-01-25 17:00:49 -08:00
Mainak Sen
16c8160755 qcacmn: Mesh TID latency configuration for Pdev/Vdev/Peer
WMI changes for Mesh low latency support for pdev/vdev/peer

Change-Id: Id2bf0a9b5f121ca6e91f47c209a4b5271952147f
2021-01-25 02:18:03 -08:00
Srinivas Dasari
c69a4facac qcacmn: Get WAPI concurrency capability from firmware
Firmware advertises service capability WAPI_CONCURRENCY_SUPPORTED
if it supports other security modes when WAPI is active. Get the
same from service capabilities to decide whether to accept a
new concurrent connection or not.

Change-Id: I718503e52be2dda8ebd440f5a68b496d846b6ffc
CRs-Fixed: 2858770
2021-01-25 00:06:19 -08:00
Abhishek Singh
fb8d6c3859 qcacmn: Fix unlink bss is success case
In connection success case the unlink BSS is not required, so
add the status check.

Change-Id: If5e2d02b37865267a096f01f0835bdccbc8e1c3d
CRs-Fixed: 2860102
2021-01-22 20:52:19 -08:00
Aditya Kodukula
da6941915d qcacmn: Use wmi_info level to log suspend type
Suspend type log is very critical for debugging wow related
issues, and hence log this using wmi_info level.

Change-Id: Icac658bdb10682bc02dd5aa7ad37d0a74d4a2bc0
CRs-Fixed: 2860518
2021-01-22 16:12:22 -08:00
Surabhi Vishnoi
01c8d3f45f qcacmn: Add support for RX offload packets in packet capture mode
Add support to process RX offload packets in packet capture mode.
To distinguish rx offload packets from normal rx packets,
DP_PEER_METADATA_OFFLOAD bit is set in peer metadata, based on value
of this bit rx packet is delivered to stack or packet capture
component.

Change-Id: Ice656a0bc14efd0382c4949d695daa8e926ce41e
CRs-Fixed: 2856792
2021-01-22 16:12:18 -08:00
Debasis Das
aebe51208d qcacmn: Update HIF to use non-inline OS abstraction
Use non-inline OS-abstraction APIs to avoid direct usage
of kernel API's.

Change-Id: I873f8eac38f11cdd2264db16b2dff0757186eb7a
2021-01-22 12:07:45 -08:00
Debasis Das
77a23e8f71 qcacmn: Use abstraction APIs for kernel APIs
Use non-inline OS-abstraction APIs to avoid direct
usage of kernel API's.

Use non-inline OS-abstraction APIs instead of OS APIs.

Change-Id: Ie4acfedc63a0e0e8ecbe358db711148db92bd8b6
2021-01-22 12:07:41 -08:00
Abhishek Singh
47108a8af2 qcacmn: Fix mcast cipher for WEP
Fix the param pass to get mcast cipher for WEP.

Change-Id: I25c24d86ffae7d0e4e03d1bf7a9457321a5de9d1
CRs-Fixed: 2859770
2021-01-22 12:07:37 -08:00
Chaoli Zhou
c87b5d218f qcacmn: Fix gpio direction conversion wrong issue
Since in wmi_gpio_config_cmd_fixed_param, the input
0 mean output, and 1 mean input, which is different
from host side enum gpio_direction. So add this fix
to do the right conversion.

Change-Id: Id60a9327e853440fd58a45c7c839109cf1f22c22
CRs-Fixed: 2856833
2021-01-22 07:36:42 -08:00
Rajasekaran Kalidoss
0d4a8a6781 qcacmn: Add wmi support for REQUEST_CTRL_PATH_STATS
Firmware has added support for control path stats
infrastructure. Add wmi support to prepare wmi tlv buffer
and send WMI_REQUEST_CTRL_PATH_STATS_CMDID. In the response
path, add support to handle WMI_CTRL_PATH_STATS_EVENTID and
extract the tlv.

Change-Id: I930a44187af29adfda8acd90d0e41cff5fc94603
CRs-Fixed: 2856370
2021-01-22 07:36:38 -08:00
Rajasekaran Kalidoss
89296baefb qcacmn: Add handlers for wmi_pdev_cp_fwstats_eventid
Add common target_if event handler for wmi_pdev_cp_fwstats_eventid
from the control path stats infrastructure of firmware and register
with the wmi.

CRs-Fixed: 2856380
Change-Id: Ia16e34c4dc1e12b817258c5e6d617a8cb560cf5b
2021-01-22 07:36:34 -08:00
Debasis Das
2c411d6e74 qcacmn: Make inline OS-abstraction APIs as non-inline
OS-abstraction API's are made non-inline to avoid direct
usage of kernel API's.

Change-Id: Ib35aa9271d98054ab582fc079e62714bb7fdae99
2021-01-22 05:31:44 -08:00
Edayilliam Jayadev
6ed59fa1e3 qcacmn: Initialize agile Spectral capability for legacy targets
TLV targets advertises the agile Spectral capability in the
chain mask table of extended service ready event.
For legacy targets, mac phy capabilities, which holds the
chain mask table is null. This leads to a load time crash
for some legacy platforms. To fix this, initialize
agile Spectral as disabled for the targets which doesn't
support extended service ready message.

CRs-Fixed: 2854348
Change-Id: I09a64259b31e3e5eb0441f35dbb9451dec001780
2021-01-22 05:31:40 -08:00
gaurank kathpalia
b1f56ba00c qcacmn: Avoid if manager and connect ind call after connect scan
After connect scan the cm_connect_start is called again and it
end up calling ifmanager and connect start API again, leading to
thread blocking and assert.

Fix this by calling these indication only on the actual connect
start req and not from scan state.

Change-Id: I86ed7b1b84fcce715b52f8041b3d565dc6d949c8
CRs-Fixed: 2860082
2021-01-22 05:31:36 -08:00
Shiva Krishna Pittala
840f5fa192 qcacmn: Modification of fields in version 2 of Spectral reports
Following fields in the Spectral FFT report have been modified in the HW
in the version 2 of the Spectral report, reflect the same at the Host.
	- fft_radar_check
	- fft_peak_sidx
	- fft_chn_idx
	- fft_base_pwr_db
	- fft_total_gain_db

CRs-Fixed: 2855909
Change-Id: I8dd190cae8da260d1fb639342ca980285bfd3d0e
2021-01-22 01:33:11 -08:00
phadiman
2011898692 qcacmn: Deprecate NSS Native Wi-Fi offload Feature
Remove all the APIs and callbacks related to NSS
Native Wi-Fi offload feature

CRs-Fixed: 2856146
Change-Id: Id8d33a48bb5840d652b6624875f60ab6826bbefb
2021-01-22 01:33:07 -08:00
Bapiraju Alla
e1846078cd qcacmn: Remove duplicate set packet len for QMI event buffer
For QMI events qdf_nbuf_set_pktlen is invoked twice. Once in
wmi_buf_alloc and again in __wmi_process_qmi_fw_event. Remove
this duplicate set packet length.

Change-Id: I06c7e077fb1d554215a5ebc52f9d69a333a25a84
CRs-Fixed: 2859036
2021-01-22 01:33:04 -08:00
Rajasekaran Kalidoss
b60109631e qcacmn: Add Support for request control path stats
Add support in cp stats component for the control path
stats infrastructure provided by firmware via
WMI_REQUEST_CTRL_PATH_STATS_CMDID and
WMI_CTRL_PATH_STATS_EVENTID. Also add support for TWT
type operations over this infrastructure.

Change-Id: I154babff396ac39c11c7548ad91cc4dc0d0c52af
CRs-Fixed: 2847603
2021-01-21 23:24:03 -08:00
Hariharan Basuthkar
a20bb6caa3 qcacmn: Copy 6G super domain code to the pdev_priv_obj
cfg80211tool wifiX getRegdomain does not display the current 6G super
domain code. This is because, when the WMI_REG_CHAN_LIST_CC_EXT_EVENT_ID
is received from the target, the 6G super domain code is not copied to
the pdev_priv_obj. Therefore, copy the 6G super domain code to the
pdev_priv_obj to display the current 6G super domain code.

Change-Id: If2e0bfc69cad3a4c47e73fdb35ad08eecb0cb48d
CRs-Fixed: 2856074
2021-01-21 23:23:59 -08:00
Balaji Pothunoori
10f5253c35 qcacmn: aggr ba enable set for firmware compatibility
firmware will honor ADDBA aggr size config from host if host
set aggr_ba_enable else default behavior intact.

Change-Id: Iaaf929a74b44ac94370f1d98b7aef7aaec308eff
CRs-Fixed: 2852999
2021-01-21 21:17:00 -08:00
gaurank kathpalia
bd8eeecda6 qcacmn: Add missing params for the fils connection
Add missing params for the fils connection.

Change-Id: I7442670c30d7ddee201c2bc328372513302f971d
CRs-Fixed: 2857905
2021-01-21 17:04:45 -08:00
Santosh Anbu
6cc0d45bfd qcacmn: Fix connect resp struct params
Fix connect resp params.
-- Fix length of the assoc req and assoc resp
-- Remove unused params from connect resp

Change-Id: I992b1bf1037bb4a09ecd37501420168c29de8187
CRs-Fixed: 2857372
2021-01-21 03:43:40 -08:00
Debasis Das
aca02352ec qcacmn: Add non-inline OS-abstraction APIs
Use non-inline OS-abstraction APIs to avoid OS APIs usage directly in
driver.

Add new non-inline OS-abstraction APIs.

CRs-Fixed: 2742480
Change-Id: I177b41d69ca8f102fa67316d8901b6991dea3203
2021-01-21 03:43:37 -08:00
Edayilliam Jayadev
398e80bacf qcacmn: Add Spectral scan priority definitions
Add Spectral scan priority definitions to the Spectral
driver-application interface header file.

CRs-Fixed: 2857143
Change-Id: If49d692dcf29430ac00d9e319d3de8253d4fcd7b
2021-01-20 23:35:58 -08:00
Balamurugan Mahalingam
e6f77fba82 qcacmn: Add support to send multi pd pdev param
Using this option the user pd assert and root pd assert can
be linked together or unlinked from each other.

By default, a user pd assert leads to root pd assert.
Unlinking the user pd assert from root pd assert helps in
handling the selective radio recovery seamlessly.

Change-Id: I734805b060bf1cb11a0dc325bae5dbf6ed7db83f
2021-01-20 12:08:18 -08:00
Lincoln Tran
26799738bd qcacmn: Initialize txpower to 0
In the API reg_find_txpower_from_6g_list, if the frequency is not found,
txpower is not touched and could cause undefined behavior. Initialize
it to 0.

Change-Id: Ic65c678144bf88959407ef28ab0d401278fa4738
CRs-fixed: 2855200
2021-01-20 03:03:00 -08:00
Alan Chen
64782f823f qcacmn: Return proper value of qdf timer multiplier
Return proper value of qdf timer multiplier based on this
Kbuild option QDF_TIMER_MULTIPLIER_FRAC.

Change-Id: I10c08ba900aad49fb9134d2e4d337f04a19dec7b
CRs-Fixed: 2855512
2021-01-19 23:24:33 -08:00
Vignesh U
9ad985593b qcacmn: Remove unwanted header files from common DFS
The sm engine header files are required only for ADFS sm handling.
Move the header file to the ADFS sm source file.

Change-Id: Icc77a889d6bf28d8c0b20a12944f9be78d1a8c27
CRs-Fixed: 2853428
2021-01-19 21:16:14 -08:00
Alan Chen
321c15d9c2 qcacmn: Add new WoW unit test suspend type
Add new WoW unit test suspend type.

Change-Id: I721ef1c18a83d0cbc86fd804f13ae57b5acd8fa3
CRs-Fixed: 2855429
2021-01-19 21:16:10 -08:00
Deeksha Gupta
819a3a5888 qcacmn: Fix out of bound read issue in FILS Indication IE parse
When parsing FILS Indication IE, the data pointer is not
validated while moving the pointer which may cause
out of bound issue.

Validate data pointer before moving pointer.

Change-Id: Ib20f78fe58d7a4c8f9245e6b8d28212499cc6f50
CRs-Fixed: 2842475
2021-01-19 21:16:06 -08:00
Ananya Gupta
a3152f3104 qcacmn: Add DP event history in non debug mode
Enable DP event history for perf mode.

Change-Id: I1b8863928f956aa39488ea357d56e182613aad8d
CRs-Fixed: 2846844
2021-01-19 19:02:49 -08:00