Commit graph

2,212 commits

Author SHA1 Message Date
Anurag Chouhan
e6d4b28499 qcacmn: Add fwtest interface
Add wmi fw test interface to support generic fw test command.

Change-Id: Ic2dc113e3a698555c0fdcbafb30df154f6deb97d
CRs-Fixed: 1045265
2016-09-02 16:07:21 -07:00
qcabuildsw
3af96ec7ee Release 5.1.0.23G
Release 5.1.0.23G

Change-Id: I45a132e866029414fba21dcaa8e5d47d1ef5bedc
CRs-Fixed: 688141
2016-09-02 04:33:48 -07:00
Venkateswara Swamy Bandaru
1633436e74 qcacmn: Added a member in qca_napi_info structure
To derive hif_ctx from napi pointer. This changes helps enable napi support
for WIN driver.

Change-Id: Idcb0775195665d60d4b1a9a010afcfab256d839f
Acked-by: Balamurugan Mahalingam <bmahalin@codeaurora.org>
2016-09-02 04:33:47 -07:00
qcabuildsw
93912f1a19 Release 5.1.0.23F
Release 5.1.0.23F

Change-Id: I77bd699cf0151787ae42df19b633a655b325c768
CRs-Fixed: 688141
2016-09-02 02:08:08 -07:00
Dustin Brown
973abe89e4 qcacmn: fake apps ensures correct ce_id before resume
Currently, the interrupt handler does not check for the correct ce_id
before triggering a fake apps resume. This check is added to
hif_fake_apps_resume().

Change-Id: I810c59bb8536356bd87a394c815a294755aa5161
CRs-Fixed: 1061287
2016-09-02 02:08:08 -07:00
qcabuildsw
b019e0da84 Release 5.1.0.23E
Release 5.1.0.23E

Change-Id: I6cb56ab1492e084f8b9f6a890776eb2e5010c1ac
CRs-Fixed: 688141
2016-09-02 01:08:40 -07:00
Venkateswara Swamy Bandaru
3ca38e2fe3 qcacmn: Support for wifidown and wifiup without modules removal
Release the iomem requested during the cleanup path.
Successive request to iomem resource fails,
if the ioremapped region is not released
during the last cleanup

Change-Id: Icc88647df8d21f9f230b784faa8e7fdaf5968814
Acked-by: Balamurugan Mahalingam <bmahalin@codeaurora.org>
CRs-Fixed: 1056971
2016-09-02 01:08:39 -07:00
qcabuildsw
d08ea3b79f Release 5.1.0.23D
Release 5.1.0.23D

Change-Id: I7816d5b431bf36b550f3443289df270bd7dba70c
CRs-Fixed: 688141
2016-09-01 22:08:57 -07:00
Houston Hoffman
7fdff0c52f qcacmn: Use suspend_noirq callback instead of disabling irqs
Disabling the interrupts and setting them as wakeup sources does
not work as expected.  The pending interrupt gets trapped in sw
and kernel does not check for it before finishing the suspend.

Instead, use the suspend_noirq callback to guarantee that
wakeup messages don't get processed without rejecting the suspend.

Change-Id: I5ec5ce2a7e1b14c3d8477fe7aa0372c9ffd4dc0d
CRs-Fixed: 1060880
2016-09-01 22:08:57 -07:00
qcabuildsw
e28261fdb1 Release 5.1.0.23C
Release 5.1.0.23C

Change-Id: If129b9c75ac642a1bbd65ad58fda1ec051e509cb
CRs-Fixed: 688141
2016-09-01 13:27:56 -07:00
Sathish Kumar
5947138237 qcacmn: Implement QDF API to get queue mapping and total ram size
This change adds the following QDF APIs -

qdf_nbuf_get_queue_mapping: To get the queue mapping set by linux kernel

qdf_get_totalramsize: To get total ram size in Kb

Change-Id: I86daffebba759c086d15951dfcc72ea626c74bb4
CRs-Fixed: 1055387
2016-09-01 13:27:55 -07:00
Sathish Kumar
50a5518cd6 qcacmn: Fixing incorrect qdf_mem_set API usage in wmi_unified_non_tlv.c
The qdf_mem_set API is used incorrectly in a few instances inside
wmi_unified_non_tlv.c

