Commit graph

1,648 commits

Author SHA1 Message Date
Houston Hoffman
a15d0b0eae qcacmn: Do wlan_disable/enable for QCA6290
QCA6290 needs the platform QMI handshake to kick off
fw.  Platform will have logic to not do QMI for targets/
platforms that don't support QMI.

Change-Id: I9643d778f25e4059baae903876d44dd2c77d9aaa
CRs-Fixed: 1097382
2016-12-10 18:07:31 -08:00
Houston Hoffman
d0620a35b3 qcacmn: Support CONFIG_PLD_PCIE_INIT
CONFIG_PLD_PCIE_INIT indicates that pcie initialization
and io remap have allready been done by the platform driver,
and should not be re-done by the wlan driver.
This is to facilitate shared controll between the MHI & wlan
drivers.

Removes a call to pci_disable_msi that might be needed in the
normal case.

Change-Id: I5c1eb72d998f53e3bb2e6751008d8a0c5c46a516
CRs-Fixed: 1097340
2016-12-10 18:07:29 -08:00
Houston Hoffman
6a5fff6bec qcacmn: Conditionaly compile hif_pci_probe_tgt_wakeup
hif_pci_probe_tgt_wakeup has been made static, so the compilation
must follow its conditional use.

Change-Id: I4c289ed7c7bb8c5b6fbde265c37dc0c3665b81fa
CRs-Fixed: 1096402
2016-12-10 18:07:28 -08:00
qcabuildsw
91b3c3925b Release 5.1.1.5J
Release 5.1.1.5J

Change-Id: I2dd3416af44934cfb1b3f16dcedce46cc7b7e412
CRs-Fixed: 688141
2016-12-09 17:51:54 -08:00
Srinivas Girigowda
9a88de77d7 qcacmn: Fix incorrect data type assignment
In function wma_get_buf_extscan_change_monitor_cmd() and
wma_get_buf_iextscan_hotlist_cmd(), numAp is of type uint32_t
but it is assigned to variable numap of type int.

Fix this by making 'numap' also of same type 'uint32_t'.

Change-Id: I02502f05d2305f62cbde47db2893770673d19fc3
CRs-Fixed: 1096384
2016-12-09 17:51:53 -08:00
Srinivas Girigowda
089c33e336 qcacmn: Add boundary check for number of APs
Add boundary check for number of APs.

Change-Id: I41e36d11bc3e71928866a27afc2fbf046b59f0f5
CRs-Fixed: 1095770
2016-12-09 17:51:51 -08:00
Srinivas Girigowda
c606ed04ef qcacmn: Fix header include bug
This is a qcacld-2.0 to qcacld-3.0 propagation.

In file ar9888def.h error: '_AR9888DEF_H_' is used as a header guard here,
followed by #define of a different macro [-Werror,-Wheader-guard]

ar9888def.h: note: 'AR9888__AR9888DEF_H_' is defined here; did you mean '_AR9888DEF_H_'?

Fix the header file include guard properly.

Change-Id: Ic05a829eadbf974598370c494a5cff10201ec600
CRs-Fixed: 1091052
2016-12-09 17:51:50 -08:00
qcabuildsw
ed91973572 Release 5.1.1.5I
Release 5.1.1.5I

Change-Id: If6f20e36dc5c0f19564a827cf4b7ac09c04200e4
CRs-Fixed: 688141
2016-12-07 16:53:35 -08:00
Ankit Gupta
20e5958da3 qcacmn: Disable TQM bypass
Disable TQM_BYPASS_WAR flag from napier platform.

Change-Id: I0b17dad372204721058109b317389d4283e33a5c
CRs-Fixed: 1089685
2016-12-07 16:53:34 -08:00
qcabuildsw
13a1dee368 Release 5.1.1.5H
Release 5.1.1.5H

Change-Id: Id3843dfbcb122beddb0203e90dfcbb9d15cec261
CRs-Fixed: 688141
2016-12-07 14:38:41 -08:00
Pamidipati, Vijay
b90a79ec7d qcacmn: Fix packet offset computation logic in Tx path
Fix the packet offset value filled in Tx descriptor.
Also fix a crash in Tx completion handler because of storing wrong
pointer in tx descriptor chain (next)

CRs-Fixed: 1088985
Change-Id: Ie2895700e0bb7e6f4b7b09a01da07a17d1c41160
2016-12-07 14:38:40 -08:00
qcabuildsw
728434f96c Release 5.1.1.5G
Release 5.1.1.5G

Change-Id: I600010540a27b801f6e4ccacec7e88415abcd6ef
CRs-Fixed: 688141
2016-12-07 03:09:11 -08:00
Yingying Tang
d89217468d qcacmn: Add support for QCA9379 SDIO & USB boards
Propagate from qcacld-2.0 to qcacmn

