Commit Graph

10847 Commits

Author SHA1 Message Date
Pragaspathi Thilagaraj
cd6aef0bd3 qcacld-3.0: Add MLME CFG items of MBO INI configs
Add the MBO ini configs to mlme for the following:
1. CFG_MBO_CANDIDATE_RSSI_THRESHOLD
2. CFG_MBO_CURRENT_RSSI_THRESHOLD
3. CFG_MBO_CUR_RSSI_MCC_THRESHOLD
4. CFG_MBO_CAND_RSSI_BTC_THRESHOLD

Change-Id: I9e779c912538973c8281170ec8c212a4f05b7e2e
CRs-Fixed: 2314168
2018-09-18 06:17:05 -07:00
nshrivas
1849e963ff Release 5.2.0.97G
Release 5.2.0.97G

Change-Id: I79bd7ee5f940f65850a3cb2f8c09198801aaeec8
CRs-Fixed: 774533
2018-09-18 01:02:59 -07:00
Sravan Kumar Kairam
0512a84dba qcacld-3.0: Dequeue nbuf list from rx thread before continue
Currently in function dp_rx_thread_process_nbufq inside while
loop with nbuf list as condition if peer or vdev is not found
nbuf list is freed but not assigned to NULL and continue operation
is done. This leads to invalid freed nbuf list access in successive
loop iteration. In this change after nbuf list is freed assign it
to the next nbuf list which is in the rx thread queue.

Change-Id: I4b595a8708f91677645815105ad736926de91758
CRs-Fixed: 2309908
2018-09-18 01:02:59 -07:00
Yu Wang
68baaddd7f qcacld-3.0: check the data length when downloading firmware
When downloading a corrupted firmware file that has chunk length in
header which doesn't match the contents, buffer over-read may occur.

To fix it, before downloading the data, ensure the length is equal or
smaller than the left size of the firmware file.

Change-Id: I4e0c6c4423f94f26a8c4573b5d234296890f4ecf
CRs-Fixed: 2314182
2018-09-18 01:02:55 -07:00
nshrivas
94d245e1ed Release 5.2.0.97F
Release 5.2.0.97F

Change-Id: I6c87b644fb5df17ba96eff54c09006fe70aec11a
CRs-Fixed: 774533
2018-09-17 21:29:12 -07:00
Manjunathappa Prakash
a4272ab881 qcacld-3.0: Fix locking order in ol_txrx_disp_peer_stats()
Fix the locking order of pdev->peer_ref_mutex and pdev->local_peer_ids.lock
spin_locks in ol_txrx_disp_peer_stats(), this was resulting in deadlock
with lock order in ol_txrx_peer_get_ref_by_local_id().

Change-Id: I51d39daed7f8fb04c30fd6a73e2f9ca388543620
CRs-Fixed: 2315808
2018-09-17 21:29:12 -07:00
Arif Hussain
6b0ed167ad qcacld-3.0: Fix possible OOB in wma_unified_radio_tx_mem_free()
In wma_unified_radio_tx_mem_free() function, results buffer array may be
dereferenced with large index value, that may result OOB memory access.

Fix the same by correcting incrementing pointer to results buffer.

Change-Id: I57a26dba9db32758c7d7fd51b99d3364a8020a9d
CRs-Fixed: 2308644
2018-09-17 21:29:04 -07:00
nshrivas
0b0463506c Release 5.2.0.97E
Release 5.2.0.97E

Change-Id: I8853eaf091110c24bd563aeaa929826207e929cb
CRs-Fixed: 774533
2018-09-17 17:53:38 -07:00
Dustin Brown
4b9dbe62c7 qcacld-3.0: move registration to end of driver load
An upcoming change will add synchronization to the driver load
operation. Effectively, driver load and psoc probe will need to be
exclusive operations. Because driver registration can synchronously
invoke psoc probe, move this registration to the end of the driver load
function. This prepares the way for adding synchronization around the
bulk of the load logic, and releasing it just before registration. This
avoids issues where driver load and psoc probe would otherwise execute
at the same time.

Change-Id: I3a617673ea0d4a56e2c08b2ef2f98f8cbdf42205
CRs-Fixed: 2315976
2018-09-17 17:53:37 -07:00
nshrivas
bbc70fa636 Release 5.2.0.97D
Release 5.2.0.97D

Change-Id: Ibbcda4c7ae1b32caf6d3159a30c5c2bf098c25b7
CRs-Fixed: 774533
2018-09-17 14:24:49 -07:00
Dustin Brown
f0f7056644 qcacld-3.0: Refactor __hdd_module_init/exit
In preparation for additional work in this area, refactor the
__hdd_module_init and __hdd_module_exit areas.

