YunoHost-Apps / hotspot_ynh

Wifi Hotspot app for YunoHost
GNU Affero General Public License v3.0
39 stars 19 forks source link

Use modprobe for enabling wifi devices without needing a reboot #62

Closed HugoPoi closed 3 years ago

HugoPoi commented 4 years ago
WARNING: Wifi Hotspot is not started because no wifi device was found (please, check the web admin)
HugoPoi commented 3 years ago

After digging a little

  1. Install the desired firmware
  2. modprobe --remove ath9k_htc ath9k_common ath9k_hw ath mac80211 cfg80211
  3. Trigger the driver reload as usbreset doesn't do anything
    sudo sh -c "echo 0 > /sys/bus/usb/devices/2-1/authorized"
    sudo sh -c "echo 1 > /sys/bus/usb/devices/2-1/authorized"

    See the tips here

  4. Voilà