Commit Graph

1352 Commits

Author SHA1 Message Date
Linux Build Service Account
65ab50035d Merge "qca-wifi: Update feature wds APIs and move dp_peer_teardown_wifi3 to cmndev" 2019-05-29 13:05:05 -07:00
Prathyusha Guduri
76cd8648a3 qca-wifi: Capture ppdu_cookie in mpdu_info
ppdu_cookie extracted from ppdu htt completion in user stats tlv is
copied to mpdu_info which is delivered to upper layer

Change-Id: I9c3b5a86b345b5f5545ec81b41b682c82547d5f5
2019-05-27 02:00:56 -07:00
Himanshu Batra
e460ccec98 qca-wifi: Consolidate IEEE80211_ADDR_LEN to QDF_MAC_ADDR_SIZE
Consolidate multiple (redundant) IEEE80211_ADDR_LEN to QDF_MAC_ADDR_SIZE

Change-Id: I30790ed7b8e6299353e639fc4cd39f72e8e699cd
CRs-Fixed: 2439274
2019-05-26 21:58:23 -07:00
Linux Build Service Account
85788ec51c Merge "qca-wifi: Add support for InterCAC channel switch in Hawkeye" 2019-05-24 09:35:04 -07:00
Linux Build Service Account
8ad1950ec3 Merge "qca-wifi: Remove unused peer mgmt stats" 2019-05-24 01:36:10 -07:00
Karunakar Dasineni
6169bd6e2a qca-wifi: Protocol tag support in lite rx monitor
Add protocol tagging support in lite rx monitor mode.

Change-Id: If95f43cade89d2a980dd6868f40fe7f5413bf019
CRs-Fixed: 2448531
2019-05-23 19:41:24 -07:00
Vignesh Mohan
445f14c8fc qca-wifi: Add support for InterCAC channel switch in Hawkeye
Currently if InterCAC support is enabled:

1. If the user configures a DFS channel in 80MHz mode, the
   radio switches to an intermediate channel and the user
   desired channel is added on the top of the lists of the
   channels to be CACed using AgileDFS.

2. If the user configures a DFS channel in 160MHz mode, the
   radio switches to an intermediate channel and the user
   desired channel is split into two 80MHz channels and are
   added on the top of the list.

3. After agile CAC is completed on the user configured channel,
   the radio stays on the intermediate channel.

Change the current channel (and mode) back to user desired
channel, after agile CAC is completed on the desired channel.

Change-Id: Ib3e7757316ebddfc75f1b1f1f4bb8c5debd04d62
CRs-Fixed: 2448224
2019-05-23 03:28:34 -07:00
Pranita Solanke
0b5337fd6b qca-wifi: Update feature wds APIs and move dp_peer_teardown_wifi3 to cmndev
dp_tx_mec_handleri,dp_rx_wds_add_or_update_ast,
dp_rx_wds_srcport_learn were changed inside common dp.
As part of cleanup we have moved it to component
dev.This change adopts to the latest dp_tx_mec_handler version.
With this change we are moving dp_peer_teardown_wifi3 to common code as
it is also required by MCL driver code.

Change-Id: Ieba59ceb2f3a3b21f3588fe2685e0dc720ee049a
2019-05-23 11:21:32 +05:30
Amir Patel
bd3e9bb9b3 qca-wifi: Add rssi_chain support for peer rate stats
Add rssi_chain support for peer rate stats

CRs-Fixed: 2445933
Change-Id: I98a0bb6e17cfc5ef22a36a1fe632b4dbe2c0d02a
2019-05-22 14:54:05 +05:30
Kai Chen
1cc9fe7b53 component_dev: Fix memleak issue on Rx enhanced capture
Fix memleak on Rx enhanced capture mode. Adding frag list on the
cloned buffer causing the memory leak. Allocate a MPDU control
block. The MPDU header(128 bytes) and mdsu headers(128 bytes)
link list is attached to MPDU control block frag list. The MPDU
control block is sent to osif layer to send to network stack.

Change-Id: If6c81b9d1027dfbb12277574fe9598f6fb8c5eca
2019-05-21 17:50:21 -07:00
Santosh Anbu
cf2e9f8ddc qca-wifi: Remove unused peer mgmt stats
Peer delete request and response stats has been moved to per vap
stats.

