Commit graph

1,816 commits

Author SHA1 Message Date
qcabuildsw
3d8019a02f Release 5.1.1.8D
Release 5.1.1.8D

Change-Id: Iacf32ee4000efd140e5b83ad6ded44b0b1b05e4d
CRs-Fixed: 688141
2017-01-16 01:15:00 -08:00
Arunk Khandavalli
cae132b6a9 qcacmn: Get monotonic boottime from kernel in nano sec
qcacld-2.0 to qca-wifi-host-cmn propogation

Add support to get the boot time from kernel in nano seconds.

Change-Id: Iaa512248a5e56d77cff39da562e0c9ee4eaeeefd
CRs-Fixed: 1107219
2017-01-16 01:14:59 -08:00
qcabuildsw
9b18ff1e56 Release 5.1.1.8C
Release 5.1.1.8C

Change-Id: I30e0a63b3cdfddf7af0e7bf109d4c54d40693431
CRs-Fixed: 688141
2017-01-12 07:12:01 -08:00
Jeff Johnson
0771857b80 qcacmn: Add WAR for dp_soc_attach_wifi3 -Wmissing-prototypes
Currently dp_main.c generates warnings when compiled with the GCC
-Wmissing-prototypes switch because it does not include a header file
which exports a prototype for dp_soc_attach_wifi3(). Currently the "dp
soc attach" APIs are defined in a strange manner, and there is not a
prototype which dp_main.c can include. So as a WAR define the
prototype internal to dp_main.c itself.

Of course the whole point of -Wmissing-prototypes is to prevent
mismatches between callers of an interface and the implementation of
an interface, and this WAR explicitly bypasses that protection. This
WAR should be superceded in the future by a proper registration
mechanism where the architecture-specific DP implementation attaches
to the Converged Data Path (CDP).

Change-Id: I1858ac4ec9f53c28cde622a43a3adb8643328916
CRs-Fixed: 1110197
2017-01-12 07:12:00 -08:00
Jeff Johnson
f135257ccb qcacmn: Fix -Wmissing-prototypes in dp_main.c
We want to enable the compiler's -Wmissing-prototypes switch, but
there is existing code in dp_main.c that is generating warnings.  Fix
these warnings by making all functions static that are only referenced
internally to dp_main.c.

Change-Id: If22f66ecdc3dbf4e91dbd32bb0e994a281d729e9
CRs-Fixed: 1110193
2017-01-12 07:11:58 -08:00
Jeff Johnson
416168bfaf qcacmn: Fix -Wmissing-prototypes in dp_peer.c
We want to enable the compiler's -Wmissing-prototypes switch, but
there is existing code in dp_peer.c that is generating warnings.  Fix
these warnings by making the following functions static:
	dp_peer_find_hash_find()
	dp_rx_tid_update_wifi3()
	dp_rx_tid_delete_cb()
	dp_rx_tid_delete_wifi3()

And by exporting a public prototype for:
	dp_peer_find_hash_erase()

Change-Id: I5c945f27c0334a4d88da6136de8aacae2ba840a7
CRs-Fixed: 1108459
2017-01-12 07:11:56 -08:00
qcabuildsw
a0346265d4 Release 5.1.1.8B
Release 5.1.1.8B

Change-Id: I0f1ecf2c4e35bce362f3d1ab35935006c4fe7330
CRs-Fixed: 688141
2017-01-12 05:26:12 -08:00
Sarada Prasanna Garnayak
6249b4350a qcacmn: Runtime PM packets tagging after wow suspend
qcacld-2.0 to qcacmn propagation.

Don't Tag Non-WoW packets as Runtime PM packets after
wow suspend. Some WMI Commands can be send in Runtime
PM context and MC thread context. Packets coming via
MC Thread Context can be tagged as Runtime PM packets
when runtime pm in progress.

Packets should be tagged in the same caller context to
avoid any race condition. Being stability issue, addressing
this issue by not tagging any non-wow commands as runtime pm
after wow suspend. This will ensure all the non-wow packets
coming after wow_suspend flag is set as non runtime pm packets
and will trigger a runtime resume.

