cx3110x: we should call wlan-cal after loading the module
authorRicardo Salveti <ricardo.salveti@openbossa.org>
Tue, 2 Sep 2008 20:05:53 +0000 (17:05 -0300)
committerRodrigo Vivi <rodrigo.vivi@openbossa.org>
Thu, 23 Oct 2008 21:04:28 +0000 (18:04 -0300)
The problem: wlan-cal tool is also proprietary.

Signed-off-by: Ricardo Salveti <ricardo.salveti@openbossa.org>
packages/mamona/cx3110x-770he-0.8.1/cx3110x
packages/mamona/cx3110x-770he_0.8.1.bb
packages/mamona/cx3110x-chinooke-2.0.15/cx3110x
packages/mamona/cx3110x-chinooke_2.0.15.bb

index 93e59af..592c703 100755 (executable)
@@ -8,6 +8,10 @@ swap_module () {
         rmmod cx3110x
         # Inserting the new one
         insmod $MODULE
+        # Setting device options (MAC, default country, etc)
+        if [ -x /mnt/initfs/usr/bin/wlan-cal ]; then
+            chroot /mnt/initfs /usr/bin/wlan-cal
+        fi
         # Getting up the interface to make the firmware being loaded (stupid, i know)
         ifconfig wlan0 up
     else
index 2cee32b..7f90aad 100644 (file)
@@ -1,4 +1,4 @@
-PR = "r0"\r
+PR = "r1"\r
 \r
 KERVER = "2.6.16"\r
 \r
index 93e59af..592c703 100755 (executable)
@@ -8,6 +8,10 @@ swap_module () {
         rmmod cx3110x
         # Inserting the new one
         insmod $MODULE
+        # Setting device options (MAC, default country, etc)
+        if [ -x /mnt/initfs/usr/bin/wlan-cal ]; then
+            chroot /mnt/initfs /usr/bin/wlan-cal
+        fi
         # Getting up the interface to make the firmware being loaded (stupid, i know)
         ifconfig wlan0 up
     else