In case you're wondering how to use this just like me: download the 3 files here and store them in /usr/portage/net-wireless/madwifi-ng/files edit /usr/portage/net-wireless/madwifi-ng/madwifi-ng-0.9.2.ebuild Where it says epatch ${FILESDIR}/madwifi-ng-uudecode-gcda-fix.patch add (below that line) epatch ${FILESDIR}/madwifi-ng-0.9.2-config.h.diff epatch ${FILESDIR}/madwifi-ng-0.9.2-crypto_cipher_encrypt_one.diff epatch ${FILESDIR}/madwifi-ng-0.9.2-ath_intr.diff run ebuild /usr/portage/net-wireless/madwifi-ng/madwifi-ng-0.9.2.ebuild digest emerge should now work This is in no way official, i know dick-shit about ebuilds and am otherwise a total moron (thus read, in no way hold me responsible for whatever goes wrong, now in or in the future :D)