Commit graph

1,199 commits

Author SHA1 Message Date
Houston Hoffman
8a3a9a4b06 qcacmn: Integrate tasklet flushing logic into snoc
Need to ensure that that the wakeup message gets processed
deterministically (before the return of hif_bus_suspend,
or after the message has woken up the apps.)

In another change, the driver will check for the wakeup message
after hif_bus_suspend completes and reject the suspend if it
has allready recieve the wakeup message. In conjunction with
this change the host will not be able to accidentally process
and discard the wakeup message.

Change-Id: I6d487a00dcfd40a665d3be03697f3a7cfc815203
CRs-Fixed: 1051968
2016-08-13 14:49:04 -07:00
Houston Hoffman
6f60b107c5 qcacmn: Move tasklet flush up to ce
Wish to reuse this logic for snoc

Change-Id: Ibd678feec9fe0ee583d32d055d4cb4a4885991ab
CRs-Fixed: 1051968
2016-08-13 14:49:04 -07:00
Houston Hoffman
cb9bc6333d qcacmn: Configure the wakeup sources for the snoc bus
Need to register the device as a wakeup source and configure
the corect interrupt as a wakeup source for the snoc bus.

Change-Id: I2afcd69a8308183e141d7560a225a3b48d0e9f55
CRs-Fixed: 1051968
2016-08-13 14:49:04 -07:00
Houston Hoffman
bee3aab26f qcacmn: Remove list traversal from qdf_mem_free in successfull case
Make O(1) checks for corruption and list state to rule out
suspicion of double free and memory corruption.  Only traverse
the memory tracking list to differentiate between memory corruption
and freeing an untracked pointer.

Since we check for corruption before traversing the list, the qdf_mem_free
api may crash with a use after free signature before printing out the
double free error message.

Change-Id: I0862822a65634dc68d8146f44f0474b672b6fc0a
CRs-Fixed: 1049430
2016-08-13 14:49:04 -07:00
Rajeev Kumar
296c019780 qcacmn: Handle initial wake up message from target
Handle initial wake up message from target .

Change-Id: Ibd3e916e288090e1318ebbd75468577b25962d05
CRs-Fixed: 1051684
2016-08-13 14:48:57 -07:00
Vishwajith Upendra
bb6bd1132e Release 5.1.0.22L
Release 5.1.0.22L

Change-Id: I04c0e0fdbc269f64fa4c26aae86e87703d67aa7c
CRs-Fixed: 688141
2016-08-08 15:06:45 -07:00
Yuanyuan Liu
fd594c2455 qcacmn: HIF: Use PLD APIs
PLD is a interface between CLD and CNSS/ICNSS. It hides
CNSS/ICNSS APIs from CLD and provides a set of common APIs.
CLD modules should use these PLD APIs instead of calling
CNSS/ICNSS platform APIs.
Replace all CNSS/ICNSS APIs with PLD APIs in HIF.

CRs-Fixed: 1010692
Change-Id: I4018a4b7e08179f9c65a19fde61727228e876762
2016-08-08 15:05:33 -07:00
Arun Khandavalli
75ea891eca qcacmn: Add bus_id memeber to qdf_device
With Load once unload never architecture, the cds modules
will be opened/closed several times. As part of configuration
of modules bus id needs to passed. So, add a new member to save
the bus_id passed by the platform driver during the driver
intialization,

Change-Id: Ic580e03076e5e8c557dde1879e223606a14f79b8
CRs-Fixed: 1049224
2016-08-04 10:34:22 +05:30
Vishwajith Upendra
3af3435741 Release 5.1.0.22K
Release 5.1.0.22K

Change-Id: I4f63010b7ff55f292eee656389174337869a3408
CRs-Fixed: 688141
2016-08-03 18:12:59 -07:00
Houston Hoffman
9538fefe71 qcacmn: Initialize ce ring base address high registers for adrastea
Because the register values were not defined in the target defs table,
The values were defaulting to 0 or missing. The code to write to these
registers checks if they exist before trying to write to them.  Without
these registers defined, the base addresses of the dma rings would be
truncated to 32 bits.

Change-Id: Iabb49df50c2452522b6da30154e4d7d7221e22ac
CRs-Fixed: 1049424
2016-08-03 18:12:58 -07:00
Houston Hoffman
faf8ab5983 qcacmn: Fix Q_TARGET_ACCESS in hif_fastpath_resume
Q_TARGET_ACCESS return value check was incorrect.
Fixed to match usage in the rest of the driver.

Change-Id: I73631536c9670edcb5014f3e850985dfc6fc4d16
CRs-Fixed: 1046067
2016-08-03 18:12:57 -07:00
Vishwajith Upendra
d2d23bdd4b Release 5.1.0.22J
Release 5.1.0.22J

