Commit Graph

12382 Commits

Author SHA1 Message Date
wadesong
5cea9124a5 qcacld-3.0: Add missing CFG INI comment text - wave 1
Some CFG INI options' comment text are missing.

Add them so automation script can parse and retrieve the
correct comment text.

Change-Id: I4f79b075244c18490c52bc9a178d36c47db43878
CRs-Fixed: 2348307
2018-11-14 18:51:40 -08:00
nshrivas
7cb027d4ac Release 5.2.0.106I
Release 5.2.0.106I

Change-Id: Idb8a454febc7412a272eb417873d19a566308cd3
CRs-Fixed: 774533
2018-11-14 13:47:15 -08:00
Kai Liu
eabb1df217 qcacld-3.0: Release bus clock and bandwidth when module stop
Wlan should release bus clock and bandwidth when module stop,
otherwise when system enter into X0 shutdown, voted clock is still on.

Change-Id: I735cbed1289b17ab2fbc81e35043f1f663a60473
CRs-Fixed: 2341653
2018-11-14 13:47:15 -08:00
Karthik Kantamneni
9180c75d61 qcacld-3.0: Add RTT related CFG item
ADD RTT MAC randomization CFG item based on converged cfg component

Change-Id: I0e1203fc3b3cdab8d9f331c90092b460a02f0fbf
CRs-Fixed: 2349709
2018-11-14 13:47:11 -08:00
nshrivas
3c4fb6e9be Release 5.2.0.106H
Release 5.2.0.106H

Change-Id: Ic05c8bb8974514d5d2369d3cd87219c02553eaf9
CRs-Fixed: 774533
2018-11-14 10:40:52 -08:00
Alok Kumar
2fad644d65 qcacld-3.0: Add vendor event to update TCP paramenter
Currently, TCP params are configured through cnss-daemon.

Add vendor event to configure TCP params through Wi-Fi HAL.

Change-Id: I5ca3e33a8b15b5d499f771098ce8a3c58e4bb850
CRs-Fixed: 2349253
2018-11-14 10:40:52 -08:00
nshrivas
e265432489 Release 5.2.0.106G
Release 5.2.0.106G

Change-Id: Ib3185d7b6bea94f7eca86797144db9507701f2c5
CRs-Fixed: 774533
2018-11-13 21:11:50 -08:00
Dustin Brown
81cf264aaa qcacld-3.0: Print stack trace on DSC timeout
DSC panics in debug builds in the event of various timeout events. In
addition to these panics, print the stack trace of the invoking thread
to assist in finding the exact reason for deadlocks.

Change-Id: I69666cfc52fb7ca3638c32212bae3e3c3ddd8366
CRs-Fixed: 2349387
2018-11-13 21:11:49 -08:00
yuanl
45a1526a61 qcacld-3.0: Fix compiling error for 32 bit platform
Fix compiling error on 32 bit platform due to integer overflow

Change-Id: Ie9517e141b504cfd28138a0e353a0fbbad46e806
CRs-Fixed: 2347903
2018-11-13 21:11:45 -08:00
nshrivas
d4d2582ae6 Release 5.2.0.106F
Release 5.2.0.106F

Change-Id: Ic3c186fcdc95db18413559b9d26c96d33a0ee215
CRs-Fixed: 774533
2018-11-13 19:41:42 -08:00
Dustin Brown
13fa987a29 qcacld-3.0: Ignore uninitialized driver mode change
The driver mode can be dynamically controlled via the module parameter
"con_mode," which triggers the callback con_mode_handler(). However, if
the wlan module is loaded with a non-default con_mode, this callback
handler is invoked before module init (e.g. 'insmod wlan.ko
con_mode=5'). If con_mode_handler is invoked before module init, simply
return success, as no processing is needed.

Change-Id: Iaa426188d13507cc6c7f09a03effd881854bbf3d
CRs-Fixed: 2349370
2018-11-13 19:41:41 -08:00
nshrivas
61ee8a5da2 Release 5.2.0.106E
Release 5.2.0.106E

Change-Id: I538c3fcfe9bf7e7eb7b8de97c8ec4839181b85f5
CRs-Fixed: 774533
2018-11-13 17:21:18 -08:00
Jeff Johnson
030cd90bd9 qcacld-3.0: Rename hdd_is_valid_mac_address() pMacAddr param
hdd_is_valid_mac_address() currently takes a parameter named pMacAddr.
Per the Linux coding style "mixed-case names are frowned upon" and
"so-called Hungarian notation [...] is brain damaged" so rename the
parameter to mac_addr to conform to the naming convention. As part of
the cleanup relocate the documentation so that the interface is
documented, not the implementation.

Change-Id: I4abff563bb396a4ffce1356527307ce3bfed8a16
CRs-Fixed: 2347990
2018-11-13 17:21:17 -08:00
nshrivas
5c842e949b Release 5.2.0.106D
Release 5.2.0.106D

Change-Id: I70435228cec986b479c45d6c2399b15ff5848f1e
CRs-Fixed: 774533
2018-11-13 15:43:03 -08:00
Abhishek Singh
1d8bd6255d qcacld-3.0: Fix 80Mhz BW allowed for PEER in 2.4GHz SAP
In case PEER send BW as 80Mhz in OPmode IE in 2.4Ghz, driver doesn't check
the SAP session BW and allow this BW in PEER assoc command to firmware.

Fix this by limiting the PEER BW to less than or equal to SAP session
BW.

Change-Id: Icf9e53fec32d30e5620e51b8664b0e92ba2b26d6
CRs-Fixed: 2346537
2018-11-13 15:43:02 -08:00
Jeff Johnson
53f3acab74 qcacld-3.0: Remove tHalHandle definition
All references to the legacy tHalHandle have been removed, so remove
the definition itself.

Change-Id: I41e93fc7dd1bc7cb5d06300c607854b7c691f3c1
CRs-Fixed: 2348558
2018-11-13 14:24:54 -08:00
Jeff Johnson
60bfb3efd0 qcacld-3.0: Replace tHalHandle in sap_fsm
I9d0d7d109621237f29d66f7b06c5b63c38f63fb2 (qcacld-3.0: Introduce
mac_handle_t) introduced a "better" name for tHalHandle, so replace
tHalHandle with mac_handle_t in sap_fsm.

Change-Id: Ia61860e788b51c7becc6fc708a41f78e4658565d
CRs-Fixed: 2348557
2018-11-13 14:24:54 -08:00
Jeff Johnson
adf1313618 qcacld-3.0: Replace tHalHandle in sap_ch_select
I9d0d7d109621237f29d66f7b06c5b63c38f63fb2 (qcacld-3.0: Introduce
mac_handle_t) introduced a "better" name for tHalHandle, so replace
tHalHandle with mac_handle_t in sap_ch_select.

Change-Id: I204e955c7cda75bbed27a8653fbca4cca4f4b055
CRs-Fixed: 2348556
2018-11-13 14:24:53 -08:00
Jeff Johnson
6340ee0e43 qcacld-3.0: Replace tHalHandle in sap_api_link_cntl
I9d0d7d109621237f29d66f7b06c5b63c38f63fb2 (qcacld-3.0: Introduce
mac_handle_t) introduced a "better" name for tHalHandle, so replace
tHalHandle with mac_handle_t in sap_api_link_cntl.

Change-Id: I2d54133a841112486ecfd7a7971a1fcefa471cfc
CRs-Fixed: 2348553
2018-11-13 14:24:53 -08:00
Jeff Johnson
facce873dd qcacld-3.0: Replace tHalHandle in sap_module
I9d0d7d109621237f29d66f7b06c5b63c38f63fb2 (qcacld-3.0: Introduce
mac_handle_t) introduced a "better" name for tHalHandle, so replace
tHalHandle with mac_handle_t in sap_module.

Change-Id: Ib3dbaf58c4dd4408a09a099b233f94331f46075f
CRs-Fixed: 2348555
2018-11-13 14:24:53 -08:00
Jeff Johnson
1f2dabcfb1 qcacld-3.0: Replace tHalHandle in sme_api
I9d0d7d109621237f29d66f7b06c5b63c38f63fb2 (qcacld-3.0: Introduce
mac_handle_t) introduced a "better" name for tHalHandle, so replace
tHalHandle with mac_handle_t in sme_api.

Change-Id: I46690f8913a8ca34f7494e7baf38188c11073f7b
CRs-Fixed: 2348552
2018-11-13 14:24:52 -08:00
Jeff Johnson
8d8172119c qcacld-3.0: Replace tHalHandle in sme_rrm
I9d0d7d109621237f29d66f7b06c5b63c38f63fb2 (qcacld-3.0: Introduce
mac_handle_t) introduced a "better" name for tHalHandle, so replace
tHalHandle with mac_handle_t in sme_rrm.

Change-Id: I289a11a5e0e4a788f512bcb2a6095e2070be73f9
CRs-Fixed: 2348551
2018-11-13 14:24:52 -08:00
Jeff Johnson
adbe0c50eb qcacld-3.0: Replace tHalHandle in sme_qos
I9d0d7d109621237f29d66f7b06c5b63c38f63fb2 (qcacld-3.0: Introduce
mac_handle_t) introduced a "better" name for tHalHandle, so replace
tHalHandle with mac_handle_t in sme_qos.

Change-Id: I47f4e41e7d8cceafd2232392f00fc0dad64fa842
CRs-Fixed: 2348550
2018-11-13 14:24:51 -08:00
Jeff Johnson
b98ee39c0a qcacld-3.0: Replace tHalHandle in sme_ft_api
I9d0d7d109621237f29d66f7b06c5b63c38f63fb2 (qcacld-3.0: Introduce
mac_handle_t) introduced a "better" name for tHalHandle, so replace
tHalHandle with mac_handle_t in sme_ft_api.

Change-Id: I0d185e15611597d396c00f7e6f2c3d27472426c9
CRs-Fixed: 2348549
2018-11-13 14:24:51 -08:00
Jeff Johnson
0aaecf6b60 qcacld-3.0: Replace tHalHandle in sme_power_save
I9d0d7d109621237f29d66f7b06c5b63c38f63fb2 (qcacld-3.0: Introduce
mac_handle_t) introduced a "better" name for tHalHandle, so replace
tHalHandle with mac_handle_t in sme_power_save.

Change-Id: I7030567c6f73abba10a3e0f29def78249fe91b5a
CRs-Fixed: 2348506
2018-11-13 14:24:51 -08:00
Jeff Johnson
59429b0b5c qcacld-3.0: Replace tHalHandle references in LIM
The LIM code should deal exclusively with the "real" MAC context, so
replace references to the opaque handle tHalHandle with references to
the actual underlying struct.

Change-Id: I2801f6531d810710d6ec0fdbd517d30f85407c25
CRs-Fixed: 2347928
2018-11-13 14:24:50 -08:00
nshrivas
023a0f4463 Release 5.2.0.106C
Release 5.2.0.106C

Change-Id: I444090915d106d9291e7e645e36b34b1d196412e
CRs-Fixed: 774533
2018-11-13 13:54:55 -08:00
Jeff Johnson
7c4335001d qcacld-3.0: Refactor WE_SET_AMPDU ioctl processing
One of the HDD functions with the highest cyclomatic complexity is
__iw_setint_getnone(). In order to reduce the complexity there is a
plan to replace the existing switch with a vtable. As part of that
goal refactor the WE_SET_AMPDU ioctl handling into a separate
function.

Change-Id: I76c11e2a099c2f9734a0e9b0208b339406b4a22c
CRs-Fixed: 2348656
2018-11-13 13:54:55 -08:00
Jeff Johnson
22e57f1269 qcacld-3.0: Refactor "set dbg" ioctl processing
One of the HDD functions with the highest cyclomatic complexity is
__iw_setint_getnone(). In order to reduce the complexity there is a
plan to replace the existing switch with a vtable. As part of that
goal refactor the "set dbg" ioctl handling into separate functions.
Note that the existing logic that updates the fw_log_settings in the
HDD context is obsolete, so remove that logic as part of the
refactoring.

Change-Id: Ibf632d1ef37905ca8159ea997dc07e4f2f7d12cc
CRs-Fixed: 2348502
2018-11-13 13:54:50 -08:00
nshrivas
84b5f6b1f7 Release 5.2.0.106B
Release 5.2.0.106B

Change-Id: I334ce5ae48680ca6568e1e18cdd224fbcb78e9d0
CRs-Fixed: 774533
2018-11-13 12:04:39 -08:00
Jeff Johnson
2e38127bd8 qcacld-3.0: Refactor "set vdev" ioctl processing
One of the HDD functions with the highest cyclomatic complexity is
__iw_setint_getnone(). In order to reduce the complexity there is a
plan to replace the existing switch with a vtable. As part of that
goal refactor the "set vdev" ioctl handling into separate functions.

Change-Id: I73cc9fd5400fadb5812687d13741b7c430a0045c
CRs-Fixed: 2347909
2018-11-13 12:04:39 -08:00
Dundi Raviteja
5296f49644 qcacld-3.0: Possible OOB access in wlan_hdd_cfg80211_start_bss()
In wlan_hdd_cfg80211_start_bss(), beacon head buffer is typecast
to ieee80211_mgmt structure without checking for buffer length
against beacon header length which may cause OOB access
while accessing iee80211_mgmt structure.

To address this, add check for beacon head length against beacon
header length before typecasting to iee80211_mgmt structure.

Also while accessing supported rates, length given to function
wlan_hdd_cfg80211_get_ie_ptr() is the total length of management
frame that also includes header length which may cause OOB access
while getting supported rates.

To address this, send only beacon data length and exclude header
length to function wlan_hdd_cfg80211_get_ie_ptr().

Change-Id: I442b236e48c3be8cbd8019c5c339593f9aa74e3e
CRs-Fixed: 2335957
2018-11-13 12:04:34 -08:00
nshrivas
73d76b975c Release 5.2.0.106A
Release 5.2.0.106A

Change-Id: I631919e131192d12188463f3f778211b9ecfd4d5
CRs-Fixed: 774533
2018-11-13 09:55:43 -08:00
Pragaspathi Thilagaraj
46e10b36ef qcacld-3.0: Fix error handling path of wma_remove_peer
If the wma_remove_peer fails, the caller can still proceed to
start vdev hold request timer for WMA_DELETE_STA_REQ. The Host
driver doesnot stop the timer and this results in page fault
when the timer is expired.

Check the return status of wma_remove_peer and send failure
to the caller of  wma_remove_peer.

Change-Id: I63d0dfefb183cf1a88b1f7abb2686b2dfdc6bd79
CRs-Fixed: 2348248
2018-11-13 09:55:43 -08:00
nshrivas
266e5e0b2e Release 5.2.0.106
Release 5.2.0.106

Change-Id: Iff34a4b4e6502d7ea61cd6ac0f40157a663d79a3
CRs-Fixed: 774533
2018-11-13 08:28:09 -08:00
wadesong
cc2e216a57 qcacld-3.0: Fix some discrepancies in CFG INI comments
Discrepancies between some of the CFG INI names and their comment
text were discovered during reviewing.

Fix them by making all comment text aligning with the real CFG
INI names.

Change-Id: I1bf5417ea79727da451d0d6ca1a5cd100523e49a
CRs-Fixed: 2348140
2018-11-13 08:28:08 -08:00
Dustin Brown
f967e48d1d qcacld-3.0: Integrate DSC (psoc ssr)
The Driver Synchronization Core (DSC) is a set of synchronization
primitives for use by the driver's orchestration layer. It provides APIs
for ensuring safe state transitions (including bring up and tear down)
of major driver objects: a single driver, associated psocs, and their
associated vdevs.

As part of integrating the DSC APIs into HDD, protect psoc sub-system
recovery (SSR).

Change-Id: I0374cdb22259763b0f61a4bea89fdb4ffc2c215c
CRs-Fixed: 2348567
2018-11-13 08:28:04 -08:00
Dustin Brown
3ecc87863e qcacld-3.0: Integrate DSC (psoc idle shutdown/restart)
The Driver Synchronization Core (DSC) is a set of synchronization
primitives for use by the driver's orchestration layer. It provides APIs
for ensuring safe state transitions (including bring up and tear down)
of major driver objects: a single driver, associated psocs, and their
associated vdevs.

As part of integrating the DSC APIs into HDD, protect psoc idle shutdown
and restart.

Change-Id: I416a8f4cfb67fabce377ff96715e3a372a3aed7d
CRs-Fixed: 2347019
2018-11-13 08:28:00 -08:00
nshrivas
73cf0763b3 Release 5.2.0.105Z
Release 5.2.0.105Z

Change-Id: I7ba067be2e1f588f89ecda97a05557a9c0168215
CRs-Fixed: 774533
2018-11-13 06:56:05 -08:00
Pragaspathi Thilagaraj
5772627cad qcacld-3.0: Send auth failure only if get default wep key fails
The function lim_process_auth_frame_type2 gets the wep default
key from mlme_get_wep_key(). Auth failure should be sent only
if mlme_get_wep_key fails. But currently, for success case also
the auth failure is sent and wep shared key auth fails.

Check the return status of mlme_get_wep_key and don't send auth
failure during success case.

Change-Id: I70c2bba7cd01385cec0c5d7df4437e1e4ec7548e
CRs-Fixed: 2348208
2018-11-13 06:56:05 -08:00
Nachiket Kukade
7dac923e1e qcacld-3.0: Return appropriate status code in sme_nan_request
After the NAN request message is posted to the SME queue in
sme_nan_request, the status of the scheduler API is ignored.
Success will be returned in the case of a failure during
posting the message. This may generate unexpected outcomes
during NAN testcases.

Return appropriate status code in sme_nan_request to the caller.

Change-Id: I31f518e7b90315c0f7c30ec2f5aeebec19d64813
CRs-Fixed: 2335734
2018-11-13 06:56:01 -08:00
nshrivas
150cb0ca56 Release 5.2.0.105Y
Release 5.2.0.105Y

Change-Id: I9f5ce36337fd00f038f59b0794ce7b1a449602ae
CRs-Fixed: 774533
2018-11-13 04:20:49 -08:00
Jingxiang Ge
7cdb955b0f qcacld-3.0: Fix tx queue is paused forever
Put flow control setting in the flow_pool_lock, which can avoid
race condition between ol_tx_desc_free and ol_tx_desc_alloc.
This is a refine based on Ib60139fd94a4fb88c92a7f8aaf886ae9d3ca4c75.

Change-Id: I8d89323b5631039d7ff5a141775cc5825389c18b
CRs-Fixed: 2297190
2018-11-13 04:20:48 -08:00
Dustin Brown
623e7e358d qcacld-3.0: Integrate DSC (psoc probe/remove)
The Driver Synchronization Core (DSC) is a set of synchronization
primitives for use by the driver's orchestration layer. It provides APIs
for ensuring safe state transitions (including bring up and tear down)
of major driver objects: a single driver, associated psocs, and their
associated vdevs.

As part of integrating the DSC APIs into HDD, protect psoc probe and
remove.

Change-Id: I5db13fb321695f535b5765c637ee638396e5ca6f
CRs-Fixed: 2347016
2018-11-13 04:20:44 -08:00
nshrivas
e665cc8412 Release 5.2.0.105X
Release 5.2.0.105X

Change-Id: I95e55933e60b7962b4b4f7e807d7eb1a6d92b111
CRs-Fixed: 774533
2018-11-13 02:43:45 -08:00
Abhishek Singh
11ff22150c qcacld-3.0: Cleanup the unused quiet timers and TX control API
Quiet timers and TX control API are no longer used and are dummy API
which is dropped in WMA layer. Thus remove this unused code.

Change-Id: I77617df14093806f19c0d587e953f63ae86f8ffe
CRs-Fixed: 2348271
2018-11-13 02:43:45 -08:00
Jeff Johnson
610151f500 qcacld-3.0: Use mac_handle_t in sap_validate_chan()
Change "qcacld-3.0: Introduce mac_handle_t" introduced a modern
name for what was previously called the tHalHandle. Transition
sap_validate_chan() to use the new naming.

Change-Id: I5495d00a0fa2d1bef8d491788559fc9493797dd6
CRs-Fixed: 2347657
2018-11-13 02:43:41 -08:00
Jeff Johnson
74df585cec qcacld-3.0: Use mac_handle_t in csr_packetdump_timer_stop()
Change "qcacld-3.0: Introduce mac_handle_t" introduced a modern
name for what was previously called the tHalHandle. Transition
csr_packetdump_timer_stop() to use the new naming.

Change-Id: I420949b9d4a88c9aaec7ee768914583f17fefadb
CRs-Fixed: 2347656
2018-11-13 02:43:37 -08:00
Dustin Brown
c35ea2d785 qcacld-3.0: Modify DSC trans assert to check ancestors
Currently, APIs in the dsc_*_trans_assert() family assert a transition
is in flight on the given node itself. Instead, replace this API family
with another, dsc_*_assert_trans_protected(), which assert a
transition is in flight on the given node or any of its ancestors.

Change-Id: I5fb07000f955a49a4e5529806f4e49d9dbc8acb7
CRs-Fixed: 2347789
2018-11-13 02:43:32 -08:00
nshrivas
8c282e4087 Release 5.2.0.105W
Release 5.2.0.105W

Change-Id: If7193691b4cfbcd222fa7e7ff7ee075ca2af699f
CRs-Fixed: 774533
2018-11-13 01:11:31 -08:00