Staging: vt6655: use is_zero_ether_addr instead of custom macro
authorCharles Clément <caratorn@gmail.com>
Wed, 19 May 2010 18:30:53 +0000 (11:30 -0700)
committerGreg Kroah-Hartman <gregkh@suse.de>
Fri, 18 Jun 2010 17:06:53 +0000 (10:06 -0700)
Replace custom macro IS_NULL_ADDRESS by is_zero_ether_addr from
<linux/etherdevice.h>.

Signed-off-by: Charles Clément <caratorn@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
drivers/staging/vt6655/card.c
drivers/staging/vt6655/tether.h

index 7bc2d7654b070971e50a5fadfd0243ecd02241d2..de5f2ba2cf46f8de4eee32275668659ec4a2769a 100644 (file)
@@ -1319,7 +1319,7 @@ BOOL CARDbSetBSSID(void *pDeviceHandler, PBYTE pbyBSSID, CARD_OP_MODE eOPMode)
         pDevice->byRxMode &= ~RCR_BSSID;
         DBG_PRT(MSG_LEVEL_DEBUG, KERN_INFO "wcmd: rx_mode = %x\n", pDevice->byRxMode );
     } else {
-        if (IS_NULL_ADDRESS(pDevice->abyBSSID) == FALSE) {
+        if (is_zero_ether_addr(pDevice->abyBSSID) == FALSE) {
             MACvRegBitsOn(pDevice->PortOffset, MAC_REG_RCR, RCR_BSSID);
             pDevice->bBSSIDFilter = TRUE;
             pDevice->byRxMode |= RCR_BSSID;
index e25ad4b472855ad5615b31c7c38a354664d2d40c..71ef0f1c898b26b1df2f3a1ef6091a48cf57848e 100644 (file)
@@ -188,11 +188,6 @@ S802_11Header, *PS802_11Header;
 /*---------------------  Export Macros ------------------------------*/
 // Frame type macro
 
-#define IS_NULL_ADDRESS(pbyEtherAddr) (             \
-    (*(PDWORD)(pbyEtherAddr) == 0L) &&              \
-    (*(PWORD)((PBYTE)(pbyEtherAddr) + 4) == 0)      \
-)
-
 #define IS_ETH_ADDRESS_EQUAL(pbyAddr1, pbyAddr2) (  \
     (*(PDWORD)(pbyAddr1) == *(PDWORD)(pbyAddr2)) && \
     (*(PWORD)((PBYTE)(pbyAddr1) + 4) ==             \