diff options
author | Petteri Räty <betelgeuse@gentoo.org> | 2007-12-29 23:38:20 +0000 |
---|---|---|
committer | Petteri Räty <betelgeuse@gentoo.org> | 2007-12-29 23:38:20 +0000 |
commit | dcab24e00ba20f453168dc1bd486287bdcf1c024 (patch) | |
tree | ddbe7c6bd8ea1960575af3709e4a8040f3bd50d6 /net-wireless | |
parent | fix homepage and x86 stable, bug #198649 (diff) | |
download | gentoo-2-dcab24e00ba20f453168dc1bd486287bdcf1c024.tar.gz gentoo-2-dcab24e00ba20f453168dc1bd486287bdcf1c024.tar.bz2 gentoo-2-dcab24e00ba20f453168dc1bd486287bdcf1c024.zip |
Add patch to build against kernels later than 2.6.21. Fixes bug #192052.
(Portage version: 2.1.4_rc11)
Diffstat (limited to 'net-wireless')
4 files changed, 180 insertions, 1 deletions
diff --git a/net-wireless/linux-wlan-ng-modules/ChangeLog b/net-wireless/linux-wlan-ng-modules/ChangeLog index d7b52c232de5..2d5f21671df6 100644 --- a/net-wireless/linux-wlan-ng-modules/ChangeLog +++ b/net-wireless/linux-wlan-ng-modules/ChangeLog @@ -1,6 +1,12 @@ # ChangeLog for net-wireless/linux-wlan-ng-modules # Copyright 1999-2007 Gentoo Foundation; Distributed under the GPL v2 -# $Header: /var/cvsroot/gentoo-x86/net-wireless/linux-wlan-ng-modules/ChangeLog,v 1.14 2007/05/09 16:30:52 genstef Exp $ +# $Header: /var/cvsroot/gentoo-x86/net-wireless/linux-wlan-ng-modules/ChangeLog,v 1.15 2007/12/29 23:38:19 betelgeuse Exp $ + +*linux-wlan-ng-modules-0.2.8-r1 (29 Dec 2007) + + 29 Dec 2007; Petteri Räty <betelgeuse@gentoo.org> + +files/0.2.8-sk_buff-mac.patch, +linux-wlan-ng-modules-0.2.8-r1.ebuild: + Add patch to build against kernels later than 2.6.21. Fixes bug #192052. *linux-wlan-ng-modules-0.2.8 (09 May 2007) diff --git a/net-wireless/linux-wlan-ng-modules/files/0.2.8-sk_buff-mac.patch b/net-wireless/linux-wlan-ng-modules/files/0.2.8-sk_buff-mac.patch new file mode 100644 index 000000000000..b522073be384 --- /dev/null +++ b/net-wireless/linux-wlan-ng-modules/files/0.2.8-sk_buff-mac.patch @@ -0,0 +1,76 @@ +diff -ru linux-wlan-ng-0.2.8/src/p80211/p80211conv.c linux-wlan-ng-0.2.8.devel/src/p80211/p80211conv.c +--- linux-wlan-ng-0.2.8/src/p80211/p80211conv.c 2007-03-19 16:37:00.000000000 +0100 ++++ linux-wlan-ng-0.2.8.devel/src/p80211/p80211conv.c 2007-06-05 18:57:49.234754000 +0200 +@@ -498,7 +498,9 @@ + } + + skb->protocol = eth_type_trans(skb, netdev); +- skb->mac.raw = (unsigned char *) e_hdr; /* new MAC header */ ++ /* XXX: I *think* this is right. -jeffm */ ++ skb_reset_mac_header(skb); ++// skb->mac.raw = (unsigned char *) e_hdr; /* new MAC header */ + + /* jkriegl: process signal and noise as set in hfa384x_int_rx() */ + /* jkriegl: only process signal/noise if requested by iwspy */ +diff -ru linux-wlan-ng-0.2.8/src/p80211/p80211netdev.c linux-wlan-ng-0.2.8.devel/src/p80211/p80211netdev.c +--- linux-wlan-ng-0.2.8/src/p80211/p80211netdev.c 2007-03-19 16:37:00.000000000 +0100 ++++ linux-wlan-ng-0.2.8.devel/src/p80211/p80211netdev.c 2007-06-05 19:03:35.952167000 +0200 +@@ -389,7 +389,7 @@ + + /* set up various data fields */ + skb->dev = dev; +- skb->mac.raw = skb->data ; ++ skb_reset_mac_header(skb); + skb->ip_summed = CHECKSUM_NONE; + skb->pkt_type = PACKET_OTHERHOST; + skb->protocol = htons(ETH_P_80211_RAW); +diff -ru linux-wlan-ng-0.2.8/src/prism2/driver/hfa384x.c linux-wlan-ng-0.2.8.devel/src/prism2/driver/hfa384x.c +--- linux-wlan-ng-0.2.8/src/prism2/driver/hfa384x.c 2007-03-19 16:37:00.000000000 +0100 ++++ linux-wlan-ng-0.2.8.devel/src/prism2/driver/hfa384x.c 2007-06-05 19:04:30.845216000 +0200 +@@ -3645,7 +3645,7 @@ + /* the prism2 cards don't return the FCS */ + datap = skb_put(skb, WLAN_CRC_LEN); + memset (datap, 0xff, WLAN_CRC_LEN); +- skb->mac.raw = skb->data; ++ skb_reset_mac_header(skb); + + /* Attach the rxmeta, set some stuff */ + p80211skb_rxmeta_attach(wlandev, skb); +diff -ru linux-wlan-ng-0.2.8/src/prism2/driver/hfa384x_usb.c linux-wlan-ng-0.2.8.devel/src/prism2/driver/hfa384x_usb.c +--- linux-wlan-ng-0.2.8/src/prism2/driver/hfa384x_usb.c 2007-03-19 16:37:00.000000000 +0100 ++++ linux-wlan-ng-0.2.8.devel/src/prism2/driver/hfa384x_usb.c 2007-06-05 19:04:46.641407000 +0200 +@@ -4255,7 +4255,7 @@ + /* The prism2 series does not return the CRC */ + memset(skb_put(skb, WLAN_CRC_LEN), 0xff, WLAN_CRC_LEN); + +- skb->mac.raw = skb->data; ++ skb_reset_mac_header(skb); + + /* Attach the rxmeta, set some stuff */ + p80211skb_rxmeta_attach(wlandev, skb); +diff -ru linux-wlan-ng-0.2.8/src/prism2/driver/prism2_pci.c linux-wlan-ng-0.2.8.devel/src/prism2/driver/prism2_pci.c +--- linux-wlan-ng-0.2.8/src/prism2/driver/prism2_pci.c 2007-03-19 16:37:00.000000000 +0100 ++++ linux-wlan-ng-0.2.8.devel/src/prism2/driver/prism2_pci.c 2007-06-05 19:33:15.406928000 +0200 +@@ -275,7 +275,7 @@ + static int __init prism2pci_init(void) + { + WLAN_LOG_NOTICE("%s Loaded\n", version); +- return pci_module_init(&prism2_pci_drv_id); ++ return pci_register_driver(&prism2_pci_drv_id); + }; + + static void __exit prism2pci_cleanup(void) +Only in linux-wlan-ng-0.2.8.devel/src/prism2/driver: prism2_pci.c~ +diff -ru linux-wlan-ng-0.2.8/src/prism2/driver/prism2_plx.c linux-wlan-ng-0.2.8.devel/src/prism2/driver/prism2_plx.c +--- linux-wlan-ng-0.2.8/src/prism2/driver/prism2_plx.c 2007-03-19 16:37:00.000000000 +0100 ++++ linux-wlan-ng-0.2.8.devel/src/prism2/driver/prism2_plx.c 2007-06-05 19:33:12.758581000 +0200 +@@ -420,7 +420,7 @@ + static int __init prism2plx_init(void) + { + WLAN_LOG_NOTICE("%s Loaded\n", version); +- return pci_module_init(&prism2_plx_drv_id); ++ return pci_register_driver(&prism2_plx_drv_id); + }; + + static void __exit prism2plx_cleanup(void) +Only in linux-wlan-ng-0.2.8.devel/src/prism2/driver: prism2_plx.c~ diff --git a/net-wireless/linux-wlan-ng-modules/files/digest-linux-wlan-ng-modules-0.2.8-r1 b/net-wireless/linux-wlan-ng-modules/files/digest-linux-wlan-ng-modules-0.2.8-r1 new file mode 100644 index 000000000000..99c1aa9bee3b --- /dev/null +++ b/net-wireless/linux-wlan-ng-modules/files/digest-linux-wlan-ng-modules-0.2.8-r1 @@ -0,0 +1,3 @@ +MD5 5d86ca7bb4ed458743acd922ff09dae6 linux-wlan-ng-0.2.8.tar.bz2 462193 +RMD160 1b246f4603589641e4d637205cda39602f586cf2 linux-wlan-ng-0.2.8.tar.bz2 462193 +SHA256 e4b6ab08eaff2766c3bf85ea8d63ab31ae774266b8351772117fcc94d1318ade linux-wlan-ng-0.2.8.tar.bz2 462193 diff --git a/net-wireless/linux-wlan-ng-modules/linux-wlan-ng-modules-0.2.8-r1.ebuild b/net-wireless/linux-wlan-ng-modules/linux-wlan-ng-modules-0.2.8-r1.ebuild new file mode 100644 index 000000000000..aaf525a2e2b1 --- /dev/null +++ b/net-wireless/linux-wlan-ng-modules/linux-wlan-ng-modules-0.2.8-r1.ebuild @@ -0,0 +1,94 @@ +# Copyright 1999-2007 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/net-wireless/linux-wlan-ng-modules/linux-wlan-ng-modules-0.2.8-r1.ebuild,v 1.1 2007/12/29 23:38:19 betelgeuse Exp $ + +inherit eutils linux-mod + +MY_PN=${PN/-modules/} +MY_P=${MY_PN}-${PV} +S=${WORKDIR}/${MY_P} + +DESCRIPTION="Kernel modules for Prism2/2.5/3 based 802.11b USB wireless LAN products" +HOMEPAGE="http://linux-wlan.org" +SRC_URI="ftp://ftp.linux-wlan.org/pub/linux-wlan-ng/${MY_P}.tar.bz2" + +LICENSE="|| ( GPL-2 MPL-1.1 )" +SLOT="0" +KEYWORDS="~amd64 ~ppc ~x86" + +IUSE="debug" + +BUILD_TARGETS="default" +BUILD_PARAMS="WLAN_SRC=${S}/src" + +DEPEND="!<net-wireless/linux-wlan-ng-0.2.2" + +CONFIG_CHECK="WIRELESS_EXT" + +pkg_setup() { + # We have to put this to the global scope inside the function or it will be + # reset between functions because the ebuild is sourced many times. + + MODULE_NAMES="p80211(net/wireless:${S}/src/p80211)" + MODULE_NAMES="${MODULE_NAMES} prism2_usb(net/wireless:${S}/src/prism2/driver)" + + linux-mod_pkg_setup +} + +config_by_usevar() { + local config=${3} + [[ -z ${config} ]] && config=${S}/default.config + + if use ${2}; then + echo "${1}=y" >> ${config} + else + echo "${1}=n" >> ${config} + fi +} + +src_unpack() { + unpack ${A} + cd "${S}" + + epatch "${FILESDIR}/${MY_PN}-0.2.5-sandbox.patch" + epatch "${FILESDIR}/0.2.8-sk_buff-mac.patch" + + local config=${S}/default.config + cp "${S}/config.in" "${config}" || die + + cat > "${config}" <<-EOF + TARGET_ROOT_ON_HOST="${D}" + LINUX_SRC="${KERNEL_DIR}" + FIRMWARE_DIR=/lib/firmware/ + PRISM2_PCI=n + PRISM2_PLX=n + PRISM2_PCMCIA=n + PRISM2_USB=y + EOF + + config_by_usevar WLAN_DEBUG debug + + sed -i -e "s:dep modules:modules:" "${S}/src/p80211/Makefile" +} + +src_compile() { + set_arch_to_kernel + emake default_config || die "emake default_config failed" + set_arch_to_portage + + cd "${S}/src/mkmeta" + emake || die "emake mkmeta failed" + + linux-mod_src_compile +} + +pkg_postinst() { + linux-mod_pkg_postinst + + einfo "Support for pci, plx and pcmcia drivers has been removed in" + einfo "revision. For pci, plx and pcmcia drivers try for example" + einfo "the hostap-driver or orinoco drivers. They both work with the" + einfo "standard wireless tools." + einfo "" + einfo "If they do not work, please report this to betelgeuse@gentoo.org." +} |