diff options
Diffstat (limited to 'net-wireless/ipw2100/files/ipw2100-1.0.5-is_multicast_ether_addr.patch')
-rw-r--r-- | net-wireless/ipw2100/files/ipw2100-1.0.5-is_multicast_ether_addr.patch | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/net-wireless/ipw2100/files/ipw2100-1.0.5-is_multicast_ether_addr.patch b/net-wireless/ipw2100/files/ipw2100-1.0.5-is_multicast_ether_addr.patch new file mode 100644 index 000000000000..50ef2fb59c40 --- /dev/null +++ b/net-wireless/ipw2100/files/ipw2100-1.0.5-is_multicast_ether_addr.patch @@ -0,0 +1,16 @@ +diff -urp ipw2100-1.0.5/ieee80211.h ipw2100-1.0.5-is_multicast_ether_addr/ieee80211.h +--- ipw2100-1.0.5/ieee80211.h 2005-02-08 21:38:23.000000000 +0100 ++++ ipw2100-1.0.5-is_multicast_ether_addr/ieee80211.h 2005-06-24 23:18:54.000000000 +0200 +@@ -643,10 +643,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])); + } ++#endif + + extern inline int is_broadcast_ether_addr(const u8 *addr) + { |