enable

Function enable 

pub fn enable() -> Result<()>
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.