Commit Graph

7536 Commits

Author SHA1 Message Date
snandini
21fff3db42 Release 5.2.0.51M
Release 5.2.0.51M

Change-Id: I85474d4f8175400b830429314030a802bb6cbfd9
CRs-Fixed: 774533
2017-10-26 15:39:32 -07:00
Dustin Brown
f79711973f qcacld-3.0: Return failure from cds_open for all failure paths
cds_open() currently returns success for a large subset of its failure
paths. Ensure a failure reason is returned for every failure path in
cds_open().

Change-Id: I857ffce4eac30ce3fc332c5392c1e859217c414f
CRs-Fixed: 2132715
2017-10-26 15:39:31 -07:00
Sandeep Puligilla
5ac6bd2920 qcacld-3.0: Allow recovery during firmware down
Host is triggering crash during vdev response
timeout handler when firmware is down.

If firmware is down, Send failure response to
upper layer from WMA vdev timeout response handler
so that recovery can complete.

Change-Id: Ib5cf2c539fded700b07a694fa6771c9ba8550173
CRs-Fixed: 2128282
2017-10-26 15:39:29 -07:00
snandini
e6119931d6 Release 5.2.0.51L
Release 5.2.0.51L

Change-Id: I6fc16706d01aff171f3e0260fff6df03c4406176
CRs-Fixed: 774533
2017-10-26 13:39:22 -07:00
Dustin Brown
a5cf8e0207 qcacld-3.0: Cleanup ACS channels in stop adapter
Currently, the auto channel selection (ACS) channel list is cleaned up
when ACS is disabled from userspace. Make sure the ACS channel list is
cleaned up as part of adapter stop to cover cases where userspace does
not trigger the cleanup of the ACS channel list.

Change-Id: I92b63c7ea53fba55a39e6b414d0f3ed28d4019a2
CRs-Fixed: 2129647
2017-10-26 13:39:21 -07:00
snandini
39cbfc1bfc Release 5.2.0.51K
Release 5.2.0.51K

Change-Id: I0a47c3636fa2a9ddabb2afb7ce46e044d6f27765
CRs-Fixed: 774533
2017-10-26 11:43:30 -07:00
Bala Venkatesh
f4928a4688 qcacld-3.0: Adding the missed p2p_listen_defer_interval
Included CFG_P2P_LISTEN_DEFER_INTERVAL_NAME in g_registry_table.

Change-Id: Iec0e3581ea6de3965b7767f4895f6f2ef231e25a
CRs-Fixed: 2130649
2017-10-26 11:43:30 -07:00
snandini
d886f8da6b Release 5.2.0.51J
Release 5.2.0.51J

Change-Id: Ief8bf6620a7ab0cd46b63410eb1fa2e6c807a9cf
CRs-Fixed: 774533
2017-10-26 09:46:32 -07:00
Poddar, Siddarth
47c2340287 qcacld-3.0: Enable/Disable LRO for low throughput based on rx packet count
It is observed that LRO is affecting the throughput in low TPUT noisy
scenario as by its nature LRO suppresses the TCP acks.

Change-Id: I9f74418b53492ae12934fc09277aafa0c002ae0b
CRs-Fixed: 2056706
2017-10-26 09:46:32 -07:00
snandini
c3d2863036 Release 5.2.0.51I
Release 5.2.0.51I

Change-Id: I7b928b157a91484b10beec78680e43d64bdbd135
CRs-Fixed: 774533
2017-10-26 07:27:52 -07:00
Sarada Prasanna Garnayak
f04667af34 qcacld-3.0: add device pointer in pld snoc API
Add device pointer in all pld snoc API to support
for numerous WLAN module.

Change-Id: Id6c3d559ebc67d40536a60ab78d468fb5f0fbf03
2017-10-26 07:27:52 -07:00
snandini
b941e3371a Release 5.2.0.51H
Release 5.2.0.51H

