PDA

View Full Version : Wireless USB adapter woes


tidalwav1
2004-07-12, 11:22 PM CDT
I recently bought a D-Link DWL-122 802.11b wireless USB adapter to connect an older computer that I have to my box running both Fedora Core 2 and Windows 2000 Pro. Obviously, everything works in Windows, but I'm having trouble getting it to work with Fedora.

After doing a little poking around on the net, and discovering that this particular adapter has a Prism2 Chipset, I took a look at these pages:

http://www.linux-wlan.org/
http://julian.coccia.com/article-53.html
http://www.fuw.edu.pl/~pliszka/hints/prism2.html

Apparently, I have to compile the linux-wlan-ng driver to even think about getting this working. Also, it seems that I need the linux kernel sources installed to be able to compile this driver (I don't think recompiling the entire kernel is necessary.) I'm not sure if I have them installed (I don't know how to tell), but I know that in /usr/src/Redhat all of the subfolders are empty. First of all, how would I go about installing the Kernel sources? Next, what should I do after the driver is compiled and installed? Is there a specific driver for Fedora Core 2 available? (I found some old RPMS for linux-wlan-ng for Fedora Core 1, but they're outdated.) Thanks to anyone who helps this n00b. :p

wildbill
2004-07-13, 01:03 AM CDT
I'm in the same boat as well...I can't seem to install the Kernel, and I'm not sure I want to...

Anyone to help yet another noob? Thanks!

tidalwav1
2004-07-13, 01:22 AM CDT
You actually bought a DWL-122 as well? I just found these links:

Most recent kernel SOURCE:
http://download.fedora.redhat.com/pub/fedora/linux/core/updates/2/i386/kernel-sourcecode-2.6.6-1.435.2.3.noarch.rpm

Most recent kernel BINARY:
http://download.fedora.redhat.com/pub/fedora/linux/core/updates/2/i386/kernel-2.6.6-1.435.2.3.i686.rpm

I'm gonna try installing both tonight, if I totally screw everything up I'll just reinstall Fedora. :p

d.tec
2004-07-13, 01:30 AM CDT
I am in the same boat as well. Also, I have googled and such and came across this site... http://at76c503a.berlios.de/

Before I attempt any of this, I hope to get some feedback as far as whether these instructions have been tested by other FC2 users.

TIA

wildbill
2004-07-13, 01:44 AM CDT
I bought the card for my Windows laptop, but I saw that some people are using this card with linux distros...

Let me know how you make out...I tried this link, but I haven't gotten past compiling the kernel yet...

http://julian.coccia.com/article-53.html


Good luck.

You actually bought a DWL-122 as well? I just found these links:

Most recent kernel SOURCE:
http://download.fedora.redhat.com/pub/fedora/linux/core/updates/2/i386/kernel-sourcecode-2.6.6-1.435.2.3.noarch.rpm

Most recent kernel BINARY:
http://download.fedora.redhat.com/pub/fedora/linux/core/updates/2/i386/kernel-2.6.6-1.435.2.3.i686.rpm

I'm gonna try installing both tonight, if I totally screw everything up I'll just reinstall Fedora. :p

tidalwav1
2004-07-13, 07:49 AM CDT
I didn't try the RPMs. I did try recompiling the kernel, and it didn't really work. I don't want to run a seperate kernel, I want it to work with my CURRENT kernel. (The linux-wlan-ng driver successfully installed into the new kernel, but I couldn't use it for anything.) I guess we need a full-fledged HOWTO for successfully installing and configuring this adapter with Fedora Core 2. Is there a way of adding it to the "add new wireless ethernet device"(<--made up this title, but something like it is in FC2) list?

d3viant
2004-07-14, 07:42 PM CDT
I've had similar problems to this. I used the drivers from http://at76c503a.berlios.de, they compiled fine, but my device is not picked up by fedora's network tool. I had to write my own ifcfg-wlan0 file, but this still didn't get fedora talking to the rest of the network. I'll try the instructions from http://julian.coccia.com/article-53.html. I'll let you all know! It may not work though as these instructions are for a 2.4 kernel, but we'll see!

d3viant
2004-07-16, 01:07 AM CDT
Tried that set of instructions - It didn't work. Locked the system up as soon as I plugged the adapter back in

I got this adapter working perfectly in SuSE 9.1 personal. I really dont think FC has proper support for USB wireless devices yet, so I'm gonna wait till FC3 before I try to get my adapter working on it again!

tidalwav1
2004-07-16, 07:02 PM CDT
...I think I'm gonna wait for FC3, also. I wonder if the DWL-122 is supported by the SuSE live distro.

d3viant
2004-07-16, 07:50 PM CDT
you can try it, as it is just a non-install version of the personal edition, you may need to put the firmware onto the cd aswell though, you would have to use something like winiso so as not to mess up the original iso image

[TheBug]
2004-08-26, 07:15 PM CDT
Hey guys, I saw you all pulling your hair out and I know I spent at least 6 hours coming to the answer, but for all of you who haven't figured it out yet, here is what to do:

download linux-wlan-ng-0.2.1-pre12.tar.gz from ftp.linux-wlan.org
(I used this version to get it working, a later version may still work with this patch)

extract the tar.gz

cd linux-wlan-ng-0.2.1-pre12
cd src/prism2/driver/

now choose your favorit editor (pico, vi, nano, etc)
and open prism2sta.c

goto line 465

it should say something like:
{PRISM_USB_DEVICE(0x04bb, 0x0922, "IOData AirPort WN-B11/USBS")},

