pub fn set_mode(index: ApIndex, mode: Mode) -> Result<()>
there is no replacement, use hostapd and wpa_supplicant directly
Sets the access point mode.