Commit Graph

267 Commits

Author SHA1 Message Date
Chaithanya Garrepalli
56a164e76b qca-wifi: fix print format compilation errors
Correct print format identifier to avoid compilation
errors with -no-format removed from compilation flags

Change-Id: I8806d1a2b31b30f4e0fcb492e462ac38c89c5b79
2021-01-07 10:28:07 +05:30
Linux Build Service Account
d7b7214fbc Merge "qca-wifi: Add AMSDU support in Tx capture" 2020-12-29 11:37:37 -08:00
Manoj Ekbote
a9061165c0 qca-wifi: Add AMSDU support in Tx capture
Add AMSDU subframe header and set the AMSDU bit in
QOS control field.

Change-Id: Id91a032231bf35cd5f87eaed475699035528c12e
2020-12-28 10:19:40 -08:00
Linux Build Service Account
3468faf236 Merge "qca-wifi: Remove FL macros from logs" 2020-12-28 10:07:46 -08:00
Shikha Bakshi
7c42aed98a qca-wifi: Remove FL macros from logs
Remove FL macros from logs as it is already being taken care
of bu QDF_TRACE

Change-Id: Iaceae56e4b91eefe9da9cbb7e1df254b78f70446
2020-12-24 02:34:47 -08:00
Shikha Bakshi
7da621d050 qca-wifi: Modify logs for QDF_MODULE_ID_DP_RX_MON_DEST
Replace QDF_TRACE  in dp_full_mon.c file with the
macros defined for QDF_MODULE_ID_DP_RX_MON_DEST module

Change-Id: I3f657ae760a9fd8f0bd5509d54a58fc874297461
2020-12-24 01:28:29 -08:00
Linux Build Service Account
6108563672 Merge "qca-wifi: Modify logs for module ID QDF_MODULE_ID_DP_TX_CAPTURE" 2020-12-18 11:39:50 -08:00
Shikha Bakshi
51ac5a4837 qca-wifi: Modify logs for module ID QDF_MODULE_ID_DP_TX_CAPTURE
Add macros dp_tx_capture_info, dp_tx_capture_info_low,
dp_tx_capture_high, dp_tx_capture_alert, dp_tx_capture_err,
dp_tx_capture_debug to define logs.

Change-Id: I32f31638d1e197f1c2b0a9b5d956a002948047df
2020-12-17 10:25:38 -08:00
Manoj Ekbote
717a95065e qca-wifi: Fix WDS header fields
Fix address fields in WDS case.

Change-Id: I0f94bcd42783a6840a714ca0f5541e7299de1d81
2020-12-16 16:18:38 -08:00
Linux Build Service Account
9a16bc08e5 Merge "qca-wifi: add fix for peer mismatch and xretry mpdu" 2020-12-16 01:13:38 -08:00
phadiman
ad27a51809 qca-wifi: Host Static Memory Optimization (in NSS offload mode)
Low memory profiles like 256M and 16M profiles support
only NSS Wi-Fi offload mode and HOST data path APIs are
not used.

Disable HOST data path APIs which are not used in both
NSS Wi-Fi offload mode and in HOST mode (in NSS offload mode)

Change-Id: I44bcbf65771c131a839fb13906e9bbd59fd8545b
2020-12-13 23:29:10 +05:30
nobelj
968aa5d1a5 qca-wifi: add fix for peer mismatch and xretry mpdu
added fix for below issue

peer derived from peer_id for a radio return peer
from different radio which cause corruption in the queue

current we store xretry mpdu queue to ppdu desc user
which live for short time. added fix to use
xretry mpdu queue from peer user.

Change-Id: I320e3aae9f3df25aff5a6769acc4c037f40ced5c
2020-12-11 02:03:36 -08:00
nobelj
f86496baad qca-wifi: add fix to use peer id from tx tid
During peer unmap handler peer id is set to invalid peer
but is not deleted as reference is held.
On excess retries, peer id is reference from peer which is inactive
for a ppdu descriptor leading to assert.

added fix to use peer id from tx tid.

Change-Id: I058dec46138ebc10f8d97eb0145458737149309c
2020-12-05 22:18:22 -08:00
nobelj
be22a25dba qca-wifi: Modify tx capture bottom half to single thread
Modify tx capture work queue to single thread and added
more debug print in assert case.

Change-Id: If6546240984f4d2142089f06a8323b481d319623
2020-12-04 14:10:56 -08:00
Manoj Ekbote
1328ea0195 qca-wifi: Initialize user retry mpdu queue
Intialize the retry mpdu queue and add debug prints
to get more useful info

