Problems compiling RTL-8185 driver

Hello,

I am having problems compiling the driver for my wireless network card that uses the mentioned chip.

I am currently using opensuse 11.1 and by default it brings a “native” driver for but is not working properly because of a poor signal strength once it gets connected.

I really don’t know if this is a driver problem or something else with kNetworkManager because the card gets connected but has a lot of packet loss and I am pretty sure that is a software problem because I used literally the same card in another desktop computer but running opensuse 10.3. The problems cames after upgrade.

After a lot of researching I still can’t find a way out and I even tried ndiswrapper but was worse and screws my entire network connections so I rolled back until the beginning.

Finally I downloaded the latest driver and I followed the steps listed in README file but I got this errors during make:


In file included from /tmp/rtl8185_linux_26.1027.0823.2007/rtl8185/r8180.h:44,
                 from /tmp/rtl8185_linux_26.1027.0823.2007/rtl8185/r8180_core.c:61:
/tmp/rtl8185_linux_26.1027.0823.2007/rtl8185/ieee80211.h: In function ‘ieee80211_priv’:
/tmp/rtl8185_linux_26.1027.0823.2007/rtl8185/ieee80211.h:1212: warning: ‘netdev_priv’ is static but used in inline function ‘ieee80211_priv’ which is not static
In file included from /tmp/rtl8185_linux_26.1027.0823.2007/rtl8185/r8180_core.c:61:
/tmp/rtl8185_linux_26.1027.0823.2007/rtl8185/r8180.h:46:27: error: asm/semaphore.h: No such file or directory
/tmp/rtl8185_linux_26.1027.0823.2007/rtl8185/r8180_core.c: In function ‘rtl8180_proc_module_init’:
/tmp/rtl8185_linux_26.1027.0823.2007/rtl8185/r8180_core.c:588: error: ‘proc_net’ undeclared (first use in this function)
/tmp/rtl8185_linux_26.1027.0823.2007/rtl8185/r8180_core.c:588: error: (Each undeclared identifier is reported only once
/tmp/rtl8185_linux_26.1027.0823.2007/rtl8185/r8180_core.c:588: error: for each function it appears in.)
/tmp/rtl8185_linux_26.1027.0823.2007/rtl8185/r8180_core.c: In function ‘rtl8180_proc_module_remove’:
/tmp/rtl8185_linux_26.1027.0823.2007/rtl8185/r8180_core.c:594: error: ‘proc_net’ undeclared (first use in this function)
/tmp/rtl8185_linux_26.1027.0823.2007/rtl8185/r8180_core.c: In function ‘alloc_tx_desc_ring’:
/tmp/rtl8185_linux_26.1027.0823.2007/rtl8185/r8180_core.c:1588: warning: cast from pointer to integer of different size
/tmp/rtl8185_linux_26.1027.0823.2007/rtl8185/r8180_core.c:1588: warning: cast to pointer from integer of different size
/tmp/rtl8185_linux_26.1027.0823.2007/rtl8185/r8180_core.c:1589: warning: cast to pointer from integer of different size
/tmp/rtl8185_linux_26.1027.0823.2007/rtl8185/r8180_core.c:1589: warning: cast from pointer to integer of different size
/tmp/rtl8185_linux_26.1027.0823.2007/rtl8185/r8180_core.c: In function ‘alloc_rx_desc_ring’:
/tmp/rtl8185_linux_26.1027.0823.2007/rtl8185/r8180_core.c:1766: warning: cast from pointer to integer of different size
/tmp/rtl8185_linux_26.1027.0823.2007/rtl8185/r8180_core.c:1766: warning: cast to pointer from integer of different size
/tmp/rtl8185_linux_26.1027.0823.2007/rtl8185/r8180_core.c:1767: warning: cast to pointer from integer of different size
/tmp/rtl8185_linux_26.1027.0823.2007/rtl8185/r8180_core.c:1767: warning: cast from pointer to integer of different size
/tmp/rtl8185_linux_26.1027.0823.2007/rtl8185/r8180_core.c: In function ‘rtl8180_init’:
/tmp/rtl8185_linux_26.1027.0823.2007/rtl8185/r8180_core.c:3159: warning: assignment from incompatible pointer type
/tmp/rtl8185_linux_26.1027.0823.2007/rtl8185/r8180_core.c:3522: error: ‘SA_SHIRQ’ undeclared (first use in this function)
/tmp/rtl8185_linux_26.1027.0823.2007/rtl8185/r8180_core.c:3522: warning: passing argument 2 of ‘request_irq’ from incompatible pointer type
/tmp/rtl8185_linux_26.1027.0823.2007/rtl8185/r8180_core.c: In function ‘rtl8180_pci_probe’:
/tmp/rtl8185_linux_26.1027.0823.2007/rtl8185/r8180_core.c:4213: error: implicit declaration of function ‘SET_MODULE_OWNER’
make[4]: *** [/tmp/rtl8185_linux_26.1027.0823.2007/rtl8185/r8180_core.o] Error 1
make[3]: *** [_module_/tmp/rtl8185_linux_26.1027.0823.2007/rtl8185] Error 2
make[2]: *** [sub-make] Error 2
make[1]: *** [all] Error 2
make[1]: Leaving directory `/usr/src/linux-2.6.27.7-9-obj/i386/pae'
make: *** [modules] Error 2


I hope I find a solution because I don’t know what else to do.

Thanks…

Good luck on debugging/patching such an old driver (which is known to give even more problems) for a recent kernel.

Weak signal strength is a known problem for all Realtek drivers, you could try “compat-wireless”-packages (compat-wireless-kmp-<your kernel type>, use “uname -r” to find out).

Webpin

At least for rtl8187(B) compat-wireless improved things dramatically.

Thanks for the reply :slight_smile:

I’ll try your suggestion and post the results

It seems that there is no solution for my problem using this chipset and opensuse 11.1.

I tried all and nothing. I am giving up. I think I will buy another wireless card but this time I will avoid using any card that uses RTL chips.

Thanks.

PS: I will burn and destroy this card. >:(

castord wrote:
> It seems that there is no solution for my problem using this chipset and
> opensuse 11.1.
>
> I tried all and nothing. I am giving up. I think I will buy another
> wireless card but this time I will avoid using any card that uses RTL
> chips.
>
> Thanks.
>
> PS: I will burn and destroy this card. >:(

If you really want to get rid of the card, I would be interested in having it to
see if the driver can be improved. I would pay the postage. If you are
agreeable, please send me a PM with your E-mail address.