Git-commit: 4a396d80c5cc2ded75098c61426521b9b2762c17
Git-commit: 2ee4bf4791cc5db30ec03eceaf591367deffe39a

CRs-Fixed: 1106496
Change-Id: I4e55733ad8403581aca0b49ce9442fc5591335c0
2017-01-12 05:26:11 -08:00
qcabuildsw
1f7a4b28bf Release 5.1.1.8A
Release 5.1.1.8A

Change-Id: Ib555558e290d1b84fb9e1bcd0518a9d6901707a0
CRs-Fixed: 688141
2017-01-12 02:34:18 -08:00
Srinivas Pitla
7c2f97528e qcacmn: Public APIs to get/set members of objects
1) inline APIs to get/set peer state from peer object
2) inline API to get pdev os private pointer
3) inline API to get vdev os private pointer
4) inline API to set/get max vdev count of pdev
5) Changed internal header files inclusions
6) Moved psoc_obj_attach() prototypes to gloabl_obj_i.h

Change-Id: I088d6d24dd60982af8e42b0bed0ccfaf45e219bd
CRs-Fixed: 1107371
2017-01-12 02:34:16 -08:00
Srinivas Pitla
eb76bcde26 qcacmn: API to find peer with mac address and bssid
Multiple peers can have same mac address in QWRAP, in those scenarios BSSID
should also match to get the peer. This API takes mac address and BSSID as
input params

Change-Id: I741dd78c7662a63106685f53cc51041f320e2d56
CRs-Fixed: 1107371
2017-01-12 02:34:15 -08:00
qcabuildsw
4821268f7a Release 5.1.1.8
Release 5.1.1.8

Change-Id: If9f3bd3292c20d0813635b5cf06fd73e8d5fd49d
CRs-Fixed: 688141
2017-01-11 22:15:20 -08:00
Yingying Tang
8040436e3a qcacmn: Add new HW version for QCA9379
Propagate from qcacld-2.0 to qcacmn

Currently there is no QCA9379 1.1 infomation in wlan device id table.
Add QCA9379 version 1.1 in device id table.

CRs-Fixed: 1048598
Change-Id: Ie4b7d3e31db2f2b3cad116bb0e993f9f55a7d322
2017-01-11 22:15:19 -08:00
qcabuildsw
8bfa68369c Release 5.1.1.7Z
Release 5.1.1.7Z

Change-Id: I9f32ab93de6502a2bc8c15b6699aff5c1d1fb964
CRs-Fixed: 688141
2017-01-11 03:04:09 -08:00
Selvaraj, Sridhar
fe23c57ef1 qcacmn: Export symbols of dispatcher public API's
Export symbols of the following dispatcher public API's.
1) dispatcher_init/deinit
2) dispatcher_psoc_open/close
3) dispatcher_psoc_enable/disable

Change-Id: I90c79a8c455f117b8805c0557eca6167b30286c3
CRs-Fixed: 1109029
2017-01-11 03:04:07 -08:00
qcabuildsw
8e5520e89c Release 5.1.1.7Y
Release 5.1.1.7Y

Change-Id: If81e39ad386a6404de7b1f1720c8daa186f30b13
CRs-Fixed: 688141
2017-01-10 18:20:25 -08:00
Rajeev Kumar
73c05a8087 qcacmn: Add changes to detect if scheduler thread is stuck
Scheduler thread can get stuck because of many reasons like
mutex deadlock, resource starvation etc. Add changes to detect
if scheduler thread is stuck.

Change-Id: Ib9d4e3b240077464b3a51ab6be6af728cb845bfe
CRs-Fixed: 1107636
2017-01-10 18:20:24 -08:00
qcabuildsw
4bc9248c74 Release 5.1.1.7X
Release 5.1.1.7X

