Hi everyone,
Today is a big day for me. I finally got my D-Link DWL-122 USB adapter working on Fedora linux. I should say at the outset that I am an absolute newbie in this. So nothing I say here is coming from an expert. I am just jotting down the steps I went through that got me connected to the internet from my beautiful Fedora box
However, it took me 2 weeks of fiddling to finally get it working. But in the end the steps seemed to be straightforward.
I first installed Fedora Core 2 with Kernel 2.6.5.
Then I followed Julian Coccia's excellent article on compiling the kernel and then compiling the driver.
- I downloaded Kernel 2.6.8.1 and compiled it.
- Then I downloaded linux-wlan-ng-0.2.1-pre21.tar.gz from the linux-wlan website (see Coccia's article). Untarred it and compiled it. Everything was good. Rebooted into the new kernel.
I edited wlan.conf with just an SSID (no WEP) and created a corresponding wlancfg file (see my earlier posting on this). At this point I was stuck. I tried dhclient, but I got a message that said the network was down. The /var/log/messages file did say that wlan0 was brought up successfully. It should have been working at this point. ifconfig did not show an ipaddress. I was not able to ping anything.
Anyway, I dug around on the internet and found an article by Jacek Pliszka on USB 802.11 at
http://www.fuw.edu.pl/~pliszka/hints/prism2.html. The article deals with Red Hat 7.3, but some of it was useful for Fedora. The main steps I followed from the article that got my USB adapter working were:
Step 2: Starting wlan on boot.
chkconfig --add wlan
chkconfig wlan on
Step 4: I add this to /etc/modules.conf: alias wlan0 prism2_usb
run depmod -a ( I am not sure if needed).
Step 5: create /etc/sysconfig/network-scripts/ifcfg-wlan0 file :
DEVICE=wlan0
ONBOOT=yes
BOOTPROTO=static # change this to dhcp if you want DHCP
IPADDR=192.168.0.11
GATEWAYDEV=wlan0 # this is for setting default route
GATEWAY=192.168.0.1
TYPE=Ethernet
USERCTL=yes
NETMASK=255.255.255.0
NETWORK=192.168.0.0
BROADCAST=192.168.0.255
PEERDNS=no
I used static IP initially. I had to use my windows box to get IP addresses of my wireless access point and windows boxes, by using ipconfig and ping commands. I am sure you can use DHCP too.
I rebooted my machine. wlan came up during boot. After I logged in I was able to ping my access point and all the other Windows boxes from my Fedora box. Great, I thought I was home free. One small problem, I was unable to connect to the internet due to a DNS problem. Using my Windows box I typed ipconfig /ALL to find out the IP address of the DNS server. I then ran the network configuration tool on Fedora and changed the IP addresses of the DNS servers for wlan0 interface. BINGO! I was connected to the internet.
BTW to all those poor souls who are struggling with Wireless on Linux, here is another option. If you have a second box running Windows with a wireless adapter, you can connect both your Windows box and your Linux box to a Network Hub. Turn on internet sharing on the Windows box. Then you can configure your eth0 interface on Linux and access the internet via the Windows box. That worked for me too.
Oh, another thing I did encounter some system instability when I rebooted with the USB adapter. The browser and the screen froze a few times. I then pulled out the out the USB adapter, shut down the system. Plugged the adapter in and rebooted. I haven't had any problem since.
Good Luck folks! Keep the faith.