Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit b01bf123 authored by Ramanasarvesh Sadula's avatar Ramanasarvesh Sadula Committed by Gerrit - the friendly Code Review server
Browse files

wlan: Added support to check the kernel version.

Added condtion to check the kernel version is greater than or equal
to the 4.14 for wpalUnRegisterInterrupt in vos_watchdog_wlan_shutdown
function.

Change-Id: I8da32966f5ed7773b56a3d3305adf6dae4126fe7
CRs-Fixed: 2785420
parent 96259d24
Loading
Loading
Loading
Loading
+2 −0
Original line number Diff line number Diff line
@@ -2038,8 +2038,10 @@ VOS_STATUS vos_watchdog_wlan_shutdown(void)
       return VOS_STATUS_E_FAILURE;
    }

#if (LINUX_VERSION_CODE >= KERNEL_VERSION(4,14,0))
    wpalUnRegisterInterrupt(DXE_INTERRUPT_RX_READY);
    wpalUnRegisterInterrupt(DXE_INTERRUPT_TX_COMPLE);
#endif

    /* Take the lock here */
    spin_lock(&gpVosWatchdogContext->wdLock);