finally i got it to work using a shell script that tries to validate the connection step by step. I've tried with open hotspot and a 128 bits WEP access. This driver should work with the caanoo, but for now i succeed to connect randomly (i've to restart the caanoo several times to succeed to initialize my wifi dongle).
Here is the script i'm using, and i have to plug the dongle few second after the launch of the script (or it doesn't work)
Code:
#!/bin/sh
# Your ESSID
ESSID=MYESSID
# Your WEP KEY 64 or 128 Bits
WEP=YOUWEPKEYHERE
# Your wireless mac address :
MAC=XX:YY:ZZ:TT:WW:AA
/sbin/insmod usb-storage.ko
/sbin/insmod af_packet.ko
sleep 2
MAX_CH=2
MAX_CS=5
CH=0
OK=0
while [ ${CH} -ne ${MAX_CH} ]
do
CH=`expr ${CH} + 1`
echo "current hard iter=${CH}"
echo "insert modules ..."
/sbin/insmod 8712u.ko initmac=${MAC}
sleep 10
CS=0
while [ ${CS} -ne ${MAX_CS} ]
do
CS=`expr ${CS} + 1`
TEST=`/sbin/ifconfig -a | grep -c wlan0`
if [ "${TEST}" -ne 0 ]
then OK=1; break
fi
sleep 1
done
if [ ${OK} -eq 1 ]
then CS=0
OK=0
while [ ${CS} -ne ${MAX_CS} ]
do
CS=`expr ${CS} + 1`
echo "current soft iter=${CS}"
echo "activate wlan0 interface ..."
/sbin/ifconfig wlan0 up
sleep 3
echo "list access point"
TEST=`/lib/modules/2.6.24/kernel/net/wireless/tools/iwlist scanning | grep -c ${ESSID}`
if [ "${TEST}" -ne 0 ]
then OK=1; break
fi
echo "desactivate wlan0 interface ..."
/sbin/ifconfig wlan0 down
sleep 1
done
fi
if [ ${OK} -eq 1 ]
then break
fi
echo "unload modules ..."
/sbin/rmmod 8712u.ko
sleep 3
done
if [ ${OK} -eq 1 ]
then echo "Connect to ${ESSID}"
/lib/modules/2.6.24/kernel/net/wireless/tools/iwconfig wlan0 mode managed essid ${ESSID} key ${WEP}
sleep 5
echo "Get IP from dhcp ..."
/sbin/udhcpc -i wlan0
fi
cd /usr/gp2x
exec ./gp2xmenu