Change-Id: I106329c42e05d4ebc29f5ab641b573d59548b5ec
CRs-Fixed: 688141
2017-01-10 11:47:44 -08:00
Tallapragada Kalyan
603c594e45 qcacmn: DP RX optimization changes
Added a separate loop to dequeue the rx pkts and relinquish
REO and rx-Refill ring faster. Additionl rx processing is
moved to a different per vdev loop.

CRs-Fixed: 1098453
Change-Id: I43b1fa302cf7e7c77f6114ea491306c0b724e365
2017-01-10 11:47:43 -08:00
qcabuildsw
2844c30d9a Release 5.1.1.7W
Release 5.1.1.7W

Change-Id: If320672a834167deb92a04f55c199d0014ddc02c
CRs-Fixed: 688141
2017-01-10 03:05:48 -08:00
Himanshu Agarwal
56d8a79a89 qcacmn: Call mgmt txrx init and deinit from dispatcher APIs
Call mgmt txrx init and deinit from dispatcher APIs.

Change-Id: I5a20ae1ce663b3ee271daebe67659193154df5c8
CRs-Fixed: 1103247
2017-01-10 03:05:47 -08:00
Himanshu Agarwal
ca307114d1 qcacmn: Add logic to handle reg/dereg of multiple rx callbacks
Add logic to handle registration and deregistration of rx callbacks
for multiple frames in a single call of corresponding func.

Change-Id: I09479988f0c55f6d358ef503417dcfb46f2a0565
CRs-Fixed: 1103247
2017-01-10 03:05:46 -08:00
qcabuildsw
66d177febf Release 5.1.1.7V
Release 5.1.1.7V

Change-Id: I5571dbc182572306c3ec33108ec17700cdb7a16c
CRs-Fixed: 688141
2017-01-09 14:13:15 -08:00
Soumya Bhat
ff3cac3135 qcacmn: Return from lmac_if_open appropriately
Add change in wlan_lmac_if_open() to return success
if device type is valid, else return invalid and handle
failure appropriately in caller.

Change-Id: I77a0620d4d64b18e28ce2cef7b5fb3dc7fb844ba
CRs-Fixed: 1096016
2017-01-09 14:13:14 -08:00
qcabuildsw
47d0a107ec Release 5.1.1.7U
Release 5.1.1.7U

Change-Id: Ia0f40e656bcbd1276ac0100796d16d0f22e24282
CRs-Fixed: 688141
2017-01-09 09:55:29 -08:00
Jeff Johnson
755f261b0c qcacmn: Fix -Wmissing-prototypes in dp_tx.c
We want to enable the compiler's -Wmissing-prototypes switch, but
there is existing code in dp_tx.c that is generating warnings.  Fix
these warnings by making the following functions static:
	dp_tx_desc_release()
	dp_tx_prepare_htt_metadata()
	dp_tx_prepare_ext_desc()
	dp_tx_prepare_desc_single()
	dp_tx_prepare_desc()
	dp_tx_prepare_raw()
	dp_tx_hw_enqueue()
	dp_tx_classify_tid()
	dp_tx_send_msdu_single()
	dp_tx_send_msdu_multiple()
	dp_tx_prepare_sg()
	dp_tx_reinject_handler()
	dp_tx_inspect_handler()
	dp_tx_process_htt_completion()
	dp_tx_comp_process_desc()

Change-Id: I4d40b836af85ea3c3dbee0c11514e2c1d2e9c8cb
CRs-Fixed: 1108175
2017-01-09 09:55:29 -08:00
Jeff Johnson
590aeb60c8 qcacmn: Properly export wlan_cfg API
Currently some of the public functions in wlan_cfg.c do not have their
prototypes exposed in a header file. This causes compilation warnings
when the driver is compiled with the -Wmissing-prototypes switch.  Fix
these issues by adding the prototypes to wlan_cfg.h.

Change-Id: I914b811fdd8d48c9570bd240f0fdc8192b21c2e8
CRs-Fixed: 1108113
2017-01-09 09:55:27 -08:00
Jeff Johnson
32140745b1 qcacmn: Make dp_htt_h2t_send_complete() static
Since dp_htt_h2t_send_complete() is only accessed from within
dp_htt.c, and since there is not a public prototype, make it static.

Change-Id: I002ac20d0e5ced8ddc9d5099a987a5ce208b4cfc
CRs-Fixed: 1108111
2017-01-09 09:55:26 -08:00
Jeff Johnson
2cb8fc7e18 qcacmn: Properly export dp_peer API
Currently some of the public functions in dp_peer.c do not have their
prototypes exposed in a header file. In addition clients of these
functions currently have local prototypes. Fix these issues by adding
the prototypes to dp_peer.h.

Change-Id: I461cf69024da56fad57b75a325775ecd68872c8e
CRs-Fixed: 1108085
2017-01-09 09:55:25 -08:00
qcabuildsw
5ce2a8cd89 Release 5.1.1.7T
Release 5.1.1.7T

Change-Id: I76d0b7244c4ff6c897f9c74c8e7bf112473c8eca
CRs-Fixed: 688141
2017-01-09 06:15:48 -08:00
Nandha Kishore Easwaran
3f0bfc305e qcacmn: Add scn parameter to ol_txrx_soc_attach
Add an extra parameter scn in ol_txrx_soc_attach which is used
for calling pdev_attach. scn is a handle for each radio interface.

Change-Id: I6c4b1835d3a1c0b19724d62a67961bff4e296284
2017-01-09 06:15:47 -08:00
qcabuildsw
337bab319c Release 5.1.1.7S
Release 5.1.1.7S

Change-Id: I67bc83f5b1413601428212728367a036b1c5de19
CRs-Fixed: 688141
2017-01-09 02:41:12 -08:00
Sathish Kumar
3148cb077a qcacmn: Fix issue in extraction API for peer and vdev extd stats
wmi_stats_event structure is defined in FW header wmi_unified.h with
variable length data as A_UINT8 data[0]. KW tool perceives this
as a single uint8 and throws zero sized array when we try to access buffer
following data.

A uint8 pointer is assigned to data for this purpose in order to fake
the tool and resolve the issue.

Change-Id: I998f80c84554bc5bf4d0b2df1dae85352d72cb21
CRs-Fixed: 1106787
2017-01-09 02:41:10 -08:00
qcabuildsw
2bad0a07f9 Release 5.1.1.7R
Release 5.1.1.7R

Change-Id: I9b5b0c7a64ee7b8694d5a82bb28dee9ab152b197
CRs-Fixed: 688141
2017-01-09 02:00:04 -08:00
Sathish Kumar
59113a4840 qcacmn: Add generic logging API adhering to converged framework
As part of cleaning up direct printk calls in WIN driver, a new
generic wrapper API QDF_PRINT_INFO() is added that is based on
the converged QDF debug framework.

All printks in the WIN driver will be replaced by calls to QDF_PRINT_INFO()
which will in-turn compile converged QDF trace API. Generic shared print
control index and module ID are defined for this purpose.

Change-Id: I818fbce9e46526ccdb4824d988b76c43e43eb3a4
CRs-Fixed: 1106829
2017-01-09 02:00:03 -08:00
qcabuildsw
01abf4d3d1 Release 5.1.1.7Q
Release 5.1.1.7Q

Change-Id: Ibf904e0e1ef748106dfed1ab272ab65f9be561c8
CRs-Fixed: 688141
2017-01-08 22:34:01 -08:00
yeshwanth sriram guntuka
78ee68fa4a qcacmn: Remove redundant qdf_mem_zero calls
qcacmn to qcacmn-2.0 propagation

qdf_mem_zero is called after qdf_mem_malloc to set the memory
value to zero. qdf_mem_malloc uses kzalloc internally to allocate
memory which sets memory to zero.

Removing redundant qdf_mem_zero which are called after
qdf_mem_malloc.

Change-Id: I8e1faf6099f8fbc869c8af42b7511a13e66e6bed
CRs-Fixed: 1079697
2017-01-08 22:34:01 -08:00
qcabuildsw
bf245e830a Release 5.1.1.7P
Release 5.1.1.7P

