Commit Graph

147 Commits

Author SHA1 Message Date
Srinivas Pitla
58a1539c08 qca-wifi: Mark beacon frames as selfgen
Beacon frames are FW generated frames, FW indicated them as DATA_SU,
with this, frame is not marked as self gen. It gets added to retry_q.

Check ppdu frame type and subtype to mark frame as selfgen if it beacon

Change-Id: If0bfd9bf2cc321afe207a4db7529e24baebfd376
CRs-Fixed: 2643848
2020-03-19 16:14:40 -07:00
Srinivas Pitla
298c78568e qca-wifi: cleanup buffers for incomplete amsdu
if last_msdu is not received  then allocated
mpdu_nbuf and mpdu_q is not freed,

This change frees the buffers in last_msdu not seen case.

Change-Id: Icaaa6e227f3ea1d314c6d15a9f76c2f622d5d93f
CRs-Fixed: 2643848
2020-03-19 16:14:27 -07:00
Srinivas Pitla
d11868e2c3 qca-wifi: Drop mgmt nbuf in tx_capture disabled case
If tx_capture is disabled, the frames notified to tx_capture
module needs to be freed.

This change frees mgmt frames in tx capture module, in case feature
is disabled

Change-Id: I71f102ba2f25f23bdcef63dddb525d5f7b0a692a
CRs-Fixed: 2643848
2020-03-19 16:13:31 -07:00
Srinivas Pitla
d0aafa3624 qca-wifi: Tx capture stability fixes
1) Avoid removing wrong nbuf from queue
   In corner case, the current flow can remove first nbuf instead of
   actual nbuf from queue, this can lead to having the actual pointer
   stored at two array indexs.

2) tsf wraparound handling for mgmt frame

3) Mpdu tried is higher than ba_sisze
   mpdus[] is allocated with ba_size, it is observed that mpdu_tried
   is higher than ba_size, which can lead to buffer overlow.
   Added the check of ba_size along with mpdu_tried.

To avoid it, copied nbuf in the corner case, and left the actual nbuf
in the xretries queue.

Change-Id: Ifa57eaf62cf50aa2c356a6d1f41ef4b7283be52e
CRs-Fixed: 2643848
2020-03-19 16:11:22 -07:00
Debasis Das
b51fd52ae0 qca-wifi: Pass proper address to sta_kickout callback
While invoking sta_kickout callback from dp layer, pass
proper mac-address.

Change-Id: I770a5b3f120fbfa53055348350005309f841867b
2020-03-17 02:34:07 -07:00
Linux Build Service Account
371e39c276 Merge "qca-wifi: fixing some compilation issues for WDS_VENDOR_EXTENSION" 2020-03-16 01:45:23 -07:00
Linux Build Service Account
c0a9fa10a7 Merge "qcawifi: Hold peer_ref while adding peer to multipass_list" 2020-03-11 05:57:31 -07:00
Pavankumar Nandeshwar
d4e7b67d7f qca-wifi: fixing some compilation issues for WDS_VENDOR_EXTENSION
Fix some compilations issues for WDS_VENDOR_EXTENSION

Change-Id: I82898aeb73b1512df85f937e36dfa7c70d57cac9
2020-03-11 15:03:51 +05:30
Linux Build Service Account
ee0b7860ae Merge "qca-wifi: Fix the issue on block ACK for BAR frame" 2020-03-11 02:16:30 -07:00
Pavankumar Nandeshwar
9efee1898c qcawifi: Hold peer_ref while adding peer to multipass_list
Hold peer_ref while adding peer to multipass_list
which will be released during the removal from the list.

Change-Id: I37ada3fd433dc9a8858dedb82dc9caee151fc88a
2020-03-10 01:37:00 -07:00
Linux Build Service Account
922817af53 Merge "qca-wifi: On mpdu copy expand, get reference of fraglist" 2020-03-09 19:14:54 -07:00
Kai Chen
f4aeb4b87e qca-wifi: Fix the issue on block ACK for BAR frame
Fix the issue on block ACK on response to BAR frame.

