Fix DHCP issues with some Access Points.
authorHenrik Brix Andersen <brix@gentoo.org>
Fri, 2 Sep 2005 17:34:44 +0000 (17:34 +0000)
committerHenrik Brix Andersen <brix@gentoo.org>
Fri, 2 Sep 2005 17:34:44 +0000 (17:34 +0000)
Package-Manager: portage-2.0.51.22-r2

net-wireless/ipw2200/ChangeLog
net-wireless/ipw2200/files/digest-ipw2200-1.0.6-r2 [new file with mode: 0644]
net-wireless/ipw2200/files/ipw2200-1.0.6-broadcast.patch [new file with mode: 0644]
net-wireless/ipw2200/ipw2200-1.0.6-r2.ebuild [new file with mode: 0644]

index 59d50645ded345d96fbaf5740d176375d072fda8..a4d0d5ec47878a5140d013d80db98538c50fba29 100644 (file)
@@ -1,6 +1,12 @@
 # ChangeLog for net-wireless/ipw2200
 # Copyright 1999-2005 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/net-wireless/ipw2200/ChangeLog,v 1.42 2005/08/29 20:02:10 brix Exp $
+# $Header: /var/cvsroot/gentoo-x86/net-wireless/ipw2200/ChangeLog,v 1.43 2005/09/02 17:34:44 brix Exp $
+
+*ipw2200-1.0.6-r2 (02 Sep 2005)
+
+  02 Sep 2005; Henrik Brix Andersen <brix@gentoo.org>
+  +files/ipw2200-1.0.6-broadcast.patch, +ipw2200-1.0.6-r2.ebuild:
+  Fix DHCP issues with some Access Points.
 
 *ipw2200-1.0.6-r1 (29 Aug 2005)
 
diff --git a/net-wireless/ipw2200/files/digest-ipw2200-1.0.6-r2 b/net-wireless/ipw2200/files/digest-ipw2200-1.0.6-r2
new file mode 100644 (file)
index 0000000..53844e8
--- /dev/null
@@ -0,0 +1 @@
+MD5 d49f301ce8cffbd1cfbdb51061df3ac8 ipw2200-1.0.6.tgz 112932
diff --git a/net-wireless/ipw2200/files/ipw2200-1.0.6-broadcast.patch b/net-wireless/ipw2200/files/ipw2200-1.0.6-broadcast.patch
new file mode 100644 (file)
index 0000000..28061f8
--- /dev/null
@@ -0,0 +1,23 @@
+diff -urp ipw2200-1.0.6/ipw2200.c ipw2200-1.0.6-broadcast/ipw2200.c
+--- ipw2200-1.0.6/ipw2200.c    2005-07-13 21:00:28.000000000 +0200
++++ ipw2200-1.0.6-broadcast/ipw2200.c  2005-09-02 19:15:03.000000000 +0200
+@@ -7669,7 +7669,8 @@ static inline int is_network_packet(stru
+                       return 0;
+ 
+               /* multicast packets to our IBSS go through */
+-              if (is_multicast_ether_addr(header->addr1))
++              if (is_multicast_ether_addr(header->addr1) ||
++                    is_broadcast_ether_addr(header->addr1))
+                       return !memcmp(header->addr3, priv->bssid, ETH_ALEN);
+ 
+               /* packets to our adapter go through */
+@@ -7682,7 +7683,8 @@ static inline int is_network_packet(stru
+                       return 0;
+ 
+               /* {broad,multi}cast packets to our IBSS go through */
+-              if (is_multicast_ether_addr(header->addr1))
++              if (is_multicast_ether_addr(header->addr1) ||
++                    is_broadcast_ether_addr(header->addr1))
+                       return !memcmp(header->addr2, priv->bssid, ETH_ALEN);
+ 
+               /* packets to our adapter go through */
diff --git a/net-wireless/ipw2200/ipw2200-1.0.6-r2.ebuild b/net-wireless/ipw2200/ipw2200-1.0.6-r2.ebuild
new file mode 100644 (file)
index 0000000..c0cb947
--- /dev/null
@@ -0,0 +1,87 @@
+# Copyright 1999-2005 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/net-wireless/ipw2200/ipw2200-1.0.6-r2.ebuild,v 1.1 2005/09/02 17:34:44 brix Exp $
+
+inherit eutils linux-mod
+
+# The following works with both pre-releases and releases
+MY_P=${P/_/-}
+S=${WORKDIR}/${MY_P}
+
+IEEE80211_VERSION="1.0.3-r1"
+FW_VERSION="2.3"
+
+DESCRIPTION="Driver for the Intel PRO/Wireless 2200BG/2915ABG miniPCI and 2225BG PCI adapters"
+HOMEPAGE="http://ipw2200.sourceforge.net"
+SRC_URI="mirror://sourceforge/${PN}/${MY_P}.tgz"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="~amd64 ~x86"
+
+IUSE="debug"
+DEPEND=">=net-wireless/ieee80211-${IEEE80211_VERSION}"
+RDEPEND="${DEPEND}
+               =net-wireless/ipw2200-firmware-${FW_VERSION}
+               net-wireless/wireless-tools"
+
+BUILD_TARGETS="all"
+MODULE_NAMES="ipw2200(net/wireless:)"
+MODULESD_IPW2200_DOCS="README.ipw2200"
+
+CONFIG_CHECK="NET_RADIO FW_LOADER"
+ERROR_NET_RADIO="${P} requires support for Wireless LAN drivers (non-hamradio) & Wireless Extensions (CONFIG_NET_RADIO)."
+ERROR_FW_LOADER="${P} requires Hotplug firmware loading support (CONFIG_FW_LOADER)."
+
+pkg_setup() {
+       linux-mod_pkg_setup
+
+       if kernel_is 2 4; then
+               die "${P} does not support building against kernel 2.4.x"
+       fi
+
+       BUILD_PARAMS="KSRC=${KV_DIR} KSRC_OUTPUT=${KV_OUT_DIR} IEEE80211_INC=/usr/include"
+}
+
+src_unpack() {
+       local debug="n"
+
+       unpack ${A}
+
+       cd ${S}
+       epatch ${FILESDIR}/${P}-hwcrypt-wpa-fix4.patch
+       epatch ${FILESDIR}/${P}-suspend2.patch
+       epatch ${FILESDIR}/${P}-broadcast.patch
+
+       use debug && debug="y"
+       sed -i -e "s:^\(CONFIG_IPW_DEBUG\)=.*:\1=${debug}:" ${S}/Makefile
+}
+
+src_compile() {
+       einfo
+       einfo "You may safely ignore any errors from compilation that contain"
+       einfo "warnings about undefined references to the ieee80211 subsystem."
+       einfo
+
+       linux-mod_src_compile
+}
+
+src_install() {
+       linux-mod_src_install
+
+       dodoc CHANGES ISSUES
+}
+
+pkg_postinst() {
+       linux-mod_pkg_postinst
+
+       if [ -f /lib/modules/${KV_FULL}/net/${PN}.ko ]; then
+               einfo
+               einfo "Modules from an earlier installation detected. You will need to manually"
+               einfo "remove those modules by running the following commands:"
+               einfo "  # rm -f /lib/modules/${KV_FULL}/net/${PN}.ko"
+               einfo "  # rm -f /lib/modules/${KV_FULL}/net/ieee80211*.ko"
+               einfo "  # depmod -a"
+               einfo
+       fi
+}