Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 182795 - net-wireless/madwifi-ng(-tools) snapshot version with new HAL
Summary: net-wireless/madwifi-ng(-tools) snapshot version with new HAL
Status: RESOLVED WONTFIX
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: All Linux
: High enhancement
Assignee: Steev Klimaszewski (RETIRED)
URL: http://snapshots.madwifi.org/madwifi-...
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2007-06-21 15:37 UTC by Davide Pesavento (RETIRED)
Modified: 2008-01-23 03:56 UTC (History)
2 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
madwifi-ng-0.9.30.13_pre20070512.ebuild (madwifi-ng-0.9.30.13_pre20070512.ebuild,2.72 KB, text/plain)
2007-06-21 15:39 UTC, Davide Pesavento (RETIRED)
Details
madwifi-ng-tools-0.9.30.13_pre20070512.ebuild (madwifi-ng-tools-0.9.30.13_pre20070512.ebuild,1.84 KB, text/plain)
2007-06-21 15:40 UTC, Davide Pesavento (RETIRED)
Details
Patch for 2.6.22 kernels (madwifi-r2323-2.6.22.patch,3.25 KB, patch)
2007-06-27 15:44 UTC, Davide Pesavento (RETIRED)
Details | Diff
adm64 patch (madwifi-r2323-2.6.22-amd64.patch,1.28 KB, text/plain)
2007-06-29 21:50 UTC, Patrick McLean
Details
madwifi-r2323-2.6.22.patch (madwifi.patch,846 bytes, patch)
2007-07-16 15:43 UTC, Davide Pesavento (RETIRED)
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Davide Pesavento (RETIRED) gentoo-dev 2007-06-21 15:37:40 UTC
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.
Comment 1 Davide Pesavento (RETIRED) gentoo-dev 2007-06-21 15:39:00 UTC
Created attachment 122700 [details]
madwifi-ng-0.9.30.13_pre20070512.ebuild
Comment 2 Davide Pesavento (RETIRED) gentoo-dev 2007-06-21 15:40:11 UTC
Created attachment 122701 [details]
madwifi-ng-tools-0.9.30.13_pre20070512.ebuild
Comment 3 Davide Pesavento (RETIRED) gentoo-dev 2007-06-27 15:44:59 UTC
Created attachment 123205 [details, diff]
Patch for 2.6.22 kernels
Comment 4 Steev Klimaszewski (RETIRED) gentoo-dev 2007-06-27 17:33:25 UTC
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.
Comment 5 Davide Pesavento (RETIRED) gentoo-dev 2007-06-28 16:08:10 UTC
Uhm... previous patch doesn't work with 2.6.22_rc6... I get a couple of compile errors at net80211/ieee80211_input.c
Comment 6 Steev Klimaszewski (RETIRED) gentoo-dev 2007-06-28 16:15:19 UTC
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.
Comment 7 Patrick McLean gentoo-dev 2007-06-29 21:50:19 UTC
Created attachment 123422 [details]
adm64 patch

Here's a dirty patch that makes it work on amd64.
Comment 8 Davide Pesavento (RETIRED) gentoo-dev 2007-07-16 15:43:08 UTC
Created attachment 125041 [details, diff]
madwifi-r2323-2.6.22.patch

Proper patch to fix compilation with 2.6.22 kernels.
Comment 9 Davide Pesavento (RETIRED) gentoo-dev 2007-07-17 11:27:38 UTC
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...
Comment 10 Steev Klimaszewski (RETIRED) gentoo-dev 2008-01-23 03:56:40 UTC
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.