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>
This commit is contained in:
parent
f8d4aa2976
commit
d4d2d28897
1 changed files with 2 additions and 2 deletions
|
@ -442,7 +442,7 @@ int libipw_rx(struct libipw_device *ieee, struct sk_buff *skb,
|
||||||
* 802.11, but makes it easier to use different keys with
|
* 802.11, but makes it easier to use different keys with
|
||||||
* stations that do not support WEP key mapping). */
|
* stations that do not support WEP key mapping). */
|
||||||
|
|
||||||
if (!(hdr->addr1[0] & 0x01) || local->bcrx_sta_key)
|
if (is_unicast_ether_addr(hdr->addr1) || local->bcrx_sta_key)
|
||||||
(void)hostap_handle_sta_crypto(local, hdr, &crypt,
|
(void)hostap_handle_sta_crypto(local, hdr, &crypt,
|
||||||
&sta);
|
&sta);
|
||||||
#endif
|
#endif
|
||||||
|
@ -772,7 +772,7 @@ int libipw_rx(struct libipw_device *ieee, struct sk_buff *skb,
|
||||||
|
|
||||||
#ifdef NOT_YET
|
#ifdef NOT_YET
|
||||||
if (ieee->iw_mode == IW_MODE_MASTER && !wds && ieee->ap->bridge_packets) {
|
if (ieee->iw_mode == IW_MODE_MASTER && !wds && ieee->ap->bridge_packets) {
|
||||||
if (dst[0] & 0x01) {
|
if (is_multicast_ether_addr(dst)) {
|
||||||
/* copy multicast frame both to the higher layers and
|
/* copy multicast frame both to the higher layers and
|
||||||
* to the wireless media */
|
* to the wireless media */
|
||||||
ieee->ap->bridged_multicast++;
|
ieee->ap->bridged_multicast++;
|
||||||
|
|
Loading…
Add table
Reference in a new issue