* Rename __hdd_module_init to hdd_driver_load
* Rename __hdd_module_exit to hdd_driver_unload
* Add missing error handing in hdd_driver_load
* Address symmetry issues between hdd_driver_load and hdd_driver_unload
* Remove redundant call to hdd_sysfs_destroy_version_interface
* Update hdd_set_conparam to take a signed integer
* Address various other style issues

Change-Id: I8ea936a493bb262abf7d43a816dbf72530efa424
CRs-Fixed: 2315840
2018-09-17 14:24:48 -07:00
Dustin Brown
d585cb3396 qcacld-3.0: Add error handling to component init
During insmod, the various driver components are initialized. HDD,
however, does not pay attention to any of the return statuses. Add error
handling for component initialization in HDD.

Change-Id: Ia8e3114685086964acacdee481a9fec8b7ef8a00
CRs-Fixed: 2314569
2018-09-17 14:24:45 -07:00
nshrivas
b21f8a1389 Release 5.2.0.97C
Release 5.2.0.97C

Change-Id: I20198bf19c994d7eeb1578d52fdf1e201bde688d
CRs-Fixed: 774533
2018-09-17 12:39:03 -07:00
Harprit Chhabada
6c641bada4 qcacld-3.0: Populate crypto params
Translate the legacy auth type to crypto auth type.
Set the crypto auth type under vdev object.
Use APIs to translate NL param type to crypto
param type from common.

Change-Id: I7073d35fe1724d37467bf970cf6bac7bc40045d1
CRs-Fixed: 2285045
2018-09-17 12:39:02 -07:00
nshrivas
8f533a4138 Release 5.2.0.97B
Release 5.2.0.97B

Change-Id: I12233e31ce6eb0d78b1b9a38a6d182368edb6f93
CRs-Fixed: 774533
2018-09-17 06:09:36 -07:00
Abhishek Singh
5ad797d0b3 qcacld-3.0: Remove legacy APIs to modify vdev state machine
This change Removes legacy APIs to modify vdev state machine and
add use new API to get vdev state.

Change-Id: I48aa3744dafc6d13a43a14e48de821c7dadf3a37
CRs-Fixed: 2314730
2018-09-17 06:09:35 -07:00
nshrivas
6b37ca8762 Release 5.2.0.97A
Release 5.2.0.97A

Change-Id: I3e0594ef490e986dcab39733ab458b9e1cb91052
CRs-Fixed: 774533
2018-09-17 04:26:54 -07:00
Wu Gao
93816217da qcacld-3.0: Apply mlme sta configuraions
Since refined mlme sta configures based on converged cfg component,
apply mlme sta configurations, remove related legacy codes.

Change-Id: Ia5989a29378bf33e3c9550a0ae26338aeb966592
CRs-Fixed: 2312079
2018-09-17 10:44:54 +08:00
nshrivas
edaef7e4d4 Release 5.2.0.97
Release 5.2.0.97

Change-Id: I4c762a542e3a6664d5e77a511c6147e56164065f
CRs-Fixed: 774533
2018-09-15 03:35:05 -07:00
Rajeev Kumar
9f2dd4729c qcacld-3.0: Increase FW response timeout values in debug build
In slub debug enabled build processing is slowed down and hence
increase the FW response timeout values by factor of 2 times.

Change-Id: I979269a9b4f6bc03f97452b3d7f7416fd418f336
CRs-Fixed: 2315934
2018-09-15 03:35:05 -07:00
Rajeev Kumar
1f3e99ad73 qcacld-3.0: Add timer manager and memory debug string
Add timer manager and memory debug string in driver version
global variable such that in offline tool analysis team can
easily find wlan build and version type.

Change-Id: Ie7283d86c0ca38f0b81d407c30da393ff666e51d
CRs-Fixed: 2315915
2018-09-15 03:35:01 -07:00
nshrivas
b163fdfaac Release 5.2.0.96Z
Release 5.2.0.96Z

Change-Id: I6a6ff0283f2262e878c432f7e9aba38ecdcb9e33
CRs-Fixed: 774533
2018-09-14 23:14:49 -07:00
Rakshith Suresh Patkar
d9f4e610c6 qcacld-3.0: Enable wbuff module
wbuff is a module which maintains a pre-allocated pool of
skbs for each registered module and allocates skbs when
requested.

Change-Id: Ia4d13479d8a1342227a2ecbaf29cc7a89bc5e30b
CRs-Fixed: 2313446
2018-09-14 23:14:48 -07:00
nshrivas
072bf5d579 Release 5.2.0.96Y
Release 5.2.0.96Y

Change-Id: I98a0db6ef07a5d881adcdef2fa01568d02c2a79c
CRs-Fixed: 774533
2018-09-14 08:16:33 -07:00
nshrivas
9019fc2fc8 Release 5.2.0.96X
Release 5.2.0.96X

Change-Id: I124d765d3db3f40984ebf3334501c1a29a530f71
CRs-Fixed: 774533
2018-09-14 03:12:25 -07:00
Pragaspathi Thilagaraj
48d273cbf0 qcacld-3.0: Remove legacy INI items of QOS aggregation configs
Remove the legacy INI code from hdd_cfg. Replace the existing
access from hdd_config with new mlme api.

Change-Id: Iddde15330c1ad39a59bd9a3c7ea86af971df61b5
CRs-Fixed: 2313296
2018-09-14 03:12:25 -07:00
Ashish Kumar Dhanotiya
04cc7c2128 qcacld-3.0: Avoid NULL pointer access in apf read memory cb
Add a check to validate hdd adapter to avoid NULL pointer
dereference.

Change-Id: I06d883c213e10b620d8af3f61baaeb483b078bf1
CRs-Fixed: 2240482
2018-09-14 03:12:17 -07:00
nshrivas
1226126f76 Release 5.2.0.96W
Release 5.2.0.96W

Change-Id: I838b1cc60056ed0ad5d59ceb7f83d3d8e72955bc
CRs-Fixed: 774533
2018-09-13 13:20:39 -07:00
Srinivas Girigowda
eff16d956b qcacld-3.0: Fix tab stop checkpatch warnings
Fix tab stop checkpatch warnings.

Change-Id: I4ccbc39b571737413de038fabcd4b8641a39cd62
CRs-Fixed: 2312593
2018-09-13 13:20:38 -07:00
nshrivas
4b8d080e37 Release 5.2.0.96V
Release 5.2.0.96V

Change-Id: I08634b4ccc673b423fcd1f690c10defa11f87d43
CRs-Fixed: 774533
2018-09-13 07:58:36 -07:00
Jinwei Chen
ffaa467dff qcacld-3.0: support HE STS Caps setting by INI
Currently user can not configure HE STS capability through
INI, use gTxBFCsnValue that share same INI with VHT to achieve
it.

Change-Id: Ia83462113cdf06e0af8b9f00c968745363aba9b4
CRs-Fixed: 2306083
2018-09-13 07:58:35 -07:00
nshrivas
83226d61ef Release 5.2.0.96U
Release 5.2.0.96U

Change-Id: Ibf453a1ca06c4b426c22c9ae337b4047f8ec58c1
CRs-Fixed: 774533
2018-09-13 04:52:15 -07:00
Wu Gao
d8f3db0fb5 qcacld-3.0: Refine mlme obss ht40 configurations
Refine mlme obss ht40 configurations based on converged cfg component.
Remove related legacy codes.

Change-Id: If4f061a16e9a2a0bba81d1d24aa1f52bbeadacf5
CRs-Fixed: 2311907
2018-09-13 04:52:15 -07:00
Sravan Kumar Kairam
f3a2f6151d qcacld-3.0: Don't take dp peer ref count during remove peer
From control path while removing peer, dp peer handle is
acquired using mac address with ref count incremented which
is not needed. Ref count should be incremented only when
there is possibility of parallel execution of peer unmap
event. Fix this by getting peer handle with out taking the
ref count.

Change-Id: I76bf4eebc8e7ddadc388a957bea05813a4b24741
CRs-Fixed: 2314110
2018-09-13 04:52:12 -07:00
nshrivas
d4c4f3c5be Release 5.2.0.96T
Release 5.2.0.96T

Change-Id: I5c7b85e4cbcde6f8a56bdb59f472b621bb37bcc3
CRs-Fixed: 774533
2018-09-12 22:27:14 -07:00
Abhishek Singh
5cd19f35d2 qcacld-3.0: Remove SAP FSM dependency from CSA
CSA req changes the SAP FSM state to STOPPING.

Remove this state manipulation by CSA.

Change-Id: I76e78824cdc7acad87e60310d53225596630ea94
CRs-Fixed: 2309229
2018-09-12 22:27:13 -07:00
Lin Bai
ad80a20204 qcacld-3.0: Check channel_count in DCC_GET_STATS command
Invalid channel_count may be sent to driver with
QCA_NL80211_VENDOR_SUBCMD_DCC_GET_STATS vendor command, and may also
pass the sanity check with get_stats_param->request_array_len as
integer overflow, in send_dcc_get_stats_cmd_tlv().
Then it will finally lead to heap overflow when initializing
TLV header for each channel.