Change-Id: I9f46ead931d4b9f13166db9510394993575516d9
CRs-Fixed: 2455845
2019-05-20 14:17:19 +05:30
Linux Build Service Account
02c71a8024 Merge "qca-wifi: Move WIN specific code out of cmndev" 2019-05-15 18:35:56 -07:00
Linux Build Service Account
50d89ab4a6 Merge "qca-wifi: Use arrays for param conversion from host to target type" 2019-05-13 23:03:57 -07:00
Surya Prakash Raajen
da92110871 qca-wifi: Use arrays for param conversion from host to target type
Convert host param id to target param id using arrays
instead of switch case. This enables removal of
CONFIG_MCL compile time macro and use specific macro
ENABLE_HOST_TO_TARGET_CONVERSION for conversion

Change-Id: I4dae15baac0c74846155a5f1ee3328dfc2f28ad5
CRs-Fixed: 2418030
2019-05-13 17:49:27 +05:30
Linux Build Service Account
d3daa53e99 Merge "qca-wifi: Move peer delete req/resp stats from pdev to vdev" 2019-05-13 04:35:26 -07:00
Pranita Solanke
6d9b087650 qca-wifi: Move WIN specific code out of cmndev
Move WIN specific structures and features(WDS/AST/ME)
out of common code inside component dev

Change-Id: I9a9696fa891d3f5dac1a86813fc53af18d7be3a6
2019-05-13 13:33:45 +05:30
Linux Build Service Account
3dcc1794e9 Merge "qca-wifi: Move WIN ENH TX capture feature out of cmndev" 2019-05-10 13:36:54 -07:00
Linux Build Service Account
c5570472f3 Merge "qca-wifi: Free buffer in case of error in sending wmi cmd" 2019-05-10 07:35:35 -07:00
Linux Build Service Account
a491c04e24 Merge "qcawifi: Remove unnecessary print from rate stats module" 2019-05-09 20:06:32 -07:00
nobelj
e37d964295 qca-wifi: Move WIN ENH TX capture feature out of cmndev
support TX capture mode to deliver msdu along with meta data

Change-Id: I05b988860eec4afe29382b26136958801cccb6eb
2019-05-09 12:16:14 -07:00
Santosh Anbu
403dfb711c qca-wifi: Move peer delete req/resp stats from pdev to vdev
Added change to handle peer delete request and response stats at per
vdev layer instead of pdev layer

Change-Id: Ie58ed9f1916f226411fe16a569fa81f2f20b9db0
CRs-Fixed: 2445668
2019-05-07 12:49:02 +05:30
Vikram Kandukuri
4b8d28d999 qca-wifi: Add chainmask in CFR header
Add chainmask in CFR header currently number of rx chains
are poulated.

Change-Id: I983819effcf68fe77fdef256a3359d9658aa20eb
CRs-Fixed: 2446696
2019-05-06 10:55:17 +05:30
Amir Patel
2cf70b694b qcawifi: Remove unnecessary print from rate stats module
When rate tlvs are nor parsed or completion status is not okay,
still we indicate WDI_EVENT_TX_PPDU_DESC for other features
and it results into feeding invalid rate index stats to rate stats
module, which we can not processed, which is a valid scenario.
so just remove err print to avoid flooding cosole.

CRs-Fixed: 2446638
Change-Id: I451a68af18e92727802f78e23d94ab6ea31dd5bb
2019-05-03 18:07:32 +05:30
Linux Build Service Account
b3ef740c2d Merge "qca-wifi: Fix KW issues in cfr component" 2019-05-03 03:36:01 -07:00
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
Vikram Kandukuri
605c8118aa qca-wifi: Fix KW issues in cfr component
Fix Suspicious dereference of pointer 'payload' before NULL check.
Fix 'status' might be used uninitialized in this function.

Change-Id: Ib799043555faafc655919c1e42d0fbc43c716b2f
2019-05-02 17:08:07 +05:30
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
Surya Prakash Raajen
a2d6a784c7 qca-wifi: Free buffer in case of error in sending wmi cmd
Free the buffer used to send wmi handle in wmi_unified_cmd_send
in case of error in sending the commands

Change-Id: I83fef6ea16e6676584196855fa327537b9e492eb
CRs-Fixed: 2427586
2019-04-24 22:27:38 -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