Change-Id: I76a30293382d046c6298a650c75e99d8cec7f116
CRs-Fixed: 688141
2016-08-03 14:25:49 -07:00
Houston Hoffman
e421a3c06d qcacmn: Compilation fix in DP layer caused due to transport layer
define QCA_OL_11AC_FAST_PATH is changed to WLAN_FEATURE_FASTPATH

Change-Id: I9f6cbddf4a4975d940c822fa90d24350d83f7a96
Acked-by:  Venkateswara Swamy Bandaru <vbandaru@codeaurora.org>
CRs-Fixed: 1040617
2016-08-03 14:25:49 -07:00
Houston Hoffman
6296c3e8f0 qcacmn: Compilation fixes for AP135 platform
1. AP135 platform uses 3.4.104 kernel. Fixed API names for the kernel.
2. Implicit declaration function errors fixed.
3. Stack frame size exceed error fixed for hif_dump_ce_registers function.
4. BIG Endian #define fixed.

Change-Id: I761762f6e51c0890e672f76817a911ade7126dd5
Acked-by:  Venkateswara Swamy Bandaru <vbandaru@codeaurora.org>
CRs-Fixed: 1040617
2016-08-03 14:25:48 -07:00
Vishwajith Upendra
64ccc85878 Release 5.1.0.22I
Release 5.1.0.22I

Change-Id: I424a7cca05a11fc4a2cc61830523973cc0115667
CRs-Fixed: 688141
2016-08-03 02:28:05 -07:00
Sandeep Puligilla
489c7193ec qcacmn: Fix compilation with WMI_INTERFACE_EVENT_LOGGING disabled
Compilation error occurs due to undefined struct when
WMI_INTERFACE_EVENT_LOGGING disabled.

Use void pointer as argument to wmi_mgmt_cmd_record() and cast as header
struct inside logging function to avoid casting as undeclared type.

Change-Id: I7d0922ee2009b235473febdbcbc3317e432a1386
CRs-Fixed: 1043597
2016-08-03 02:28:04 -07:00
Vishwajith Upendra
8dc5bf5e84 Release 5.1.0.22H
Release 5.1.0.22H

Change-Id: I516634ad1992f87206b9617f5c5074e16a2a6e7a
CRs-Fixed: 688141
2016-08-03 01:07:52 -07:00
Rajeev Kumar
5bac30f5e6 qcacmn: Add unit test framework to validate WLAN suspend/resume features
WLAN suspend/resume feature has tight dependency on APPS platform
suspend/resume support. On new targets APPS suspend/resume is not
supported until target is feature complete. In absence of APPS
suspend/resume support testing WLAN offload features become
difficult. Add unit test framework to test WLAN suspend/resume
features using private IOCTL command by simulating APPS
suspend/resume behaviour.

Trigger WLAN suspend:
iwpriv wlan0 wlan_suspend 0 0

To resume WLAN run a ping test from access point side and very 1st
ping request unicast packet should trigger wake up.

If FW is not waking up APPS then use below command to do a manual
wake up:

Trigger WLAN resume:
iwpriv wlan0 wlan_resume 0 0

This framework is only for SNOC platform.

Change-Id: I177a0047f460aa2a305a9e4e46fbfaa94a81dced
CRs-Fixed: 1042205
2016-08-03 01:07:49 -07:00
Vishwajith Upendra
3e52419f67 Release 5.1.0.22G
Release 5.1.0.22G

Change-Id: I5ff8dc9120d9799066ee464e2e462d53a980cabe
CRs-Fixed: 688141
2016-08-01 23:42:26 -07:00
Govind Singh
66597e4cc5 qcacmn: Remove unnecessary locking during WMI detach
HOST driver unload sequence does following
   1) Kill WLAN tasklet
   2) Disable CE interrupts
   3) Flush WMI RX work
Hence its unncessory to acquire eventq_lock as no one
will be using the shared resource during wmi detach.

Change-Id: I5c549358aeefc460c794c35659915d3b966c7350
CRs-Fixed: 1021376
2016-08-01 23:42:25 -07:00
Vishwajith Upendra
b9a7e4cedd Release 5.1.0.22F
Release 5.1.0.22F

Change-Id: Icf0c1acb7c0428b37ff434dd4dad061b525a9143
CRs-Fixed: 688141
2016-08-01 16:31:48 -07:00
Nitesh Shah
9ff543f7db qcacmn: CL 1597848 - update fw common interface files
Propagation from qcacld-2.0 to qcacld-3.0

Adding WMI defs for pdev and peer GET_ANTDIV_STATUS_CMD,
ANTDIV_INFO_EVENT msgs.

Change-Id: Iad3c57f0b4e10e68c86cef175b8cadcfd9e7fe1e
CRs-fixed: 865207
2016-08-01 16:31:48 -07:00
Vishwajith Upendra
16546b6a57 Release 5.1.0.22E
Release 5.1.0.22E