Change-Id: I1d81b5fc4de80829433f2a0ab41c964c41f750c3
CRs-Fixed: 2300516
2018-09-12 22:27:10 -07:00
nshrivas
8dae2e74ee Release 5.2.0.96S
Release 5.2.0.96S

Change-Id: Ibac6d6fed1405766b47ffb3347bf54f29914d5b0
CRs-Fixed: 774533
2018-09-12 20:45:13 -07:00
Arif Hussain
aad545423d qcacld-3.0: Disable uAPSD if TWT is allowed
Disable uAPSD if TWT can be allowed for a given session.

Change-Id: Ia2d0b4b1ab5fc7fd703db66fda28e16a1e611c56
CRs-Fixed: 2287743
2018-09-12 20:45:13 -07:00
nshrivas
82ad4afbcb Release 5.2.0.96R
Release 5.2.0.96R

Change-Id: Ieeea5962f64e6a6e46c57c7e5e5d8768dd9dea8b
CRs-Fixed: 774533
2018-09-12 17:56:56 -07:00
Harprit Chhabada
e8155d3e50 qcacld-3.0: Enable EXTSCAN based on converged extscan component
Enable EXTSCAN based on converged cfg component and remove
legacy codes.

Change-Id: Ia4af89c6a898a936c89c6f3f155609a9c3d98541
CRs-Fixed: 2302197
2018-09-12 17:56:55 -07:00
Liangwei Dong
ac3ddde459 qcacld-3.0: Set drop_bcn_on_chan_mismatch to Scan
Set ini drop_bcn_on_chan_mismatch configuration to
Scan component.

Change-Id: I60acddd69fc99791651def587b90243898ec60e9
CRs-Fixed: 2308731
2018-09-12 17:56:52 -07:00
nshrivas
f3697bc9b4 Release 5.2.0.96Q
Release 5.2.0.96Q

Change-Id: Iaaa5c328f5ae7def4506fb4f072878fa8afb7fb3
CRs-Fixed: 774533
2018-09-12 15:55:56 -07:00
Yeshwanth Sriram Guntuka
35bc5ccf91 qcacld-3.0: Enable few OCE STA ini by default
Enable oce_enable_probe_req_rate, enable_esp_for_roam
and oce_enable_probe_req_deferral ini by default.

Change-Id: I84aaceb468bac54c97c30f681981296a0666063c
CRs-Fixed: 2312013
2018-09-12 15:55:55 -07:00
Pramod Simha
7ee7b53e2c qcacld-3.0: Handle nbufs with ext list in RX thread
Check for nbufs which might already have an existing ext list
before appending to it.

Change-Id: Iac24eaf8430d7f9280386f1449c567fce8aa52fb
CRs-Fixed: 2304742
2018-09-12 15:55:48 -07:00
nshrivas
46151e3859 Release 5.2.0.96P
Release 5.2.0.96P

Change-Id: Id74e97c1b735e77ff6606f22ee7db169517faafc
CRs-Fixed: 774533
2018-09-12 13:35:47 -07:00
Amar Singhal
7ef5909b64 qcacld-3.0: Make sure NULL vdev is not de-referenced
Do not access vdev_id from vdev structure if vdev ptr is NULL.

Change-Id: I1aafa5ce7398994d55805742e831ca8ee1ae6a21
CRs-Fixed: 2313397
2018-09-12 13:35:47 -07:00
Rajeev Kumar Sirasanagandla
17fa308715 qcacld-3.0: Add support to store vdev object in WMA interface
Add support to store vdev object in WMA interface (wma_txrx_node)
and acquire and release its reference count during wma_vdev_attach()
and wma_vdev_detach() respectively.

Change-Id: I5449d4051b08dc328a5d97446a4de3d7b51155eb
CRs-Fixed: 2310990
2018-09-12 13:35:44 -07:00
nshrivas
a420dd6b24 Release 5.2.0.96O
Release 5.2.0.96O

Change-Id: I83c3b1411fc921610e9a6d75defdfb242dbbbe27
CRs-Fixed: 774533
2018-09-12 11:58:27 -07:00
Srinivas Girigowda
09625b0222 qcacld-3.0: Fix embedded function name checkpatch warnings
Logging macros already print function name by default,
there is no need to print the function name again as part of the log.

Hence, remove the function name or
wherever required use '"%s...", __func__'

Change-Id: Ib6dc6cc03ef148146b1c626271d5ac3b7345c4bb
CRs-Fixed: 2312593
2018-09-12 11:58:26 -07:00