mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-14 16:46:15 -04:00
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
This commit is contained in:
parent
e6119931d6
commit
5ac6bd2920
3 changed files with 6 additions and 1 deletions
|
|
@ -1455,6 +1455,8 @@ static void wlan_hdd_purge_notifier(void)
|
|||
static void wlan_hdd_pld_uevent(struct device *dev,
|
||||
struct pld_uevent_data *uevent)
|
||||
{
|
||||
|
||||
hdd_info("pld event %d", uevent->uevent);
|
||||
switch (uevent->uevent) {
|
||||
case PLD_RECOVERY:
|
||||
cds_set_recovery_in_progress(true);
|
||||
|
|
|
|||
|
|
@ -2723,7 +2723,8 @@ static inline bool wma_crash_on_fw_timeout(bool crash_enabled)
|
|||
if (cds_is_driver_recovering())
|
||||
return false;
|
||||
|
||||
if (!cds_is_fw_down())
|
||||
/* Firmware is down send failure response */
|
||||
if (cds_is_fw_down())
|
||||
return false;
|
||||
|
||||
if (cds_is_driver_unloading())
|
||||
|
|
|
|||
|
|
@ -1933,6 +1933,8 @@ static void wma_cleanup_vdev_resp_queue(tp_wma_handle wma)
|
|||
return;
|
||||
}
|
||||
|
||||
WMA_LOGD(FL("Cleaning up vdev resp queue"));
|
||||
|
||||
/* peek front, and then cleanup it in wma_vdev_resp_timer */
|
||||
while (qdf_list_peek_front(&wma->vdev_resp_queue, &node1) ==
|
||||
QDF_STATUS_SUCCESS) {
|
||||
|
|
|
|||
Loading…
Reference in a new issue