The argument list is - <pointer to address, size, value>

However, some places, it is sent as - <pointer to addr, value, size>

This change fixes such incorrect function calls to qdf_mem_set().

Change-Id: Id50136f630022b1fdeaddbdefcad9f637f917e9e
CRs-Fixed: 1048504
2016-09-01 13:27:54 -07:00
Venkateswara Swamy Bandaru
fa291a7851 qcacmn: Fix for kernel panic in wifi down path for peregrine
Warm reset is done in wifi down path for peregrine

Change-Id: Id187b8e60859f9936e4761bdce9ae7f744bd79d7
2016-09-01 13:27:53 -07:00
qcabuildsw
6a9cf7bd16 Release 5.1.0.23B
Release 5.1.0.23B

Change-Id: I22928dea7a4756d49fc83310d58a0163665bf188
CRs-Fixed: 688141
2016-08-31 07:06:48 -07:00
Govind Singh
cc277f9791 qcacmn: Free WMI HB command buffer in case of errors
WMI HB command buffer is not freed in case of tx error,
Free WMI HB command buffer in case of errors.

Propagation from qcacld-2.0 to qcacmn.

Change-Id: I15577c50cefc0cc2e9129f175cf874f17acc430e
CRs-Fixed: 1001068
2016-08-31 07:06:47 -07:00
qcabuildsw
bcb90fbcfb Release 5.1.0.23A
Release 5.1.0.23A

Change-Id: Ib952643aa117eee548bc3b4423cbf3d5e4d2e43d
CRs-Fixed: 688141
2016-08-31 06:28:05 -07:00
Sathish Kumar
7252e43048 qcacmn: Add WMI API for setting bandwidth fairness
This change implements the Non-TLV WMI API for setting bandwidth
fairness. This WMI command was implemented as part of the recent WIN SW
release. This change ensures it is adapted to convergence code structure.

Change-Id: Ib9984c43b91b105bfb4687a7591f4fab509febc4
CRs-Fixed: 1060577
2016-08-31 06:28:05 -07:00
qcabuildsw
2d9bcb1ade Release 5.1.0.23
Release 5.1.0.23

Change-Id: Ic44825f4290c028337751a7773e4f8dbf4a79cba
CRs-Fixed: 688141
2016-08-31 05:14:44 -07:00
Govind Singh
4fcafd4990 qcacmn: unmap buffer for CE destination ring en-queue error
Unmap a previously mapped buffer if host fails to en-queue
buffer to CE destination ring.

Propagation from qcacld-2.0 to qcacmn.

Change-Id: If23398b01124638cfb266f5755fc9e45d3969ac9
CRs-Fixed: 1033307
2016-08-31 05:14:43 -07:00
qcabuildsw
af630c25c0 Release 5.1.0.22Z
Release 5.1.0.22Z

Change-Id: I206d3008cf84d2d28050286b1f194ee9e22ac92e
CRs-Fixed: 688141
2016-08-30 23:28:36 -07:00
Houston Hoffman
cd0884a954 qcacmn: Add WCN3990 to hw names
Print out hw name WCN3990_V1 when soc version is 0x40000000.

Change-Id: Ic76cd3ddc46cf9a2b142cc2d455b512e442f189e
CRs-Fixed: 1059083
2016-08-30 23:28:35 -07:00
Houston Hoffman
4d9b0808da qcacmn: Add htc_pm_runtime put/get apis
htc_runtime_pm apis are needed to deprecate the qdf_runtime_pm apis.
The qdf_runtime_pm apis rely on cds_get_context which is not being
converged and thus qdf_runtime_pm needs to be deprecated.
Since the htc_handle wraps the hif context for most upper layers,
htc_module is providing a wrapper functions.

Change-Id: Ic66a0891db53b610fd4373e7528a08f2787f45fc
CRs-Fixed: 1044150
2016-08-30 23:28:34 -07:00
qcabuildsw
ac535e0764 Release 5.1.0.22Y
Release 5.1.0.22Y