This change add the corresponding support for QCA9379 which has new chip ID.

Change-Id: I252b75d9ae7b760a6a8f6931b4db753f50d3baba
CRs-Fixed: 990755
2016-12-07 03:09:10 -08:00
qcabuildsw
bd37c7d1f5 Release 5.1.1.5F
Release 5.1.1.5F

Change-Id: I2ee335fa1522f290669a3e583f5c2f7bad7cbb5f
CRs-Fixed: 688141
2016-12-06 14:50:53 -08:00
Pamidipati, Vijay
dfe618e3b5 qcacmn: Add a new version of hal_srng API does not update HW pointer
Add hal_srng unlock API to be  used in completions reap funtion (CE) in
which HW head pointer/tail pointers need not be updated

CRs-Fixed: 1088985
Change-Id: Ia54b144e5dfd0b37bbabf992c764697928ddf76d
2016-12-06 14:50:53 -08:00
qcabuildsw
474bc4beb5 Release 5.1.1.5E
Release 5.1.1.5E

Change-Id: Ib1300e2c50c2b7d8cd8df5925f3b2a80a0a2b921
CRs-Fixed: 688141
2016-12-06 13:18:23 -08:00
Vijay Pamidipati
c84501ab24 qcacmn: Correct WLAN Configuration values for DP
Correct the configuration values for number of Tx and Rx
descriptors to be used for DP

CRs-Fixed: 1088985
Change-Id: Ica8e5021e7bd5ba83fbe3bd34243bfff4089353a
2016-12-06 13:18:22 -08:00
Pamidipati, Vijay
5ca52020ae qcacmn: Fix mac address value sent in peer assoc WMI command
Copy MAC Address in 2 word format in WMI message from char array input

CRs-Fixed: 1088985
Change-Id: I36e4e806b9c027ee824c77ca692239c7752b8036
2016-12-06 13:18:21 -08:00
Vijay Pamidipati
88c40ff685 qcacmn: Delay DP Interrupt Poll timer start until a VAP is created
Do not start interrupt poll timer for processing datapath SRNG
interrupts till any VAP is created and is up.

CRs-Fixed: 1088985
Change-Id: I3a9d148024f66d824dc839bdf8b158c351fe22cd
2016-12-06 13:18:20 -08:00
Pamidipati, Vijay
692f00cfd6 qcacmn: Add missing fields needed for DP Interrupt timer poll
Add timer instance in dp_soc for interrupt poll, to function in
poll mode till interrupts are enabled

CRs-Fixed: 1088985
Change-Id: I0d3207fe143b30317618d78b927133c43a552ef6
2016-12-06 13:18:19 -08:00
qcabuildsw
766bffb1f1 Release 5.1.1.5D
Release 5.1.1.5D

Change-Id: Idc293e0679748d240958d2c8655df6cff894799d
CRs-Fixed: 688141
2016-12-02 01:39:27 -08:00
Karunakar Dasineni
8a8afe2b47 qcacmn: E4.1 M2M emulation base address change
PCI base address should be offset by 0x0c000000
to access WLAN registers from E4.1 emulation release.

Change-Id: I022184398a457271bb495ac11421de59bc3d3857
CRs-Fixed: 1090092
2016-12-02 01:39:26 -08:00
Karunakar Dasineni
f61cb0725e qcacmn: Changes to enable PCI based Hawkeye M2M
Include Hawkeye emulation PCI device ids in probe list. This is required
to enable PCI based emulation platform to probe device and load driver
succesfully.

Change-Id: If6e750a2add334794e2d62085007fc300600f853
CRs-Fixed: 1090092
2016-12-02 01:39:25 -08:00
qcabuildsw
b8c23dd815 Release 5.1.1.5C
Release 5.1.1.5C

Change-Id: I170aec811355f2e778f04822f5631b2468f8d897
CRs-Fixed: 688141
2016-12-01 19:19:12 -08:00
Rajeev Kumar
e1c6dd9297 qcacmn: Define init-deinit basic framework for convergence
Define basic dispatcher framework for init/deinit. Each individual
component is supposed to define its own init/deinit primitives and
remove dummy place holder primitives.

Change-Id: Ibaf64c6a6715da2ab02f646ddb4fca4e6f46e031
CRs-Fixed: 1095741
2016-12-01 19:19:11 -08:00
qcabuildsw
8a0c76b7fc Release 5.1.1.5B
Release 5.1.1.5B

Change-Id: Icd9bb453052d23638b39f2f82c534013531b030c
CRs-Fixed: 688141
2016-12-01 16:09:41 -08:00
Naveen Rawat
8fb94f6847 qcacmn: Populate qos_enabled in roam_scan_offload_cmd
In function send_roam_scan_offload_mode_cmd_tlv, assign qos_qnabled
parameter being sent to firmware. Otherwise firmware will not be able
to get correct qos_caps value.

