Commit Graph

1428 Commits

Author SHA1 Message Date
Linux Build Service Account
52c8ecc843 Merge "qca-wifi: Add dfs_set_cfreq2 flag in multivdev_restart channel params" 2019-08-13 06:14:40 -07:00
Subrat Mishra
27912b929d qca-wifi: Smart Antenna WMI support for 11bit ratecode
Smart Antenna support for extracting 11bit ratecode and packing
for tx packet training.

Change-Id: I8b838f3af8a6d2060b40c912e282dd3f11bf0339
CRs-Fixed: 2506480
2019-08-13 01:45:06 -07:00
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
Shreedhar Parande
77ac19d602 qca-wifi: Separate APIs for getting values of precac and agile precac
Currently single API is used to get dfs_precac_enable and
dfs_agile_precac_enable. This API was wrongly returning value for
dfs_precac_enable since agile capability was set even for Cascade.

Sepate out the GET APIs for getting dfs_precac_enable and
dfs_agile_precac_enable so that getting these flags becomes independent
of each other.

Change-Id: Ie617c04269f91db32f851871880c4df884517a67
CRs-fixed: 2501266
2019-08-12 02:51:59 -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
Linux Build Service Account
5e090cdb98 Merge "qca-wifi: Add a new feature to support tagging of IPv4/v6 flows" 2019-08-09 04:51:21 -07:00
Akshay Kosigi
7026f86668 qca-wifi: Move config files into component dev
Move CONFIG files specific for AP into component_dev
instead of keeping them in cmn_dev

Change-Id: I8d44faec5b0e43d2197e1d08549637702be3848d
CRs-Fixed: 2506560
2019-08-09 16:41:21 +05:30
Linux Build Service Account
9ef0c191fe Merge "qca-wifi: Build the preCAC list only for ETSI domain" 2019-08-07 23:09:35 -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
Vignesh Mohan
1bf4fb8c2a qca-wifi: Add dfs_set_cfreq2 flag in multivdev_restart channel params
While switching to 36 HT160 as part of multivdev restart, the channel
params to be sent to FW are only updated with primary segment dfs set flag.

Consider if the primary channel is 36 (non DFS), in which case, the
primary HT80 segment is non DFS, but secondary HT80 segment is DFS. This
will be indicated to FW by sending the flags with dfs_set as FALSE and
dfs_set_cfreq2 as TRUE. But since dfs_set_cfreq2 is not updated incase of
multivdev restart, FW does not detect radar in the secondary detector.

Add proper dfs_set_cfreq2 flag in multivdev_restart channel params.

Change-Id: I875534c3f61b1d9a36efe1ec63505332a59a4dd1
CRs-Fixed: 2496923
2019-08-05 23:58: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
Linux Build Service Account
377dfe439d Merge "qca-wifi: Add a DFS API to reset ADFS config" 2019-08-04 11:05:52 -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
Vignesh Mohan
8d81493bc3 qca-wifi: Build the preCAC list only for ETSI domain
The preCAC list (forest) is built irrespective of the current DFS domain.
But since preCAC feature is only supported by ETSI spec., the list will
not be used by other domains.

Build the preCAC list only for ETSI domain.

Change-Id: I5949fda8b2c51237f80ce5335d9c9453f46ef3a4
CRs-Fixed: 2499643
2019-07-30 15:30:28 +05:30
Priyadarshnee S
4842dac1b4 qca-wifi: Add a DFS API to reset ADFS config
Add an API to reset Agile DFS config variables. This will make sure that
ADFS config variables are consistent when we dynamically disable/enable
a PDEV.

CRs-Fixed: 2481535
Change-Id: I3842ed45f8a071523c3de1face0463d21da737bb
2019-07-30 07:00:27 +05:30
Linux Build Service Account
b6bd878499 Merge "qca-wifi: Replace void * data members of mlme with specific type" 2019-07-29 09:38:19 -07:00
Linux Build Service Account
c6ba6596d7 Merge "qca-wifi: Replace void * data members of cp_stats with specific type" 2019-07-26 22:34:18 -07:00
Himanshu Batra
ada6f9d07d qca-wifi: Replace void * data members of mlme with specific type
Replace mlme void * data members having different types across
different drivers with specific type.

Change-Id: I8d16fe8fb8af65c30b2ee17b9b018b9903e968fa
CRs-Fixed: 2463030
2019-07-26 04:44:49 -07:00
Himanshu Batra
dd4f3f1e19 qca-wifi: Replace void * data members of cp_stats with specific type
Replace cp_stats void * data members haing different types
across different drivers with specific type

Change-Id: I1a5ed35428607dbfb070459b88358b68f49f8cb3
CRs-Fixed: 2462355
2019-07-26 10:33:06 +05:30
Shashikala Prabhu
d24065d0ce qca-wifi: Fix compilation errors for smart antenna disable case
Smart antenna feature is disabled for 256M config. This change
fixes the compilation errors.

Change-Id: Ie43a5ddf0a88d8a022e052490601ac57e184b8ac
CRs-Fixed: 2494385
2019-07-25 10:39:35 -07:00
Linux Build Service Account
d735f5e25d Merge "qca-wifi: Extract Peer Ratecode list event data" 2019-07-25 01:06:51 -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
Linux Build Service Account
8b73b3c50d Merge "qca-wifi: Configure proper agile preCAC timeout value" 2019-07-23 20:35:16 -07:00
Linux Build Service Account
2ea12f29e2 Merge "qca-wifi: Update pdev restart bmap from restart send bitmap" 2019-07-20 06:05:14 -07:00
Linux Build Service Account
7cec258273 Merge "qca-wifi: Replace void * tgt_if_handle with abstract type" 2019-07-19 04:10:12 -07:00
Santosh Anbu
4fde2e5169 qca-wifi: Update pdev restart bmap from restart send bitmap
Add change to copy the contents of multivdev restart send bitmap
to the pdev restart attribute holder which will be reset when all
the vdevs of the pdev are in the UP state

