LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking > Linux - Wireless Networking
User Name
Password
Linux - Wireless Networking This forum is for the discussion of wireless networking in Linux.

Notices


Reply
  Search this Thread
Old 06-06-2004, 01:12 AM   #1
jsheppe
LQ Newbie
 
Registered: Jun 2004
Posts: 1

Rep: Reputation: 0
D-Link DWL-122 in Fedora Core 1


How do I get this to work?
 
Old 08-02-2004, 04:29 PM   #2
juliancoccia
Member
 
Registered: Dec 2003
Posts: 51

Rep: Reputation: 15
Here is my HOW-TO

http://julian.coccia.com/article-53.html
 
Old 08-26-2004, 08:57 PM   #3
TheLinuxBug
LQ Newbie
 
Registered: Aug 2004
Posts: 1

Rep: Reputation: 0
DWL-122 in Linux!

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
 
Old 09-07-2004, 01:00 AM   #4
prashantha
LQ Newbie
 
Registered: Sep 2004
Distribution: Fedora Core 2
Posts: 4

Rep: Reputation: 0
Hi. I have hit a wall trying to get DWL-122 working on my Fedora Core 2 system. I am very new to this (although it's all very fascinating), so forgive me if I ask dumb questions.

I first went through Julian Coccia's instructions - I compiled the latest 2.6 kernel (2.6.8.1), rebooted into this version, then I compiled the drivers (linux-wlan-ng-0.2.1pre21). Everything seemed to work.
I did "tail /var/log/messages -f" and plugged in my USB adapter. It gave me a bunch messages, the last few lines basically saying:

localhost kernel: Prism2 card SN: 000000000000
localhost wlan.agent[7437]: WLAN wlan0 brought up successfully.
localhost wlan.agent[7437]: WLAN bringing up layer 3+ with /sbin/ifup
localhost kernel: linkstatus=CONNECTED

So looks like I am really close!

I edited my wlan.conf with
SSID_wlan0="linksys"
ENABLE_wlan0=y

I remembered "linksys" being the ssid from a previous windows installation.

I then copied the wlancfg-DEFAULT to wlancfg-linksys. I did not make any changes to this file.

So now I am ready to configure the IP addresses. I try dhclient and I get the following messages

DHCPDISCOVER on eth0 to 255.255.255.255 port 67 interval 11
DHCPDISCOVER on lo to 255.255.255.255 port 67 interval 12
DHCPDISCOVER on wlan0 to 255.255.255.255 port 67 interval 8
send_packet: Network is down

The light on the adapter is green and steady and it looks from the above messages that the device was setup correctly. I am missing something basic.

Any hints or tips will be much appreciated.
 
Old 09-07-2004, 02:12 PM   #5
friedrice4u
LQ Newbie
 
Registered: Sep 2004
Posts: 15

Rep: Reputation: 0
still doesnt work

Quote:
Originally posted by TheLinuxBug

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>
two things: first, i cant just directly type "modprobe" ... i guess i don't have the path set correctly so I have to type /sbin/modprobe p80211 but the two commands do absolutely nothing, they just return me to the prompt in the next line. i don't get any messages afterwards.

also, when are you supposed to plug in the USB device during this process? and is your process something you have to do everytime you reboot the computer?
 
Old 09-08-2004, 12:04 AM   #6
friedrice4u
LQ Newbie
 
Registered: Sep 2004
Posts: 15

Rep: Reputation: 0
Hi there,

I very much appreciate your HOW-TO document for the Dlink DWL-122 Wireless USB Adapter, however I'm still stuck after a certain step:

i recompiled the kernel (the source code was part of the installation of Fedora Core 2)...
first off, do i still need to add lines to the bootloader since im running the same version kernel as what i compiled? i can't imagine a difference.

second, I restarted and for some reason my USB mouse no longer gets detected, but i got another ps/2 mouse and used that instead...

third, i configured the driver (version 0.2.1pre21) and followed your instructions to make all and make install
after that's done,

i run tail /var/log/messages -f
it displays some stuff but nothing about the wireless card, then i plug in my dwl-122 and still nothing happens...

i go to the next step to do ifconfig, and it says

SIOCSIADDR: No such device:
wlan0: unknown interface: No such device
SIOCSIFNETMASK: No such device

so it doesn't seem like i installed it correctly... any suggestions?
 
Old 09-18-2004, 10:55 PM   #7
prashantha
LQ Newbie
 
Registered: Sep 2004
Distribution: Fedora Core 2
Posts: 4

Rep: Reputation: 0
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.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
D-Link Wireless USB adaptor DWL 122 and Core 3 Thetargos Fedora 2 04-03-2005 11:15 PM
D-Link DWL-122 Fedora Core 3 problem benedict Linux - Wireless Networking 3 02-26-2005 02:00 PM
D-Link DWL-122 and ndiswrapper on Fedora 2: hardware NOT present friedrice4u Linux - Wireless Networking 2 11-25-2004 02:16 AM
I am a newbie with a dwl-122 and I have ndis wrapper with Fedora Core 2 chesterthefatp Linux - Newbie 1 10-27-2004 01:11 AM
still can't get D-Link DWL-122 to work on Fedora Core 2 friedrice4u Linux - Wireless Networking 1 09-07-2004 10:10 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Networking > Linux - Wireless Networking

All times are GMT -5. The time now is 10:36 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration