Error building RT2860 WLAN driver in kernel 2.6.18-128.2.1.4

Live forum: http://rt2x00.serialmonkey.com/viewtopic.php?t=6126

howellma

05-03-2011 19:32:57

Hello,

I installed Oracle VM Server v2.2.1 (kernel 2.6.18-128.2.1.4.25.el5.i686) on a Dell PowerEdge T110 and am trying to build the RT2860 WLAN driver from source (2010_07_16_RT2860_Linux_STA_v2.4.0.0). I installed package kernel-ovs-devel-2.6.18-128.2.1.4.25.el5.i686 and when I run make I get the following compile error

error expected identifier or '(' before 'void'

The offending snippet of code, from a header file, is

typedef VOID (*STATE_MACHINE_FUNC)(VOID *Adaptor, MLME_QUEUE_ELEM *Elem);

typedef struct _STATE_MACHINE {
ULONG Base;
ULONG NrState;
ULONG NrMsg;
ULONG CurrState;
STATE_MACHINE_FUNC *TransFunc;
} STATE_MACHINE, *PSTATE_MACHINE;

The odd thing is, I'm able to build the source when I replace kernel-ovs-devel-2.6.18-128.2.1.4.25.el5.i686 with kernel-devel-2.6.18-128.2.1.4.25.el5.i686 or with kernel-xen-devel-2.6.18-128.2.1.el5.i686 but then, of course, I get an "Invalid module format" error when I try to install the module (/sbin/insmod rt2860sta.ko).

The issue is probably very simple to solve, but I'm not much of a C programmer so it's not clear to me why the compiler is choking on the snippet above.

Thanks in advance for any advice,
Matt

IvD

06-03-2011 09:10:23

We don't support drivers which are not relaesed/maintained by this project