Skip to main content

enable

Function enable 

pub fn enable() -> Result<()>
👎Deprecated:

there is no replacement, use hostapd and wpa_supplicant directly

Expand description

Enables the WiFi module.

This function does the following:

  • load the kernel module.
  • set up access point based on hostapd.
  • connect using wpa_supplicant.