pub fn wifi_state() -> WifiState {
    use super::WifiMode;
    match WifiMode::current() {
        Ok(WifiMode::Sta) => sta_state(),
        Ok(WifiMode::Ap) => ap_state(),
        _ => WifiState::Invalid,
    }
}
Returns the current state of the WiFi stack.

This does not support AP-STA mode. Use one of `sta_state` or
`ap_state` instead.
esp-wifi/src/wifi/state.rs