Commit graph

2,212 commits

Author SHA1 Message Date
Venkateswara Swamy Bandaru
26f6f1ebae qcacmn: Add support for pipe specific callbacks
Packetlog framework needs pipe specific callbacks. Change is done to
support pipe specific callbacks.

Change-Id: Iabd442acc8bef19ad9b8ad9ff2660e273a859f54
CRs-Fixed: 1072220
2016-10-06 07:32:09 -07:00
qcabuildsw
b30d6e0b45 Release 5.1.1.1V
Release 5.1.1.1V

Change-Id: I8cbd60a49066097c5436074dfdfce02623d91aec
CRs-Fixed: 688141
2016-10-04 20:21:16 -07:00
Sathish Kumar
eb7d24e1f6 qcacmn: Add new ftype enums to distinguish rx stats information
Introduce new enum in ftype to identify rx stats data pointed by fctx.
It is added so that only a pointer to the feature specific data can be stored
in fctx. ftype will be used to identify what feature in currently being
pointed to by fctx .

Change-Id: Ic4d8e23c27873875a9cac25e9a5c26096b1705f3
CRs-Fixed: 1055391
2016-10-04 20:21:16 -07:00
qcabuildsw
4fef865ec0 Release 5.1.1.1U
Release 5.1.1.1U

Change-Id: Ib71b75bb9aa954fe8ba3f425cf246af7e9777f83
CRs-Fixed: 688141
2016-10-04 16:49:56 -07:00
Sathish Kumar
0cfad497cb qcacmn: Fix memory leak caused by fctxt overwriting ipa field in skb->cb
Memory leak is observed while running multicast to unicast conversion tests.
The reason was fctxt overwriting ipa field in skb->cb.
In struct qdf_nbuf_cb, offset of skb->cb->u.tx.dev.win.fctx happened to be
same as offset of skb->cb->u.tx.dev.mcl.ipa causing fctxt to sit on top of
ipa field and hence dev_kfree_skb () is not invoked.

Issue fix defines a different function that is invoked when ipa is not in use.

Change-Id: I47cb2a992730a2200b4315e492daa164d1bdfbda
CRs-Fixed: 1068852
Acked-by: Om Prakash Tripathi <otripath@codeaurora.org>
2016-10-04 16:49:52 -07:00
Sathish Kumar
79c2bf597e qcacmn: Fix compilation errors in QDF for Big Endian platform
Fix compilation issues faced on the WIN big endian
platform due to QDF convergence related changes.

Change-Id: I33b2a4bbe063acb4585b86e12fa79f96dc12ac73
CRs-Fixed: 1039318
2016-10-04 16:49:48 -07:00
qcabuildsw
b1ea5f82ad Release 5.1.1.1T
Release 5.1.1.1T

Change-Id: I059ed99e6d2853c7daae36d9b3822391f5e2b134
CRs-Fixed: 688141
2016-10-04 14:42:18 -07:00
Venkateswara Swamy Bandaru
17cf2be2d4 qcacmn: Fix for CE Ring full error in ce_send_single path
sw_index is updated based DATA_CE_SW_INDEX_UPDATE_SKIP compile time flag.
If DATA_CE_SW_INDEX_UPDATE_SKIP is enabled software has to take care of
sw_index updation. Otherwise it will be read through register

Change-Id: I994e04cf08170441eba034a747e6224ec4c8370e
CRs-Fixed: 1072217
2016-10-04 14:42:17 -07:00
qcabuildsw
7abeb45530 Release 5.1.1.1S
Release 5.1.1.1S

Change-Id: I379072d7c58af92505fb7a5d0ee3961c8f29ea96
CRs-Fixed: 688141
2016-10-04 12:41:06 -07:00
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