Change-Id: I1c48096d1e10f89ed7c87239f9dca92178b3b132
CRs-Fixed: 688141
2016-08-30 16:02:15 -07:00
Govind Singh
a0e147431b qcacmn: Fix compilation errors in WMI for Big Endian platform
This change fixes the compilation issues faced due to WMI convergence
changes on the big endian platform.

Change-Id: I18bae4fb7884683d8621ce9a862dc1a51ef84f82
CRs-Fixed: 1039318
2016-08-30 16:02:14 -07:00
Vishwajith Upendra
a57aacae73 Merge remote-tracking branch 'origin/wlan-cmn.driver.lnx.1.0-dev' into wlan-cmn.driver.lnx.2.0-dev
Fast-forwarding wlan-cmn.driver.lnx.2.0-dev to the tip of
wlan-cmn.driver.lnx.1.0-dev which has driver version 5.1.0.22W

* origin/wlan-cmn.driver.lnx.1.0-dev:
  Release 5.1.0.22W
  qcacmn: Modify __qdf_assert to invoke QDF_BUG
  Release 5.1.0.22V
  qcacmn: Reduce wake up IRQ enable/disable log level
  Release 5.1.0.22U
  qcacmn: Add API to update mark parameter in sk_buff structure
  qcacmn: Send anycast addresses for NS offload
  Release 5.1.0.22T
  qcacmn: Add support to provide assoc IEs to FW in RSO command
  qcacmn: Send anycast addresses for NS offload

Change-Id: Ibc028c027427b2b31bb0123be2bcc0236b7c7389
2016-08-30 11:35:40 -07:00
qcabuildsw
ee8d0c1935 Release 5.1.0.22X
Release 5.1.0.22X

Change-Id: Ic4640efa52f7207e4f94edee04b497a15b34ca05
CRs-Fixed: 688141
2016-08-28 22:38:14 -07:00
Rajeev Kumar
f5e306f785 qcacmn: Fail PM suspend if target has sent initial wake up
Host is not handling target initial wake up properly which is
leading to resume failure. Fail PM suspend request if target
has sent initial wake up message.

Change-Id: I3797f1afa99ed9412b7ded3e1ea85c344bd0f435
CRs-Fixed: 1059543
2016-08-28 22:38:14 -07:00
Linux Build Service Account
6950dd253d Merge "qcacmn: Send anycast addresses for NS offload" 2016-08-27 15:50:35 -07:00
qcabuildsw
712e243e91 Release 5.1.0.22W
Release 5.1.0.22W

Change-Id: I1c3ef08a31447e6b7ee928c00a96d085a9cb43f8
CRs-Fixed: 688141
2016-08-26 12:19:15 -07:00
Rajeev Kumar Sirasanagandla
92cf0523d8 qcacmn: Modify __qdf_assert to invoke QDF_BUG
Currently, __qdf_assert is doing kernel panic, deviating the purpose of
assert - "Asserts are NOT used for stopping a program in case of an
error".

To address this, modify __qdf_assert to invoke QDF_BUG which in turn
warns or crashes based on the macro PANIC_ON_BUG.

Change-Id: Ie62484f8f369d8aafa3b1970feafe556b2c94ffa
CRs-Fixed: 1015603
2016-08-26 12:19:14 -07:00
qcabuildsw
35b4bced32 Release 5.1.0.22V
Release 5.1.0.22V

Change-Id: I0218454347bca67a8b89ccdbee3801c7444da9b6
CRs-Fixed: 688141
2016-08-25 18:53:14 -07:00
Rajeev Kumar
8f312f2704 qcacmn: Reduce wake up IRQ enable/disable log level
IRQ wake up is happening as expected so reduce WLAN CE 2
IRQ wake up request log to info level to avoid logging it
every time on console.

Change-Id: I9838c80d5133b3f872b1129e41d4f722ba57b011
CRs-Fixed: 1059081
2016-08-25 18:53:13 -07:00
qcabuildsw
b4f7b7e702 Release 5.1.0.22U
Release 5.1.0.22U

Change-Id: I8cfac920de0ab8668f1208efce4e79e911836748
CRs-Fixed: 688141
2016-08-24 11:33:28 -07:00
Himanshu Agarwal
feeffba91b qcacmn: Add API to update mark parameter in sk_buff structure
Propagation from qcacld-2.0 to qcacmn.