Change-Id: Ieef13fd5b5db25ddd2b8736c9d01786c537c3483
CRs-Fixed: 2492538
2019-07-19 16:20:29 +05:30
Vignesh Mohan
fb2c9f9864 qca-wifi: Configure proper agile preCAC timeout value
According to the ETSI speculation, off-channel CAC  has a
minimum timeout value of 6 mins (non-weather) and 1 hour (weather). The
maximum timeout value is 4 hours (non-weather) and 24 hours (weather).

Current implementation always took 60 seconds (1 min) as the default
preCAC timeout value. Add changes to implement proper timeout values
based on the channel (weather or non-weather). As part of this change,
add an API to determine if a channel is within this range based on
the edge channels of the given bandwidth.

The API (dfs_start_agile_precac_timer) is called inside
dfs_get_ieeechan_for_agilecac which is used to find the next channel
for agile CAC. Move dfs_start_agile_precac_timer outside
to functionally differentiate each APIs.

Change-Id: Idf3f371b0ab839a746cfba69e86f58202698f3c3
CRs-Fixed: 2482929
2019-07-18 15:29:24 +05:30
Linux Build Service Account
bdf813bfc8 Merge "qca-wifi: Check for proper channel width during Agile CAC" 2019-07-18 01:20:36 -07:00
Vignesh Mohan
2ec51b254e qca-wifi: Check for proper channel width during Agile CAC
While picking a channel to start Agile CAC on, the current channel
width enum is checked if it is non zero and only then a channel is picked.

However, the channel width value of 0 indicates the width is 20MHz.
Check if the channel width value is not CH_WIDTH_INVALID and only then
start Agile CAC.

Change-Id: Id024631fc7b034fe87f2070d150da64cf07c49ae
CRs-Fixed: 2491517
2019-07-17 14:41:45 +05:30
Himanshu Batra
37b16cda06 qca-wifi: Replace void * tgt_if_handle with abstract type
Replace void * tgt_if_handle of objmgr psoc/pdev with
abstract type handles provided by target interface

Change-Id: I903bbae99ec784fe445dc55f954792542d91f380
CRs-Fixed: 2467129
2019-07-16 22:40:06 -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
685bdc85a1 Merge "qca-wifi: Enable non-TLV support for vdev delete all peer" 2019-07-16 13:52:49 -07:00
Linux Build Service Account
b86767583c Merge "qca-cmn: Remove send_pdev_set_chan_cmd_non_tlv" 2019-07-16 07:22:02 -07:00
Subrat Mishra
ab79f95873 qca-wifi: Extract Peer Ratecode list event data
Extract peer ratecode list event data for Smart Antenna.

Change-Id: I3c2b710f9cc6a8483efb145a6ff1a447d6fc62b6
CRs-Fixed: 2476518
2019-07-16 04:09:21 -07:00
Linux Build Service Account
e1e452b9bb Merge "qca-wifi: Kale ToT compilation Fixes" 2019-07-16 00:43:42 -07:00
Linux Build Service Account
4a81f34e20 Merge "qca-wifi: Enable TLV support for vdev delete all peer" 2019-07-14 21:18:50 -07:00
Hariharan Basuthkar
4d8a290f9a qca-cmn: Remove send_pdev_set_chan_cmd_non_tlv
Remove send_pdev_set_chan_cmd_non_tlv as it is unused.

Change-Id: I1bd49429a6192e0e308a1db14793311386411700
CRs-Fixed: 2489591
2019-07-14 17:38:15 -07:00
Naga
caf7c0cc78 qca-wifi: Enable non-TLV support for vdev delete all peer
Enable non TLV support for vdev delete all
peer request which will replace individual peer
delete of peers under a vdev during vdev down.

Change-Id: I77a27544fecedffa803e795d901829eb2e9b7a19
CRs-Fixed: 2477607
2019-07-13 07:40:25 -07:00
Linux Build Service Account
1beb51e065 Merge "qca-wifi: Provide 20/40/80MHz Agile DFS support" 2019-07-12 02:04:39 -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
Linux Build Service Account
eaf615c3ad Merge "qca-wifi: Replace void * wmi_hdl with abstract type" 2019-07-11 12:37:19 -07:00
Linux Build Service Account
f505348a4c Merge "qca-wifi: Replace void * wmi_hdl with abstract type" 2019-07-11 12:37:18 -07:00
Naga
1e88b85a04 qca-wifi: Enable TLV support for vdev delete all peer
Enable TLV support for vdev delete all
peer request which will replace individual peer
delete of peers under a vdev during vdev down.

Change-Id: I9a4e50a97b234f8e39b0d5e7896138f1e76b3c2f
CRs-Fixed: 2477605
2019-07-11 02:56:06 -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
velagapudi suresh
c8fc5d961f qca-wifi: Kale ToT compilation Fixes
Modified some of print formats to required print format identifiers.

Change-Id: I15191c534572cd50ab5e961c622fad1fe4b6726f
2019-07-11 11:29:07 +05:30
Linux Build Service Account
92d227899a Merge "qcawifi: Introducing event logger for HTT command/event Tx/Rx" 2019-07-09 20:09:48 -07:00