Change-Id: I7dda9d6ddf6e39531911d2e7340c67bb67ac865a
2020-11-27 08:50:53 -08:00
Christopher Chopp
ea10246813 qca-wifi: Add check for FW generated action frames in tx capture
Extend the current check for action frames in tx capture
to include more types of FW generated action frames.
This change adds a generic function to check where action
frames are generated that is easily extended to account
for more types in the future.

Change-Id: I23bb37c5a81b02d2c095060bac909298d1b2283f
CRs-Fixed: 2807802
2020-11-17 10:29:18 -08:00
Srinivas Pitla
4d05abaf4a qca-wifi: fix issue in mpdu_tried_ucast WAR
The earlier WAR was not handling a corner case, where
ba_size equal to mpdu_tried_ucast -1.

This fix updates the check to handle it.

CRs-Fixed: 2813082
Change-Id: Ib69f8232e40ee31bc4a4a2b35ec9e8917195d123
2020-11-09 09:25:55 -08:00
Jeevan Kukkalli
d4580d9626 qca-wifi: Add appropirate check to kickout direct peer
Add appropriate check to kickout directly associated peer
when it roams to another AP and reachable via TA peer.

Change-Id: I3e7cc0f1f4e4aa3e05fd7b7e823471978d07a64c
CRS-Fixed: 2801038
2020-10-27 05:29:49 -07:00
Srinivas Pitla
c83d9a7536 qca-wifi: fix mpdu_tried_ucast issue
It is found that mpdu_tried_ucast is less than last ba bitmap set,
this is leading inconsistency with mpdus[] array and failed_bitmap.

To address this, on failed_bitmap prep, if mpdu_tried_ucast is less
than last ba bit set, then mpdu_tried_ucast is updated with last ba
bit set.

CRs-Fixed: 2793967
Change-Id: I381b462d0418527dd11ca2c8ae3dc4c8d4bfdba8
2020-10-20 11:28:37 -07:00
Linux Build Service Account
e24d6eed2d Merge "qca-wifi: Check for initialized tid" 2020-10-16 10:07:36 -07:00
Linux Build Service Account
c68544cb65 Merge "qca-wifi: unmap buffer before free" 2020-10-16 05:06:08 -07:00
Linux Build Service Account
0f6ddc876b Merge "qca-wifi: Handle fraglist in full monitor path" 2020-10-15 21:36:16 -07:00
Amir
418e9f663e qca-wifi: unmap buffer before free
unmap buffer before free in case of status buffer DMA not done
WAR is hit.

Change-Id: I190d6188865cd0a58ad661bad0e512191ae7e753
CRs-Fixed: 2797458
2020-10-14 23:05:50 +05:30
Manoj Ekbote
74aa631600 qca-wifi: Check for initialized tid
Add check to know if tid is still in initialized state while
delivering a ppdu with flush bit set.

Change-Id: I6f0fbbdb616ba4b6c98787d389b7bf16d6c5f165
2020-10-14 09:54:46 -07:00
Ankit Kumar
888cb7fccd qca-wifi: Handle fraglist in full monitor path
Handle fraglist in full monitor path.

Change-Id: If808c49654a62d84d60de0b3511424a43d1e7375
2020-10-14 17:57:48 +05:30
Srinivas Pitla
065a6e13f2 qca-wifi: enhance current debug print in issue scenario
The current debug print is not sufficient to look at
peer, tid. So enhanced current print

CRs-Fixed: 2794519
Change-Id: If531f1892cfc53c308b1913891a54f4a9350d02c
2020-10-13 13:51:40 -07:00
Linux Build Service Account
3f7ed7f88c Merge "qca-wifi: MSCS module implementation" 2020-10-05 18:35:14 -07:00
Mainak Sen
29417fc9d2 qca-wifi: MSCS module implementation
Implement a new driver module for Mirrored stream classification
signalling(MSCS) feature. This module which register to NSS MSCS client
to provide callback for peer lookup and priority update based on MSCS
parameters associated with a peer

Change-Id: I7aa465446cb22f0198459193fa04dd66fc903cc7
2020-10-02 17:35:09 +05:30
nobelj
3b78c64a1c qca-wifi: Fix tx capture mpdu tried less than acked mpdu
tx capture does not capture mpdu, which missed due to
block ack failure. with subsequent retries it recieve block ack for
all the previous transmitted mpdu in a ppdu was handled.

Change-Id: I23d1bfd7ba05edaec934379fbc036b164a45ceb6
2020-09-28 12:11:08 -07:00
Linux Build Service Account
c54ea45ed5 Merge "qca-wifi: SKB Frag changes for TX Capture" 2020-09-25 06:02:05 -07:00
nobelj
61e1b5c9b1 qca-wifi: Add fix for user after free
user field is updated before allocated memory is free.

