Commit graph

2,194 commits

Author SHA1 Message Date
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
Sathish Kumar
07918bf4b7 qcacmn: Fix CTL power configuration issued through acfg tool
When CTL array is configured using acfg_tool, the CTL values are not
impacting powers due to incorrect band value passed to the FW. It is
found that the memory copy for band and CTL array are done together
in a single operation.

However, with convergence, both acfg_tool and wifitool will call the same
underlying WMI API to set the CTL table. In order for concurrent working,
we need to copy the band value separately for acfg_tool, before copying
the CTL array. This fixes memory corruption that is currently seen
as evident from the garbage value for CTL band.

CRs-Fixed: 1087168
Change-Id: I42f6bc39eb3930e8c995ff76294b7d77676f2299
2017-01-05 04:09:37 -08:00
qcabuildsw
e3ec8493d1 Release 5.1.1.7I
Release 5.1.1.7I

Change-Id: I7bbc8cd403b3dd118765154c9de1720f59b0c8b4
CRs-Fixed: 688141
2017-01-04 18:09:32 -08:00
Paul Zhang
c028941135 qcacmn: Drop Action frame in FW config by host
Propagation from qcacld-2.0 to qcacmn.

Several Action frame categories are not processed in host and they
are not forwarded to supplicant either, but they are dropped in host.
These unprocessed action frames are forwarded to host by FW and
wake up host unnecessarily which leads to battery drain. With this fix,
host conveys FW the disallowed action frames list at HDD startup
so that the remaining frames can be dropped in FW itself thereafter
when under WoW mode.

Change-Id: I40b49d42df94085784c8f1d8321de0ee61473ae0
CRs-Fixed: 999114
2017-01-04 18:09:31 -08:00
qcabuildsw
e2e69894e4 Release 5.1.1.7H
Release 5.1.1.7H

Change-Id: Id92f5e100ede2449aa4680eba1d1baf26923b7b2
CRs-Fixed: 688141
2017-01-04 12:21:06 -08:00
Ankit Gupta
6fb389b4e4 qcacmn: Check peer for null before dereference
Check for peer null check before dereference in
dp_peer_state_update to update its state.

Change-Id: Id3b743d6cbe3d156a48ad111e467579b7478e4bb
CRs-Fixed: 1107176
2017-01-04 12:21:05 -08:00
qcabuildsw
38f05ebf53 Release 5.1.1.7G
Release 5.1.1.7G

Change-Id: I96616a1e1854fcb3bd79dd5ed710e1ab43437403
CRs-Fixed: 688141
2017-01-04 11:19:07 -08:00
Jeff Johnson
0571813a2b qcacmn: Fix -Wmissing-prototypes in ce_service_srng.c
We want to enable the compiler's -Wmissing-prototypes switch, but
there is existing code in ce_service_srng.c that is generating
warnings.  Fix these warnings by making the following functions
static:
	ce_send_nolock_srng
	ce_sendlist_send_srng
	ce_recv_buf_enqueue_srng
	ce_recv_entries_done_nolock_srng
	ce_send_entries_done_nolock_srng
	ce_completed_recv_next_nolock_srng
	ce_revoke_recv_next_srng
	ce_completed_send_next_nolock_srng
	ce_cancel_send_next_srng
	ce_check_int_watermark_srng
	ce_get_desc_size_srng
	ce_srng_src_ring_setup
	ce_srng_dest_ring_setup
	ce_srng_status_ring_setup
	ce_ring_setup_srng

Change-Id: Iea59d7b65179ad2a0c6a45af6acf94663b41304c
CRs-Fixed: 1104119
2017-01-04 11:19:06 -08:00
qcabuildsw
df771a9e28 Release 5.1.1.7F
Release 5.1.1.7F

Change-Id: Ia6f1503197bfa91e57947a269b158f44a32f75de
CRs-Fixed: 688141
2017-01-04 04:02:47 -08:00
Poddar, Siddarth
f176340b9e qcacmn: Fix to avoid skb buff leak when NBUF alloc fail
propagation from qcacld-2.0 to qcacmn.

If host fail to allocate receive packet bundle buffer
it will return no memory without freeing receive pkt queue.
Fix is to free the receive pkt queue before returning from message handler.
Also, fill the rx free list during driver load time itself with the
pre allocated memory so that Tx won’t take away this memory.

Change-Id: I4bf2aeb7bc85cc68cfa1314e6dbf5057665ba7ce
CRs-Fixed: 1079623
2017-01-04 04:02:46 -08:00
qcabuildsw
7caa967559 Release 5.1.1.7E
Release 5.1.1.7E

