Commit Graph

16993 Commits

Author SHA1 Message Date
Amit Mehta
1507b1cde3 qcacmn: Add configurable threshold values
Introduce configurable threshold values to
increment MPDU retry count by transmit_cnt / threshold.

Change-Id: I1c039ff76854e18bea5a8d99d171936557d1c6bf
CRs-Fixed: 3210735
2022-06-02 06:49:34 -07:00
Vikram Kandukuri
8969fe6019 qcacmn: Adding telemery agent component
Adding telemery agent component.
CRs-Fixed: 3211061
Change-Id: I48efdf8a612162e02512819f8e0d242dfac7da3c
2022-06-02 05:22:12 -07:00
Amith A
6e9e767a8b qcacmn: Correct the kernel-doc of reg_set_ap_pwr_type
Append a '*' to the first line of kernel-doc of reg_set_ap_pwr_type.

Change-Id: I86bbd8bc6c9ce83d53c27e06b26aa54b3fd285dc
CRs-Fixed: 3208791
2022-06-02 01:31:00 -07:00
Subrat Mishra
120fb06e12 qcacmn: Add cdp api to get accumulated pdev tid stats
Add cdp api to get accumulated pdev tid stats along with per tid
total tid rx and tx stats.

Change-Id: I7862c4265f199d0588d8865c5ed97e06010dd79f
CRs-Fixed: 3207499
2022-06-01 14:01:31 -07:00
Harsh Kumar Bijlani
1049507d23 qcacmn: Get per pkt stats from MLD peer for primary link peer
Add support to get per pkt stats from MLD peer for primary link peer
only when user requests for link peer stats.

Change-Id: I6df0daa4a175cc5869012538294ed41ae2443e48
CRs-Fixed: 3203506
2022-06-01 05:11:27 -07:00
Divya R
33e3e1d6a8 qcacmn: Initialize the chan_params structure
chan_params structure is uninitialized, due to which variables
inside the chan_params structure have garbage values.
To avoid this, initialize the chan_params structure.

Change-Id: Ic09c0a2d24c2a1eac8f076c7bbd4d25d147370fd
CRs-Fixed: 3205502
2022-06-01 01:45:37 -07:00
Rakesh Pillai
5fd598fac0 qcacmn: Fix monitor status TLV parsing
Currently, for kiwi, the tlv parsing from monitor
status buffer stops when it encounters MPDU_START
tlv. This happens since the return value after the
parsing of MPDU_START is not one amongst the allowed
return values for the tlv parsing to be continued.

Add MPDU_START tlv parsing return value to the allowed
return values, in order to continue the parsing of tlvs
from monitor status buffers.

Change-Id: I51cfecb7df8d8055a37e1b898419ec322dad63db
CRs-Fixed: 3203708
2022-06-01 00:01:55 -07:00
Amir Patel
da53418537 qcacmn: Add WAR to skip multiple ring entries
Add WAR to skip multiple ring entries in case if DMA is not
done for more than one entry in monitor status ring

CRs-Fixed: 3206692
Change-Id: Id24deb18d173e521efda38716244f375a409d7f5
2022-05-31 11:08:32 -07:00
Chaithanya Garrepalli
8889b96325 qcacmn: Use same reo hash key for all SOCs in MLO
In case Multi chip MLO configure same hash key for
all SOCs in MLO. This change is needed to avoid
same flow traffic distributed to multiple REOs.

Change-Id: Ib6cde4ae32e58ef2d45c02d640c133458f5bfac5
CRs-Fixed: 3201978
2022-05-31 08:31:55 -07:00
Pavankumar Nandeshwar
304559ad0c qcacmn: Return correct value for peer isolation case
Return correct boolean values for peer isolation and
bss peer checks in intrabss forwarding.

Change-Id: Ib02645572aafdf4e4c9bc2e40b8b0fc72b90b343
CRs-Fixed: 3206611
2022-05-31 04:03:54 -07:00
Ripan Deuri
09a9870b96 qcacmn: Add CDP ops for enabling MPDU stats
Add CDP ops for enabling SAWF MPDU stats.

Change-Id: I07d1a143e843f885150a1fcc10a6d0554bd57aa4
CRs-Fixed: 3195257
2022-05-31 00:59:32 -07:00
Linux Build Service Account
3603943859 Merge "qcacmn: tx monitor base framework for tlv parsing" 2022-05-30 13:05:56 -07:00
nobelj
90ad48aa86 qcacmn: tx monitor base framework for tlv parsing
tx monitor base framework for tlv parsing.

Change-Id: Ia39b17b32406b655b77ddcddf2b5df981aa7c56b
CRs-Fixed: 3203043
2022-05-30 10:47:11 -07:00
Linux Build Service Account
cd3f260fe1 Merge "qcacmn: Add wmi changes to extract addba window size from mgmt tlv" 2022-05-30 10:37:56 -07:00
Linux Build Service Account
e689f475b5 Merge "qcacmn: Fix build error when DISABLE_MON_CONFIG is defined" 2022-05-30 10:37:55 -07:00
Aakanksha Doda
f420dce004 qcacmn: Add wmi changes to extract addba window size from mgmt tlv
Add wmi changes to extract addba window size from mgmt tlv

CRs-Fixed: 3156291
Change-Id: I09891ef15942d3a7d594dfa839b758a9d4a5ba78
2022-05-30 06:45:12 -07:00
Linux Build Service Account
200bad937f Merge "qcacmn: Add new API to fetch ML IE info" 2022-05-30 06:20:50 -07:00
Linux Build Service Account
a974aea3fd Merge "qcacmn: Move FISA FST table to CMEM on Kiwi" 2022-05-30 06:20:50 -07:00
Guisen Yang
370e3bd4e9 qcacmn: Fix build error when DISABLE_MON_CONFIG is defined
Fix below errors when the item DISABLE_MON_CONFIG is defined:
No return value for below two APIs:
dp_tx_mon_buf_refill() and dp_rx_mon_buf_refill()

CRs-Fixed: 3205083
Change-Id: If449616e30e75c23c7b25fb449a0ad8e501529aa
2022-05-30 05:16:42 -07:00
Nandha Kishore Easwaran
77f302907b qcacmn: Change tx mon ring sizes
Change tx monitor ring sizes and make minor fix when getting the
number of entries.

Change-Id: Iec458d88948556f7007d4fa33bf082c8ee089064
CRs-Fixed: 3206170
2022-05-30 03:56:22 -07:00
Pavankumar Nandeshwar
5885ff85be qcacmn: Limit the desc pools limit avoid crossing cc ppt max entries
Limit the desc pools such that the max ppt entries
do not cross limit for the hardware cookie conversion.

Change-Id: I9149b20bea0d72b466ef8c3e2ee9c0b536ffe24e
CRs-Fixed: 3201792
2022-05-29 04:46:10 -07:00
Linux Build Service Account
db624d1224 Merge "qcacmn: Add function to calculate hardware Tx delay" 2022-05-27 20:37:32 -07:00
Paul Zhang
aeacfe3922 qcacmn: Add new API to fetch ML IE info
In order to provide the info about common info len and BSS
param change count, add API util_get_mlie_common_info_len()
and util_get_bvmlie_bssparamchangecnt().

Change-Id: I0f5fea2265cbb8f1df265542af7009d624a0129b
CRs-Fixed: 3202491
2022-05-27 19:37:23 -07:00
Prakash Manjunathappa
1684251d1f qcacmn: Move FISA FST table to CMEM on Kiwi
Add support to move FISA FST from DDR to CMEM, enable it for Kiwi
Adding CMEM support for FISA FST includes
1) Reserving CMEM memory space FISA FST
2) Add HAL macros for CMEM flow search entry

Change-Id: I45fc91a86c1ac89d3d95b246e26ea981314425a8
CRs-Fixed: 3199250
2022-05-27 19:37:16 -07:00
Ripan Deuri
74458d4542 qcacmn: Add function to calculate hardware Tx delay
Define a new function to calculate HW delay so that same logic
can be used to calculate delay by other modules.

Change-Id: Id3740bcaa2cd558b89ab02d8e88d5947eb5997b1
CRs-Fixed: 3198305
2022-05-27 18:06:34 -07:00
Linux Build Service Account
13f8bf5333 Merge "qcacmn: Disable 11BE and MLO feature support" 2022-05-27 17:45:16 -07:00
Linux Build Service Account
94d3a26340 Merge "qcacmn: Don't allow power mode VLP for indoor AP" 2022-05-27 17:45:14 -07:00
Linux Build Service Account
0fadefe80a Merge "qcacmn: Move reg_set_ap_pwr_type function under CONFIG_BAND_6GHZ" 2022-05-27 17:45:13 -07:00
Sandeep Puligilla
bfe1e87b25 qcacmn: Disable 11BE and MLO feature support
Disable 11BE and MLO feature support.

Change-Id: I6e9d40c718929c8e47f7ead4fd1333420dd850c7
CRs-Fixed: 3208148
2022-05-27 16:12:16 -07:00
Linux Build Service Account
3632ac4e6e Merge "qcacmn: Add counter in non-TQM based Tx completion path" 2022-05-27 13:07:29 -07:00
Sheenam Monga
2a969228b4 qcacmn: Don't allow power mode VLP for indoor AP
Currently if AP and STA supports VLP, power mode
is set to VLP without any check of AP indoor or
not. Example when STA is in GB country code and
AP is in KR Country code and AP is indoor AP,
Power mode should be set LPI, but as per current
implementation power type will be set to VLP irrespective
to AP indoor or not beacuse both countries support VLP.

Change-Id: Ib2be4c0076a7e94f9870bd8fc320cfcc170754f9
CRs-Fixed: 3203504
2022-05-27 12:16:28 -07:00
Sheenam Monga
8ce62d6104 qcacmn: Don't set power mode to VLP for all countries
Set LPI power mode for countries & domain that don't support
VLP.

Change-Id: I799a0d5beb23a4f0f613269d981ce61c86bcb5c1
CRs-Fixed: 3200465
2022-05-27 12:16:21 -07:00
Venkateswara Swamy Bandaru
3ff07fe59d qcacmn: Add 11be D1.5 support
Update EHT Operating IE as per 11be D1.5 draft.

Change-Id: I3c0e0af765f4a05729b505b83508cee2149ed2f2
CRs-Fixed: 3187001
2022-05-27 10:56:25 -07:00
Wu Gao
c0d5a6fcf3 qcacmn: Set num_rxdma_status_rings_per_pdev to 2 for KIWI
There is init failure about monitor status ring after started CFR
capture. So extend num_rxdma_status_rings_per_pdev to 2 for KIWI
which is same to HSP.

Change-Id: Ic24d732957dc1991a3fca350aebe5f57d9b02577
CRs-Fixed: 3203678
2022-05-27 09:08:50 -07:00
Arun Kumar Khandavalli
b0fafa0130 qcacmn: Disconnect the ml connection incase of link assoc failure
Currently even when the partner link assoc failure driver is maintining
the assoc link this is resulting in several side effects w.r.t
memory corruptions etc.

Disconnect the ml connection incase of link assoc failure.

Change-Id: I4bbdcf4099f3042f5065067ca5d817f986ffb30a
CRs-Fixed: 3204310
2022-05-27 05:08:37 -07:00
Linux Build Service Account
fe3fc7323c Merge "qcacmn: In NAWDS, set host inspected bit for GSN based packets" 2022-05-27 03:38:15 -07:00
Ripan Deuri
ae12b7c45f qcacmn: Add Hist buckets for hardware Tx completion delay
HW Tx delay to be calculated in microseconds based on the timestamp
provided by HW. A new type of hist bucket is added for this delay.

Change-Id: I3cae5e78459f675b5ac7f670bdec950f9a62c78f
CRs-Fixed: 3202312
2022-05-27 03:36:40 -07:00
Ripan Deuri
3cd2e7a588 qcacmn: HTT handler for SAWF MPDU stats
Add handler for processing SAWF MPDU stats sent by the FW.

Change-Id: I9e69b66563ebba583883bf18f645b19ed9470927
CRs-Fixed: 3195239
2022-05-27 01:20:49 -07:00
Vignesh U
6179a3a558 qcacmn: Calculate frequency offsets instead of hardcoding
The radar found frequency offsets to find various 20MHz sub-channel
frequencies is hardcoded for different channel widths. These frequency
offsets can be calculated reducing repeatitive code.

Calculate frequency offsets from channel widths and center frequencies
to determine the radar found frequencies.

Change-Id: I146fa6dd06473ff90cad4bb5dd8ba4ce13ab7c7c
CRs-Fixed: 3182067
2022-05-27 01:20:43 -07:00
divraj
4514b2ae95 qcacmn: Add function definition when CONFIG_BAND_6GHZ not defined
Functions (reg_get_min_max_bw_on_given_pwr_mode/
reg_get_chan_state_on_given_pwr_mode) were defined under macro
CONFIG_BAND_6GHZ. Add definition for above functions when
CONFIG_BAND_6GHZ not defined. When CONFIG_BAND_6GHZ is not defined
a channel search is only for 5GHz or 2.4GHz channel. Therefore,
the search is restricted to only the current channel.

Change-Id: Iaae6f362dd81a74c8d92756d507dd16b0dc4c3af
CRs-Fixed: 3205342
2022-05-27 01:20:37 -07:00
Aditya Kodukula
42b53b5b2c qcacmn: Move reg_set_ap_pwr_type function under CONFIG_BAND_6GHZ
To avoid possible compilation issues, move reg_set_ap_pwr_type
definition under CONFIG_BAND_6GHZ macro.

CRs-Fixed: 3207006
Change-Id: I7c2da42767c37356414a34757245772cd405f3b0
2022-05-26 23:04:40 -07:00
Srinivas Girigowda
85b76d5a6c qcacmn: Add counter in non-TQM based Tx completion path
Rate limit the log in non-TQM Tx completion path and add a counter
to increment whenever Tx completion status is received and release source
is non-TQM.

Change-Id: I8968ccc7a499577bd4fdfaef78e6520b00c12503
CRs-Fixed: 3201403
2022-05-26 20:03:25 -07:00
Sai Rupesh Chevuru
9d283234a7 qcacmn: In NAWDS, set host inspected bit for GSN based packets
In the case of NAWDS set the host inspected bit for
GSN based packets to avoid the FW reinjection.

Change-Id: Iee1653e9bebcd1ce6ef283a61d9c10a25b911a26
CRs-Fixed: 3203093
2022-05-26 13:34:33 -07:00
Linux Build Service Account
cbef75eeb0 Merge "qcacmn: Check first unused bit for multi client feature support" 2022-05-26 11:16:22 -07:00
Jinwei Chen
eca5aad64c qcacmn: fix logging issue in dp_find_peer_by_destmac_li
Fix logging issue in dp_find_peer_by_destmac_li

Change-Id: I4a5156d7f628af18a650c13f8ebac1cb38c9b01d
CRs-Fixed: 3206323
2022-05-26 10:59:33 -07:00
abhinav kumar
be6648764a qcacmn: Check first unused bit for multi client feature support
Currently host check 3rd bit of the extended feature flag to
know whether FW supports below two features:
1. Roam Frame info stats - per candidate frames support
2. multi-client feature flags support

The host should check different bits for different features.

Fix is to allow the host to check the first unused bit
(here 4th bit) of extended feature, flag to check whether FW
supports multi-client feature flags support.

Change-Id: I485aeab6a90e900a52e88cd013645203457c1adb
CRs-Fixed: 3184410
2022-05-26 09:32:57 -07:00
Linux Build Service Account
4c8445b23a Merge "qcacmn: Handle failure during wmi event handler registration" 2022-05-26 06:39:39 -07:00
Linux Build Service Account
35c9d1a497 Merge "qcacmn: Set the num of subchans for 240MHZ as 12" 2022-05-26 06:39:39 -07:00
Gerrit - the friendly Code Review server
d5ea836534 Merge changes into wlan-cmn.driver.lnx.2.0 2022-05-26 05:58:34 -07:00
Debasis Das
c5d3129015 qcacmn: Handle failure during wmi event handler registration
For legacy targets, MLO-specific event-handlers are not
supported.As this is not fatal, the caller of the
wmi_event_handler_register API should not treat this as
failure.

Change-Id: Ic6a36c933b46cfcbe860f573af290cac4667de44
CRs-Fixed: 3181774
2022-05-26 03:53:18 -07:00