drc-mac80211 fails to compile

302 views
Skip to first unread message

Alex Roman Nuñez

unread,
Jan 6, 2015, 12:13:04 PM1/6/15
to libdrc...@googlegroups.com
Hi there, i'm trying to get libdrc working on my system, but I can't seem to compile mac80211, this is what I do:

make -C /usr/src/linux-headers-`uname -r`  M=`pwd`  modules

And this is what I get:

make: Entering directory '/usr/src/linux-headers-3.16.0-28-generic'
  CC
[M]  /home/eirexe/drc-mac80211/main.o
In file included from /home/eirexe/drc-mac80211/main.c:29:0:
/home/eirexe/drc-mac80211/driver-ops.h: In function drv_set_multicast_list’:
/home/eirexe/drc-mac80211/driver-ops.h:255:16: error: const struct ieee80211_ops has no member named set_multicast_list
 
if (local->ops->set_multicast_list)
               
^
/home/eirexe/drc-mac80211/driver-ops.h:256:13: error: const struct ieee80211_ops has no member named set_multicast_list
   
local->ops->set_multicast_list(&local->hw, &sdata->vif,
             
^
/home/eirexe/drc-mac80211/driver-ops.h: In function drv_flush’:
/home/eirexe/drc-mac80211/driver-ops.h:731:33: warning: passing argument 2 of local->ops->flush makes pointer from integer without a cast
   
local->ops->flush(&local->hw, queues, drop);
                                 
^
/home/eirexe/drc-mac80211/driver-ops.h:731:33: note: expected struct ieee80211_vif *’ but argument is of type u32
/home/eirexe/drc-mac80211/driver-ops.h:731:3: error: too few arguments to function local->ops->flush
   
local->ops->flush(&local->hw, queues, drop);
   
^
scripts
/Makefile.build:257: recipe for target '/home/eirexe/drc-mac80211/main.o' failed
make
[1]: *** [/home/eirexe/drc-mac80211/main.o] Error 1
Makefile:1345: recipe for target '_module_/home/eirexe/drc-mac80211' failed
make
: *** [_module_/home/eirexe/drc-mac80211] Error 2
make
: Leaving directory '/usr/src/linux-headers-3.16.0-28-generic'

Is there any way I can fix this issue?

Alex Roman Nuñez

unread,
Jan 6, 2015, 12:15:14 PM1/6/15
to libdrc...@googlegroups.com
Almost forgot, my kernel version is:

3.16.0-28-generic

I'm on ubuntu 14 64 bits.

Timothée COCAULT

unread,
Jan 13, 2015, 5:46:06 PM1/13/15
to libdrc...@googlegroups.com
Hi Alex,

you should get the sources of your kernel and apply the patch to add the TSF file.

apt-get source --only-source linux
cd linux
-3.16.0/net/mac80211
wget
-O tsf.patch "https://bitbucket.org/memahaxx/drc-mac80211/commits/4a9823cf2a6733bc15a05cffaebd8850d07451a7/raw/"
patch
-p1 < tsf.patch
make
-C /usr/src/linux-headers-`uname -r`  M=`pwd`  modules


Alex Roman Nuñez

unread,
Jan 15, 2015, 9:42:00 AM1/15/15
to libdrc...@googlegroups.com
Hello there thanks for your help, I got the driver working, but now I have the problem that when I use the wpa_supplicant and type in my BSSID and PIN I either get <3>WPS-TIMEOUT Requested operation timed out
or <4>Failed to initiate AP scan, any idea on what can cause this?

Maxime Le Martret

unread,
Jun 29, 2015, 8:00:09 AM6/29/15
to libdrc...@googlegroups.com
Hi Alex,

I'm stuck at the same point, have you found a solution at your problem ?

Dídac Rodríguez

unread,
Jun 14, 2016, 5:57:27 AM6/14/16
to libdrc users
Where I supose must apply the patch? To the kernel files or the drc-mac80211 files? I'm using a raspberry pi2 with kernel 4.4.0-1-rpi2 to compile the files but I've only have the header files. I supose I need the kernel source. Do you know where I can find them? I'm trying to get them but I cannot find them anyway..

Trevor Rudolph

unread,
Nov 17, 2016, 11:29:44 AM11/17/16
to libdrc users
I believe the headers are different in the net part of the kernel. I have only had success compiling on 3.13.0-29-generic (I'm sure any 3.13 rev would be fine). I have tried compiling on 4.4.0, 4.2.0 and 3.19 as well with no luck. So see if you can find an armhf (I think that's the right rpi3 arch) kernel version 3.13 with source and headers (generic). 
Reply all
Reply to author
Forward
0 new messages