Change-Id: I199f02f790173666cc3e08b1d7980c69611a28d6
CRs-Fixed: 688141
2017-01-03 22:39:41 -08:00
Selvaraj, Sridhar
afd3a5b6f3 qcacmn: Add API to retrieve component private object from psoc
Add API to retrieve component private object from psoc for respective
umac component id. In addition, the following changes are also done:
 1) Add IBSS Peer type.
 2) Define UMAC VDEV ID Max.
 3) Define Psoc, pdev, vdev create timeout values.
 3) Fix compilation issues of object manager.

Change-Id: I418dad89fe641c0b536549222eb391546975e66b
CRs-Fixed: 1097225
2017-01-03 22:39:40 -08:00
qcabuildsw
d133fdc2f1 Release 5.1.1.7D
Release 5.1.1.7D

Change-Id: I7fff1626bfa0b322a7b92e303020b039aeeac185
CRs-Fixed: 688141
2017-01-02 08:33:19 -08:00
Kiran Venkatappa
edeb20382f qcacmn: Add cal data version check status enums in host
Add WMI host defines to check cal data status and use appropriate copy
macros to take care of big-endian conversion.

Change-Id: I4358761e807ac584c638b6e36229dbbbb85bf651
CRs-Fixed: 1105756
2017-01-02 14:58:58 +05:30
qcabuildsw
ab718808aa Release 5.1.1.7C
Release 5.1.1.7C

Change-Id: I0406518c7be798cc14a5f43396c92cd624bbd709
CRs-Fixed: 688141
2016-12-30 16:32:42 -08:00
Soumya Bhat
be6cc1703d qcacmn: Refine wlan_objmgr_cmn.h
Separate macro/enum definitions from wlan_objmgr_cmn.h
which are generic to several modules into a different file.

Change-Id: I884b26fd74c08e0f35512b073a7222fff9b9f88c
CRs-Fixed: 1096009
2016-12-30 16:32:42 -08:00
qcabuildsw
9368909e70 Release 5.1.1.7B
Release 5.1.1.7B

Change-Id: I4cc6b759cf359a863041c3073fa390b828fc3f26
CRs-Fixed: 688141
2016-12-30 15:56:29 -08:00
Soumya Bhat
dd73487ad6 qcacmn: Rename variable for readability
Rename instance of comp_obj referred in code to comp_priv_obj,
as these instances are private to individual components

Change-Id: I895362261e5b7e06a46c2bd92942a972c75f192b
CRs-Fixed: 1096009
2016-12-30 01:09:28 -08:00
qcabuildsw
a3955d2aaa Release 5.1.1.7A
Release 5.1.1.7A

Change-Id: I18c231aeb219e95c081d2d13386c3c0e97f1b7bb
CRs-Fixed: 688141
2016-12-29 11:09:35 -08:00
Himanshu Agarwal
290e3408b8 qcacmn: Decrease the peer ref count after use
Decrease the ref count for peer when peer is no longer
needed in case of mgmt tx and rx frame handling.

Change-Id: I1e0599271a05add0a2e6f06d3809a1d2e54732e3
CRs-Fixed: 1103247
2016-12-29 11:09:34 -08:00
Himanshu Agarwal
c68d5a1acf qcacmn: Fix compilation errors in mgmt txrx component
Fix compilation errors in mgmt txrx component in
wlan_mgmt_txrx_mgmt_frame_tx function.

Change-Id: Ie09fba5924778a7e774b896bef7849d1ac77b21f
CRs-Fixed: 1103247
2016-12-29 11:09:32 -08:00
qcabuildsw
66f6a83b95 Release 5.1.1.7
Release 5.1.1.7

Change-Id: I8db268d5863df039320c0c08b242d0f871e164eb
CRs-Fixed: 688141
2016-12-29 06:45:23 -08:00
Himanshu Agarwal
f064db935d qcacmn: Change value of MOB_DRV_LEGACY_DP macro
Original value of MOB_DRV_LEGACY_DP of 0xffff is colliding
with value of QCA8074_DEVICE_ID macro which is for Hawkeye
platform due to which soc context is not getting allocated
for legacy platforms.

Change the value of MOB_DRV_LEGACY_DP to 0xdeed.

Change-Id: I73325fef287d0a3fa0ce145957a70d20b60e12e0
CRs-Fixed: 1106160
2016-12-29 06:45:22 -08:00