Package: ipw2100-source
Version: 1.1.0-1
Severity: important
Tags: patch

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

The package fails to build with kernel 2.6.12, but the patch is
appended...

regards, Kiro

- -- System Information:
Debian Release: testing/unstable
  APT prefers unstable
  APT policy: (990, 'unstable')
Architecture: i386 (i686)
Shell:  /bin/sh linked to /bin/bash
Kernel: Linux 2.6.11
Locale: [EMAIL PROTECTED], [EMAIL PROTECTED] (charmap=ISO-8859-15)

Versions of packages ipw2100-source depends on:
ii  debconf [debconf-2.0]         1.4.51     Debian configuration management sy
ii  debhelper                     4.9.1      helper programs for debian/rules
ii  module-assistant              0.9.2      tool to make module package creati

ipw2100-source recommends no packages.

- -- debconf information excluded

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.1 (GNU/Linux)

iD8DBQFCvsZrYWOj0axvMcURAj5kAJ9C8n4SH6GKF2LaPS3jt1wu+JmUSACgpLnQ
qKd6Y3cIiqvXQd5nQ/F/aZ0=
=U2mJ
-----END PGP SIGNATURE-----
diff --git a/ipw2100/ieee80211_tx.c b/ipw2100/ieee80211_tx.c
--- a/ipw2100/ieee80211_tx.c
+++ b/ipw2100/ieee80211_tx.c
@@ -336,8 +336,7 @@ int ieee80211_xmit(struct sk_buff *skb,
 
 	/* Determine fragmentation size based on destination (multicast
 	 * and broadcast are not fragmented) */
-	if (is_multicast_ether_addr(dest) ||
-	    is_broadcast_ether_addr(dest))
+	if (is_multicast_ether_addr(dest))
 		frag_size = MAX_FRAG_THRESHOLD;
 	else
 		frag_size = ieee->fts;
diff --git a/ipw2100/ieee80211.h b/ipw2100/ieee80211.h
--- a/ipw2100/ieee80211.h
+++ b/ipw2100/ieee80211.h
@@ -655,16 +655,12 @@ enum ieee80211_state {
 #define MAC_ARG(x) ((u8*)(x))[0],((u8*)(x))[1],((u8*)(x))[2],((u8*)(x))[3],((u8*)(x))[4],((u8*)(x))[5]
 
 
+#if LINUX_VERSION_CODE < KERNEL_VERSION(2,6,12)
 extern inline int is_multicast_ether_addr(const u8 *addr)
 {
-	return ((addr[0] != 0xff) && (0x01 & addr[0]));
-}
-
-extern inline int is_broadcast_ether_addr(const u8 *addr)
-{
-	return ((addr[0] == 0xff) && (addr[1] == 0xff) && (addr[2] == 0xff) &&   \
-		(addr[3] == 0xff) && (addr[4] == 0xff) && (addr[5] == 0xff));
+	return addr[0] & 0x01;
 }
+#endif
 
 #define CFG_IEEE80211_RESERVE_FCS (1<<0)
 #define CFG_IEEE80211_COMPUTE_FCS (1<<1)

Reply via email to