Change-Id: Ib8b8b55994ed44ed73a4272e0246f0f688118352
2020-03-09 15:56:18 -07:00
nobelj
1e5c16a0dd qca-wifi: Drop MU in tx capture support and other Fix
Fix to support Tx capture for below issues

a. intermittent change to drops all MU frames in Tx capture.
b. Fix to support, FW indicates enqueue bitmap with more bits than
actual MPDUs tried by HW tx capture holds more pending PPDUs, it causes
higher memory usage.
c. holding peer reference on get and release reference on delete
during tx capture.

Change-Id: I0ac5dce7995413585164b6c15dd8b647f0886fb1
2020-03-06 17:34:29 -08:00
nobelj
ae9de3a7de qca-wifi: On mpdu copy expand, get reference of fraglist
Add support to get reference of frag list when doing copy expand of
buffer.

Change-Id: Ia3bf249afab28ea7c50bfe3a6ff567fd95f86e47
2020-03-06 10:41:43 -08:00
Linux Build Service Account
d99bbeb26f Merge "qca-wifi: Add QoS NULL Check for Data Frames" 2020-03-05 04:38:40 -08:00
Christopher Chopp
4b2fd4033d qca-wifi: Add QoS NULL Check for Data Frames
Currently, there is no check for QoS NULL when
handling data frames in the TX Cap feature. This
leads to QoS NULL frames not being seen OTA. Add
a check in dp_tx_ppdu_stats_process to ensure data
frame is not a QoS NULL data frame before handling,
since QoS NULL payload comes in management path.

Change-Id: I9fa2e68115327a283b241214ff62534bcb1ed74a
CRs-Fixed: 2632712
2020-03-04 12:37:52 -08:00
Linux Build Service Account
8a69442922 Merge "qca-wifi: Remove dp_rx_mon.h inclusion from dp_tx_capture.c" 2020-03-03 20:08:46 -08:00
Linux Build Service Account
0deee0c946 Merge "qca-wifi: adding chan frequency to rx mpdu info" 2020-03-03 00:17:09 -08:00
Linux Build Service Account
7022f867ec Merge "qca-wifi: Add support for noAck frames for TX capture" 2020-02-28 14:36:21 -08:00
Christopher Chopp
06db648e34 qca-wifi: Temp WAR for MCAST traffic in TX Cap
Add temporary workaround for TX Capture Enhancements
feature to not process stats for  MCAST traffic unless
the peer is a bss peer. This change avoids memory leaks
relating to MCAST Traffic stats handling.

Change-Id: I9b564897e402a4381e6d92d983bc10e1036ee2b4
2020-02-26 18:11:38 -08:00
Ruben Columbus
3c96878216 qca-wifi: adding chan frequency to rx mpdu info
previously frequency was acquired by channel only.
adding chan frequency as a new param for the structure rx mpdu info
is now used to hold the frquency value from tlv in rx path.

Change-Id: Iba70af9de82dcd0c9c3b074eb857b6c9433f6767
2020-02-25 15:04:40 -08:00
Linux Build Service Account
57ae16c6e0 Merge "qca-wifi: tx capture stats for msdu and pending ppdu queue" 2020-02-25 13:09:54 -08:00
Linux Build Service Account
ee5754429a Merge "qca-wifi: Fix for tx capture softlockup on mode change" 2020-02-25 13:09:54 -08:00
nobelj
c42f615d91 qca-wifi: Fix for tx capture softlockup on mode change
In tx capture, while changing the tx capture we run into
soft lock up. The fix addressed the soft lock up issue.

Change-Id: I0cb6abb9ede2fb0a5d380e6986ec14dcaa31a13f
2020-02-24 22:54:13 -08:00
nobelj
965f45a0b3 qca-wifi: tx capture stats for msdu and pending ppdu queue
Add stats for msdu queue and pending queue as a part of tx capture stats.

Change-Id: I78f41cd1443715b6b763db01c9db2c4bcef44747
2020-02-24 22:46:53 -08:00
Christopher Chopp
a141b91706 qca-wifi: Add NULL check for mpdu_nbuf in TX Cap
Currently, no NULL check exists before the mpdu array from
the ppdu_dsc is populated. Add a NULL check after
qdf_nbuf_queue_remove before assigning it to the
ppdu_desc->mpdus array.

