wlan-ng and d-link dwl-122

Martin Pitt martin.pitt at canonical.com
Fri Oct 8 08:38:10 UTC 2004


Hi Emanuele!

Emanuele Olivetti [2004-10-07 23:21 +0200]:
> Hi,
> I've just installed ubuntu but I'm not able to find support for
> wlan-ng for my wireless usb adapter (d-link dwl 122). I tried to
> add universe to the source list and install linux-wlan-ng (0.2.0-15)
> but without success: 'modprobe prism2_usb prism2_doreset=1' (suggested
> by wlan-ng README) doesn't create wlan0 and warns no kernel message

The module already comes with the standard Ubuntu kernel. It should be
automatically loaded once you plugin a supported device. Can you
pleaes try this? Unload the module with 'rmmod prism2_usb', plug in
the adapter and look (with 'lsmod | grep prism') whether it is loaded.
If so, the hardware is supported (should be) and it only is a
configuration issue.

> (and 'wlanctl-ng...'  prompts "No such device").

The linux-wlan-ng package comes with a bunch of configuration scripts,
however, for "historical" reasons :-) (i. e. look into a howto and
never changed it) you can try the manual way:

  $ sudo wlanctl-ng wlan0 lnxreq_ifstate ifstate=enable

This will enable the device and you should see it in iwconfig and
wavemon.

  $ sudo wlanctl-ng wlan0 lnxreq_autojoin ssid="Your_ESSID" authtype="opensystem"

will join the network ESSID. Then you can finally do

  $ sudo dhclient wlan0

to get IP, routing, etc. with DHCP and enable the device. This works
fine for my Netgear MA-111 on an iBook G4. I wrote these commands in a
small script, but there are probably ways to put it into a hotplug
directory. For now, just try if it works that way.

> Any hint? When will wlan-ng be supported by ubuntu?

Devices which support the standard 'iwconfig' program are fully
supported and work automatically. However, linux-wlan-ng has its own
set of configuration tools and provides only read-only access via
iwconfig. It was too late to support these devices in Warty, but it
will probably be supported in Hoary.

Martin

-- 
Martin Pitt                       http://www.piware.de
Ubuntu Developer            http://www.ubuntulinux.org
Debian GNU/Linux Developer       http://www.debian.org
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 189 bytes
Desc: Digital signature
URL: <https://lists.ubuntu.com/archives/ubuntu-users/attachments/20041008/7b2f7081/attachment.sig>


More information about the ubuntu-users mailing list