above this line add:
{PRISM_USB_DEVICE(0x2001, 0x3700, "DWL-122 Wireless USB Adapter")},

then save the file
cd ../../..
make config
make all
make install

modprobe p80211
modprobe prism2_usb

prism2_init: prism2_usb.o: 0.2.1-pre12 Loaded
prism2_init: dev_info is: prism2_usb
prism2_usb 1-2:1.0: usb_probe_interface
prism2_usb 1-2:1.0: usb_probe_interface - got id
usbcore: registered new driver prism2_usb

wlanctl-ng wlan0 lnxreq_ifstate ifstate=enable
wlanctl-ng wlan0 lnxreq_autojoin ssid=<your ssid> authtype=opensystem
ifconfig wlan0 <your IP address>

and there you go, thats all it takes, don't you feel like kicking the guys at the wlan project yet :-X

btw this was done on the latest stable kernel: 2.6.8.1 #3 Thu Aug 26 19:58:00 EDT 2004 i686 unknown

Enjoy!

Theres a little more detail on the following webpage:
(Feel free to distribute this link)
Http://www.fun-place.net/dwl-122.html

tidalwav1
2004-09-27, 07:26 PM CDT
DUDE! Where'd you find that site?! I gotta try it. Sorry I haven't been here in so long...I thought my problem went unanswered! :) As it turns out, I had to reformat my HD, so I think I'm gonna wait for FC3 to come out before trying any of this, but thanks for the info, I'll let everyone know how it turns out! :)

tidalwav1
2004-10-02, 05:51 PM CDT
...wait, those instructions still require you to compile a new kernel, don't they? I don't wanna do that! :P

sixpounder
2004-10-04, 11:02 AM CDT
hey guys ! (my first post here / i'm from germany)
i got the Allnet 0193 new adapter (USB Wlan 11mbit)
got the driver from www.linux-wlan.com .
Shure i was happy having found a driver which should make the device working (PRISM II is supported i found some info there and i could read that exactly this adapter should run with NO problems)
But the problem is :
If i try to compile the driver (im using fedora core 2 first [first relase ?]) i get the answer the kernel seems not to be ok. I have installed the kernel source for my kernel. mmhh....
it was 2.6.5-1.356
he doesn't want to install the driver.
So any news for me ??

Edit :
My online way to surf the inet is wlan so please don't tell me that I should update FEDORA :D ;)


P.S.: Sry ... writing english is more difficult for me as speaking ;)

james_in_denver
2004-10-14, 10:08 PM CDT
Six pounder:

Wie gehts???

You might need to install the kernel first , then do a "make clean, make; make install" in your driver directory.

If you run into any problems please post the output of the compile (either kernel or driver)

james_in_denver
2004-10-14, 10:09 PM CDT
d3viant,

yeah, my system crashed as soon as I unplugged my usb wireless doohickey, but if plug the card in and THEN boot, and leave it plugged in until you shutdown, then no problems.....

dangerzone21
2005-04-10, 08:05 PM CDT
I am very new to linux, so can you please go over the part of getting a hold of the Kernel, and once I have it where does it go, also how do I know which one to download (I imagine from atrpms.net)

I have tried to do the make config and when it asks for the LINUX SOURCE DIRECTORY, I accepted the default /usr/src/linux and it says it is incomplete or missing.

I really need your help, I am determined to get this wireless network going!

Eric

dangerzone21
2005-04-11, 06:19 PM CDT
I think I got it, you download the SRC RPMS into the usr/src/linux directory correct?

dangerzone21
2005-04-11, 06:24 PM CDT
ok, that is not working, what can I be doing wrong????

ben_leah
2005-04-12, 02:20 AM CDT
The source directory under fedora is /usr/src/redhat/

Just download the SRPMS then rpm -i <src rpms> from wherever.

dangerzone21
2005-04-12, 10:09 AM CDT
Which sprms should I download, and from where? Are the ones I have already downloaded sufficient?

Also, do you know where I can get GCC and how do I install it?

Thanks in advance!

Eric

james_in_denver
2005-04-12, 11:48 AM CDT
"yum install gcc" will install gcc compiler for you.....

I prefer to get kernel sources from "http://www.kernel.org/" it's the same place that every Linux distro get's their kernel, just save it to "/usr/src" then "tar -xvjf kernel.bz2" to uncompress it.

This thread, and especially post #5, might be of help to you......I used the berlios driver a while back without any problems at all.....

http://www.fedoraforum.org/forum/showthread.php?t=22718&highlight=wusb

dangerzone21
2005-04-15, 05:48 PM CDT
I GOT IT! well almost

I installed the windows driver thru NDISWRAPPER (DWL-122), and it worked great, installation was smooth as silk. I got the device to show in the NETWORK CONFIGURATION, and I was able to make it active, but when I open firefox it cannot go online. It has 2 lights lit on it, power and link but still no internet, can you help me out with this? I deactivated the eth0 connetion so I could strictly use the lan0.

I also added the ndiswrapper -m option to load it on startup.

HELP!!!, I am so close, I know it.

james_in_denver
2005-04-15, 09:22 PM CDT
LOL, no problem....(or I hope not).......

Can you run this command "ifconfig >/tmp/ifconfig.txt; route >> /tmp/ifconfig.txt" and post the "/tmp/ifconfig.txt" file with your next post????

Sounds like your IP, and/or Netmask, and/or route are net configured properly.

dangerzone21
2005-04-15, 09:48 PM CDT
ok, I got it to work, I am not sure exactly what I did. I hope I dont mess it up.

If I figure out what I did to correct it I will post it for others in the future.