Commit Graph

1226 Commits

Author SHA1 Message Date
Linux Build Service Account
7d2bb8a75b Merge "qca-wifi: Move into correct compile flags." 2019-05-02 18:06:51 -07:00
Abhiram Jogadenu
3678ea24ad qca-wifi: Move into correct compile flags.
Move the code dependent on DIRECT_BUF_RX into necessary macros
to avoid compilation failure when WIFI_3_0 configs are disabled.

CRs-Fixed: 2445655
Change-Id: I61001f6d6a1d33bd9bd92b795c50813f1e88f87f
2019-05-02 10:57:32 -07:00
Linux Build Service Account
eddae4e5d3 Merge "component_dev: Populate mpdu info for enhanced monitor mode" 2019-04-29 18:34:24 -07:00
Linux Build Service Account
b2ec9f217e Merge "qca-wifi: Fix wmi handle type in protocol tag API" 2019-04-29 00:39:36 -07:00
Kai Chen
2c19e70392 component_dev: Populate mpdu info for enhanced monitor mode
Modify poplate mpdu info code for enhanced monitor mode

Change-Id: I2541532c8f4f240cc7093f2413a901dd67195684
CRs-Fixed: 2442973
2019-04-26 14:04:36 -07:00
Linux Build Service Account
da643ab5c7 Merge "qca-wifi: Fix KW issues" 2019-04-25 15:05:10 -07:00
Karunakar Dasineni
d08697000c qca-wifi: Fix wmi handle type in protocol tag API
Use wmi_unified_t instead of void* in Rx protocol
tag update interface.

Change-Id: Iebc7cd4c0ac7d8473ddfdac53f1f35875f065628
2019-04-23 22:28:15 -07:00
Linux Build Service Account
b9630f91f1 Merge "qca-wifi: After NOL timeout add channels to ETSI PreCAC Required List" 2019-04-22 21:04:57 -07:00
narayan
80554f5219 qca-wifi: Fix KW issues
Fix KW issue in cfr_common.c and wlan_cfr_tgt_api.c

Change-Id: I23e0ce3bf41ca9e6250800b7945c92ace80f037e
CRs-Fixed: 2439699
2019-04-22 23:21:10 +05:30
Linux Build Service Account
b1f91ce68c Merge "qca-wifi: Move WIN ENH RX capture feature out of cmndev" 2019-04-19 12:35:22 -07:00
Hariharan Basuthkar
34601e1662 qca-wifi: After NOL timeout add channels to ETSI PreCAC Required List
After NOL timeout, if ETSI PreCAC is supported, add the HT20 Channel
to ETSI PreCAC Required List.

Change-Id: I45812d0f7a9dd20e4fb1f03e6a71548ff2f6e5b4
CRs-Fixed: 2403489
2019-04-19 06:59:24 -07:00
Linux Build Service Account
290546106a Merge "qca-wifi: Add new feature to support protocol tags." 2019-04-19 03:07:47 -07:00
Kai Chen
b6ff0eaa75 qca-wifi: Move WIN ENH RX capture feature out of cmndev
Move WIN ENH RX caputre feature out of common dev to
component dev

Change-Id: I642ef98e2a93a395351d48a927186f419ba7f341
2019-04-16 16:29:44 -07:00
Karunakar Dasineni
a7ec8895c5 qca-wifi: Add new feature to support protocol tags.
With this feature, using appropriate commands, link layer, network layer,
transport layer and some of the application protocols can be tagged with
the user provided tag values for easier identification of protocols. The
supported protocols today are as follows.

ARP, DHCPv4, DHCPv6, DNS over TCP (v4), DNS over TCP (v6), DNS over UDP
(v4), DNS over UDP (v6), ICMPv4, ICMPv6, TCPv4, TCPv6, UDPv4,
UDPv6, IPv4, IPv6, EAP.

Receive packets are tagged by hardware. Tags are applied after the first
matching rule. Hence it is recommended that the rules are
programmed in such a way that tags are configured from application layer
to data link layer to get expected results.

Change-Id: Idd47cbab5882cef4530a19c0d96f52f9a47de6d4
2019-04-16 09:39:25 -07:00
Amir Patel
c87166665a qca-wifi: Fix zero rate index issue in peer rate stats
Rate index zero (representing 11 Mbps in ratetable) was ignored in current
stats implementation. Added code changes to include zero rate index

Some formatting is done in peerstats app to avoid exceeding 80 chars

CRs-Fixed: 2424176
Change-Id: I9d6938cc840ee3db3639b3608b429a97832c3168
2019-04-15 05:07:45 -07:00
Hariharan Basuthkar
d2e9132ee0 qca-wifi: Remove Channels from ETSI PreCAC Required List when in NOL
When a channel is marked as radar detected and added to preCAC NOL
list, it is removed only from etsi precac done list, but not from etsi
precac required list. Since a channel that is part of NOL, cannot also be
a part of etsi precac required list, this needs to be corrected.

Therefore, once radar is detected on a channel, remove it from both etsi
precac required list and etsi precac done list.

Change-Id: I4d809a24acd4b73db254790e2698ffc5414cf0fe
CRs-Fixed: 2403489
2019-04-11 05:51:05 -07:00
Linux Build Service Account
955622c55b Merge "qca-wifi: Clean up CMN_VDEV_MGR_TGT_IF_ENABLE macro" 2019-04-09 18:05:24 -07:00
Akshay Kosigi
cee8eff92f qca-wifi: Clean up CMN_VDEV_MGR_TGT_IF_ENABLE macro
Remove CMN_VDEV_MGR_TGT_IF_ENABLE macro usage for wifi component.

Change-Id: I1c047f8f5f9c3b0c9d54515f7787218bfb0e44cd
CRs-Fixed: 2431243
2019-04-08 16:37:12 +05:30
Abhiram Jogadenu
c0f1ac1dff qca-wifi: Correct data populated in csi_cfr_header
Two fields got swapped while polulating csi_cfr_header and
a field was missed. Corret and add missing fields.

CRs-Fixed: 2421237, 2421241, 2421209
Change-Id: Ife8ebc663292af021cc4556985c088092509b339
2019-04-08 11:10:36 +05:30
Linux Build Service Account
19704f4867 Merge "qca-wifi: Updating CFR's DBR handler API" 2019-04-04 15:21:39 -07:00
Abhiram Jogadenu
0458ba49eb qca-wifi: Correct bandwidths populated in CFR header
Channel and capture bandwidths got interchanged while filling.

CRs-Fixed: 2421520
Change-Id: I895161bae54525283ab8edcb6fcfb1112beadf73
2019-04-02 21:52:15 -07:00
Linux Build Service Account
d95ffda402 Merge "qca-wifi: Block stop request till restart response is received" 2019-04-02 01:37:11 -07:00
Srinivas Pitla
5570c7b4cb qca-wifi: Block stop request till restart response is received
Currently, for restart response cases, if Restart is not in progress and if
stop is issued, VDEV SM is allowing Stop request to send to FW.

This fix would prevent such cases.

Change-Id: I0d4d74c5eb2a9c9bbb588f7114fbbd5611c37cd5
CRs-Fixed: 2400987
2019-03-28 01:57:12 -07:00
Santosh Anbu
76e8651efa qca-wifi: Consolidate IEEE80211_ADDR_LEN to QDF_MAC_ADDR_SIZE
Consolidate multiple (redundant) IEEE80211_ADDR_LEN to
QDF_MAC_ADDR_SIZE

Change-Id: Icf37007f58439be222b14e882ce539b39e181b96
CRs-Fixed: 2418107
2019-03-24 09:18:21 -07:00
Linux Build Service Account
a71d0065e1 Merge "qca-wifi: Add NULL pointer access" 2019-03-22 07:08:59 -07:00
Linux Build Service Account
9c983770db Merge "qca-wifi: Remove compilation warnings in peerstats application" 2019-03-20 15:04:57 -07:00
Amir Patel
17a6b89049 qca-wifi: Add NULL pointer access
Add NULL checks for peer rate stats context

Change-Id: I813568534c23acc2bd0910cd0dba020c99ea291a
CRs-Fixed: 2417495
2019-03-20 16:12:01 +05:30
Viyom Mittal
6fdadfaf1d qca-wifi: Remove compilation warnings in peerstats application
Remove unused variables and correct formatting issues.

Change-Id: Ifb6a905a74f533f9f3bac5dafe113590183688fe
2019-03-20 14:06:36 +05:30
Linux Build Service Account
802c7dab60 Merge "qca-wifi: Add QAL API for Linux notifier registration" 2019-03-18 08:04:25 -07:00
Linux Build Service Account
182b8059ea Merge "qca-wifi: Enhanced OS abstraction support" 2019-03-17 22:03:32 -07:00
Pranita Solanke
6d20eef9a2 qca-wifi: Remove compilation errors in peerstats application
Use WLANSTATS_CACHE_SIZE macro instead of WLANSTATS_MAX_NODE

Change-Id: I99bd8973e183cdac06c1a0a3eed6eea5e70f4599
2019-03-16 18:10:32 +05:30
Linux Build Service Account
7157708b1a Merge "qca-wifi: Add RDK statistics cache module code" 2019-03-15 23:04:50 -07:00
Linux Build Service Account
86991bff4c Merge "qca-wifi: Address RDKB compilation issue" 2019-03-15 19:34:16 -07:00
Linux Build Service Account
c35c0a2ecb Merge "qca-wifi: Redefine pdev and vdev param to remove CONFIG_MCL" 2019-03-15 19:34:15 -07:00
Linux Build Service Account
20f65cc8c8 Merge "qca-wifi: Adds support for Agile DFS feature" 2019-03-15 15:34:05 -07:00
Srinivas Pitla
2ea53466ff qca-wifi: Address RDKB compilation issue
This change adds braces to fix compilation error for RDKB issue

Change-Id: Ie6943e527d5e2b9b60c4d83d287f0b50fa489374
CRs-Fixed: 2400987
2019-03-14 19:24:29 -07:00
Vivek
9d38faa62a qca-wifi: Add QAL API for Linux notifier registration
Add QAL API to register/unregister to the Linux
kernel panic notifier chain.

Change-Id: Ie45ca7eea3efd80c62a7de066e2cf184f1606cb0
CRs-Fixed: 2408487
2019-03-14 19:17:56 +05:30
Abhiram Jogadenu
a8065f6377 qca-wifi: Updating CFR's DBR handler API
DBR event handler needs parameters to config number of events to
be packed and timeout until it can wait to pack these events.
Add these parameters in CFR's DBR event registration.

CRs-Fixed: 2415489
Change-Id: Id417221f3bebef40b8f8d75c0365c3c4ec01fec3
2019-03-14 05:56:36 -07:00
Amir Patel
ad7152d001 qca-wifi: Add peerstats application
Add peerstats application to display peer rate stats
of following types:
a. Tx rate stats
b. Rx rate stats
c. Tx sojourn stats

CRs-Fixed: 2397918
Change-Id: Icf319b7eb4a73c8421341390132de6b3b2de1494
2019-03-14 16:34:15 +05:30
Amir Patel
ea587c9d8b qca-wifi: Add RDK statistics cache module code
Define cache module code required for RDK-B statistics :
a. Objects to maintain tx and rx rate related statistics
b. Interface objects to be use by dp while pushing stats to module
c. Northbound interaction specific IOCTL structures/enums
d. WDI handlers for southbound interaction from dp to stats module.

CRs-Fixed: 2407888
Change-Id: I50b1461bc415e957d224bb1ec56e5e94cd833c27
2019-03-14 13:57:30 +05:30
Debasis Das
811085f374 qca-wifi: Enhanced OS abstraction support
The OS abstraction API's is being added under
the "qal" src path.

Change-Id: Iff03d19a837e664762c1f3fee8c999a962953a5e
2019-03-14 10:25:17 +05:30
Vikram Kandukuri
37fbf98811 qca-wifi: Fix error prints in cfr initilization
we are seeing few error prints while registring
TX events per pdev. Ignore double registration
error during pdev init.

Change-Id: I185b1c9178a4632bd14b65314a623efee0597481
CRs-Fixed: 2414456
2019-03-12 05:29:00 -07:00
Linux Build Service Account
b6db0cb654 Merge "qca-wifi: Fix cfr max clients reference" 2019-03-08 23:05:57 -08:00
narayan
15f9397f82 qca-wifi: Fix cfr max clients reference
Fix cfr max clients ref cnt decrement when periodic
cfr is stopped.

Change-Id: I0f855e3de0f19e45243f1a49e5a5902319328ec1
CRs-Fixed: 2412533
2019-03-08 20:15:53 +05:30
Abhiram Jogadenu
d18e21fcba qca-wifi: Register and correlate dbr and tx events
Register tx and dbr events and extract data required from
these events to pass it on to relayfs.

Change-Id: I9be9d0f9d47fa926406ee525742886d55229bab0
2019-03-07 20:36:56 +05:30
Surya Prakash Raajen
3634e2fc48 qca-wifi: Redefine pdev and vdev param to remove CONFIG_MCL
Convert pdev and vdev param conversion array to pointers
and allocate them only if conversion is required.Use run-time
NULL check of pdev and vdev param pointers for conversion
and remove CONFIG_MCL compiler flag.

Change-Id: If9c966f8306514ee981698ad9f90db38dd3c5aad
CRs-Fixed: 2393422
2019-03-07 00:06:39 -08:00
Linux Build Service Account
954947c086 Merge "qca-wifi: Compilation fix for CFR macro enable" 2019-03-06 03:13:51 -08:00
Shaakir Mohamed
73adf7d672 qca-wifi: Adds support for Agile DFS feature
Agile Dynamic Frequency Selection refers to the mechanism in which DFS
scanning takes place on a separate dedicated synthesizer
(agile DFS sythesizer), while the access point is receiving data on a
separate channel. Once DFS scanning completes in the aDFS
synthesizer, AP can switch its primary channel to this preCAC done
channel, without having to do a Channel Availability Check of 60
seconds

Hawkeye has native support for A-DFS unlike Cascade, which uses a
dedicated radar detector for background scanning. Each radio has two
synthesizers, one of which can be used for A-DFS.
Host driver will configure an A-DFS channel along with maintaining
pre-CAC Done list of channels.
PreCAC list caching of channels is limited to ETSI domain.

Once off channel CAC completes in the agile channel, HOST receives
O-CAC complete indication. O-CAC status included as a apart of event
params has information if the preCAC is successful or not. If RADAR
is found on the agile channel, host receives indication through the
existing radar indication event. HOST identifies the detection as
agile channel radar using the detector id value.

For SBS mode, there can be 2 pdev's which can include DFS channels.
Although the preCAC list is maintained separate for each pdev,
preCAC can only be performed for a single pdev at a time.
This is implemented by making the host timer common
for both pdevs,i.e psoc level timer.

The following commands can be used to set/get preCAC enable,as long
regdomain is ETSI along with agile capability enabled in the target
advertised to host in WMI ready event.
	iwpriv wifiX get_preCACEn
	iwpriv wifiX preCACEn 0/1

Change-Id: Id8eaf7526942cbf01a9a62a2b109813624ae550f
CRs-Fixed: 2385536
2019-03-05 23:22:50 -08:00
Linux Build Service Account
dc88bf0c8c Merge "qca-wifi: Support for multivdev restart in WIFI2.0 chipsets" 2019-03-05 05:37:00 -08:00
Linux Build Service Account
8d4b490186 Merge "qca-wifi: Fix per peer config cfr stop command" 2019-03-05 05:36:59 -08:00