pub unsafe extern "C" fn wifi_int_disable(
    _wifi_int_mux: *mut crate::binary::c_types::c_void,
) -> u32 {
    trace!("wifi_int_disable");
    // TODO: can we use wifi_int_mux?
    let token = unsafe { WIFI_LOCK.acquire() };
    unsafe { core::mem::transmute::<esp_hal::sync::RestoreState, u32>(token) }
}
**************************************************************************
Name: esp_wifi_int_disable

Description:
Enter critical section by disabling interrupts and taking the spin lock
if in SMP mode.

Input Parameters:
wifi_int_mux - Spin lock data pointer

Returned Value:
CPU PS value.

*************************************************************************
esp-wifi/src/wifi/os_adapter.rs