Change-Id: Ic5002b7939bb85440dbb8ea96dd46d30c70eb2ff
2020-02-24 15:51:53 -08:00
Amir Patel
44481117d3 qca-wifi: Remove dp_rx_mon.h inclusion from dp_tx_capture.c
Remove dp_rx_mon.h inclusion from dp_tx_capture.c

In I3a31dacd7d7e817f144708f9bda5536808080864,
dp monitor inline APIs are moved to header file.
This change is needed to get dp_tx_capture.c compiled.

Change-Id: I145cac1afbc4e19a5d36a97c4a9cbe93fe67f700
2020-02-24 19:43:12 +05:30
Linux Build Service Account
cc95a997ba Merge "qca-wifi: Fix tx capture enable and peer filter" 2020-02-23 12:10:10 -08:00
Amit Shukla
bc3ff96089 qca-wifi: Add support for noAck frames for TX capture
noACK action frames are generated in response to NDPA
frames.

Change-Id: Ib441041353050e7a4736e1e5830dbfd5d08e0f50
CRs-Fixed: 2622583
2020-02-21 14:13:25 -08:00
nobelj
bbcadc149e qca-wifi: Fix tx capture enable and peer filter
As a part of peer filter feature fix, tx capture feature
support only for peer filter. with this fix it support
tx capture enable too. 

Change-Id: I76e02b79a351bb3f73fa5c5d9e9a6dd583c27cc5
2020-02-21 12:03:30 -08:00
Linux Build Service Account
a633871412 Merge "qca-wifi: Rectify nbuf copy expand in TX Capture feature" 2020-02-21 11:44:21 -08:00
Linux Build Service Account
95744c646d Merge "qca-wifi: Fix for incorrect channel frequency in radio tap" 2020-02-20 19:52:49 -08:00
Christopher Chopp
2a21448971 qca-wifi: Rectify nbuf copy expand in TX Capture feature
Replace skb_copy_expand with qdf_nbuf_copy_expand to correctly
get offset for expand length. Additionally, loop over all elements
in nbuf_ppdu_desc_list instead of only checking once.

Change-Id: If9aed3c7c97354d912923ca25c8c52f1db27dac1
CRs-Fixed: 2620672
2020-02-20 19:34:59 -08:00
Linux Build Service Account
7732480801 Merge "qca-wifi: Add 6GHz support for chan/freq/band usage in mesh mode" 2020-02-20 11:09:38 -08:00
Linux Build Service Account
b402abfe62 Merge "qca-wifi: Fix tx capture RTS/CTS send before mgmt frame" 2020-02-19 23:46:41 -08:00
Amit Shukla
dacd2d5bb6 qca-wifi: Fix for incorrect channel frequency in radio tap
Channel frequency was shown as 0 in radio tap header for
tx capture feature.

Change-Id: Iae60770e59603a1d6056be649178fcdee26c1455
CRs-Fixed: 2621057
2020-02-18 21:51:19 -08:00
nobelj
a503717b9c qca-wifi: Support mgmt packet filter based on mac address
tx capture mgmt packet peer filter are filtered
based on RA mac address.

Change-Id: Ib5a5b4d6fc8170e711127e3d15b4389330da9f11
2020-02-13 22:45:38 -08:00
Linux Build Service Account
58f8c0dc33 Merge "qca-wifi: Add API signature change for qcn9000" 2020-02-13 13:07:20 -08:00
Karunakar Dasineni
f7e9e55e85 qca-wifi: Support HW generated CTS in Tx capture
Generate CTS frames when RTS is received for Tx capture.

Change-Id: I18facb952bbdc3f34fd2403806b7cd5c9c6f18d4
2020-02-11 10:24:47 -08:00
Linux Build Service Account
ffce2cf705 Merge "qca-wifi: support for rx ack recreation frame for tx failed frames" 2020-02-10 18:39:17 -08:00
nobelj
2127b951ec qca-wifi: Fix tx capture RTS/CTS send before mgmt frame
FW set mprot_type in NDPA frame as all ping request is a sound + steer.
check mprot type in mgmt frame and send dummy rts and cts.

