Since 5 August, WPA branch of madwifi driver has been merged into HEAD. WPA branch is needed for wpa_supplicant (which is still not in portage, see bug 52854). Read official announcement here: http://article.gmane.org/gmane.linux.drivers.madwifi.user/3774 The last ebuild in portage for madwifi-driver is 20040726 which still doesn't have WPA support on it. Please find attached ebuild and cvs-snapshot of madwifi-driver with WPA support. A modified ebuild for wpa_supplicant with madwifi support (using this newer version) is in bug 52854.
Created attachment 36986 [details] cvs snapshot of madwifi-driver as 20040808
Created attachment 36987 [details] ebuild for the 20040808 snapshot of madwifi-driver
Created attachment 37045 [details] ebuild for the 20040808 snapshot of madwifi-driver This ebuild also builds and installs madwifi tools (athstats, athctrl...)
Created attachment 37742 [details] modified to detect and build against linux 2.6.8 this version of the ebuild checks for linux 2.6.8 and patches the madwifi sources to build against 2.6.8
Created attachment 37744 [details, diff] this is the patch to go in the FILESDIR /usr/local/portage/net-wireless/madwifi-driver/files/linux-2.6.8.patch
Please try todays snapshot. emerge '=net-wireless/sys-madwifi-driver-0.1_pre20040824' It's pulled directly from the WPA branch now.
madwifi-driver-0.1_pre20040824.ebuild doesn't compile against gentoo-dev-source-2.6.8-r2. you mentioned madwifi-driver-sys: typo or is my portage not current? /var/tmp/portage/madwifi-driver-0.1_pre20040824/work/net80211/ieee80211_linux.c: In function `ieee80211_sysctl_debug': /var/tmp/portage/madwifi-driver-0.1_pre20040824/work/net80211/ieee80211_linux.c:369: error: too few arguments to function `proc_dointvec' /var/tmp/portage/madwifi-driver-0.1_pre20040824/work/net80211/ieee80211_linux.c:374: error: too few arguments to function `proc_dointvec'
Ya the upgrade from 2.6.7 to 2.6.8 went rather badly for my box. I will beat on it some more tonight with solar.
New madwifi-driver with support for 2.6.8 net-wireless/madwifi-driver-0.1_pre20040824-r1
madwifi-driver-0.1_pre20040824-r1 doesn't compile against 2.6.8.1-mm4: /var/tmp/portage/madwifi-driver-0.1_pre20040824-r1/work/net80211/ieee80211_wireless.c: In function `ieee80211_ioctl_iwsetup': /var/tmp/portage/madwifi-driver-0.1_pre20040824-r1/work/net80211/ieee80211_wireless.c:2092: error: assignment of read-only member `num_private_args'
Try the attached diff. To patch you ebuild. Download the ebuild diff. cd /usr/portage/net-wireless patch -p0 < /path/to/diff ebuild /usr/portage/net-wireless/madwifi-driver/madwifi-driver-0.1_pre20040824-r1 fetch ebuild /usr/portage/net-wireless/madwifi-driver/madwifi-driver-0.1_pre20040824-r1 digest ACCEPT_KEYWORD="~x86" emerge madwifi-driver If this patch works for mm-sources let us know please.
Created attachment 38763 [details, diff] madwifi-driver-0.1_pre20040824-r1 ebuild patch
Comment on attachment 38763 [details, diff] madwifi-driver-0.1_pre20040824-r1 ebuild patch for the mm-sources
Re comment #10 please confirm comment #11 && comment #12
Confirmed. Compiles cleanly and seems to work.
Created attachment 39051 [details, diff] madwifi-driver-0.1_pre20040824-r2.ebuild Hi, somehow got the ''tools (athstats...) building section'' lost between Comment #3 an the actual version :) I think the tools are a helpful thing and we should install them with the driver. kai
Re: comment #3 and comment #16 the file athctrl or a source file does not appear to exist. I'd also rather make a separate madwifi-tools-YYYYMMDD.ebuild for the tool building of these tools. For the driver.. Give us a few to do some testing on HEAD to see what's been updated. Hopefully we wont have to do any patching.
I see why it does not exist now. athcrtl is not in the WPA brach. It is however in HEAD http://cvs.sourceforge.net/viewcvs.py/madwifi/madwifi/tools/ Update coming shortly however.
madwifi-driver-0.1_pre20040906 and madwifi-tools-0.1_pre20040906 are both in the tree now. This should work for everybody. emerge rsync ACCEPT_KEYWORDS=~x86 emerge madwifi-driver madwifi-tools Please test and CLOSE appropriate bugs if this solves the problem anybody was having.
madwifi-driver-0.1_pre20040906 again won't compile against 2.6.8.1: /var/tmp/portage/madwifi-driver-0.1_pre20040906/work/net80211/ieee80211_wireless.c: In function `ieee80211_ioctl_iwsetup': /var/tmp/portage/madwifi-driver-0.1_pre20040906/work/net80211/ieee80211_wireless.c:2180: error: assignment of read-only member `num_private_args'
Re comment #20 Are you using the -mm stuff?
Yes I am - sorry I forgot to mention that.
Solar: madwifi-driver pre20040906 doesn't build for me with kernel 2.6.9-rc2-mm1 I think the patch posted in comment #12 is outdated. Will keep on messing with this and post if I have any success...
From: Ned Ludd <solar@gentoo.org> To: Chris Saunders <csaunders@cogeco.net> Subject: Re: madwifi-driver ebuilds 2.6.9 kernel Date: Tue, 21 Sep 2004 11:47:08 -0400 On Tue, 2004-09-21 at 05:40, Chris Saunders wrote: > Good day gentlemen, > > I've been having some strange problems with madwifi-driver packages with > kernels linux-2.6.9-rc2-mm1 and linux-2.6.8-gentoo-r3. The ebuilds > don't compile at all under 2.6.9, and the modules won't load without an > oops under the 2.6.8. Where can I look for help on this one? I have no > problems running through docs, or digging into code (although I am > definitely not a programmer) - I'm just not sure where to look! With 2.6.8 the -mm series does not behave as the normal 2.6.8 it reverts or incorrectly assumes a field is read-only when it should not be. This section that it claims is a read-only variable seems to be incorrect. We have made an attempt to make the madwifi-driver work for most cases. But it's a pretty safe assumption to say that -mm is not supported or won't be by us. -mm is a highly experimental kernel series which more or less is a testing ground for scheduler of the week and stuff like reiser4 (It's not production ready) Now. You assertion of saying you get segfaults with a -gentoo kernel baffles me. This should not be the case unless somebody on our kernel team is adding experimental patchsets to it (which they should not!). When we chased down all the patches needed to make madwifi-driver multi ssid & 2.6.x aware it was tested with gentoo's own kernel series and it worked as expected. If however it fails with what's going to be 2.6.9 you might want to send a heads up to the madwifi author (UPSTREAM) as we Gentoo are only the integrators vs the designers of it. Note: If you want a working madwifi please consider regressing your kernel versions or spend a little time on the madwifi mailing list hunting for patchsets. Best of luck to you. > > Any suggestions? > > Thank you for your help, > > Chris
I managed to compile it just by using the gentoo patch and commenting the function ieee80211_ioctl_iwsetup() in net80211/ieee80211_wireless.c It works fine but WPA suport is br0ken :(
New patch from Volker Gropp in madwifi-devel to make madwifi compile with -mm kernels. Only works with CVS versions >= 040927 which have the changes done by Sam Leffler to deal with the sysctl handler api change in new kernel versions. You can find the patch at http://users.informatik.haw-hamburg.de/~gropp_v/madwifi-2.6.8-mm_and_later-040927.patch.bz2
net-wireless/madwifi-driver-0.1_pre20040906 failed with development-sources-2.6.9_rc4 CC [M] /var/tmp/portage/madwifi-driver-0.1_pre20040906/work/net80211/ieee80211_dot1x.o /var/tmp/portage/madwifi-driver-0.1_pre20040906/work/net80211/ieee80211_dot1x.c: In function `eapol_input': /var/tmp/portage/madwifi-driver-0.1_pre20040906/work/net80211/ieee80211_dot1x.c:289: error: union has no member named `ethernet' /var/tmp/portage/madwifi-driver-0.1_pre20040906/work/net80211/ieee80211_dot1x.c:294: error: union has no member named `ethernet' /var/tmp/portage/madwifi-driver-0.1_pre20040906/work/net80211/ieee80211_dot1x.c:296: error: union has no member named `ethernet' make[3]: *** [/var/tmp/portage/madwifi-driver-0.1_pre20040906/work/net80211/ieee80211_dot1x.o] Error 1 make[2]: *** [_module_/var/tmp/portage/madwifi-driver-0.1_pre20040906/work/net80211] Error 2 make[2]: Leaving directory `/usr/src/linux-2.6.9-rc4' make[1]: *** [all] Error 2 make[1]: Leaving directory `/var/tmp/portage/madwifi-driver-0.1_pre20040906/work/net80211' make: *** [all] Error 1
The problem in my previous comment is fixed in the madwifi CVS (17-10-2004).
A new 20041019 snapshot of madwifi-driver / madwifi-tools is in the tree. Please test with the following kernels. linux-2.4.27 linux-2.6.7 linux-2.6.9
madwifi-driver-0.1_pre20041019 works for me on linux 2.6.9 with gcc 3.4.2-r2
Can this bug be closed as FIXED?
horton, solar: what is the status of this bug report?
I am closing this one. It was fixed in our last ebuild.