From 936dd31a93f73462e4c1cb7b04b1b4a3f5dd2493 Mon Sep 17 00:00:00 2001 From: Michael Mrozek Date: Wed, 25 Apr 2012 02:04:33 +0200 Subject: [PATCH] rc.wl1251: Bring network interface down on shutdown, otherwise, drivers cannot be unloaded and Pandora will not switch off. --- recipes/pandora-system/wl1251-modules.bb | 2 ++ recipes/pandora-system/wl1251-modules/rc.wl1251 | 5 ++--- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/recipes/pandora-system/wl1251-modules.bb b/recipes/pandora-system/wl1251-modules.bb index 34138ea..a8f95e7 100755 --- a/recipes/pandora-system/wl1251-modules.bb +++ b/recipes/pandora-system/wl1251-modules.bb @@ -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 = " \ diff --git a/recipes/pandora-system/wl1251-modules/rc.wl1251 b/recipes/pandora-system/wl1251-modules/rc.wl1251 index 17df192..ec4677b 100755 --- a/recipes/pandora-system/wl1251-modules/rc.wl1251 +++ b/recipes/pandora-system/wl1251-modules/rc.wl1251 @@ -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 } -- 2.39.2