Sorry for the double post if there is one. I never saw the first hit the list and I relized I had sent from the wrong account.
I would like to contribute an rpm that I built. The rpm is the latest snapshot of the madwifi driver which includes support for the Atheros AR5007EG. This is a popular card and is not supported currently under the ath5k module or the older madwifi driver.
I have attached the spec file and the link to the src.rpm is:
http://ddhj.homeip.net/madwifi/madwifi-hal-0.10.5.6-6.src.rpm
# #Gen the last kernel-devel available on the machine. %{!?kernel: %{expand: %%define kernel %(rpm -q kernel-devel --last | head -1 | awk '{print $1}' | sed s/kernel-devel-// )}} %if %(echo %{kernel} | grep -c smp) %{expand:%%define myksmp -smp} %endif #Define the latest kernel installed %define mykversion %(echo %{kernel} | sed -e s/smp// -) %define mykrelver %(echo %{mykversion} | tr -s '-' '_') #rpm -q kernel --last | head -1 | awk '{print $1}' | sed s/kernel-// | sed -e s/smp// - | tr -s '-' '_' # Define based on the tar ball extract. # Those two variable will be instanced during the tarball generation %define revision r4016 %define snapshot 20090429 # branch is not used yet. %define branch hal-0.10.5.6 Summary: A linux device driver for Atheros chipsets (ar5210, ar5211, ar5212). Name: madwifi-hal Version: 0.10.5.6 Release: 6 License: GPL2 Group: System Environment/Kernel URL: http://madwifi.org Source0: http://snapshots.madwifi-project.org/madwifi-hal-0.10.5.6/madwifi-hal-0.10.5... BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-%{revision}-%{snapshot} Requires: /sbin/depmod Requires: %{name}-module >= %{version} BuildRequires: /sbin/depmod BuildRequires: /lib/modules/%{mykversion}/build/Makefile
%description This software contains a Linux kernel driver for Atheros-based Wireless LAN devices. The driver supports station, AP, ad-hoc, and monitor modes of operation. The Atheros driver depends on a device-independent implementation of the 802.11 protocols that originated in the BSD community (NetBSD in particular). The driver functions as a normal network device and uses the Wireless Extensions API. As such normal Linux tools can and should be used with it. Where the wireless extensions are lacking private ioctls have been added. There is only one driver included here; it supports PCI, miniPCI and Cardbus devices - USB devices are currently not supported by this driver! The driver can be built as a module or linked directly into the kernel. Note however that the net80211 layer is device-independent; there is no reason it cannot be used with any 802.11 device (in fact on BSD systems this is the case). There are currently 4 "programming generations" of Atheros 802.11 wireless devices (some of these have multiple hardware implementations but otherwise appear identical to users): 5210 supports 11a only 5211 supports both 11a and 11b 5212 supports 11a, 11b, and 11g 242x supports 11a, 11b, and 11g
%package module Summary: A linux device driver for Atheros chipsets (ar5210, ar5211, ar5212, ar242x). Group: System Environment/Kernel Requires: kernel = %{mykversion} Release: 6_%{mykrelver}
%description module This software is broken into multiple modules. The Atheros-specific device support is found in the ath_pci module; it should be loaded when an Atheros wireless device is recognized. The ath_pci module requires an additional device specific module, ath_hal, which is described more below. In addition the driver requires the wlan module which contains the 802.11 state machine, protocol support, and other device-independent support needed by any 802.11 device. This code is derived from work that first appeared in NetBSD and then FreeBSD. The wlan module may also force the loading of additional modules for crypto support (wlan_wep, wlan_tkip, wlan_ccmp, etc.), for MAC-based ACL support (wlan_acl), and for 802.1x authenticator support (wlan_xauth). The latter modules are only used when operating as an AP. The crypto modules are loaded when keys of that type are created.
%prep %setup -q -n %{name}-%{version}-%{revision}-%{snapshot} find . -name Makefile* | xargs perl -pi -e's,/sbin/depmod,: /sbin/depmod,'
%build export MANDIR=/usr/share/man export KERNELRELEASE=%{mykversion} export KERNELPATH=/lib/modules/%{mykversion}/build export KERNELCONF=/lib/modules/%{mykversion}/build/.config export KMODPATH=/lib/modules/%{mykversion}/net export COPTS="-I /lib/modules/%{mykversion}/build/include/ $COPTS" make
%install export MANDIR=/usr/share/man export KERNELRELEASE=%{mykversion} export KERNELPATH=/lib/modules/%{mykversion}/build export KERNELCONF=/lib/modules/%{mykversion}/build/.config export KMODPATH=/lib/modules/%{mykversion}/net
rm -rf %{buildroot}
# make info mkdir -p %{buildroot}/usr/local/bin mkdir -p %{buildroot}/$KMODPATH mkdir -p %{buildroot}/usr/share/madwifi
make install DESTDIR=%{buildroot} KERNELPATH=/lib/modules/%{mykversion}/build MANDIR=/usr/share/man # cd tools ; make install DESTDIR=%{buildroot} KERNELPATH=/lib/modules/%{mykversion}/build BINDIR=/usr/local/bin ; cd ..
%post module if [ $1 == 1 ] then echo "#Madwifi Driver" >> /etc/modprobe.conf echo "alias ath0 ath_pci" >> /etc/modprobe.conf echo "#Madwifi Driver" >> /etc/modprobe.d/blacklist echo "blacklist ath5k" >> /etc/modprobe.d/blacklist fi /sbin/depmod -ae %{mykversion}
%postun module if [ $1 = 0 ] then /bin/sed -i 's/#Madwifi Driver//' /etc/modprobe.conf /bin/sed -i 's/alias ath0 ath_pci//' /etc/modprobe.conf /bin/sed -i 's/#Madwifi Driver//' /etc/modprobe.d/blacklist /bin/sed -i 's/blacklist ath5k//' /etc/modprobe.d/blacklist fi /sbin/depmod -ae %{mykversion}
%clean rm -rf %{buildroot}
%files %doc COPYRIGHT README INSTALL THANKS %attr(0755,root,root) /usr/local/bin/* %attr(0644,root,root) /usr/share/man/man8/*
%files module %defattr(-,root,root,-) /lib/modules/%{mykversion}/net/*.*o %attr(0644,root,root) /usr/share/man/man8/* # %changelog * Sun May 10 2009 David Dreggors ddreggors@cfl.rr.com - Create RPM of snapshot: 20090429 of release: r4016
* Wed Dec 14 2005 Patrick Pichon Patrick.Pichon@laposte.net - Update accordingly to the new file name rule: madwifi-ng-r<revision>-<generation date>.tar.gz - 'branch' tag is not use yet. 'ng' is hardcoded as part of the file name - Change the computation to target the latest kernel-devel env.
* Thu Nov 3 2005 Patrick Pichon Patrick.Pichon@laposte.net - Incorporate the changes made on the Makefile - Cleaning on the Description fields - Changing the URL to the new madwifi.org's one. - Install under /usr/share/doc/madwifi-release the INSTALL and THANKS files - Install under /usr/share/doc/madwifi-release the docs files.
* Sun Oct 30 2005 Patrick Pichon Patrick.Pichon@laposte.net - Add Man pages
* Mon Oct 24 2005 Lyonel Vincent <> - Fix the --rebuild option.
* Mon Oct 3 2005 Lyonel Vincent <> - Build by default on latest kernel installed
* Wed Jul 20 2005 Patrick Pichon <Patrick.Pichon@laposte.net - target particular kernel
* Mon Oct 27 2004 Patrick Pichon Patrick.Pichon@laposte.net - Handle 2.4 kernel
* Mon Sep 21 2004 Lyonel Vincent <> - change the naming of the kernel module part.
* Mon Aug 23 2004 Patrick Pichon Patrick.Pichon@laposte.net - Update WPA has been merged into HEAD
* Mon Jul 27 2004 Patrick Pichon Patrick.Pichon@laposte.net - Update to handle WPA branch.
* Tue Jul 08 2004 Patrick Pichon Patrick.Pichon@laposte.net - Initial Release