Change-Id: I50003e8fd2ce390cbfa4648b7aab2d391b7a798b
CRs-Fixed: 688141
2016-07-29 18:15:30 -07:00
Krishna Kumaar Natarajan
edc1f370b3 qcacmn: Correct len size of oem data request
qcacld-2.0 to qcacmn propagation.

oem data request len size should be of 4 byte instead of
1 byte.
Add changes to correct len size in wmi unified API.

Change-Id: I9b377420c50ff1160964f94be5eaa0072df0f63d
CRs-Fixed: 1013488
2016-07-29 18:15:29 -07:00
Vishwajith Upendra
55fb9d398d Release 5.1.0.22D
Release 5.1.0.22D

Change-Id: I68ea19fc5e1ff367c429a7f2324ebd8ee7bd405f
CRs-Fixed: 688141
2016-07-25 00:41:30 -07:00
Hardik Kantilal Patel
343739296c qcacmn: Address 32 bit specific compilation issues
Fixing 32 bit compliation issues due to improper type
casting and shift operation.

CRs-Fixed: 1043823
Change-Id: I2c05a0c0940c5d65c40aefdc80dc2888fbe87be1
2016-07-25 00:41:12 -07:00
Vishwajith Upendra
9d305224a4 Release 5.1.0.22C
Release 5.1.0.22C

Change-Id: Ic7cbb639caca889d6fcf3925992c0c8441927a96
CRs-Fixed: 688141
2016-07-20 10:44:19 -07:00
Nitesh Shah
4e47333bde qcacmn: CL 1546483 - update fw common interface files
Propagation from qcacld-2.0 to qcacld-3.0

Add WMI command to set GPIO numbers that are used to wakeup host
and wakeup target.
Changes to disable dynamic bandwidth RTS.
Add swol_assist_enable field to WMI extwow_set_app_type1_params
cmd to enable IoT mode WMI enums for CCK and OFDM max tx rates.

Change-Id: I26873873d7a355c179babaa7cc56e187e9771c92
CRs-fixed: 865207
2016-07-19 03:07:41 -07:00
Vishwajith Upendra
85e722996b Release 5.1.0.22B
Release 5.1.0.22B

Change-Id: I3ded6d66eca294b89fd650386a023b7081597d07
CRs-Fixed: 688141
2016-07-15 15:22:19 -07:00
Vishwajith Upendra
9bf39423c5 Release 5.1.0.22A
Release 5.1.0.22A

Change-Id: I70159eb36ede6d9f874a07115e9336534aefeb25
CRs-Fixed: 688141
2016-07-14 13:27:04 -07:00
Varun Reddy Yeturu
f99241ec66 qcacmn: Fix incorrect channel list passed to the firmware
Fix the occupied channel list that is being passed from CSR to
WMA to WMI to firmware.There is a conversion happening in
WMA from channel number to frequency which is the root of the
issue.

Change-Id: I8a2f8c9d31897b38086df26ebd386ec59d0f3540
CRs-Fixed: 1039020
2016-07-14 12:36:11 -07:00
Yuanyuan Liu
26476b51eb qcacmn: Add workqueue APIs in QDF
Add qdf workqueue APIs for schedule_delayed_work, cancel_work_sync,
cancel_delayed_work_sync and flush_delayed_work

Change-Id: Idb4de3c30c9c8cfdeb9af5b92f40a6e3dc954a6d
CRs-Fixed: 1009560
2016-07-13 18:49:41 -07:00
Vishwajith Upendra
6452198406 Release 5.1.0.22
Release 5.1.0.22

Change-Id: Ice5e37370df20b8f639dce2cdea9933e814a2a58
CRs-Fixed: 688141
2016-07-13 14:02:40 -07:00
Nitesh Shah
26ca070efa qcacmn: CL 1534810 - update fw common interface files
Propagation from qcacld-2.0 to qcacld-3.0

Define WMI messages for per-AC rx reorder timeouts
and A-MPDU aggregation limits.

Change-Id: I19d96379a93e2d860cce249704834f06f271efb0
CRs-fixed: 865207
2016-07-12 22:57:51 -07:00
Pradeep Reddy POTTETI
7e42ae0c63 qcacmn: CL 1529540 - update fw common interface files
Propagation from qcacld-2.0 to qcacld-3.0

Tufello USB Wlan Adapter - Flash Read

Change-Id: Ib90306a871febe43a076ae8b104442bbc3a4960c
CRs-fixed: 865207
2016-07-12 22:57:49 -07:00
Pradeep Reddy POTTETI
df7dfefed6 qcacmn: CL 1527207 - update fw common interface files
Propagation from qcacld-2.0 to qcacld-3.0

