LinuxQuestions.org
Help answer threads with 0 replies.
Go Back   LinuxQuestions.org > Linux Answers > Networking
User Name
Password

Notices


By coindood at 2004-04-07 21:01
Ok, guys, since my webspace provider is taking its sweet time getting back up, I'll just post my scripts. I'll get the HOWTO up when my site's back up.

NOTE:
These instructions were done on multiple Debian distrobutions, but should work with little modification on RedHat/Fedora installations. Also, these instructions were done with the SuSE drivers. They are hard to find, so download them from http://www.geocities.com/coindood/drivers.html They have worked for me and most of the other successful users in this thread. The zip file also contains all of the files needed to get it running (ifcfg-wlan0, resolv.conf, wlanup/down, Makefile, etc.) so all you need to do is change the ip addresses and copy them to their respective locations. Just don't forget to read all of this beforehand!

First make sure your kernel is 2.4.21 or below. No special revisions needed.

wlanup:
Code:
#Load module
/sbin/insmod -f rtl8180_24x.o

#Set SSID
iwpriv wlan0 wlan_para networktype=infra
iwpriv wlan0 wlan_para ssid2scan=default

iwpriv wlan0 wlan_para wepmode=off

iwpriv wlan0 msglevel 1

#Enable wireless lan driver
/sbin/iwpriv wlan0 enable

#Configure wlan0 IP address within router bounds
#since my router's address is 192.168.0.1, it is 
#any between 192.168.0.101 - ...168
/sbin/ifconfig wlan0 192.168.0.101
echo "$(/sbin/ifconfig wlan0)"

#change this ip address to the router address
route add default gw 192.168.0.1
If you use route, you need a /etc/resolv.conf file:
Code:
#the Xs stand for the gateway your router goes through
#you can find it in the router stats when you log into it

nameserver XXX.XXX.XXX.XXX
Last you need an /etc/sysconfig/network-scripts/ifcfg-wlan0 file:
Code:
DEVICE=wlan0
NETMASK=255.255.255.0
GATEWAY=192.168.0.1
BOOTPROTO=dhcp
PEERDNS=yes
ONBOOT=no
#change the gateway ip to the address of the router
Copy these files to their respective locations, modify the Makefiles to
match your kernel, then type make, and if all is well, type "sh wlanup".
you should see:
Code:
Warning: loading rtl8180_24x.o will taint the kernel: forced load
See http://www.tux.org/lkml/#export-tainted for information about tainted modules
Module rtl8180_24x loaded, with warnings
wlan0     Link encap:Ethernet  HWaddr 00:40:F4:93:4A:38
          inet addr:192.168.0.101  Bcast:192.168.0.255  Mask:255.255.255.0
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:0 errors:0 dropped:0 overruns:0 frame:0
          TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:100
          RX bytes:0 (0.0 b)  TX bytes:0 (0.0 b)
          Interrupt:10 Base address:0xd800
Don't worry about the warning (it's because the priv_part.o file is compiled against another kernel). Type in dmesg, and if all is well again, then the last lines should look like this:
Code:
RTL8180: Select a BSS and Join it at channel 6.
RTL8180: ----------------------------------------------------------
RTL8180: wlan0 Link status:
RTL8180:    Channel number = 6
RTL8180:    beacon period = 100
RTL8180:    BSSID = 0x00:0x0d:0x88:0x9f:0xd1:0xd3
RTL8180:    SSID = default
RTL8180:    Capability = 0x21
RTL8180:    AID = 0x01
RTL8180:    Operational rate = 0x0F <bit 0~3 = 1~11 Mbps>
RTL8180: ----------------------------------------------------------
If you see that, you are connected!

Email me at coindood@yahoo.com if you get anywhere!

by uveraser on Fri, 2004-07-16 04:54
What if my kernel is newer than 2.4.21?
I have 2.4.22 and will probably be upgrading to a 2.6 soon. (I am running Slackware)

by robertwatts_new on Tue, 2005-03-01 12:09
how do you compile a program

i am a complete newbie and do not know what to do.


HELP


Robert


  



All times are GMT -5. The time now is 05:26 AM.

Main Menu
Advertisement
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