| Linux - Wireless Networking This forum is for the discussion of wireless networking in Linux. |
| Notices |
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
 |
GNU/Linux Basic Guide
This 255-page guide will provide you with the keys to understand the philosophy of free software, teach you how to use and handle it, and give you the tools required to move easily in the world of GNU/Linux. Many users and administrators will be taking their first steps with this GNU/Linux Basic guide and it will show you how to approach and solve the problems you encounter.
Click Here to receive this Complete Guide absolutely free. |
|
 |
02-07-2007, 04:23 PM
|
#1
|
|
Senior Member
Registered: Jul 2005
Distribution: Slackware
Posts: 1,163
Rep:
|
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 0.9.2.1. 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 2.6.19.2 and reviewed the menuconfig to make sure everything is ok.
This is the output from make when trying madwifi-0.9.2.1
Code:
In file included from include/asm/pci.h:6,
from include/linux/pci.h:736,
from /usr/local/src/madwifi-0.9.2.1/ath/if_ath_pci.h:43,
from /usr/local/src/madwifi-0.9.2.1/ath/if_ath.c:84:
include/linux/mm.h:658:1: "offset_in_page" redefined
In file included from /usr/local/src/madwifi-0.9.2.1/ath/../net80211/if_media.h:44,
from /usr/local/src/madwifi-0.9.2.1/ath/if_ath.c:64:
/usr/local/src/madwifi-0.9.2.1/ath/../net80211/ieee80211_linux.h:427:1: this is the location of the previous definition
/usr/local/src/madwifi-0.9.2.1/ath/if_ath.c:415:60: macro "INIT_WORK" passed 3 arguments, but takes just 2
/usr/local/src/madwifi-0.9.2.1/ath/if_ath.c: In function `ath_attach':
/usr/local/src/madwifi-0.9.2.1/ath/if_ath.c:415: error: `INIT_WORK' undeclared (first use in this function)
/usr/local/src/madwifi-0.9.2.1/ath/if_ath.c:415: error: (Each undeclared identifier is reported only once
/usr/local/src/madwifi-0.9.2.1/ath/if_ath.c:415: error: for each function it appears in.)
/usr/local/src/madwifi-0.9.2.1/ath/if_ath.c: At top level:
/usr/local/src/madwifi-0.9.2.1/ath/if_ath.c:1705: warning: 'ath_radar_task' defined but not used
make[3]: *** [/usr/local/src/madwifi-0.9.2.1/ath/if_ath.o] Error 1
make[2]: *** [/usr/local/src/madwifi-0.9.2.1/ath] Error 2
make[1]: *** [_module_/usr/local/src/madwifi-0.9.2.1] Error 2
make: *** [modules] Error 2
And this is make from madwifi-old-r1417-20060128 that has worked until now
Code:
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; \
done
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
.h:820)
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.
|
|
|
|
02-07-2007, 05:36 PM
|
#2
|
|
Senior Member
Registered: Nov 2006
Distribution: Debian Squeeze 2.6.32.9 SMP AMD64
Posts: 3,160
Rep: 
|
"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.
|
|
|
|
02-19-2007, 05:22 PM
|
#3
|
|
Guru
Registered: Jul 2003
Location: VA
Distribution: Slack 10.1
Posts: 2,194
Rep:
|
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.
|
|
|
|
03-04-2007, 05:17 AM
|
#4
|
|
LQ Newbie
Registered: Jan 2007
Distribution: Arch x86_64
Posts: 26
Rep:
|
SVN does work, just make && make install as usual 
|
|
|
|
03-13-2007, 07:08 PM
|
#5
|
|
Senior Member
Registered: Jul 2005
Distribution: Slackware
Posts: 1,163
Original Poster
Rep:
|
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 |
|
|
|
Posting Rules
|
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is Off
|
|
|
All times are GMT -5. The time now is 01:31 AM.
|
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|