diff options
author | Tobias Klauser <tklauser@distanz.ch> | 2011-07-03 20:00:22 -0400 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2011-07-04 23:27:30 -0400 |
commit | d4d2d288972233fc054f3b3341c2a15865fba7c6 (patch) | |
tree | a89bbc4249905479f7b212db1a39120e34fe9f1a /drivers/net/wireless/ipw2x00 | |
parent | f8d4aa29762fe1ae78ec3164f8f612f7b06d58ea (diff) |
net/wireless: ipw2x00: Use helpers from linux/etherdevice.h
Signed-off-by: Tobias Klauser <tklauser@distanz.ch>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/wireless/ipw2x00')
-rw-r--r-- | drivers/net/wireless/ipw2x00/libipw_rx.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/net/wireless/ipw2x00/libipw_rx.c b/drivers/net/wireless/ipw2x00/libipw_rx.c index e5ad76cd77da..32a9966c3bf6 100644 --- a/drivers/net/wireless/ipw2x00/libipw_rx.c +++ b/drivers/net/wireless/ipw2x00/libipw_rx.c | |||
@@ -442,7 +442,7 @@ int libipw_rx(struct libipw_device *ieee, struct sk_buff *skb, | |||
442 | * 802.11, but makes it easier to use different keys with | 442 | * 802.11, but makes it easier to use different keys with |
443 | * stations that do not support WEP key mapping). */ | 443 | * stations that do not support WEP key mapping). */ |
444 | 444 | ||
445 | if (!(hdr->addr1[0] & 0x01) || local->bcrx_sta_key) | 445 | if (is_unicast_ether_addr(hdr->addr1) || local->bcrx_sta_key) |
446 | (void)hostap_handle_sta_crypto(local, hdr, &crypt, | 446 | (void)hostap_handle_sta_crypto(local, hdr, &crypt, |
447 | &sta); | 447 | &sta); |
448 | #endif | 448 | #endif |
@@ -772,7 +772,7 @@ int libipw_rx(struct libipw_device *ieee, struct sk_buff *skb, | |||
772 | 772 | ||
773 | #ifdef NOT_YET | 773 | #ifdef NOT_YET |
774 | if (ieee->iw_mode == IW_MODE_MASTER && !wds && ieee->ap->bridge_packets) { | 774 | if (ieee->iw_mode == IW_MODE_MASTER && !wds && ieee->ap->bridge_packets) { |
775 | if (dst[0] & 0x01) { | 775 | if (is_multicast_ether_addr(dst)) { |
776 | /* copy multicast frame both to the higher layers and | 776 | /* copy multicast frame both to the higher layers and |
777 | * to the wireless media */ | 777 | * to the wireless media */ |
778 | ieee->ap->bridged_multicast++; | 778 | ieee->ap->bridged_multicast++; |