Change-Id: I9a1424ec094be20fffdd25086e83e6b0fff85157
CRs-Fixed: 774533
2017-10-26 05:39:57 -07:00
Yeshwanth Sriram Guntuka
4ce0a1b2b5 qcacld-3.0: Check sme session opened flag for opened interfaces
Sap context memory is allocated on adding softap interface.
If wlan interface is disabled after softap interface is added,
iface_idle_work is scheduled since DEVICE_IFACE_OPENED will
not be set. Memory leak will happen as sap context is not
freed in this case.

Fix is to check for DEVICE_IFACE_OPENED or SME_SESSION_OPENED
flag for opened interfaces.

Change-Id: I3585078135dc042222a92cf5c896ad26a086e506
CRs-Fixed: 2126666
2017-10-26 05:39:57 -07:00
snandini
87ee5c25d5 Release 5.2.0.51G
Release 5.2.0.51G

Change-Id: Ib0d313c30a94da9241fa83d38ac0336663b1ebd3
CRs-Fixed: 774533
2017-10-26 04:08:03 -07:00
Ganesh Kondabattini
930304cc26 qcacld-3.0: ini parameter to allow STA+SAP SCC on DFS channel
Add an ini parameter to allow STA+SAP SCC on DFS channel with
master mode support disabled.

CRs-Fixed: 2127458
Change-Id: I52c5687e10bf94f0d01e60d269357a9d3d1d5fe3
2017-10-26 04:08:03 -07:00
snandini
bcff4a4ec3 Release 5.2.0.51F
Release 5.2.0.51F

Change-Id: I4457684bb25e61c3f2692f1ce233fdba950936d9
CRs-Fixed: 774533
2017-10-25 23:40:51 -07:00
Vignesh Viswanathan
a2ef8b1904 qcacld-3.0: Fix OOB read in wma_mgmt_tx_bundle_completion_handler
In function wma_mgmt_tx_bundle_completion_handler
cmpl_params->num_reports, param_buf->desc_ids and param_buf->status
are received from the FW. num_reports is used as array index to access
desc_ids and status. If the value of num_reports exceeds the max
allowed array index, out of bounds access would happen.

Add sanity check to make sure num_reports does not exceed the max
allowed limit. Also make sure num_reports is not greater than
num_desc_ids and num_status

Change-Id: I300411febf6449680e873e5947fa767298afe962
CRs-Fixed: 2119439
2017-10-25 23:40:50 -07:00
snandini
6c4d02ee48 Release 5.2.0.51E
Release 5.2.0.51E

Change-Id: I7bb1b120a85338b73aa0f631bc81a6e913e790cf
CRs-Fixed: 774533
2017-10-25 21:26:44 -07:00
Jingxiang Ge
04c945017f qcacld-3.0: Add buffer length check to avoid over-read
In wma_mgmt_rx_process, mgmt_rx_params->buf_len is read
from message, if mgmt_rx_params->buf_len is larger than
data_len, it is possible to over-read from bufp with
corrupted message.

Change-Id: I7f06d81fd18960d0d6c57cdb4594680178022087
CRs-Fixed: 2126972
2017-10-25 21:26:44 -07:00
snandini
d4d7c8d1f6 Release 5.2.0.51D
Release 5.2.0.51D

Change-Id: I9b28aeb75a8013052011ed4cac3edfb415bbd926
CRs-Fixed: 774533
2017-10-25 19:41:30 -07:00
Jeff Johnson
7c0d3b27a5 qcacld-3.0: Rename hdd_station_ctx WextState field
Per the Linux coding style "mixed-case names are frowned upon" so
rename field WextState in struct hdd_station_ctx.

Change-Id: I57efdc0120b4e84b1c9f385d77ed148080d6db82
CRs-Fixed: 2132662
2017-10-25 19:41:30 -07:00
Jeff Johnson
8380f231b3 qcacld-3.0: Rename hdd_station_ctx staDebugState field
Per the Linux coding style "mixed-case names are frowned upon" so
rename field staDebugState in struct hdd_station_ctx.

