Package Details: rt5592sta_linux_patched-dkms

Git Clone URL: (read-only, click to copy)
Package Base: rt5592sta_linux_patched-dkms
Description: DKMS module which contains linux device driver for the Ralink RT2860 ABGN WLAN Card. It's based on halou89's rt5592sta_linux_patched package.
Upstream URL:
Licenses: GPL
Conflicts: rt5592sta_linux,, rt5592sta_linux_patched,, rt5592sta_linux_patched-dkms
Submitter: tomsik68
Maintainer: tomsik68
Last Packager: tomsik68
Votes: 3
Popularity: 0.000000
First Submitted: 2014-10-11 20:28
Last Updated: 2016-08-19 12:00

Latest Comments

awonnacott commented on 2019-07-26 18:59

I patched the GitHub repo below and got it to work with kernel >= 5 (since that repo already has fixes for kernel 4.15 timer changes), and my patch was approved. I would recommend anyone else trying to set up the rt5592sta driver use that repo instead of this package until further notice.

awonnacott commented on 2019-07-26 17:17

I am unable to install this package. Is anyone still maintaining this package?

First issue: parsing PKGBUILD

==> ERROR: conflicts contains invalid characters: ','

Easy to fix - remove the commas from the array on line 23 of the PKGBUILD

Second issue: during package install

make -j8 KERNELRELEASE=5.2.2-arch1-1-ARCH && cp os/linux/rt5592sta.ko ./rt5592sta.ko......(bad exit status: 2)
Error! Bad return status for module build on kernel: 5.2.2-arch1-1-ARCH (x86_64)
Consult /var/lib/dkms/rt5592sta_linux_patched-dkms/ for more information.

The relevant error is:

/var/lib/dkms/rt5592sta_linux_patched-dkms/ In function ‘rt28xx_sta_ioctl’:
/var/lib/dkms/rt5592sta_linux_patched-dkms/ error: macro "access_ok" passed 3 arguments, but takes just 2
 2584 |     if ( access_ok(VERIFY_WRITE, wrqin->, sizeof(privtab)) != TRUE)
      |                                                                        ^
./arch/x86/include/asm/uaccess.h:91: note: macro "access_ok" defined here
   91 | #define access_ok(addr, size)     \
/var/lib/dkms/rt5592sta_linux_patched-dkms/ note: each undeclared identifier is reported only once for each function it appears in
/var/lib/dkms/rt5592sta_linux_patched-dkms/ error: macro "access_ok" passed 3 arguments, but takes just 2
 2597 |    if(access_ok(VERIFY_READ, wrqin->, wrqin-> != TRUE)
      |                                                                         ^
./arch/x86/include/asm/uaccess.h:91: note: macro "access_ok" defined here
   91 | #define access_ok(addr, size)     \

There is a simple fix to remove the first parameter from ACCESS_OK (see this zfs issue). But we have additional errors:

/var/lib/dkms/rt5592sta_linux_patched-dkms/ In function ‘__RTMP_OS_Init_Timer’:
/var/lib/dkms/rt5592sta_linux_patched-dkms/ error: implicit declaration of function ‘init_timer’; did you mean ‘init_timers’? [-Werror=implicit-function-declaration]
  122 |   init_timer(pTimer);
      |   ^~~~~~~~~~
      |   init_timers
/var/lib/dkms/rt5592sta_linux_patched-dkms/ error: ‘OS_NDIS_MINIPORT_TIMER’ {aka ‘struct timer_list’} has no member named ‘data’
  123 |   pTimer->data = (unsigned long)data;
      |         ^~
/var/lib/dkms/rt5592sta_linux_patched-dkms/ error: assignment to ‘void (*)(struct timer_list *)’ from incompatible pointer type ‘TIMER_FUNCTION’ {aka ‘void (*)(long unsigned int)’} [-Werror=incompatible-pointer-types]
  124 |   pTimer->function = function;
      |                    ^

It looks like the timer interface changed in kernel 4.15 and there are some similar fixes here n another realtek driver.

Looks like another repo with this driver has some fixes for these issues too.

iikirilov commented on 2018-02-28 00:36

@tomsik68 even tried downgrading to 4.7.1-1-ARCH but still cannot install

tomsik68 commented on 2016-08-19 12:01

@Bmueller thanks for notifying me. I was able to come up with a patch to fix the building issue. I also tested the driver under kernel 4.7.1-1-ARCH with my PCI card and it seems to work fine again.

Bmueller commented on 2016-08-16 16:31

Package fails to build on last few kernels- currently trying to install on 4.7.0-1-ARCH (x86_64) and getting "DBGPRINT(RT_DEBUG_ERROR, ("AES_Key_Wrap: allocate %d bytes memory failure.\n", sizeof(UINT8)*PlainTextLength));" followed by several other error messages, all seeming to pertain to memory allocation failure of some sort. Error log posted here -->(, anyone have any idea what's going on?

tomsik68 commented on 2015-05-14 05:16

Changelog for pkgrel 3:
+ Split up depends array without using IF to check for architecture

tomsik68 commented on 2015-03-01 06:06

Changelog for package release 2:
+ Added compatibility with 32-bit systems
+ Fixed bug where a file required by driver wasn't installed