Commit Graph

1188 Commits

Author SHA1 Message Date
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
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
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
Vikram Kandukuri
90354665a2 qca-wifi: Compilation fix for CFR macro enable
Fixed compilation issues with CFR flag enabled

Change-Id: Id2f988240493bf40867046b52c9d8f116101f420
CRs-Fixed: 2408643
2019-03-05 14:56:31 +05:30
Linux Build Service Account
3678a0a01a Merge "qca-wifi: Add flag for Multi VDEV restart synchronization" 2019-03-04 05:46:16 -08:00
Santosh Anbu
de6d77fbae qca-wifi: Support for multivdev restart in WIFI2.0 chipsets
Add support for multivdev restart in WIFI2.0 chipsets
(BL Family) legacy offload platforms

Change-Id: Ie2c35166fb5ab05ff4ee75d0b242e6684bac367d
CRs-Fixed: 2406277
2019-03-04 17:45:11 +05:30
narayan
57cc49dfbe qca-wifi: Fix per peer config cfr stop command
Fix cfr stop wmi command and some other fixes checking for
sanity, error handling.

Change-Id: I9f0939fee2301f85e6e7b3338fd26e84676d7d6d
CRs-Fixed: 2407354
2019-03-04 00:21:34 +05:30
Linux Build Service Account
a703453e51 Merge "qca-wifi: Support for FR53778 8021p pcp-tid mapping" 2019-03-02 20:34:02 -08:00
Srinivas Pitla
0d598a6dc0 qca-wifi: Add flag for Multi VDEV restart synchronization
In current code, channel number is checked to enable multivdev restart
synchronization, this assumption is not valid as channel width change
can also be requested.

To fix this, used a flag to enable multivdev restart synchronization.

Change-Id: I30b766d4430e3ce98de29d6194dc43cc42bbf0f6
CRs-Fixed: 2400987
2019-03-02 19:46:39 -08:00
Linux Build Service Account
0f8041a4fb Merge "qca-wifi: Enhancement of auto channel zerowait PreCAC for 160MHz mode" 2019-03-02 12:34:13 -08:00
narayan
6ffa911be3 qca-wifi: Fixes needed to enable cfr compile flag
Compilation fixes required to enable cfr compile flag

Change-Id: I0dd739a695d89a0effb6c116919ae915b2e22f0e
CRs-Fixed: 2407354
2019-03-01 22:43:07 -08:00
Debasis Das
409e55c083 qca-wifi: Support for FR53778 8021p pcp-tid mapping
Add necessary support for pcp-tid mapping feature

Change-Id: I64535d71b937d8380d611e7413b118d70c68a3a6
2019-03-01 13:55:06 +05:30
Linux Build Service Account
dc9ee64e6f Merge "qca-wifi: Make a few macros as optional" 2019-02-28 14:35:22 -08:00
Shreedhar Parande
abbc0faf94 qca-wifi: Enhancement of auto channel zerowait PreCAC for 160MHz mode
If user configures DFS channel in 160MHz mode,
1. change mode to 80MHz and do PreCAC on primary and
   secondary channels of 160MHz.
2. Use intermediate channel to operate.
3. Once PreCAC done on the both primary and secondary channels and is clear
   then change mode back to 160MHz.
4. Change the channel from intermediate to configured DFS channel.
Use Broadcast and Unicast OMN frame to notify mode change.

Change-Id: I451e35516ab4a44adea52a1342b5ea76d6e3d04f
CRs-fixed: 2395431
2019-02-27 17:49:43 +05:30
Aakanksha Doda
1dbb8118a3 qca-wifi: Make a few macros as optional
Part of FR 53285

Change-Id: Ic2f219acb41b172e04a8bc6adf3f55038d97585c
2019-02-27 11:30:06 +05:30
Abhiram Jogadenu
bd7b551c56 qca-wifi: Extract ring params from dbr
Add API that gets ring parameters from dbr event

CRs-Fixed: 2404710
Change-Id: I26f98ea8cc1c0ea776b8a93f360bf1acc2a2a2d1
2019-02-25 19:15:16 +05:30
narayan
70480abe44 qca-wifi: CFR feature Component Support
Add CFR component support for legacy chipsets including
the implementation of stream filesystem interfacing

Change-Id: Id92a4592425e901cc86061ae5eccefc5438efd45
CRs-Fixed: 2397716
2019-02-21 22:28:24 -08:00
Naga
bb468aca54 qca-wifi: Fix dependencies in WMI
Fix dependencies in WMI after changing
inconsistent naming followed for vdev id
for wmi_unified_param.h, these structures
are moved to converged mlme and will be
in use here on, which have these naming
convention inconsistency fixed

Change-Id: If6442e4325d2b5c21e8ce19809ad7c40b253c281
CRs-Fixed: 2391766
2019-02-19 23:54:58 +05:30
Om Prakash Tripathi
497ab62df4 qca-wifi: Add tx_frame_cnt, ext_busy count in chan info event
Add tx_frame_cnt and ext_busy count in chan info param

Change-Id: Ib273dfe3d477287023a0a73b347ce9b02f290bfc
CRs-Fixed: 2365685
2019-02-12 02:59:33 -08:00
Om Prakash Tripathi
3da8891a03 qca-wifi: update my_bss_rx_cycle_count in wmi layer
Update unified param my_bss_rx_cycle_count in wmi layer

Change-Id: Iecbfde01165929ccff4497603ad63122775e4370
CRs-Fixed: 2365685
2019-02-12 02:59:15 -08:00
Linux Build Service Account
63f8c84897 Merge "qca-wifi: free nbuf on WMI command failed" 2019-02-11 02:34:37 -08:00
Linux Build Service Account
10f7d98a17 Merge "qca-wifi: Added component_dev support for Quiet IE" 2019-02-11 02:34:35 -08:00
Vikram Kandukuri
1f97c2c40e qca-wifi: Add CFR component
Add Channel Frequency Response component,
This provides dispatcher and core API that can
be used by other modules.

Change-Id: I032b312c6b88494756a21afb5a36179bceb2f214
CRs-Fixed: 2372061
2019-02-09 09:50:40 +05:30
nobelj
37e1ce3414 qca-wifi: free nbuf on WMI command failed
nbuf need to be free on WMI command fail

Change-Id: I03cc884da9bdd9bd8e431a6aed7dab179f887936
2019-02-08 08:27:24 -08:00
Abhiram Jogadenu
2b7289b241 qca-wifi: Added component_dev support for Quiet IE
Moved support for Quiet IE from cmn_dev to component_dev.

Change-Id: Ib5ca7356ff4a25e1e674cbc831d35928e12cd0f4
CRs-Fixed: 2376067
2019-02-07 22:04:06 -08:00
Srinivas Pitla
c68e9fb218 qca-wifi: Remove QDF_BUG on channel check failure
This change removes QDF_BUG if channel match fails with other vdev,
prints would help to debug further on any issue.

Change-Id: I9566fe699d6124542dbb3075e470c887de1a612a
CRs-Fixed: 2391464
2019-02-01 22:49:25 +05:30
Shashikala Prabhu
dee9b9329a qca-wifi: Fix compiler warning for unused function
The function extract_pdev_qvit_event_non_tlv is defined but not used.
Remove the definition of this function to fix the compilation error.

Change-Id: Ibe573874e4deed571439c3807453405837436a58
CRs-Fixed: 2388461
2019-01-28 11:43:29 +05:30
Linux Build Service Account
98c9b3b05c Merge "qca-wifi: VDEV SM action implementation" 2019-01-21 06:37:40 -08:00
Linux Build Service Account
03e9b23a0d Merge "qca-wifi: Remove OL_SPECTRAL_DEBUG_CONFIG_INTERACTIONS macro" 2019-01-21 06:37:39 -08:00
Shiva Krishna Pittala
0fe39ab572 qca-wifi: Remove OL_SPECTRAL_DEBUG_CONFIG_INTERACTIONS macro
Logs of the Spectral WMI interaction prints are  under
OL_SPECTRAL_DEBUG_CONFIG_INTERACTIONS macro and is disabled by default.
As the WMI logs are already controllable at runtime from qdf_cv_lvl,
there is no need for OL_SPECTRAL_DEBUG_CONFIG_INTERACTIONS anymore.

Change-Id: I3b89192de4deb420d853631064c20add894fb1e3
CRs-Fixed: 2369846
2019-01-17 18:29:40 +05:30
Srinivas Pitla
77752e288e qca-wifi: VDEV SM action implementation
Few trivial SM actions are being moved to converged code

Change-Id: I60c4bedf072d9cddaf872e9c3ea9364b70c65b6d
CRs-Fixed: 2307722
2019-01-17 13:37:04 +05:30
Vikram Kandukuri
0314441503 qca-wifi: Add CFR capture test application
Add CFR capture test application with streamfs APIs.
This is test application to read CFR dump from driver

Change-Id: I6925646678d1e87ecef2fb5405e992246a6d4eb4
CRs-Fixed: 2372061
2019-01-15 23:43:29 -08:00
Linux Build Service Account
314b585fcc Merge branch 'wlan-cmn.driver.lnx.2.0' of ../cmn_src_1 into 11.0 2019-01-07 04:26:13 -08:00
Linux Build Service Account
460cd5602e Merge branch 'wlan-cmn.driver.lnx.2.0' of ../cmn_src into 11.0 2019-01-07 04:24:56 -08:00
Linux Build Service Account
cf61b51725 Test commit wmi/inc 2019-01-07 04:19:56 -08:00
Linux Build Service Account
afd682f2eb Test commit for wmi/src/ 2019-01-07 03:45:33 -08:00
Nandha Kishore Easwaran
1fdbc75a8c qca-wifi: Fix WEP sw encryption
24 bit IV is not considered part of the key resulted in buffer overflow.

Change-Id: I9642e719ca1535a76159412a329fc6ccf80c2eff
2018-12-28 14:41:39 +05:30
Jeff Johnson
5a9648f736 qcacmn: Rename pAddPeriodicTxPtrnParams
Per the Linux coding style both mixed-case names and so-called
Hungarian notation are frowned upon, therefore replace the identifier
pAddPeriodicTxPtrnParams everywhere it occurs.

Change-Id: Id80fc4cd22a8e4af125f01b937e03eea0b898283
CRs-Fixed: 2371906
2018-12-27 20:02:31 -08:00
Jeff Johnson
a8d070410d qcacmn: Rename pAddPeriodicTxPtrnParams
Per the Linux coding style both mixed-case names and so-called
Hungarian notation are frowned upon, therefore replace the identifier
pAddPeriodicTxPtrnParams everywhere it occurs.

Change-Id: Id80fc4cd22a8e4af125f01b937e03eea0b898283
CRs-Fixed: 2371906
2018-12-27 20:02:31 -08:00
Wu Gao
78f8d208b3 qcacmn: Remove structure wmi_tdls_params
Using both structure wmi_tdls_params and tdls_info if TDLS component
sets FW states, which will cause memory corruption potentially. Use
enum wmi_tdls_state as type of tdls state.

Change-Id: Ia1e78a5c6d8aee9ab5166c0704dd7827f42c2457
CRs-Fixed: 2372452
2018-12-27 01:05:21 -08:00
Wu Gao
237a16ffdc qcacmn: Remove structure wmi_tdls_params
Using both structure wmi_tdls_params and tdls_info if TDLS component
sets FW states, which will cause memory corruption potentially. Use
enum wmi_tdls_state as type of tdls state.

Change-Id: Ia1e78a5c6d8aee9ab5166c0704dd7827f42c2457
CRs-Fixed: 2372452
2018-12-27 01:05:21 -08:00