Change-Id: I0f275c57e254117e06cb17173f4ae4b65f0e07aa
2020-02-07 15:36:02 -08:00
Linux Build Service Account
ef02ed8d12 Merge "qca-wifi: Extract msdu end TLV information into structure" 2020-02-06 06:06:44 -08:00
Aditya Sathish
190c110b59 qca-wifi: Add 6GHz support for chan/freq/band usage in mesh mode
Currently mesh mode uses channel numbering scheme which is derived
from APIs which don't support 6GHz channel numbering. This is
important because the channel numbers for 6GHz are overloaded with
those in the 2.4GHz and 5GHz band.

Add support to obtain the correct channel number (and auxiliary
information like band and frequency) through the new APIs that
support 6GHz.

Change-Id: I60afa5294af5e5681974f1bbc45c9e008eda1232
CRs-Fixed: 2605229
2020-02-05 02:04:27 -08:00
Ruben Columbus
11ec57d57b qca-wifi: support for rx ack recreation frame for tx failed frames
rx ack does not get created for tx failed frames.
this is done with a check for completion status on the previous frame.

Change-Id: Idfff8aa8165542bb2ca2cf1370a201ccb057997e
2020-02-04 13:09:24 -08:00
Linux Build Service Account
992e62ae73 Merge "qca-wifi: Add the Rx Capture changes for filter framework" 2020-02-03 09:38:29 -08:00
Aniruddha Paul
7841f78d54 qca-wifi: Add the Rx Capture changes for filter framework
Make the necessary changes in the Rx capture path to adapt
the monitor filter framework.

Change-Id: I35155ec57e93f85a9bdf3933f9a8370c4b786db2
2020-02-01 03:14:24 -08:00
Ankit Kumar
f0ceb5ba1e qca-wifi: Enable vlan hw acceleration in Rx
Enable vlan hardware acceleration support in Rx path
if multipass feature enabled.
It is expected for a packet to have vlan header in-placed
and vlan_id is padded with zero. If not, drop the frame with
proper error updation.
Update vlan_id if frame comes with special peer and has vlan
header in placed and vlan_id padded with 0.

Change-Id: Ife7a371dcca20634b0dc99f00cb02551dbff611f
CRs-Fixed: 2584007
2020-01-31 03:33:00 -08:00
Linux Build Service Account
46b3231f9f Merge "qca-wifi: API support for peer MultiQueue support" 2020-01-30 00:37:11 -08:00
Mainak Sen
e1349928dd qca-wifi: API support for peer MultiQueue support
Lithium HW can parse each MSDU when packets are enqueued to transmit
classifier and each MSDU can get enqueued to different MSDU-Queue.
By default, there are 2 queues per TID – UDP and NON-UDP. Based on
the flow parsing, packets will be queued to either of them.
Enterprise customers uses RAW mode frames which transmit classifier
would not be able to identify L4 protocol for  UDP or NON-UDP queue
for encrypted frames.
Customer can also have different application based packets which needs
to be enqueued to differently prioritized queues. They can choose to
tag each MSDU based on application DPI and derive the flow priority
as below –
•	UDP
•	NON-UDP
•	HI-PRIO
•	LOW-PRIO
Customer needs API support from host which will provide an ast-index
based on a particular flow id given peer mac address. Based on the mac
address, host will find the associated peer and return the ast_index &
cache set number corresponding to the flow id from peer flow based ast
entry table. Customer will then program this ast-index and ast override
in transmit classifier CMD ring to enqueue MSDU to a specific
flow-queuein TQM.
Host API:
Input parameter – uint8_t *macaddress,uint8_t flowid,uint8_t tid
Output – uint16_t ast_index

Change-Id: I62b2308510ee7a43b153e125dc3bee6abbad0848
2020-01-29 11:37:20 +05:30
Linux Build Service Account
c339a0ffb2 Merge "qca-wifi: fix the issue in block ack/ack for tx capture mode" 2020-01-28 19:39:18 -08:00