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
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
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
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
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
Add an ini parameter to allow STA+SAP SCC on DFS channel with
master mode support disabled.
CRs-Fixed: 2127458
Change-Id: I52c5687e10bf94f0d01e60d269357a9d3d1d5fe3
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
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
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
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
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
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
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
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
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
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
Fix the maximum permissible length for Keyname NAI and also
perform a check for the same.
Change-Id: Ib6eaa11a470202fcde7495f788ab6d3c0272cefe
CRs-Fixed: 2126720
Add sanity check on the adapter structure, using the magic field
before accessing any fields on it.
Change-Id: If6965415bc0e6400ffb5924461715dff4c9efa36
CRs-Fixed: 2054084
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
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
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
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
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
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
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
Check if SAP restart is required when STA is changing the channel
as part of CSA handling.
CRs-Fixed: 2115904
Change-Id: Ie8c798c0964def5c3d5db6dbe55a3de3ff8a3381
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
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
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
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