Change-Id: I3bdf43594f68cb0780f2947fff9db723644b5dac
CRs-Fixed: 1092258
2016-12-01 16:09:40 -08:00
qcabuildsw
4e5b862bcc Release 5.1.1.5A
Release 5.1.1.5A

Change-Id: Id1091100a663dd7bff2d8cf7c4ec0178ba254b24
CRs-Fixed: 688141
2016-12-01 01:41:24 -08:00
Samuel Ahn
388b9a5c1e qcacmn: Add support for multiple instances of the host driver
Propagation from qcacld-2.0 to qca-wifi-host-cmn.

If the module name is changed to something other than wlan in
Makefile or Kbuild, then MULTI_IF_NAME is defined to be the module name.
When MULTI_IF_NAME is defined, the names for the config files, log files,
and firmware files are prepended or appended with MULTI_IF_NAME. This
prevents file name collisions allowing multiple instances of this driver
to be loaded with different module names.

Change-Id: Id880c5fe423eb0b2a2c01677d8fa7c4a784c74df
CRs-Fixed: 946520
2016-12-01 01:41:23 -08:00
qcabuildsw
688645e3cb Release 5.1.1.5
Release 5.1.1.5

Change-Id: I5666fe7f10caa250ed0474384bc0fcd03313a978
CRs-Fixed: 688141
2016-11-30 12:40:46 -08:00
Nandha Kishore Easwaran
b423f1f3f8 qcacmn: change name for ZeroCACDFS
The term "agile" is used by hardware for swift/fast channel change.
Use precac for the zeroCACDFS instead.

Change-Id: I35f4d61cc93b3542feb8b286cbdf3a4474df5a75
Crs-fixed: 1073945
2016-11-30 12:40:45 -08:00
Sathish Kumar
92c7904b41 qcacmn: Add wmi support for btcoex duty cycle command
A new iwpriv command has been added to configure the period
and wlan duration for a btcoex duty cycle.

As a part of this registring the wmi_service_btcoex_duty_cycle
for WMI_SERVICE_BTCOEX_DUTY_CYCLE.

Also send_btcoex_wlan_priority_cmd registrtaion for btcoex
duty cycle command in non_tlv_ops.

Change-Id: I7f3bfdfd9804566d6d0b7cce7025e99db57d0e23
Acked-by: Basamma Yakkanahalli <ybasamma@qti.qualcomm.com>
CRs-Fixed: 1064437
2016-11-30 12:40:43 -08:00
Nandha Kishore Easwaran
b408ac4481 qcacmn: Change DFS agile flag
Agile flag WMI_CHAN_FLAG_AGILE_MODE added. When this flag is set,
the primary VHT80 will not be affected when channel change is done.

Change-Id: Ie6bce12ec955c0c8a79246dda57092808611803d
CRs-Fixed: 1072504
2016-11-30 12:40:41 -08:00
Sathish Kumar
4f30c00e1c qcacmn: Add non-tlv APIs for new WMI commands and support for old commands
Implement following WMI commands and corresponding event extraction
APIs added for WIN release-
WMI_PEER_GID_USERPOS_LIST_CMDID
WMI_PEER_TX_MU_TXMIT_RSTCNT_CMDID
WMI_PEER_TX_MU_TXMIT_COUNT_CMDID
WMI_PDEV_CHECK_CAL_VERSION_CMDID
WMI_BTCOEX_CFG_CMDID

Additions to following existing WMI commands-
WMI_MU_CAL_START_CMDID
WMI_SET_LTEU_CONFIG_CMDID
WMI_PDEV_GET_TPC_CONFIG_CMDID
WMI_START_SCAN_CMDID

Change-Id: Ifd43addf196f2bc3cbff33671ef66202b8b0b487
CRs-Fixed: 1059400
2016-11-30 12:40:40 -08:00
qcabuildsw
3fb189b406 Release 5.1.1.4Z
Release 5.1.1.4Z

Change-Id: I875c99e0509d244c6aa93447eae8c1761f0a79f1
CRs-Fixed: 688141
2016-11-29 16:19:06 -08:00
Kiran Kumar Lokere
5bca4c6064 qcacmn: Fix the compilation issue
Fix compilation issues

Change-Id: I0551c023dbdb8aa40d6aa9a3f19dcf4f56f69dd6
CRs-Fixed: 1094633
2016-11-29 16:19:06 -08:00
qcabuildsw
fd75713d61 Release 5.1.1.4Y
Release 5.1.1.4Y

Change-Id: I5a8c81b83bc2884c39dcfa9108b98c4f016bb9b9
CRs-Fixed: 688141
2016-11-28 14:09:49 -08:00
Houston Hoffman
fec8ed1234 qcacmn: Remove cds from napi hot_plug_notifier functionality
Instead of using cds to get the hif context in the notifier callback
rely on the context_of semantics to traverse back to the hif context.

Change-Id: I7d57f9dcf8c09836c34ce16a4acaa8c3bc1624b9
CRs-Fixed: 1092842
2016-11-28 14:09:48 -08:00
Houston Hoffman
60af6759fb qcacmn: Stringify HW_VERSION value when HW UNKNOWN
When new hardware is not found in the lookup table
for human readable hardware names, print the hex
value of the hardware version info.

Change-Id: If821ba04c83f2d9b54587379d92bdc1918d7a094
CRs-Fixed: 1092353
2016-11-28 14:09:45 -08:00
Houston Hoffman
59fd245eae qcacmn: Add WCN3990_V2 to hw names
Print out hw name WCN3990_V2.2 when soc version is 0x40010001.

Change-Id: I78c8cf5cf8917174fe95b8a8eefe608363a49e49
CRs-Fixed: 1092353
2016-11-28 14:09:43 -08:00
qcabuildsw
9c1982ad21 Release 5.1.1.4X
Release 5.1.1.4X

Change-Id: I58d15b69bae41a3857012eafe0af56b3016941a0
CRs-Fixed: 688141
2016-11-28 11:42:59 -08:00
Dustin Brown
72e658b87a qcacmn: Pass WOW enable flags to FW
For WOW Enable, firmware accepts a bitmap of flags, but passing them
to firmware is not exposed by WMI. Modify WMI to allow passing WOW
Enable flags to firmware.

Change-Id: I458b01bc6a4e5b14b2a1dfee928136daeb70ebe9
CRs-Fixed: 1092068
2016-11-28 11:42:58 -08:00
qcabuildsw
91cf3175bf Release 5.1.1.4W
Release 5.1.1.4W

Change-Id: I6ef2bc7854f3052ae8c2ad65e6349609640c4586
CRs-Fixed: 688141
2016-11-26 13:35:38 -08:00
Houston Hoffman
710af5a21e qcacmn: Use 9 copy engines for QCA6290
Reserve CE9-11 for the MHI driver.

Change-Id: If09c749293f98e9d0d97e73c3720eb5d8800070f
CRs-Fixed: 1093513
2016-11-26 13:35:38 -08:00
Dhanashri Atre
8abb9ee21a qcacmn: Change to set-up default TID queue
Set up default queue - use the same queue for BE and
non-qos traffic

CRs-Fixed: 1074199
Change-Id: I2e28ea1ee0a778d43a8d78005063a51776b48df0
2016-11-26 13:35:36 -08:00
Dhanashri Atre
6d90ef32d5 qcacmn: Separate peer object creation from other initialization
Seperate the dp peer object allocation from setting the peer's
default routing and default rx tid queues.

This change is to address a race condition where the HTT peer map
message arrives before the peer object is created.

Change-Id: Ibb0671d29ffac41fd06bb8a88476f37120d99ccb
CRs-Fixed: 1089662
2016-11-26 13:35:33 -08:00
Dhanashri Atre
10a93237e6 qcacmn: TQM bypass workaround
Enable the TQM bypass workaround.

CRs-Fixed: 1089685
Change-Id: I83859fdedd15ddd8784f9d6629d9a459a1d9c412
2016-11-26 13:35:32 -08:00
Ravi Joshi
05d9e677a8 qcacmn: Enable timer based polling for DP rings
Enable timer based polling of the UMAC rings for Tx completion
and Rx. (Interrupts are not yet ready on UMAC rings).
(DP_INTR_POLL_BASED is defined through Kbuild)
Also define the polling timer as 100 ms.

Change-Id: I243f94c3d49a80005ef9eec8a9a6f03abc81870c
CRs-Fixed: 1074199
2016-11-26 13:35:31 -08:00
qcabuildsw
7994eb827f Release 5.1.1.4V
Release 5.1.1.4V

Change-Id: I878d63556dcad971479860b1a50dde379630abbb
CRs-Fixed: 688141
2016-11-25 11:00:24 -08:00
Nandha Kishore Easwaran
cbff9c9090 qcacmn: Enable napi to re-enable interrupts
When NAPI is busy processing Rx, interrupt is not re-enabled
and this causes CE2 and other pipes to become full and target asserts.
This patch enables napi to return after processing half of the descriptors.

Change-Id: I2ba443c388f1a9d36331c632bfb2fbbbe876228f
Crs-fixed: 1094034
2016-11-25 11:00:24 -08:00