Go Job Hunting at the LQ Job Marketplace
Go Back > Forums > Linux Forums > Linux - Networking > Linux - Wireless Networking
User Name
Linux - Wireless Networking This forum is for the discussion of wireless networking in Linux.


  Search this Thread
Old 02-07-2007, 05:23 PM   #1
Senior Member
Registered: Jul 2005
Distribution: Slackware
Posts: 1,173

Rep: Reputation: 47
Building the madwifi driver with kernel 2.6.20

I've had my Netgear WG511U (AR5212) since the days of kernel 2.6.17. I've been using the madwifi-old driver, latest being r1417, because I've never been able to compile the other. I've tried 0.9.1, 0.9.2 and now I've double and triple checked the required kernel options with my config and everything checks. Now, with kernel 2.6.20, I can't build either. When configuring my kernel I imported the config from my previous and reviewed the menuconfig to make sure everything is ok.

This is the output from make when trying madwifi-
In file included from include/asm/pci.h:6,
                 from include/linux/pci.h:736,
                 from /usr/local/src/madwifi-,
                 from /usr/local/src/madwifi-
include/linux/mm.h:658:1: "offset_in_page" redefined
In file included from /usr/local/src/madwifi-,
                 from /usr/local/src/madwifi-
/usr/local/src/madwifi- this is the location of the previous definition
/usr/local/src/madwifi- macro "INIT_WORK" passed 3 arguments, but takes just 2
/usr/local/src/madwifi- In function `ath_attach':
/usr/local/src/madwifi- error: `INIT_WORK' undeclared (first use in this function)
/usr/local/src/madwifi- error: (Each undeclared identifier is reported only once
/usr/local/src/madwifi- error: for each function it appears in.)
/usr/local/src/madwifi- At top level:
/usr/local/src/madwifi- warning: 'ath_radar_task' defined but not used
make[3]: *** [/usr/local/src/madwifi-] Error 1
make[2]: *** [/usr/local/src/madwifi-] Error 2
make[1]: *** [_module_/usr/local/src/madwifi-] Error 2
make: *** [modules] Error 2
And this is make from madwifi-old-r1417-20060128 that has worked until now
Checking if all requirements are met... ok.
mkdir -p ./symbols
for i in ./ath_hal ./net80211 ath_rate/sample ./ath; do \
                make -C $i || exit 1; \
make[1]: Entering directory `/usr/local/src/madwifi-old-r1417-20060128/ath_hal'
make -C /usr/src/linux-2.6.20 SUBDIRS=/usr/local/src/madwifi-old-r1417-20060128/ath_hal MODVERDIR=/usr/local/src/madwifi-old-r1417-20060128/ath_hal/../symbols modules
make[2]: Entering directory `/usr/src/linux-2.6.20'
  Building modules, stage 2.
  MODPOST 1 modules
make[2]: Leaving directory `/usr/src/linux-2.6.20'
make[1]: Leaving directory `/usr/local/src/madwifi-old-r1417-20060128/ath_hal'
make[1]: Entering directory `/usr/local/src/madwifi-old-r1417-20060128/net80211'
make -C /usr/src/linux-2.6.20 SUBDIRS=/usr/local/src/madwifi-old-r1417-20060128/net80211 MODVERDIR=/usr/local/src/madwifi-old-r1417-20060128/net80211/../symbols  modules
make[2]: Entering directory `/usr/src/linux-2.6.20'
  CC [M]  /usr/local/src/madwifi-old-r1417-20060128/net80211/ieee80211_crypto_ccmp.o
In file included from include/asm/system.h:4,                 from include/asm/processor.h:18,
                 from include/asm/thread_info.h:16,
                 from include/linux/thread_info.h:21,
                 from include/linux/preempt.h:9,
                 from include/linux/spinlock.h:49,
                 from include/linux/module.h:9,
                 from /usr/local/src/madwifi-old-r1417-20060128/net80211/ieee80211_crypto_ccmp.c:41:
include/linux/kernel.h:41:1: warning: "roundup" redefined
In file included from <command line>:9:
/usr/local/src/madwifi-old-r1417-20060128/net80211/../include/compat.h:46:1: warning: this is the location of the previous definition
/usr/local/src/madwifi-old-r1417-20060128/net80211/ieee80211_crypto_ccmp.c: In function `rijndael_encrypt':
/usr/local/src/madwifi-old-r1417-20060128/net80211/ieee80211_crypto_ccmp.c:290: error: invalid use of undefined type `struct page'
/usr/local/src/madwifi-old-r1417-20060128/net80211/ieee80211_crypto_ccmp.c:294: error: invalid use of undefined type `struct page'
/usr/local/src/madwifi-old-r1417-20060128/net80211/ieee80211_crypto_ccmp.c:297: warning: `crypto_cipher_encrypt' is deprecated (declared at include/linux/crypto
make[3]: *** [/usr/local/src/madwifi-old-r1417-20060128/net80211/ieee80211_crypto_ccmp.o] Error 1
make[2]: *** [_module_/usr/local/src/madwifi-old-r1417-20060128/net80211] Error 2
make[2]: Leaving directory `/usr/src/linux-2.6.20'
make[1]: *** [all] Error 2
make[1]: Leaving directory `/usr/local/src/madwifi-old-r1417-20060128/net80211'
make: *** [all] Error 1
Any help is appreciated.
Old 02-07-2007, 06:36 PM   #2
Senior Member
Registered: Nov 2006
Distribution: Debian Squeeze SMP AMD64
Posts: 3,272

Rep: Reputation: 125Reputation: 125
"I've double and triple checked the required kernel options with my config and everything checks. Now, with kernel 2.6.20, I can't build either."

As I've posted in the past, they're changing the workqueue interface in 2.6.20, and at the very least, it breaks madwifi. I've read somewhere that there is or may be a porting effort going on, but I have no idea what the status is.
Old 02-19-2007, 06:22 PM   #3
LQ Guru
Registered: Jul 2003
Location: VA
Distribution: Slack 10.1
Posts: 2,194

Rep: Reputation: 46
Hey all. They say 0.9.3 should work when it comes, which should be any time now. I've tried the current svn as of a few minutes ago, it compiles fine but the module doesn't load. According to somebody on the mailing list it works if you compile it builtin as opposed to a module, but I haven't tried that.
Old 03-04-2007, 06:17 AM   #4
LQ Newbie
Registered: Jan 2007
Distribution: Arch x86_64
Posts: 26

Rep: Reputation: 15
SVN does work, just make && make install as usual
Old 03-13-2007, 08:08 PM   #5
Senior Member
Registered: Jul 2005
Distribution: Slackware
Posts: 1,173

Original Poster
Rep: Reputation: 47
Sorry for not replying sooner. I've been on spring break away from wireless access. Now I'm back and using my card with the SVN driver. Thanks for the tips.


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
madwifi driver link BROKEN...need driver usfhunk Linux - Networking 2 01-12-2006 12:22 PM
building driver disk for 2.6 kernel jputhuka Fedora 0 11-07-2005 01:32 PM
building madwifi, modprobe wlan rmakers Linux - Wireless Networking 7 05-07-2005 07:08 AM
Problem building madwifi on mdk 10.1 Elomis Linux - Software 2 01-15-2005 02:10 AM
madwifi driver darthczyz Linux - Wireless Networking 2 05-10-2004 03:59 PM

All times are GMT -5. The time now is 10:37 PM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration