Commit Graph

227 Commits

Author SHA1 Message Date
nobelj
da95696a44 qca-wifi: support flush tlv in tx capture
all pending excess retries  ppdu desc are handled
for flush tlv

Change-Id: Id34664eec0680cd3712d14e9abd6329f7d1b10aa
2019-12-20 07:25:09 -08:00
Linux Build Service Account
2e01bacee7 Merge "qca-wifi: Fix NULL data Tx frame capture" 2019-12-19 22:32:10 -08:00
Linux Build Service Account
b8855c41c6 Merge "qca-wifi: support for tx capture stats" 2019-12-19 22:32:10 -08:00
nobelj
826fd86990 qca-wifi: support for tx capture stats
added debug stats for tx capture

Change-Id: Id5f9206b0996607419ce0d90ea2ff54c42b51026
2019-12-17 07:21:10 -08:00
nobelj
b313f71971 qca-wifi: tx capture update bar frames
Bar frames without payload are generated for tx capture.
added a generic function to generate dummy frames
for type CTL and MGT into function.

Change-Id: I4408b1b023eeaefa17a6e121cda6a9a64d025202
2019-12-16 09:12:52 -08:00
Pavankumar Nandeshwar
f2110a8cdf qca-wifi: Decoupling changes for stats, wds, raw and pflow ops
Corresponding changes in datapath for changes in interface
APIs for stats, wds, raw, pflow ops.

Change-Id: I04b595bbe52d8871573b4f6c811d5555659f7d47
2019-12-05 22:34:21 -08:00
nobelj
d8a5ccc005 qca-wifi: Fix NULL data Tx frame capture
Handle ppdu descriptor for NULL data frame as payload comes in
mgmt ctrl payload tlv.

Change-Id: If0292688620c44e4ebd907217d61e13b6551b4ab
2019-12-05 08:08:07 -08:00
Linux Build Service Account
d462c8ff28 Merge "qca-wifi: changes for removal of ctrl_path handles from dp" 2019-12-05 03:41:55 -08:00
Amir Patel
a936479b3d qca-wifi: Add API signature change for qcn9000
Add API signature change for qcn9000 to read ppdu_id
from reo_entrance_ring descriptor.
If descriptor is not available, read it from RX_MPDU_START

Change-Id: I98869ccc0b329504485fbba3e55e8970262b1b35
CRs-Fixed: 2579491
2019-12-05 12:12:36 +05:30
Linux Build Service Account
4f465b8c22 Merge "qca-wifi: Add stats on OFDMA and MU-MIMO packet" 2019-12-03 11:06:40 -08:00
Pavankumar Nandeshwar
dc1c0b5fbb qca-wifi: changes for removal of ctrl_path handles from dp
Change-Id: Ifffd07460103f33618dd4e54ef6a32e1d9212127
2019-11-29 08:41:49 -08:00
Linux Build Service Account
103077dadd Merge "qca-wifi: Unref peer before returning." 2019-11-29 02:39:36 -08:00
Linux Build Service Account
d199ff8874 Merge "qca-wifi: Increase MEC ASE aging timeout to 5 sec" 2019-11-28 07:37:29 -08:00
Mainak Sen
4adb711f90 qca-wifi: Increase MEC ASE aging timeout to 5 sec
Increase Multicast echo check aging timer to 5 sec from
1 sec to avoid MEC check fail and bridge fdb contamination

CR fixed:2566432

Change-Id: Ie80d11a9e8b48fb4fe7456355773613b0eb4ba4f
2019-11-27 18:32:30 +05:30
Kai Chen
e60794edf5 qca-wifi: Add stats on OFDMA and MU-MIMO packet
Change variable name from ofdma to mu_ul since
both OFDMA and MU-MIMO is suppoted in same way.

Change-Id: Ie72088e162fcb54914f76b3ad002a672305299ae
2019-11-26 10:43:33 -08:00
Varsha Mishra
7828c20e5d qca-wifi: Unref peer before returning.
Missing peer unref has been added as part of this change.

Change-Id: Ieb29b9d5c28824685d99a2d0d7fdfd6cbb51637a
2019-11-24 22:34:43 -08:00
Karunakar Dasineni
207fb25c9b qca-wifi: Include SW retries in Tx capture
Changes to include SW retried frames in Tx capture.

Change-Id: Id42e2aafa94c81e22f5cd9a0dfd1cce5d2039312
2019-11-22 17:19:22 -08:00
Chaithanya Garrepalli
f2f9ecd147 qcacmn: changes to detect roaming in STA mode
Changes to initiate STA kickout on RE if station
roams to AP

Change-Id: I0aa00289204cf05b6ae73d9bb90756f911bdd18e
2019-11-21 18:17:47 +05:30
Linux Build Service Account
42e98ff27d Merge "qca-wifi: Fix for implementation on Hal new api" 2019-10-18 00:39:13 -07:00
Ruben Columbus
b97445ae9a qca-wifi: Fix for implementation on Hal new api
hal api changes to receive hal_soc

Change-Id: Ibccf8ae36e8db24bb93a4647601aea51074f175b
2019-10-14 16:39:25 -07:00
Karunakar Dasineni
8b89b32689 qca-wifi: Fix non-QOS Tx frame capture
Fix for missing non-QOS frames in Tx capture.

Change-Id: I8f76130b894d72701e675f36caadb5b555bc2ed6
2019-10-14 11:44:05 -07:00
Karunakar Dasineni
781e84c254 qca-wifi: Fix mgmt/ctrl frames in tx capture
Include host generated management and also update
phy information for control and mgmt indications from
FW when Tx capture is enabled.

Change-Id: Icbc0b175c73b6eab0bb6e35fa157bfce92927d24
2019-10-01 11:01:55 -07:00
sumedh baikady
6024ab97e2 qca-wifi: Fix to include SA in addr3 in tx capture
In Tx capture feature, Addr 3 is wrongly populated
with peer mac. Add fix to pick correct SA from
ethernet frame and use in wireless hdr.

Change-Id: I457c3118a1e8e5e7aace4e784e2978e89dda2eda
CRs-Fixed:2532324
2019-09-27 11:02:48 -07:00
Kai Chen
5c41ed2a44 qca-wifi: Enable peer filtering for enhanced RX capture.
Enable peer filtering for enhanced RX capture mode

Change-Id: Icaf8ba680a9b77cf9c07003f0ce18798c9b62d8f
2019-08-30 11:12:15 -07:00
nobelj
c870ef44c4 qca-wifi: tx capture grouping ppdu with same schedule cmd id into list.
Grouping ppdu with same schedule command id into list
as there is no finite number on ppdu count with a same
schedule command id.

Change-Id: Ibf0fe7e29923b641ff6330c12200b351f42b6efb
2019-08-27 13:23:23 -07:00
Linux Build Service Account
5d6f16d239 Merge "qca-wifi: Move protocol and flow tagging code out of common host components" 2019-08-22 15:37:30 -07:00
Linux Build Service Account
e83248443e Merge "qca-wifi: Add support for msdu, bytes and retries" 2019-08-20 11:11:27 -07:00
Ankit Kumar
e2b621246b qca-wifi: Change event dump log size
Changing event dump size to 25 to make it same for all
events as qdf has limitation on event size.
If size is more than 25 then event of type command doesn't
gets printed.

Change-Id: Iaf2d4c52242b99194f7405d7d69a4566db71ff01
CRs-Fixed: 2510317
2019-08-16 14:40:00 +05:30
Linux Build Service Account
ea01bdde6b Merge "qca-wifi: Add support to enable/disable tx packet cap on per-peer basis" 2019-08-14 18:08:32 -07:00
Amir Patel
8c9bc8c685 qca-wifi: Add support for msdu, bytes and retries
Add support for msdu, bytes and retries for RDK stats

Change-Id: Ifb20833cfc77bef8f4c14b9c04930d26a64d5b63
CRs-Fixed: 2509049
2019-08-14 15:14:30 +05:30
Sumeet Rao
37a8fbeee9 qca-wifi: Move protocol and flow tagging code out of common host components
Move protocol and flow tagging code out of common host driver components

CRs-Fixed: 2501573

Change-Id: Ia3c9d036216c2fa914f6649a92abe8ca45578274
2019-08-12 12:37:38 -07:00
Varsha Mishra
f3417a607e qca-wifi: Handle vlan tagged duplicate skb for multipass phrase feature
Duplicate vlan tagged frames which need to be sent to repeater should
have unique check to avoid infinite iteration. Infinite iteration leads
to creation of nbuf every time loop is executed.

Change-Id: I2601461edc9e144f1058ed031ba14410563d0755
2019-08-11 01:47:32 -07:00
Sumeet Rao
4338fc07aa qca-wifi: Add support to enable/disable tx packet cap on per-peer basis
Currently, tx_monitor mode is enabled/disabled for all peers on a
per-pdev basis. Since tx_monitor mode consumes significant amount of
MIPS and reduces throughput, new requirement is to enable/disable
tx_monitor mode on a per-peer basis as well.

Change-Id: Ib70ccd3238dfd5fae1be92a81e9bf91fe441e228
CRs-Fixed: 2500931
2019-08-07 00:19:37 -07:00
Sumeet Rao
0ff576e867 qca-wifi: Add a new feature to support tagging of IPv4/v6 flows
Tags are programmed using wlanconfig commands. Rx IPv4/v6
TCP/UDP packets matching a 5-tuple are tagged using HawkeyeV2 hardware.
Tags are populated in the skb->cb in the REO/exception/monitor data
path and sent to upper stack

CRs-Fixed: 2470521
Change-Id: Id581159ae2b4a00c290a775aad526032e3a53a7f
2019-08-06 10:53:19 -07:00
Karunakar Dasineni
505d7d9c6c qca-wifi: Drop excessive PPDU status buffers
When CPU cores are fully loaded, PPDU stats process workqueue
is not getting enough time, resulting in excessive backlog of
PPDU status buffers. Check and drop buffers if the backlog is
beyond a threshold.

Change-Id: Ideef46cb4eec54dcd5a8315f36f2206653d81659
2019-08-05 07:27:37 -07:00
Linux Build Service Account
0e1d8dd797 Merge "qca-wifi: Handling vlan tagged frames for multipass phrase feature" 2019-08-05 01:09:04 -07:00
Varsha Mishra
52e3f7f1ae qca-wifi: Handling vlan tagged frames for multipass phrase feature
1. Remove vlan tag in tx and enqueue to hardware.
2. Add vlan tag in rx after peer-vlan_id lookup.

Change-Id: I37c34b1d54a497700101e78ad6930b91aa6b43e9
2019-07-31 20:22:06 +05:30
nobelj
b53625aefe qca-wifi: Fix skb under panic issue.
Handled SKB Null check while sending to
above stack as part of TX capture feature.

Change-Id: I4e4f8764f48c4ad9efcebae16830b3731169cf14
2019-07-30 07:01:23 -07:00
Linux Build Service Account
603df432f8 Merge "qca-wifi: Add support for OFDMA UL per user info" 2019-07-25 01:06:44 -07:00
Kai Chen
4e7be2911c qca-wifi: Add support for OFDMA UL per user info
Add support for OFDMA UL per user info such as
nss, mcs, ofdma RU start and ofdma RU size for
RX enhanced capture mode.

Change-Id: I5dce2d5ee9fcabc8a782eaf2919a943d4e7921c4
2019-07-16 13:57:12 -07:00
Linux Build Service Account
30a9e4a754 Merge "qca-wifi: Add stats mcs, nss and bw" 2019-07-11 23:09:43 -07:00
Linux Build Service Account
bfa82607b5 Merge "qca-wifi: Free ppdu when wbm completion comes out of order" 2019-07-11 12:37:19 -07:00
Chaitanya Kiran Godavarthi
6d13ce0f35 qca-wifi: Add stats mcs, nss and bw
Add encoding macros for mcs nss and bw stats

Change-Id: Icc1b238380be8d8d5596e3c7117696c0b0b4cbeb
2019-07-11 01:52:46 -07:00
Linux Build Service Account
92d227899a Merge "qcawifi: Introducing event logger for HTT command/event Tx/Rx" 2019-07-09 20:09:48 -07:00
Ankit Kumar
5bb1127c34 qcawifi: Introducing event logger for HTT command/event Tx/Rx
htt_command_record, htt_event_record, htt_wbm_event_record
function is used to log command,event, wbm event to
in-memory data-structure.This function is exported and can
be called to record htt comamnd/event.

Change-Id: I8f917183d26a219543d235d4dc6117839e3f33db
CRs-Fixed: 2428751
2019-07-02 14:42:43 +05:30
Chaithanya Garrepalli
5a6f740f71 qca-wifi: user_id check while accessing ppdu_info->rx_msdu_info
Add max user_id check while accessing ppdu_info->rx_msdu_info[]
to avoid out of bound array access.

Change-Id: I776aaec4d4e18e0f9af0b28718e61c81e9e32eab
2019-07-02 14:22:59 +05:30
nobelj
68866584a3 qca-wifi: Free ppdu when wbm completion comes out of order
In TX packet capture, we expect wbm to comes in order
but sometimes we see it comes out of order. During that case we
free msdu and mpdu that we recreate for ppdu.

Change-Id: Id8e6082ade4e3d24937af490014c0fe4152906d8
2019-06-26 06:50:16 -07:00
Amir Patel
53eceec86d qca-wifi: Free TX/RX_PPDU nbuf after processing
Before this change when peer rate stats are enabled,
TX/RX_PPDU_DESC nbuf was getting free in ol_ath_sched_ppdu_stats()
which is not proper as whoever is consumer should free the buffer.

Change-Id: I0543072ddca7aa14e9092864a8c07229072925a5
CRs-Fixed: 2451257
2019-06-18 09:56:56 -07:00
Linux Build Service Account
504ff4d4b4 Merge "qca-wifi: Fix use after free when bpr flag enabled" 2019-06-15 01:07:29 -07:00
nobelj
c0b383c43a qca-wifi: Fix use after free when bpr flag enabled
tx capture flag check added and corresponding check added
during skb free.

Change-Id: I5f367b59fd715a56766fa5614b650c6486197775
2019-06-13 21:23:02 -07:00