Forráskód Böngészése

Remove unloading of mwifiex from the sleep script

As of recently, this is handled in the kernel directly. I have been
running the patch + this script for some time and couldn't notice any
regressions.

Signed-off-by: Dorian Stoll <dorian.stoll@tmsp.io>
Dorian Stoll 5 éve
szülő
commit
4f47a913ca
1 módosított fájl, 0 hozzáadás és 16 törlés
  1. 0 16
      root/lib/systemd/system-sleep/sleep

+ 0 - 16
root/lib/systemd/system-sleep/sleep

@@ -13,11 +13,6 @@ case $1 in
     #   bluetoothctl power off
     # fi
 
-    # handle wifi issues
-    modprobe -r mwifiex_pcie;
-    modprobe -r mwifiex;
-    modprobe -r cfg80211;
-
     ## IPTS: see notes below
     ## > Remove IPTS from ME side
     # modprobe -r ipts_surface
@@ -47,17 +42,6 @@ case $1 in
     if ps cax | grep bluetoothd; then
       bluetoothctl power on
     fi
-
-    # handle wifi issues: complete cycle
-    modprobe cfg80211;
-    modprobe mwifiex;
-    modprobe mwifiex_pcie;
-    echo 1 > /sys/bus/pci/rescan
-
-    if [ -x "$(command -v nmcli)" ]  && [ "$(nmcli net)" = "enabled" ]; then
-      nmcli net off
-      nmcli net on
-    fi
     ;;
 esac