rc.wl1251: Bring network interface down on shutdown, otherwise, drivers cannot be...
authorMichael Mrozek <EvilDragon@openpandora.de>
Wed, 25 Apr 2012 00:04:33 +0000 (02:04 +0200)
committerMichael Mrozek <EvilDragon@openpandora.de>
Wed, 25 Apr 2012 00:04:33 +0000 (02:04 +0200)
recipes/pandora-system/wl1251-modules.bb
recipes/pandora-system/wl1251-modules/rc.wl1251

index 34138ea..a8f95e7 100755 (executable)
@@ -1,6 +1,8 @@
 DESCRIPTION = "Kernel drivers for the TI WL1251 WiFi chip found on the Pandora - Connected via SDIO"
 LICENSE = "GPLv2"
 
+PR="r2"
+
 SRCREV = "ccb56baff992d682cc84eca10472298b2cce1bf1"
 
 SRC_URI = " \
index 17df192..ec4677b 100755 (executable)
@@ -4,9 +4,8 @@ NAME="wl1251"
 
 d_stop() {
        if `grep -q wl1251 /proc/modules` ; then
-               rmmod wl1251_sdio
-               rmmod wl1251
-               rmmod board-omap3pandora-wifi 2> /dev/null
+               ifconfig wlan0 down
+               rmmod board_omap3pandora_wifi wl1251_sdio wl1251 2> /dev/null
        fi
 }