Change-Id: Icafda9efd090f830ab926a23c79e9309404685ce
CRs-Fixed: 688141
2017-01-06 11:40:21 -08:00
Selvaraj, Sridhar
85ad39b00e qcacmn: Add support to create global obj as part of init
Add support to create global obj manager as part of init
sequence and also use QDF return types in all obj manager API's.

Change-Id: I0c58be908f36912764914bf9aba9b006220e8c0d
CRs-Fixed: 1107317
2017-01-06 11:40:20 -08:00
qcabuildsw
e71901442e Release 5.1.1.7O
Release 5.1.1.7O

Change-Id: If0b3ebbc53248ba1a3e9ed5e0ff44e1364a1dc6c
CRs-Fixed: 688141
2017-01-06 09:20:32 -08:00
Srinivas Pitla
24ca6c9ed7 qcacmn: Fix the return status in psoc_pdev_detach()
Return QDF_STATUS_SUCCESS if pdev is detached properly

Change-Id: I81c3c92acc4baece650c8b4ea6a506a0579bff3d
CRs-Fixed: 1107371
2017-01-06 09:20:31 -08:00
qcabuildsw
28930525a5 Release 5.1.1.7N
Release 5.1.1.7N

Change-Id: I1e6a9a510b7a6e2887d9045589e509ead7065731
CRs-Fixed: 688141
2017-01-06 08:44:05 -08:00
Srinivas Pitla
1a2ef8c613 qcacmn: Add APIs to get component private object for pdev/vdev/peer
Add APIs to get component private object pointer. The caller has
to acquired its object lock, before calling this function, and
the lock has to be released after returning

Change-Id: I93b1001d936ba35af557b78edf45a11d58ae5308
CRs-Fixed: 1107371
2017-01-06 08:44:04 -08:00
qcabuildsw
05e2951139 Release 5.1.1.7M
Release 5.1.1.7M

Change-Id: Ic92f6662f0a0b4a87e9f194abb73992a5befa4a4
CRs-Fixed: 688141
2017-01-05 23:26:14 -08:00
Sarada Prasanna Garnayak
580f1c4ddf qcacmn: fix the runtime pm feature compilation error
Add missing semicolon in variable declaration.

CRs-Fixed: 1107859
Change-Id: If1c4841345eb0e5060dc4db71ce22ff139ec5015
2017-01-05 23:25:27 -08:00
qcabuildsw
1c62ff622c Release 5.1.1.7L
Release 5.1.1.7L

Change-Id: I3510776c7b273d61013f805e1669c03aad2fc3ff
CRs-Fixed: 688141
2017-01-05 09:51:24 -08:00
Jeff Johnson
bf8ed0a7a2 qcacmn: Fix -Wmissing-prototypes in if_pci.c
We want to enable the compiler's -Wmissing-prototypes switch, but
there is existing code in if_pci.c that is generating warnings.  Fix
these warnings by making the following functions static:
	hif_enable_pci()
	hif_register_bmi_callbacks()
	hif_ce_interrupt_handler()

Change-Id: Iaf30be455ce537fabc85dc973ceb3f1b820d29d9
CRs-Fixed: 1107494
2017-01-05 09:51:21 -08:00
qcabuildsw
9a3fa3b8c3 Release 5.1.1.7K
Release 5.1.1.7K

Change-Id: I00a2ef6d6d2641cb04e11f8617fd32f8af1bb756
CRs-Fixed: 688141
2017-01-05 08:36:13 -08:00
Karunakar Dasineni
c7033bcfa8 qcacmn: CE setup changes to fix copy failures
Increase number of entries in diag CE to 8 as per Lithium SRNG HW design constraints.

Change-Id: I07427e2ccd1da3b08a6f58d3dcca74b85a4fe84e
2017-01-05 08:36:12 -08:00
qcabuildsw
1e93f0bea4 Release 5.1.1.7J
Release 5.1.1.7J

Change-Id: I67aa206c2b05ac1ea181698f8e0786350b9519db
CRs-Fixed: 688141
2017-01-05 04:09:38 -08:00