Change-Id: Iab6712fac703b0a610226805a83349406e4109c9
CRs-Fixed: 2132661
2017-10-25 19:41:28 -07:00
Jeff Johnson
690fe95c47 qcacld-3.0: Rename hdd_station_ctx hdd_ReassocScenario field
Per the Linux coding style "mixed-case names are frowned upon" so
rename field hdd_ReassocScenario in struct hdd_station_ctx.

Change-Id: Ief794badd19ef9291a75c375ab919f1ffadb488a
CRs-Fixed: 2132660
2017-10-25 19:41:26 -07:00
Dustin Brown
018477577d qcacld-3.0: Reject interface up during SSR
A recent change added a sleeping wait to the interface up handing code
in hdd_open, which can lead to transient deadlocks and cascading bad
behavior when Sub-System Restart (SSR) is in progress. Instead, simply
return -EBUSY when SSR is in progress, allowing the user to try again.

Change-Id: Id029090f9aafefa76d9778f8e5de5698b852495b
CRs-Fixed: 2132580
2017-10-25 19:41:23 -07:00
Orhan K AKYILDIZ
57a78ea90d qcacld-3.0: Trigger recovery in rx-hash no-match
In case host receives a paddr in a HTT_RX_IN_ORDER_IND_PADDR msg
from FW that is not found in the rx_hash, instead of forcing an
APPS crash, iniate a host-triggered recovery. If the feature
is not enabled, this would be equivalent to the old code.

Change-Id: Iaab5329c13d626c4b94c690f5537899eecf2637b
CRs-Fixed: 2084522
2017-10-25 19:41:21 -07:00
snandini
7dbfa474db Release 5.2.0.51C
Release 5.2.0.51C

Change-Id: I9cf9db204a4e61b506f826d2186bf6710773089b
CRs-Fixed: 774533
2017-10-25 17:48:23 -07:00
Yuanyuan Liu
67abd8054f Revert "qcacld-3.0: Do not access target register in driver unloading"
This reverts Change-Id: I2a4980b6cd4b689da07c34f2acdfaafbbb0715bb.
This change set driver unload state before unload work is scheduled,
which causes async between platform driver and wlan host driver.

Change-Id: Ieaf1cf0a257f69bf8958085c48d9020f1b5ec610
CRs-Fixed: 2124953
2017-10-25 17:48:22 -07:00
Sravan Kumar Kairam
905b4c512f qcacld-3.0: Management MGMT TXRX component over HTT
Currently there is no support for management MGMT TXRX
component over HTT endpoint and supports only over WMI.
As a result for platforms which does not support MGMT
over WMI will break other components which uses MGMT TXRX
component to send mgmt packets. In this change support MGMT
TXRX component over HTT.

Change-Id: I414269abb5a5c616cc890dab450a7782e6829d0e
CRs-Fixed: 2128213
2017-10-25 17:48:20 -07:00
Varun Reddy Yeturu
e5a35d1ecc qcacld-3.0: Differentiate roaming disabled by supplicant and on iface
Currently, do_not_roam flag is used for denoting both supplicant
disabled roaming and the roaming disabled on an interface during
the interface bring up. Differentiate these two flags with proper
nomenclature to make it clear and distinguishable. Name the new
flags to be supplicant_disabled_roaming and roaming_allowed_on_iface.

Currently in a sta+sta scenario roaming is supported only on wlan0.
Based on the flag roaming_allowed_on_iface, send/discard the
roaming commands to be sent to the firmware.

Change-Id: I1bd19e938b00c26c06ff06c73754560d4502ef2c
CRs-Fixed: 2130204
2017-10-25 17:48:18 -07:00
Varun Reddy Yeturu
82e39cd004 qcacld-3.0: Fix the max length of keyname nai
Fix the maximum permissible length for Keyname NAI and also
perform a check for the same.

Change-Id: Ib6eaa11a470202fcde7495f788ab6d3c0272cefe
CRs-Fixed: 2126720
2017-10-25 17:48:16 -07:00
Varun Reddy Yeturu
5faa177d01 qcacld-3.0: Handle non-FILS connection properly
Do not attempt to do any FILS processing for a
non-FILS connection request.

Change-Id: If05fb2bcac0f7d86cefef08bab4f5f216af2f264
CRs-Fixed: 2126425
2017-10-25 17:48:14 -07:00
Orhan K AKYILDIZ
3332be36b5 qcacld-3.0: Add sanity check on adapter before clean-up
Add sanity check on the adapter structure, using the magic field
before accessing any fields on it.

Change-Id: If6965415bc0e6400ffb5924461715dff4c9efa36
CRs-Fixed: 2054084
2017-10-25 17:48:13 -07:00
snandini
8523492b1c Release 5.2.0.51B
Release 5.2.0.51B

Change-Id: Ib3d2420a0487ad178b37b5fbb1bb38e22ce80206
CRs-Fixed: 774533
2017-10-25 16:15:43 -07:00
Varun Reddy Yeturu
625a641a29 qcacld-3.0: Add sanity checks for FILS connection
Add the sanity checks to the authentication types for a
FILS connection to ensure if it is a FILS type connection
and if it is, then add a check for the currently supported
FILS authentication types. This should also take care of
getting rid of dangling pointers for fils_con_info which
are not set to NULL after a memory release operation.

Change-Id: I688086fdff1536bf7e314832e34012878e3a3304
CRs-Fixed: 2123393
2017-10-25 16:15:43 -07:00
snandini
bedf1d798c Release 5.2.0.51A
Release 5.2.0.51A

Change-Id: Ia1b4fed9d872970acf56e0c44a38bdd59f8e52ba
CRs-Fixed: 774533
2017-10-25 13:41:21 -07:00
Sameer Thalappil
2767f44d87 qcacld-3.0: Reset suspended flag during recovery
When WLAN driver goes thru recovery, it's no longer suspended. All
threads are woken up, and FW is also reset during the recovery.

CRs-Fixed: 2110156
Change-Id: I4f586919c0a25345c981149d79c707fbfd1c347e
2017-10-25 13:41:20 -07:00
Dustin Brown
05557181ba qcacld-3.0: Abort suspend if critical events are in flight
There are some events from firmware that the driver would prefer to
process immediately. In some cases, these events can race with the
suspend process such that the event is not processed until the device
resumes. Keep a counter of so called "critical events" so the suspend
process can be aborted in the event of the aforementioned race
condition.

Change-Id: Ic8a557368d6cb62bed9fba424c851b48b16bc574
CRs-Fixed: 2125904
2017-10-25 13:41:18 -07:00
Dustin Brown
28b1789ad0 qcacld-3.0: Move cds_config cleanup into start modules
In the event of an error during cds_open, the cds config is not released
until very late in error handing process. Instead, release the cds
config immediately after an error occurs in cds_open.

Change-Id: I5fdf446c3cad82cbe3cbdec40f1dce4b46a0c3fb
CRs-Fixed: 2124189
2017-10-25 13:41:16 -07:00
Manjunathappa Prakash
71c74a4d6c qcacld-3.0: Add protection for pkt_log ops with module stop
Packet log ops are protected against load-unload and SSR, but not
against module stop. Take care to add check for module stop.
Also takecare to NULLing of wdi_event_list and NULL check before accessing.

Change-Id: I20d49ff587719fc14f60a53e86092383de6ef5b8
CRs-Fixed: 2082135
2017-10-25 13:41:13 -07:00
Orhan K AKYILDIZ
e0d84884a2 qcacld-3.0: Enable TSO segmentation debug for SLUB
Enable TSO segment history collection per TSO segment. This will
allow a better understanding of a rare instance (only 1 instance
so far) where a single TSO segment is detected by memory leak
detection logic.

