Commit Graph

1353 Commits

Author SHA1 Message Date
Padma, Santhosh Kumar
94e34bb262 qcacmn: Add changes for DISA certification
Add TLV changes to pass DISA parameters received from
WMA and pass them to firmware for firmware
to encrypt data and send back to driver.

Change-Id: Ic6928a93f799c47518fbbad96564062f595287dd
CRs-Fixed: 1072545
2016-10-03 12:48:34 +05:30
qcabuildsw
e03c37d9e5 Release 5.1.1.1R
Release 5.1.1.1R

Change-Id: Ic589a854f96f2b9a4c4697fef8ee10faa329a0a5
CRs-Fixed: 688141
2016-09-30 06:42:33 -07:00
Padma, Santhosh Kumar
496dbad32b qcacmn: Add diag events for debugging
qcacld-2.0 to qcacmn propagation

Currently there are no diag events to debug auth, assoc timeouts
and memory failure. Add such diag events which can be useful during
failures.

Change-Id: Iec4c2a9946fbef388959fdc796273944d3be8003
CRs-Fixed: 1072675
2016-09-30 06:42:32 -07:00
qcabuildsw
a511975526 Release 5.1.1.1Q
Release 5.1.1.1Q

Change-Id: If9794189fee935b69408a88469b423a71d4ad5c2
CRs-Fixed: 688141
2016-09-30 05:48:00 -07:00
Sathish Kumar
90cb4608b0 qcacmn: Fix crash observed on issuing iwpriv wifiX dl_loglevel <Val> command
On issuing iwpriv wifiX dl_loglevel <Val> command, there is a NULL pointer
dereference crash observed. It is root caused due to improper reference
to module_id_bitmap field, that needs to be corrected.

Change-Id: I59ff4455c74452bb00caff125f84213a2e9d7742
CRs-Fixed: 1066323
2016-09-30 05:47:59 -07:00
qcabuildsw
8aa1696dae Release 5.1.1.1P
Release 5.1.1.1P

Change-Id: I7d0b5bba51d6322a58df8f4e4121467b9951759e
CRs-Fixed: 688141
2016-09-30 03:49:31 -07:00
Sathish Kumar
5149c237b0 qcacmn: Fix issues in mcast_group_update and fips WMI cmd
Fix following issues in wmi_unified_non_tlv.c file
->Move allocation of WMI buffer in FIPS WMI cmd
->Change dummymask variable to static in mcast_group_update cmd

Change-Id: I0a0d0e68820905ad543175abed1a812639b3dbf1
CRs-Fixed: 1069863
2016-09-30 03:49:30 -07:00
qcabuildsw
43d7030934 Release 5.1.1.1O
Release 5.1.1.1O

Change-Id: I10544ead81bc800a821564eeab00d17039611884
CRs-Fixed: 688141
2016-09-30 02:47:35 -07:00
Sathish Kumar
46af87ba9c qcacmn: Fix key installation issue for BE offload radios
For big endian based offload radios, key installed using
WMI_VDEV_INSTALL_KEY_CMDID requires to be code swapped as the copy engine
for big endian platform does byte swap operation on the received key before
sending it down to FW.

It is observed that the big endian conversion is carried out in WIN Wi-Fi driver
for big endian platform specific radios in the driver, that takes care of
converting the key data to the byte swapped form. However, it is observed
that an additional copy is carried out in the WMI layer that is overwriting
the converted key with old key, in the non-swapped form.

We move the byte swapping operation to the converged component and do a single
memory copy using the macro that carries out its operation based on big or
little endian platform.

Change-Id: Ic6b7cc667d0f505d1d1daeacec72f54d41554038
CRs-Fixed: 1067206
2016-09-30 02:47:34 -07:00
qcabuildsw
be724823a8 Release 5.1.1.1N
Release 5.1.1.1N

Change-Id: If9ec5d434f54a11a6e2c599202d06ee51befcccc
CRs-Fixed: 688141
2016-09-30 01:09:54 -07:00
Sathish Kumar
fd25fb92e1 qcacmn: Populate composite RSSI info received as part of phy error event
Extraction API for phy error event handling does not populate composite
RSSI info for DFS radar event, but was populating the value in case of
spectral event. Composite RSSI info is required for both DFS and Spectral
operations. As a result of this change, composite RSSI info is updated
on receiving DFS event as well.

Change-Id: Ia77779251ccf230f7ca4242ee0851790305d2fbc
CRs-Fixed: 1066136
2016-09-30 01:09:53 -07:00
qcabuildsw
d41c727375 Release 5.1.1.1M
Release 5.1.1.1M

Change-Id: I87ec4ee23ae4e47e9b26e584307905e9cfd307b8
CRs-Fixed: 688141
2016-09-29 17:51:13 -07:00
Deepak Dhamdhere
cece18d0b2 qcacmn: Enable EXTSCAN cycle start and completed events
qcacld-2.0 to qcacld-3.0 propagation

Enable firmware to send WMI_EXTSCAN_CYCLE_STARTED_EVENT and
WMI_EXTSCAN_CYCLE_COMPLETED_EVENT instead of
WMI_EXTSCAN_BUCKET_COMPLETED_EVENT as per Android N requirements.
This change is required to complete the propagation of
earlier change I399204261fa3d8515146c590630a3bb663ee801c

CRs-Fixed: 1062739
Change-Id: I5c801912828844aa3d8e2aa4f022cb184aa771c4
2016-09-29 17:51:12 -07:00
qcabuildsw
b5aadb4f2e Release 5.1.1.1L
Release 5.1.1.1L

Change-Id: I307a05d4d2af02b3a88765b9fd243d0e8fbeeda6
CRs-Fixed: 688141
2016-09-29 15:10:32 -07:00
Ankit Gupta
38e9275e5a qcacmn: Correct the comment for qdf_mem_cmp
Comment in the api specifies that qdf_mem_cmp api
return bool value which is not correct.

Replace bool to int to reflect the correct return
type of a qdf_mem_cmp api.

Change-Id: Iff83fbf588a072dcda8b0aaef3c6743e572b1ac5
CRs-Fixed: 1066946
2016-09-29 15:10:31 -07:00
qcabuildsw
fbc62b07e5 Release 5.1.1.1K
Release 5.1.1.1K

Change-Id: I16105064505c3a3ff4f553ca748713bbb6228212
CRs-Fixed: 688141
2016-09-29 13:50:54 -07:00
Sathish Kumar
55047e66ef qcacmn: Add non-tlv registrations for atf_peer, atf_group and lcr WMI cmd
Non-TLV registrations for atf_peer, atf_group and lcr WMI command were
missed out during the WMI convergence implementation. This change adds
the missed out registrations.

Change-Id: I384c27709e088c06ee73f17b7dc1a52bb5c63370
CRs-Fixed: 1069863
2016-09-29 13:50:52 -07:00
qcabuildsw
3183f5ad72 Release 5.1.1.1J
Release 5.1.1.1J

Change-Id: Ic133e8f5357556f42c331b34d4717e077aba9477
CRs-Fixed: 688141
2016-09-27 12:32:44 -07:00
Yuanyuan Liu
3aa7fed319 qcacmn: Call PLD APIs of athdiag read/write when bus type is SNOC
Call PLD APIs of athdiag read/write if current bus type is SNOC.

CRs-Fixed: 1061835
Change-Id: I992a29027e36c98bac429f2402e93462195bd76c
2016-09-27 12:32:42 -07:00
qcabuildsw
2d8c1353ed Release 5.1.1.1I
Release 5.1.1.1I

Change-Id: I2068d7a06fdf5b7d3bd5bfb103aea6db41cc0b34
CRs-Fixed: 688141
2016-09-26 16:07:31 -07:00
Sandeep Puligilla
62ae0a9e2f qcacmn: Correct the peer assoc command TLV length
PEER assoc command failed in the tlv validation check.
Tlv length sent in the TLV header is different from
the length used to fill the tlv buffer which caused
failure at tlv validation.

Modified code to use the aligned length while
filling the tlv buffer.

Change-Id: I9ad2009315dd3cf37308ef44360d566035344950
CRs-Fixed: 1069008
2016-09-26 16:07:30 -07:00
qcabuildsw
c1aba9368f Release 5.1.1.1H
Release 5.1.1.1H

Change-Id: I48d77695a53f0ac34bce52e4a9a3a25d34603814
CRs-Fixed: 688141
2016-09-26 13:15:27 -07:00
Karunakar Dasineni
8fbfeea05f qcacmn: Lithium SRNG HAL
Initial version of HAL SRNG initialization and access functions.

Change-Id: Ic36b73bdf5053a06ca8cb2bc3a7e3edb53fc02e1
2016-09-26 13:15:26 -07:00
qcabuildsw
dda10ccdc1 Release 5.1.1.1G
Release 5.1.1.1G

Change-Id: I2254b87f12a4a4c65d9675725093df5bce703888
CRs-Fixed: 688141
2016-09-26 04:49:50 -07:00
Komal Seelam
2510b58c34 qcacmn: Prevent NOC/Link Access in resume when Link is down
propagation from qcacld-2.0 to qcacmn.

PCIe link training failure will not be indicated to cnss client driver
as a link down indication.
In System/Runtime PM resume callbacks, client driver will access the target
registers results in L2 errors.
Fix it by ensuring the PCIe link resume training is completed by reading
config space device-id.

Change-Id: I8be902330215cf3c8cb0700e6f0da5b69e274c96
CRs-Fixed: 1052965
2016-09-26 04:49:49 -07:00
qcabuildsw
6d7d3b3f62 Release 5.1.1.1F
Release 5.1.1.1F

Change-Id: I1c93065b35e0e0ef60c5c25fb4b205c5b27ff968
CRs-Fixed: 688141
2016-09-24 13:04:00 -07:00
Mukul Sharma
fbf6ce182c qcacmn: Cache ARP/NS offload request at wma layer
qcacld-2.0 to qcacmn propagation

As Current WMI interface need both the ARP/NS configuration
in single command. To support active offload host need to
cache the ARP/NS at wma layer so host can fill the other
request and configure down to firmware complete request
(ARP+NS).

Change-Id: Ie0a57d216379817ff0ae48f4f582c9108e8ecca1
CRs-Fixed: 1067683
2016-09-24 13:03:59 -07:00
qcabuildsw
5ee7985b3b Release 5.1.1.1E
Release 5.1.1.1E

Change-Id: I3a6dc52762cb53e3aae833a5576295b81eccd9a5
CRs-Fixed: 688141
2016-09-20 12:42:34 -07:00
Kiran Venkatappa
068d22da62 qcacmn: Add WMI fixes made for TLV bringup on WIN
These fixes are made during qca8074 VP control path bringup.
Add fixes in tlv.c and enable TLV helper routines for WIN.
Fixed some inconsistencies in wmi API params by adding compiler flags.
This needs to be cleaned up so that API and params have common interface
between WIN and MCL.

Change-Id: I0821daa58df86ad0b394a7846a982a9e3577cd14
CRs-Fixed: 1063252
2016-09-20 07:59:33 -07:00
Kiran Venkatappa
f41ef2e093 qcacmn: Add CE services changes for SRNG based target
SRNG based target uses SRNG(Standard Ring) interface to implement all
the ring related access functions. This change provides CE services to
use interact with SRNG for CE access. It uses hal_srng module for HW
related access. It implements src ring using SRNG src ring and
destination ring using dest and status ring.
fastpath and batch send is not implemented as these are not applicable
to this target

Change-Id: I3e2b613004a08d669319f956d7b0656447eb8521
CRs-Fixed: 1042915
2016-09-20 07:59:11 -07:00
Kiran Venkatappa
182a88a349 qcacmn: Add changes to skip fw boot, reset and HIA config
This change is applicable to Hawkeye VP bringup. It is added under
QCA_WIFI_QCA8074_VP flag

Change-Id: Ief32afebf2a306425e33e4ebc56351f10c609198
CRs-Fixed: 1063252
2016-09-20 07:58:56 -07:00
Venkateswara Swamy Bandaru
31108f318c qcacmn: Add framework for external group interrupt handling
Change-Id: I68a3c597e452e1975a97f9262870e16538f6dc4c
CRs-Fixed: 1042915
2016-09-20 07:58:33 -07:00
Venkateswara Swamy Bandaru
9fd9af065c qcacmn: Interrupt handling support for chipset QCA8074
Changes to handle Interrupts for qca8074

Change-Id: I81d4b0722d56388cc7aca08484bd8957258621d1
Acked-by: Venkateswara Swamy Bandaru <vbandaru@codeaurora.org>
CRs-Fixed: 1042915
2016-09-20 20:27:31 +05:30
Venkateswara Swamy Bandaru
2aa2c6913e qcacmn: regtable population of QCA8074
Added qca8074def.c that holds the register
table entries for qca8074.

Change-Id: I40b170722c2177cf5f53b5728cfae3730eeb8500
Acked-by: Venkateswara Swamy Bandaru <vbandaru@codeaurora.org>
CRs-Fixed: 1042915
2016-09-20 20:25:39 +05:30
Venkateswara Swamy Bandaru
e20c6dceda qcacmn: Fix AHB & disable soc-sleep durring driver load
Instead of checking target type, check bus type for skipping soc-sleep
durring driver load code.  Also enhance comments to explain why
hif_pci_target_sleep_state_adjust is called instead of
hif_target_sleep_state_adjust for the disable soc-sleep
durring driver load feature

Change-Id: I891e1b1782b46b32c1718e2c539215282e090bad
2016-09-20 20:25:20 +05:30
Venkateswara Swamy Bandaru
13164aac76 qcacmn: Make host_ce_config and target_ce_config per radio
Moving global variables host_ce_config and target_ce_config to
per radio structure.

Change-Id: Iaaee722af16812e06aae068f0fa0092cf5c8f78a
CRs-Fixed: 1042915
2016-09-20 20:24:54 +05:30
Venkateswara Swamy Bandaru
c5de4d9fd7 qcacmn: Cleanup target reg table
Remove unused fields in target reg table.

Change-Id: Ic183f7a27ffd5d4542dfe1c3eccb11825539c70f
Acked-by: Venkateswara Swamy Bandaru <vbandaru@codeaurora.org>
CRs-Fixed: 1042915
2016-09-20 20:23:50 +05:30
qcabuildsw
127461b4e7 Release 5.1.1.1D
Release 5.1.1.1D

Change-Id: Idefe3c78d1e9864d66f86abe00e947580483ff0d
CRs-Fixed: 688141
2016-09-19 01:20:36 -07:00
Pratik Gandhi
424c62e877 qcacmn: Address compilation issues for WIN new fw headers
Address compilation issues for WIN with new Lithium Firmware headers.
Also removed dependency on htt.h from header files, which may need to
add explicit dependency on htt.h in .c files.

Change-Id: Ia5027963837e645bc3f81a3db98c2ea06789aea8
CRs-Fixed: 1061096
2016-09-19 01:19:28 -07:00
qcabuildsw
483484f03a Release 5.1.1.1C
Release 5.1.1.1C

Change-Id: Ibf7c20d6a234417ee0f8ed5cc985d859b5666000
CRs-Fixed: 688141
2016-09-16 05:50:16 -07:00
Himanshu Agarwal
cf0b41853f qcacmn: Add support to get per chain rssi stats
Propagation from qcacld-2.0 to qcacmn.

Add support to get per chain rssi from fw through the
already existing WMI command WMI_REQUEST_STATS_CMDID
and then store it in the station_info structure defined
by cfg80211.

Change-Id: Id50c96dd322b5ca4db34cf2df901730d8b103251
CRs-Fixed: 1005367
2016-09-16 05:50:15 -07:00
qcabuildsw
6debe6553a Release 5.1.1.1B
Release 5.1.1.1B

Change-Id: I5ef77b1a2f901b1b814cf9465f42696f76cdc230
CRs-Fixed: 688141
2016-09-16 02:54:56 -07:00
Himanshu Agarwal
87f80ed6d0 qcacmn: CL 1641391 – update fw common interface files
Propagation from qcacld-2.0 to qcacmn.

WMI modification for DISA feature

Change-Id: I57441642986ecfb6d3ee42d602810f6b22f83c46
CRs-Fixed: 865207
2016-09-14 20:43:24 +05:30
Manjeet Singh
99f7d6ef03 qcacmn: CL 1614559 - update fw common interface files
qcacld-2.0 to qcacmn propagation.

Add support for WLAN counters and stats

Change-Id: I5601a9207529060c6c97e70f067c8e43ca45488a
CRs-fixed: 865207
2016-09-14 19:45:22 +05:30
Manjeet Singh
9347f94f95 qcacmn: CL 1613065 - update fw common interface files
qcacld-2.0 to qcacmn propagation.

Add WMI types and macros definitions for antenna isolation detect

Change-Id: I69b715c224d30b40e37d4a6a6e780b1980b490e0
CRs-fixed: 865207
2016-09-14 19:45:10 +05:30
qcabuildsw
77627801b1 Release 5.1.1.1A
Release 5.1.1.1A

CRs-Fixed: 688141
2016-09-12 19:29:16 -07:00
qcabuildsw
24bee7a4c0 Release 5.1.0.23S
Release 5.1.0.23S

CRs-Fixed: 688141
2016-09-12 19:26:51 -07:00
Manjunathappa Prakash
21196d2578 qcacmn: Fix multi queue NAPI build errors
Fix build errors on the platform where multi queue NAPI is
not supported.

Change-Id: Id9916cff11f9337f279f9aed6dfe35e7a6beb1ed
CRs-Fixed: 1066020
2016-09-12 19:26:37 -07:00
Orhan K AKYILDIZ
7ce54e770f qcacmn: add multi-queue NAPI
Add CPU cluster management functionality. On low throughput,
the system works as normal. On high throughput, the driver gets
control of WLAN datapath interrupts and disperses them on different
CPUs and pegs them to maximize performance. Add init code, topology
table construction and hotplugin notifiers.

Change-Id: I247edb57003797ed6a04f70d15067072e22c2396
CRs-Fixed: 1065477
2016-09-12 18:02:29 -07:00
Mohit Khanna
2235081d87 qcacmn: Maintain length for each TSO segment
In current codeflow, we are maintaining the length of the TSO segments
belonging to one jumbo packet inside tso_info, which is common for
all the segments of one jumbo packet. This works if the length of
the segments (frag[1]) is the same. In case it is not, it ends up
assigning incorrect length to all the segments. This is resulting
GMS login failure.
Fix issue by maintaining the total length of the segment in the
qdf_tso_seg_t structure.
Re-factor code for easy readability
Add TSO_DEBUG prints which can be enabled (compile time) to debug
TSO issues

Change-Id: Ifb5a0f1493224c66c3acc394e47a74b2dd84bbc9
CRs-Fixed: 1062556
2016-09-12 18:02:29 -07:00