pub fn set_work_mode(mode: WorkMode) -> Result<()>
there is no replacement, use hostapd and wpa_supplicant directly
Sets the WiFi work mode.