Change-Id: I7b8277a7307706abdc9a68c8d62fe8c9bcf24513
CRs-Fixed: 2054062
2017-10-25 13:41:11 -07:00
snandini
ac926d2c33 Release 5.2.0.51
Release 5.2.0.51

Change-Id: Ib44d73ea96463384d257facc3196887471ec9f56
CRs-Fixed: 774533
2017-10-25 07:40:52 -07:00
Ajit Pal Singh
813383c330 qcacld-3.0: Force SCC for STA+P2PGO if gWlanMccToSccSwitchMode!=0
While selecting P2PGO channel in sap_goto_channel_sel(), force SCC
if there is STA + P2PGO concurrency AND gWlanMccToSccSwitchMode!=0,
This makes behaviour similar to STA + AP concurrency.

Change-Id: Ib80a36c22432791c5466b68b625373c58e4c8206
2017-10-25 07:40:52 -07:00
Ganesh Kondabattini
41f3478d2e qcacld-3.0: Restart SAP on channel switch
Check if SAP restart is required when STA is changing the channel
as part of CSA handling.

CRs-Fixed: 2115904
Change-Id: Ie8c798c0964def5c3d5db6dbe55a3de3ff8a3381
2017-10-25 07:40:49 -07:00
snandini
d01bfc70f6 Release 5.2.0.50Z
Release 5.2.0.50Z

Change-Id: I19ffc45b7fdc52b7ab3bd896f44ef9daf22f2367
CRs-Fixed: 774533
2017-10-25 05:27:04 -07:00
Jeff Johnson
8f91d85e31 qcacld-3.0: Delete obsolete struct hdd_cfg80211_state
Change "qcacld-3.0: Remove legacy P2P codes in HDD" (Change-Id:
Idaaacac4fdaf1b964432c33c10b1c86f8a591c2d) removed almost all of the
legacy P2P code. However it left behind struct hdd_cfg80211_state (and
associated enums p2p_action_frame_state and action_frm_type) which are
no longer used, so remove those as well.

Change-Id: I3713fa2c940fd5b481ddc32dbd4fcc9ea138799d
CRs-Fixed: 2131863
2017-10-25 05:27:03 -07:00
snandini
71e9767d0a Release 5.2.0.50Y
Release 5.2.0.50Y

Change-Id: I3fb1d5805b9cf530da00dd9fc9f140d53d524f34
CRs-Fixed: 774533
2017-10-25 01:41:59 -07:00
Orhan K AKYILDIZ
ecf401c790 qcacld-3.0: move print outside of lock
It has been observed that prints are adding significant overhead
to the period a lock is being held. Move the prints outside of lock.

Change-Id: Ifc84b562bc294ae2348f6d152b2852c21c963762
CRs-Fixed: 2040486
2017-10-25 01:41:59 -07:00
Jeff Johnson
f8cadecb9e qcacld-3.0: Rename hdd_stats ClassD_stat field
Per the Linux coding style "mixed-case names are frowned upon" so
rename field ClassD_stat in struct hdd_stats.

Change-Id: Iffd826b5d179e824a2f5bdaeca1ecfd4fe4ba02a
CRs-Fixed: 2131838
2017-10-25 01:41:57 -07:00
Jeff Johnson
861dd4f7ce qcacld-3.0: Rename hdd_stats ClassA_stat field
Per the Linux coding style "mixed-case names are frowned upon" so
rename field ClassA_stat in struct hdd_stats.

Change-Id: I33c773b08767e733d69c0dd843f64edc3c00fbee
CRs-Fixed: 2131838
2017-10-25 01:41:55 -07:00
snandini
12cc30d32d Release 5.2.0.50X
Release 5.2.0.50X

Change-Id: I1b4f48cfa8be8d28a9f7e8befde6d1854d5f1b63
CRs-Fixed: 774533
2017-10-24 23:50:42 -07:00