Add mcast filter set/delete command that can take multiple
filters in a list.
Fix HTT typos to make MACROS consistent with the field name.

Change-Id: I97ca72f102faecfc3d20409b0d4819a09968417c
CRs-fixed: 865207
2016-07-12 22:57:47 -07:00
Pradeep Reddy POTTETI
a364739a6d qcacmn: CL 1524945 - update fw common interface files
Propagation from qcacld-2.0 to qcacld-3.0.

New WMI command for reorder queue setup/removal

Change-Id: I31ad0432a0d5f49eed55603ae7d9eeedbdd19876
CRs-Fixed: 865207
2016-07-12 22:57:46 -07:00
Vishwajith Upendra
10add765f0 Release 5.1.0.21
Release 5.1.0.21

Change-Id: I2eef9fba6b77670aa4465c48436d412d3c7581a1
CRs-Fixed: 688141
2016-07-12 13:25:06 -07:00
Vishwajith Upendra
218accfb37 Release 5.1.0.20
Release 5.1.0.20

Change-Id: Ied052a49b3a969c4aaa051d01bfd321f4c3b2676
CRs-Fixed: 688141
2016-07-11 14:33:33 -07:00
Sandeep Puligilla
ac71f152d4 qcacmn: Enhance MGMT frame logging in WMI
More detailed logging needed for mgmt frames

Add vdev_id, frame type, subtype, and channel to logs by defining wrapper
function around logging macro and calling it from send_mgmt_cmd_tlv

Change-Id: I0c8c26e3194d97be7d903f64c5c5909c2d4b9799
CRs-Fixed: 1011346
2016-07-08 18:59:51 -07:00
Vishwajith Upendra
c968be6f73 Release 5.1.0.19
Release 5.1.0.19

Change-Id: Idcb1c3790bce212735baf2ea2c651a494305617a
CRs-Fixed: 688141
2016-07-08 14:00:09 -07:00
Govind Singh
051a8c4457 qcacmn: Remove duplicate definition from hif layer
FW common files needs to be in sync with host and fw.
There are duplicate definition of target attach API when
latest copy of fw common files are used.
Remove duplicate definition of target attach from hif layer.

Change-Id: Ie4a80ba07bc3ec2d9d1466c32062c373c9759a94
CRs-Fixed: 1012542
2016-07-08 06:12:14 -07:00
Vishwajith Upendra
084e541d60 Release 5.1.0.18
Release 5.1.0.18

Change-Id: I11e41be70ec95d11bdf5347fa45249f8f884d2fe
CRs-Fixed: 688141
2016-07-06 21:11:42 -07:00
Vishwajith Upendra
d83def39c7 Release 5.1.0.17
Release 5.1.0.17

Change-Id: I633f3d9849384391f0d7873d6290fd427e6d8bd1
CRs-Fixed: 688141
2016-07-05 16:53:36 -07:00
Arif Hussain
0b6da577e8 qcacmn: SAP DFS: Fix dfs_phyerr_filter_offload
Correct the logic based on phyerr filter offload INI value.

Change-Id: Ie4722eba7d7476fc7c445e9e9a026827231552eb
CRs-Fixed: 1036629
2016-07-01 16:19:14 -07:00
Himanshu Agarwal
2a92459208 qcacmn: Add NULL checks before dereferencing
Add NULL checks before dereferencing in:
1) HIF layer
2) WMI layer.

Change-Id: I47c5d18ae7841826d958d742283edb0bd6d246b7
CRs-Fixed: 1036390
2016-07-01 10:36:19 -07:00
Houston Hoffman
c2611a2c80 qcacmn: Remove references to cnss_pm_runtime_request
cnss_pm_runtime_request is deprecated.

Change-Id: I620065d8d0eae6a6830eeb003a29575c5352cb93
CRs-Fixed: 1035562
2016-07-01 05:41:23 -07:00
Houston Hoffman
4ede3494a7 qcacmn: Fix RUNTIME_PM wrt. runtime_pm_delay
Refer to runtime_pm_delay inside the config_info structure.
The member was moved inside a config_info structure to cleanup
hif_softc.

Change-Id: I45b54ef2323eb635bb110ece381d5c806a0a4627
CRs-Fixed: 1035562
2016-07-01 05:41:14 -07:00
Yuanyuan Liu
3f0973bd16 qcacmn: Add PLD stub file for WIN
Add PLD stub file for WIN.

CRs-Fixed: 1010692
Change-Id: Iff526bdc6b7765ca843ec9d6d805415101d750bb
2016-06-30 16:29:21 -07:00
Vishwajith Upendra
c40413e315 Release 5.1.0.16
Release 5.1.0.16

Change-Id: I94a16faa3c28ba5f41e3801486ddb3ed852e55cf
CRs-Fixed: 688141
2016-06-30 15:44:30 -07:00