Created attachment 347212 [details] broadcom-sta-5.100.82.112-r3.ebuild broadcom-sta-5.100.82.112 has long had several outstanding issues. I propose this ebuild as broadcom-sta-5.100.82.112-r3.ebuild. You can track my work in the tbc overlay. The following issues have been fixed: bug #306189 - a non-fatal check was introduced to warn against CONFIG_LIB80211_CRYPT_TKIP not being selected, which renders WPA functionality unavailable. This affects almost all recent routers. Additional explanatory messages were added for various CONFIG_CHECKS. check_kernel_built from linux-info.eclass gets called in order to make sure the kernel is ready to deal with external modules. bug #407667 - replaced broadcom-sta-5.100.82.112-linux-3.2.patch with a similar patch that preserves multicast functionality. Can be found in the bugreport. style issue: converted the sed in the ebuild for working with kernel 3.4 into patch file broadcom-sta-5.100.82.112-linux-3.4.patch, so it can actually fail if it doesn't fit anymore bug #437898 - kernel oops upon loading with kernel 3.6 and later. It refers to a patch on https://bugzilla.rpmfusion.org/show_bug.cgi?id=2526 to fix the issue. This patch is incorporated in broadcom-sta-5.100.82.112-linux-3.6.patch, along with other adaptations. The patch actually loaded in this ebuild is identical to https://github.com/Sabayon/for-gentoo/blob/master/net-wireless/broadcom-sta/files/broadcom-sta-5.100.82.112-linux-3.6.patch bug #459208 - attached patch gets loaded as broadcom-sta-5.100.82.112-linux-3.8.patch, makes it work with kernel 3.8 another patch from sabayon: "lxnay 2 days ago [net-wireless/broadcom-sta] more Linux 3.9 love, wheeeee" - gets loaded as broadcom-sta-5.100.82.112-linux-3.9.patch bug #399747 - broadcom-sta-5.100.82.112-remove-rssi-errors.patch - silences EINVAL errors and is not actually a fix. IMPORTANT NOTICE: This ebuild was tested to compile fine against the following kernels: linux-3.0.35-gentoo linux-3.0.75-gentoo linux-3.2.44-gentoo linux-3.4.34-gentoo linux-3.4.42-gentoo linux-3.5.7-gentoo linux-3.6.11-gentoo-r1 linux-3.7.10-gentoo-r1 linux-3.8.10-gentoo linux-3.8.3-gentoo-r1 linux-3.8.4-gentoo linux-3.8.5-gentoo linux-3.8.6-gentoo linux-3.8.7-gentoo linux-3.8.8-gentoo linux-3.8.9-gentoo linux-3.9.0-gentoo It was tested to load fine with linux-3.8.10-gentoo linux-3.7.10-gentoo-r1 However, i do get frequent disconnect/reconnects without ever obtaining an IP address with anything beyond kernel 3.5. Since I have the same problem with brcmsmac, I will need to further investigate. Please comment if you get similar/different results. My hardware is a BCM4313 [14e4:4727] (rev 01).
Created attachment 347218 [details, diff] broadcom-sta-5.100.82.112-linux-3.2-with-multicast.patch
Created attachment 347220 [details, diff] broadcom-sta-5.100.82.112-linux-3.4.patch
Created attachment 347222 [details, diff] broadcom-sta-5.100.82.112-linux-3.6.patch
Created attachment 347224 [details, diff] broadcom-sta-5.100.82.112-linux-3.8.patch
Created attachment 347226 [details, diff] broadcom-sta-5.100.82.112-linux-3.9.patch
Created attachment 347228 [details, diff] broadcom-sta-5.100.82.112-remove-rssi-errors.patch
The files pasted here so far are the new files i added to (and are identical with the ones in) my commit 86a1ace73a9f6ae59ba442c957dfc7af59d70dcd in the tbc overlay.
+*broadcom-sta-5.100.82.112-r3 (12 May 2013) + + 12 May 2013; Sergey Popov <pinkbyte@gentoo.org> + +broadcom-sta-5.100.82.112-r3.ebuild, + +files/broadcom-sta-5.100.82.112-linux-3.2-with-multicast.patch, + +files/broadcom-sta-5.100.82.112-linux-3.4.patch, + +files/broadcom-sta-5.100.82.112-linux-3.6.patch, + +files/broadcom-sta-5.100.82.112-linux-3.8.patch, + +files/broadcom-sta-5.100.82.112-linux-3.9.patch, + +files/broadcom-sta-5.100.82.112-remove-rssi-errors.patch: + Revision bump: add compatibility with more kernel versions, wrt bugs #437898 + and #468388, thanks to M. B. <tomboy64 AT sina.cn>