Setting up Realtek rtl8180 wlan card

Setting up Realtek rtl8180 wlan card

Post by Topi Rinkine » Sat, 14 Feb 2004 19:32:04

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

I downloaded the driver and unzipped it, which created directory

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
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].

$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.

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 for your wlan card. I edited wlanup
script and changed address to

Then it works as wlan access point.

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



1. How to use then wlan-card Edimax EW-7106PC (Realtek 8180) in Debian

I've bought the Edimax EW-7106PC wlan-card because it is said that this card
should run under linux. But there exist driver only for RedHat and Suse, but
I am using Debian Woody. I tried to recommpile the driver (and I have also
adjusted the Makefile) but I always tells me, that I have compiled it for
the kernel 2.4.20 but I  am using 2.4.21. And if I am using the RedHat7.3
source-code I always get a segmentation fault.
If this will never work, can I use instead the linux-wlan-ng-driver? If the
answer will be yes, my next question is going to be how.

I would appreciate it, if somebody will ab able to help me.


2. Problems with fonts??

3. RTL8180 based wireless LAN card

4. USR or Jaton

5. Shape Ups,Men's Shape Ups,Men's Skechers Shape Ups - new styles!

6. yellowdog

7. WUSB11 ver. 2.5 (Prism2), debian, linux-wlan and wlan.agent

8. Encore PCI 10mbps Ethernet Network Card

9. wlan problem (laptop/pcmcia wlan (3com)

10. Compiling wlan wlan-ng-0.2.1-pre9 on Redhat 8 kernel patch 2.4.20-20.8

11. wlan-ng driver and gnome wlan applets?

12. Wlan design: access point vs. wlan interface

13. RealTek 8129/8139 vs. Alternative RealTek 8139