Add API to update skb->mark whenever first packet after WOW wakeup
is received through HTT layer.

Change-Id: I877dd7af9a58ebc02d73461cc2a29e86a3945dec
CRs-Fixed: 989984
2016-08-24 11:33:27 -07:00
Sravan Kumar Kairam
80f7246bfb qcacmn: Send anycast addresses for NS offload
Propagation from qcacld-2.0 to qcacld-3.0

Current implementation has support for IPv6 addresses of type
unicast for NS offload to firmware.

As part of this change add anycast addresses for NS offload.

CRs-Fixed: 954880
2016-08-24 06:56:18 -07:00
qcabuildsw
3c46e5dfb0 Release 5.1.0.22T
Release 5.1.0.22T

Change-Id: Id14d205f448481f470495a83c099ec8c29fb8d95
CRs-Fixed: 688141
2016-08-24 04:42:24 -07:00
Selvaraj, Sridhar
020997beda qcacmn: Add support to provide assoc IEs to FW in RSO command
As part of MBO(Multiband Operations), host driver need to supply
the Assoc IEs to FW after initial connection. FW uses these Assoc
IE's in subsequent roaming.i.e Reassociation requests.
This Fix updates the WMI interface to provide support for passing
Assoc IEs to FW.

Change-Id: Ida3d2947714002233090a3f9075dd8d674a3c224
CRs-Fixed: 1039969
2016-08-24 04:42:24 -07:00
Sravan Kumar Kairam
63b327d89c qcacmn: Send anycast addresses for NS offload
Propagation from qcacld-2.0 to qcacld-3.0

Current implementation has support for IPv6 addresses of type
unicast for NS offload to firmware.

As part of this change add anycast addresses for NS offload.

CRs-Fixed: 954880
2016-08-24 12:24:23 +05:30
Prakash Dhavali
a5b290d549 Merge remote-tracking branch 'remotes/origin/wlan-cmn.driver.lnx.1.0-dev' into wlan-cmn.driver.lnx.2.0-dev
* remotes/origin/wlan-cmn.driver.lnx.1.0-dev: (29 commits)
  Release 5.1.0.22S
  qcacmn: Add support to enable/disable packetlog using iwpriv
  Release 5.1.0.22R
  qcacmn: Add changes for coexistence of WIN/ MCL TLV implementation
  qcacmn: Add WIN compilation fixes for TLV
  Release 5.1.0.22Q
  qcacmn: Add API to find IPV6 mcast packet
  qcacmn: Add API to find IPV4 mcast packet
  Release 5.1.0.22P
  qcacmn: CL 1605795 - update fw common interface files
  qcacmn: CL 1598475 - update fw common interface files
  Release 5.1.0.22O
  qcacmn: Dump more WoW wakeup packet info
  qcacmn: Add APIs to get packet type and subtype
  qcacmn: Parse tx packets only once in tx datapath
  qcacmn: Update pld_soc_info structure
  Release 5.1.0.22N
  qcacmn: Add USB bus support (DP)
  qcacmn: Add USB bus support (QDF)
  qcacmn: Add USB bus support (HIF Common)
  qcacmn: Add USB bus support (HIF Dispatcher)
  Release 5.1.0.22M
  qcacmn: Integrate tasklet flushing logic into snoc
  qcacmn: Move tasklet flush up to ce
  qcacmn: Configure the wakeup sources for the snoc bus
  qcacmn: Remove list traversal from qdf_mem_free in successfull case
  qcacmn: Handle initial wake up message from target

Change-Id: I5a312625a566d8c9300b4829eb2021a6830b7138
CRs-Fixed: 688141 970647 1008872 1049254 865207 1043939 1019037 1022454 1046753 1023663 1051968 1049430 1051684 1010692 1049224
2016-08-22 18:23:40 -07:00
qcabuildsw
4bb67d4db6 Release 5.1.0.22S
Release 5.1.0.22S

Change-Id: I36b7a2d0c6e444e33fa417f9b0ea058a2327325b
CRs-Fixed: 688141
2016-08-20 10:37:07 -07:00
Nirav Shah
cb11756463 qcacmn: Add support to enable/disable packetlog using iwpriv
Add support to enable/disable packetlog using
iwpriv wlan0 pktlog command.

CRs-Fixed: 970647
Change-Id: I4f7c64332e971591b7a08020a412e6f3979b718d
2016-08-19 20:20:38 -07:00
qcabuildsw
3d673dc905 Release 5.1.0.22R
Release 5.1.0.22R

Change-Id: Id9f1e6c096493db736d4250b6e330547074329c9
CRs-Fixed: 688141
2016-08-19 18:52:55 -07:00
Himanshu Agarwal
810141a664 qcacmn: Add changes for coexistence of WIN/ MCL TLV implementation
Add changes to allow coexistence of WIN/ MCL TLV implementation
through use of CONFIG_MCL flag and change of MACRO names.

Change-Id: I6868c288a43fd3afb19c84b8a9d4ef0dfbee5c94
Acked-by: prgandhi@qti.qualcomm.com
CRs-Fixed: 1008872
2016-08-19 18:52:55 -07:00
Govind Singh
77aa5857fa qcacmn: Add WIN compilation fixes for TLV
Compilation fixes made to compile TLV on WIN code base.
Also, Previous gerrits used WMI_NON_TLV_SUPPORT for all
compilation fixes of WIN vs MCL, using CONFIG_MCL and
CONFIG_WIN wherever it is found appropriate to keep it
consistent with other modules.

Change-Id: I1c129d736746556210c46f3122e2739d233e1d6b
Acked-by: prgandhi@qti.qualcomm.com
CRs-Fixed: 1008872
2016-08-19 18:52:53 -07:00
qcabuildsw
8387c37f77 Release 5.1.0.22Q
Release 5.1.0.22Q

Change-Id: I4864a150da61154f8a4585f21bd78f9f9cab96b1
CRs-Fixed: 688141
2016-08-19 18:34:06 -07:00
Himanshu Agarwal
81ce26de0d qcacmn: Add API to find IPV6 mcast packet
Propagation from qcacld-2.0 to qcacmn.

Add API to find IPV6 mcast packet to use it in wma_wow_wake_up_stats
func. This is required to know if there is a IPV6 mcast packet embedded
in a link layer unicast packet.

Change-Id: Ic2af69032262237b8751019817ae181913346818
CRs-Fixed: 1049254
2016-08-19 18:34:06 -07:00
Himanshu Agarwal
bf1a7c223b qcacmn: Add API to find IPV4 mcast packet
Propagation from qcacld-2.0 to qcacmn.

Add API to find IPV4 mcast packet to use it in wma_wow_wake_up_stats
func. This is required to know if there is a IPV4 mcast packet embedded
in a link layer unicast packet.

Change-Id: Iceaf1226edbf909ca3881e049c33f7d121860ef2
CRs-fixed: 1049254
2016-08-19 18:34:05 -07:00
qcabuildsw
d9a81d80e0 Release 5.1.0.22P
Release 5.1.0.22P

Change-Id: I781df97484b67ecb7c88abb30468cd8b87b03f2b
CRs-Fixed: 688141
2016-08-19 13:49:33 -07:00
Anurag Chouhan
cfeb14de34 qcacmn: CL 1605795 - update fw common interface files
Propagation from qcacld-2.0 to qcacld-3.0

WMI pdev POWER_STATS request and report message defs
pktlog flag in HTT_T2H RX_IN_ORD_PADDR_IND
New release of Hawkeye HW header files

Change-Id: If2f122a6879b60052849b7efb738e7fc1a4c23f3
CRs-fixed: 865207
2016-08-18 13:51:50 +05:30
Anurag Chouhan
18e43ddc1b qcacmn: CL 1598475 - update fw common interface files
Propagation from qcacld-2.0 to qcacld-3.0

Adding defined weightage values for WMI_PDEV_SET_PCL_CMDID
Add filter configure interface in fwcommon for sniffer mode

Change-Id: Ic822863cbbaffe7303dedf7f6c16ba92c2d0a5d3
CRs-fixed: 865207
2016-08-18 13:45:15 +05:30