Change-Id: I120cb4abab1a010b38dddc8aedc710b77671ac58
2020-09-24 22:28:50 -07:00
Shivani Soni
ce4d8e5daa qca-wifi: SKB Frag changes for TX Capture
Update frag related changes for TX Capture feature

Change-Id: I897e53c923256f2148fde214918bb7b069b8fc2b
CRs-Fixed: 2770668
2020-09-24 16:45:31 +05:30
Linux Build Service Account
7a50f2447f Merge "qca-wifi: Add reason for asterity active setting failure" 2020-09-23 00:35:40 -07:00
Linux Build Service Account
92cf74cb43 Merge "qca-wifi: init peer tid at tx monitor on" 2020-09-22 05:06:14 -07:00
VENKATASAIPRUDHVI SANNIDHI
de691b33c3 qca-wifi: Add reason for asterity active setting failure
Add change to send reason code for asterity active setting failure

Change-Id: I6a559b621a1bb71bc6295d74bdc2bcf095236ef4
2020-09-21 22:20:22 +05:30
nobelj
0c906ba7ca qca-wifi: init peer tid at tx monitor on
peer tid queue init is initialized only when tx monitor
feature turned on.

Change-Id: Idba2d0e7004eed5322c24c921044f66c98b33f61
2020-09-18 22:26:14 -07:00
Linux Build Service Account
529e160dec Merge "qcawifi: Use timer to schedule work queue for stats process" 2020-09-18 17:36:03 -07:00
Linux Build Service Account
70a42b554a Merge "qca-wifi: tx capture memory leak fix" 2020-09-17 09:36:52 -07:00
Linux Build Service Account
7d1b20d50d Merge "qca-wifi: Store mapped paddr of dst_mac in me buffer" 2020-09-15 18:08:05 -07:00
Linux Build Service Account
ada250b662 Merge "qcacmn: FR-64493 WDS Extended support" 2020-09-14 04:06:29 -07:00
Linux Build Service Account
28582f0573 Merge "qca-wifi: Unmap nbuf while processing Tx completion" 2020-09-11 11:08:32 -07:00
Naga
9fa046409b qcacmn: FR-64493 WDS Extended support
Added API send event to control path for
created dedicated net device for backhaul
when WDS extended feature is enabled.
This API will be called when 1st 4 address
is received from backhaul.

Change-Id: Ie473e582edf3974eb18997f578b02562671c4e9f
CRs-Fixed: 2773485
2020-09-11 18:23:52 +05:30
Debasis Das
7b9334bcdb qca-wifi: Store mapped paddr of dst_mac in me buffer
For me buffers, the physical address of the buffer
holding the dst_mac address needs to be stored
in the respective member.This is needed for
unmapping the dst_mac buffer before freeing
me buffer.

Change-Id: I069b6c72a3fa402be7b79840131bb550dcee2d5f
2020-09-10 06:10:02 -07:00
Shivani Soni
0074989f91 qca-wifi: Update HTT debugfs directory name using netdev name
Update HTT debugfs directory name using netdev name

Change-Id: Ib6db1e30ae0153cddc3bb7e1f86348f4717a30b2
CRs-Fixed: 2771473
2020-09-08 08:42:48 +05:30
Debasis Das
1beaf3500a qca-wifi: Unmap nbuf while processing Tx completion
For mcast-enhancement, nbuf mapping is done once.
The nbuf is cloned as per the number of clients.
After queueing the pkt to HW, the nbuf should not
be unmapped immediately.The correct place to unmap
the nbuf is in the Tx completion path.

Change-Id: I6c45967b53e1d6db5a7ebf77c6df735c1a41d642
2020-09-07 15:23:54 +05:30
Kai Chen
78c7be2508 qcawifi: Use timer to schedule work queue for stats process
Use timer to schedule work queue for tx capture stats
process to fix the deauth missing issue in tx capture
when AP is down.

Change-Id: Ie1d1e3fa9f576cd6034fe6035ef933b1e78df99b
2020-09-03 11:39:40 -07:00
nobelj
cde48bdd58 qca-wifi: tx capture memory leak fix
Added memory leak fix and added assert in few more
places to capture other corner case issues.

Change-Id: I5c728f73aafa20b7d65f74e866e652fd8c73de83
2020-09-01 11:38:25 -07:00
Linux Build Service Account
07102ba8d1 Merge "qca-wifi: Debugfs support for HTT stats" 2020-08-31 19:36:33 -07:00
Linux Build Service Account
1db79bf21b Merge "qca-wifi: Replace QDF_MAC_ADDR_STR and QDF_MAC_ADDR_ARRAY" 2020-08-31 03:05:49 -07:00
Linux Build Service Account
30d7518fef Merge "qca-wifi: Use atomic operation in peer tid queue init" 2020-08-31 03:05:49 -07:00