Re: Netgear MA111 - USB works perfectly in a Debian PowerBook
Hi,
Andre Lehovich a écrit :
> On Fri, 23 Apr 2004, eric.bachard@alube wrote:
>
>> FYI : it works with Linux (x86, powerpc, all under Debian sid) /Mac OS X
>> (with or without MOL and with Windows
>
>
>
> The example in your very useful howto was with a 2.4 kernel.
> Does it also work with 2.6?
Yes, it works with a 2.6.x. using linuw-wlan-ng, but not the latest,
just the one before (0-2.1.17 to 0-2.1.19 are working if I'm not wrong)
As attachment, you can find the english howto for the wep (2nd part)
With best Regards,
eric bachard
This is the second part about MA111 under Linux)
I've made the promise to write an how-to when all will be all right
with this usb-gadget and 128 bits WEP. Now, you're Done :-)
Little precision about this hardware : I'm using a laptop
(powerbook alu 15" with Super Drive) running Debian sid for powerpc,
using a _very_young_ 2.6.3rc kernel (exactly 2.6.3-rc3-ben1), :-)
It's an obligation for me to have the more recent kernels, because
my hardware is recent too, and, for now, not completely working under Linux.
So, the probability that it works on an x86 + Linux 2.4.x is very important :-)
and I'll be very surprised if it didn't work...
About the configuration :
All is in a shell-script, located in /etc/init.d named "wlan.sh"
(what else ? :-) ). Don't forget to make it executable.
BTW : I think this shell scritp may be located somewhere were hotplug
can use it directly, but I have not read the doc about hoplug yet. Sorry.
If someone can explain this point, thanks for advance :-)
What will you find in /etc/init.d/wlan.sh ?
IMPORTANT : excepted for the first line (thez she-bang), commented lines
begins with " # "
#!/bin/bash
# Above, the shebang. Like /bin/sh is a symlink to /bin/bash,
# we can undifferently use sh or bash. Everyone can choose...
# used version : linux-wlan-ng-0.2.1-pre17
# the last 2004 / 02 / 18
# please read the first part : nothing has changed since I wrote
# it for linux-wlan-ng installation
# Modification of the PATH, because I don't want to write /sbin
# in the beginning of all the commands everytime ;-)
PATH=/sbin:$PATH
# In case of freeze, you can use prism2_doreset=0
# Not sure, but I think there is no more bug about this old(now) problem...
modprobe prism2_usb prism2_doreset=1
# Found in the doc...
wlanctl-ng wlan0 lnxreq_ifstate ifstate=enable
# I've founfd the solution abocve, because I suspected
# we'll have to "crypt" something womewhere
wlanctl-ng wlan0 lnxreq_hostwep decrypt=true encrypt=true
# the valid is the first generated 0 in this cas
#(else 1 for the second one, 2 for the third and 3 for the forth one )
wlanctl-ng wlan0 dot11req_mibset mibattribute=dot11WEPDefaultKeyID=0
# Obtained with the "a little dark" documentation
wlanctl-ng wlan0 dot11req_mibset mibattribute=dot11ExcludeUnencrypted=true
wlanctl-ng wlan0 dot11req_mibset mibattribute=dot11PrivacyInvoked=true
# IMPORTANT : the key, in hexa, is wroten with " : " separating digits 2 by 2
# of course, this key doesn't exist... ;-)
wlanctl-ng wlan0 dot11req_mibset mibattribute=dot11WEPDefaultKey0="88:99:AA:BB:CC:DD:EE:FF:11:22:33:44:55"
# unused, only here for documentation
#wlanctl-ng wlan0 dot11req_mibset mibattribute=dot11WEPDefaultKey1=<la:seconde:clé:écrite:ici>
#wlanctl-ng wlan0 dot11req_mibset mibattribute=dot11WEPDefaultKey2=<la:troisième:clé:écrite:ici>
#wlanctl-ng wlan0 dot11req_mibset mibattribute=dot11WEPDefaultKey3=<la:quatrième:clé:écrite:ici>
# I've searched a long time with opensystem, managed ad-hoc. Falling "in work"
# with sharedkey
# NB : the synopsis is given in wlanctl-ng doc
# do wlanctl-ng commands if you want to know more...
wlanctl-ng wlan0 lnxreq_autojoin "ssid=osiris" authtype="sharedkey"
# It works. Now, IP address attribution
# for the 192.168.99.0 netork here
ifconfig wlan0 192.168.99.78 netmask 255.255.255.0
# the default key (completely wrong, given as example)
# for a 192.168.99.0 network
route add default gw 192.168.99.2 # my internet gateway address
# end of wlan.sh
How-o use it ?
Connect the USB-gadget,
1) using a 2.6.y kernel :
prism2_usb and p80211 modules are automaticaly loaded
then run /etc/init.d/wlan.sh
Hop !! It works !
2) 2.4.x kernel
modprobe prims2_usb && /etc/init.d/wlan.sh
And you're done ! This is the only things I've done to make it work !
BTW : linux-wlan-ng *don't use* all the kernel ioctl, so iwconfig
doesn't see anything about wep. But you can believe me, it works ;-)
Specialy, ifconfig and iwconfig will give "key off", but it's wrong.
Have fun !
--
eric b
eric *dot* bachard *at* free *dot* fr
Reply to: