tree 3ccd9be1df9cff30863e47d32f631b9c43da5783
parent 2179a59db18ddf8eb3fd0133a3bee57f1c2b5b06
author Jeff Garzik <[EMAIL PROTECTED]> Tue, 28 Jun 2005 09:46:35 -0400
committer Jeff Garzik <[EMAIL PROTECTED]> Tue, 28 Jun 2005 09:46:35 -0400

wireless: fix ipw warning; add is_broadcast_ether_addr() to linux/etherdevice.h

 drivers/net/wireless/ipw2200.c |    2 +-
 include/linux/etherdevice.h    |    6 ++++++
 2 files changed, 7 insertions(+), 1 deletion(-)

diff --git a/drivers/net/wireless/ipw2200.c b/drivers/net/wireless/ipw2200.c
--- a/drivers/net/wireless/ipw2200.c
+++ b/drivers/net/wireless/ipw2200.c
@@ -1170,7 +1170,7 @@ static int ipw_send_cmd(struct ipw_priv 
                HOST_COMPLETE_TIMEOUT);
        if (rc == 0) {
                IPW_DEBUG_INFO("Command completion failed out after %dms.\n",
-                              HOST_COMPLETE_TIMEOUT / (HZ / 1000));
+                              jiffies_to_msecs(HOST_COMPLETE_TIMEOUT));
                priv->status &= ~STATUS_HCMD_ACTIVE;
                return -EIO;
        }
diff --git a/include/linux/etherdevice.h b/include/linux/etherdevice.h
--- a/include/linux/etherdevice.h
+++ b/include/linux/etherdevice.h
@@ -68,6 +68,12 @@ static inline int is_multicast_ether_add
        return ((addr[0] != 0xff) && (0x01 & addr[0]));
 }
 
+static 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));
+}
+
 /**
  * is_valid_ether_addr - Determine if the given Ethernet address is valid
  * @addr: Pointer to a six-byte array containing the Ethernet address
-
To unsubscribe from this list: send the line "unsubscribe git-commits-head" in
the body of a message to [EMAIL PROTECTED]
More majordomo info at  http://vger.kernel.org/majordomo-info.html

Reply via email to