Networking Forums

Networking Forums > Computer Networking > Linux Networking > Setting up Realtek rtl8180 wlan card

Reply
Thread Tools Display Modes

Setting up Realtek rtl8180 wlan card

 
 
Topi Rinkinen
Guest
Posts: n/a

 
      02-13-2004, 09:32 AM
I used few days searching info on how to install rtl8180l based wlan card.

Primarily I wanted to configure it as wlan access point (WAP, AP),
secondarily as adhoc card.

After several trial & errors, I finally managed. Here's short summary what
to do:

My card is D-LINK DWL-510 pci card.

Linux is RedHat 9, with kernel 2.4.20-28.9.

Realtek driver is from realtek's site (Linux kernel 2.4.20 (gcc version
3.2.2))
(ftp://152.104.125.40/cn/wlan/rtl8180...v_v15_rh90.zip)

I downloaded the driver and unzipped it, which created directory
rtl8180_1.5

readme says that make'ing driver and installing is sufficient,
unfortunately this method gave error:
"rtl8180_24x.o: init_module: No such device"

The reason for this is that d-link has different pci vendor id and device
id for the card than realtek driver is assuming.

$cat /proc/pci
gives:
....
Bus 0, device 12, function 0:
Ethernet controller: PCI device 1186:3300 (D-Link System Inc) (rev 32).
IRQ 5.
Master Capable. Latency=64. Min Gnt=32.Max Lat=64.
I/O at 0xf800 [0xf8ff].
Non-prefetchable 32 bit memory at 0xfedff800 [0xfedff8ff].
....

and
$pcitweak -l
PCI: Probing config type using method 1
PCI: Config type is 1
PCI: PCI scan (all values are in hex)
PCI: 00:00:0: chip 8086,7180 card 0000,0000 rev 03 class 06,00,00 hdr 00
PCI: 00:01:0: chip 8086,7181 card 0000,0000 rev 03 class 06,04,00 hdr 01
PCI: 00:04:0: chip 8086,7110 card 0000,0000 rev 01 class 06,01,00 hdr 80
PCI: 00:04:1: chip 8086,7111 card 0000,0000 rev 01 class 01,01,80 hdr 00
PCI: 00:04:2: chip 8086,7112 card 0000,0000 rev 01 class 0c,03,00 hdr 00
PCI: 00:04:3: chip 8086,7113 card 0000,0000 rev 01 class 06,80,00 hdr 00
PCI: 00:06:0: chip 10b7,9050 card 0000,0000 rev 00 class 02,00,00 hdr 00
PCI: 00:0a:0: chip 1043,0675 card 0675,1704 rev 01 class 02,80,00 hdr 00
PCI: 00:0c:0: chip 1186,3300 card 1186,3301 rev 20 class 02,00,00 hdr 00
PCI: 01:00:0: chip 1013,00d6 card 1013,0000 rev 03 class 03,00,00 hdr 00
PCI: End of PCI scan

We can now search for our wlan card, which is in bus 0, device 12 (see cat
/proc/pci output).
From pcitweak output we see that 00:0c:0: (0c is hex representation of 12)
is chip 1186, 3300 (1186 is hex manufacturer id and 3300 is hex device id)

r8180_pci_init.c, line 59:
{ 0x10EC, 0x8180 /*0x8139*/, PCI_ANY_ID, PCI_ANY_ID, 0, 0, 0 },

is changed to:
{ 0x1186, 0x3300, PCI_ANY_ID, PCI_ANY_ID, 0, 0, 0 },

0x1186 and 0x3300 are from pcitweak output.

Makefile should be edited in line 40 & 41. If you want access point mode,
uncomment line 40 and comment line 41.
OP_MODE_FLAGS = RTL_ACT_AS_AP
#OP_MODE_FLAGS = RTL_ACT_AS_STA


Then follow realteks install istructions for make'ing the driver and
installing it. (be sure to be a root to install & start)

Before bringing wlan up, you have to:

$chmod +x wlanup wlandown

and then you can
$./wlanup AP

This gives address 192.168.1.180 for your wlan card. I edited wlanup
script and changed address to 192.168.1.1.

Then it works as wlan access point.

any questions to: realtek's chip code (rtl...) in the domain topisoft.fi

--
Topi

 
Reply With Quote
 
 
 
Reply

Thread Tools
Display Modes

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 On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Realtek 8201CL Network Card parser Linux Networking 0 09-23-2006 06:35 PM
Lots of RX CRC ERRORS with REALTEK PCI card sam1967 Wireless Internet 5 06-28-2005 08:21 AM
Good utility for XP and Realtek card? Jens Jakob Andersen Wireless Internet 1 12-31-2004 03:20 AM
Good utility for XP and Realtek card? Jens Jakob Andersen Wireless Internet 0 12-27-2004 02:49 PM
RealTek 8180 Pcmcia 802.11B card Howard Huntley Wireless Internet 1 08-08-2004 05:13 AM



1 2 3 4 5 6 7 8 9 10 11