net-wireless/madwifi-ng ebuilds in portage don't support recent Atheros hardware (for example the WiFi card found in Apple MacBook Pro laptops). A new HAL version (0.9.30.13) which supports the new hardware has been released more than a couple of months ago and later has been merged into madwifi-trunk. That version of HAL is needed to be able to use MacBook Pro's WiFi card with WEP/WPA. Starting from madwifi-ng-0.9.3.1 ebuild as a base, I created madwifi-ng-0.9.30.13_pre20070512.ebuild and madwifi-ng-tools-0.9.30.13_pre20070512.ebuild which install a snapshot (this is NOT a live svn ebuild) version of madwifi-ng drivers and tools. A few notes: 1) The version number has been changed to match HAL version number. Maybe using 0.9.4_pre20070512 would be better? I think so, but I don't know upstream release plans... 2) SVN revision of the snapshot tarball is r2323. This is not the last snapshot available, but I found that r2323 is the last revision working (at least on my machine). Later revisions (even svn-trunk checkouts) don't work here (see http://madwifi.org/ticket/1354). 3) I commented out the patch to make madwifi drivers build with 2.6.22 kernels: that patch doesn't apply cleanly and probably just needs to be re-diffied. 4) Dropped ppc keyword because I don't have such hardware; tested a lot on amd64 (it works fine); should work on x86, too. 5) RESTRICT="mirror" should be removed when (and if) these ebuilds are committed to the portage tree.
Created attachment 122700 [details] madwifi-ng-0.9.30.13_pre20070512.ebuild
Created attachment 122701 [details] madwifi-ng-tools-0.9.30.13_pre20070512.ebuild
Created attachment 123205 [details, diff] Patch for 2.6.22 kernels
I am still debating this - I do realize the usefulness of having this snapshot in, but I am hesitant to add a snapshot to portage. I am still thinking about it - will test here as well to make sure it works with my x86, and also at home on my ppc - if it works fine, then I may add it, might not be till next week before I get the chance to do that though. Keep up the good work though.
Uhm... previous patch doesn't work with 2.6.22_rc6... I get a couple of compile errors at net80211/ieee80211_input.c
Okay tested on x86 - seems to be fine. Doesn't compile on ppc however. Could be related to the 2.6.22 patch, I haven't looked into it though just attempted to get it to compile.
Created attachment 123422 [details] adm64 patch Here's a dirty patch that makes it work on amd64.
Created attachment 125041 [details, diff] madwifi-r2323-2.6.22.patch Proper patch to fix compilation with 2.6.22 kernels.
Yesterday I had a kernel panic (a "killing interrupt handler" one) while trying to connect to a WPA2-PSK wifi network. I was on amd64 with a 2.6.22-hrt6 kernel (powersave-sources from drizzt-overlay) and using madwifi-ng-0.9.30.13_pre20070512 + my last patch. I don't know if the panic was caused by my patch, but more probably it is a bug in the driver itself or bad interaction between the driver and the new kernel... Never happened on 2.6.21...
I am going to close this bug - Feel free to continue working on it in Sunrise, or similar, but I want to follow upstream as closely as possible.