X-Git-Url: https://git.openpandora.org/cgi-bin/gitweb.cgi?p=openpandora.oe.git;a=blobdiff_plain;f=recipes%2Fpandora-system%2Fwl1251-modules%2Frc.wl1251;h=5018c6b0081ebbdcfb6b995584b1df4ad49e86cb;hp=30f8818f0c2f350239c06103616b8472b052e2ed;hb=c1cc4459899791fa75055af9e9a1b05bd56f9473;hpb=39f2fac9c365c1a0d3f1a8822d0b2ba784133f8f diff --git a/recipes/pandora-system/wl1251-modules/rc.wl1251 b/recipes/pandora-system/wl1251-modules/rc.wl1251 index 30f8818..5018c6b 100755 --- a/recipes/pandora-system/wl1251-modules/rc.wl1251 +++ b/recipes/pandora-system/wl1251-modules/rc.wl1251 @@ -1,5 +1,4 @@ #!/bin/sh - DESC="WL1251 MAC80211 Wireless LAN driver" NAME="wl1251" @@ -7,26 +6,37 @@ d_stop() { if `grep -q wl1251 /proc/modules` ; then rmmod wl1251_sdio rmmod wl1251 - # rmmod board-omap3pandora-wifi + rmmod board-omap3pandora-wifi fi } d_start() { - insmod $(busybox find /lib/modules/$(uname -r) -name "board-omap3pandora-wifi.ko") - insmod $(busybox find /lib/modules/$(uname -r) -name "arc4.ko") - insmod $(busybox find /lib/modules/$(uname -r) -name "ecb.ko") - insmod $(busybox find /lib/modules/$(uname -r) -name "pcbc.ko") - insmod $(busybox find /lib/modules/$(uname -r)/updates -name "compat.ko") insmod $(busybox find /lib/modules/$(uname -r)/updates -name "rfkill_backport.ko") - insmod $(busybox find /lib/modules/$(uname -r)/updates -name "cfg80211.ko") + insmod $(busybox find /lib/modules/$(uname -r)/updates -name "compat.ko") + insmod $(busybox find /lib/modules/$(uname -r)/updates -name "cfg80211.ko") insmod $(busybox find /lib/modules/$(uname -r)/updates -name "mac80211.ko") + insmod $(busybox find /lib/modules/$(uname -r)/updates -name "compat_firmware_class.ko") + insmod $(busybox find /lib/modules/$(uname -r) -name "ecb.ko") + insmod $(busybox find /lib/modules/$(uname -r) -name "pcbc.ko") + insmod $(busybox find /lib/modules/$(uname -r) -name "arc4.ko") insmod $(busybox find /lib/modules/$(uname -r)/updates -name "lib80211.ko") insmod $(busybox find /lib/modules/$(uname -r)/updates -name "lib80211_crypt_tkip.ko") insmod $(busybox find /lib/modules/$(uname -r)/updates -name "lib80211_crypt_wep.ko") insmod $(busybox find /lib/modules/$(uname -r)/updates -name "lib80211_crypt_ccmp.ko") insmod $(busybox find /lib/modules/$(uname -r)/updates -name "wl1251.ko") insmod $(busybox find /lib/modules/$(uname -r)/updates -name "wl1251_sdio.ko") - iwconfig wlan0 power off + insmod $(busybox find /lib/modules/$(uname -r) -name "board-omap3pandora-wifi.ko") + + # restore phyX related LED triggers (they come from mac80211.ko) + sleep 0.5 + if [ -e /sys/class/leds/ ] ; then + for led in /sys/class/leds/* ; do + trigger=$(grep "$(basename $led)" /etc/default/leds | grep "phy" | awk '{print $2}') + if [ "x$trigger" != "x" ] ; then + echo "$trigger" > "$led/trigger" + fi + done + fi } case "$1" in