Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 13582
b: refs/heads/master
c: 90700fd
h: refs/heads/master
v: v3
  • Loading branch information
Peter Jones authored and James Ketrenos committed Nov 7, 2005
1 parent 9eac071 commit bd09202
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 6 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 24a47dbd89a2738bc149de4685ae5a2a97193ae1
refs/heads/master: 90700fd982022f0519e7bd7595adb8084f36d1c6
12 changes: 7 additions & 5 deletions trunk/drivers/net/wireless/ipw2200.c
Original file line number Diff line number Diff line change
Expand Up @@ -8096,21 +8096,23 @@ static inline int is_network_packet(struct ipw_priv *priv,
if (!memcmp(header->addr2, priv->net_dev->dev_addr, ETH_ALEN))
return 0;

/* multicast packets to our IBSS go through */
if (is_multicast_ether_addr(header->addr1))
/* {broad,multi}cast packets to our BSSID go through */
if (is_multicast_ether_addr(header->addr1) ||
is_broadcast_ether_addr(header->addr1))
return !memcmp(header->addr3, priv->bssid, ETH_ALEN);

/* packets to our adapter go through */
return !memcmp(header->addr1, priv->net_dev->dev_addr,
ETH_ALEN);

case IW_MODE_INFRA: /* Header: Dest. | AP{BSSID} | Source */
case IW_MODE_INFRA: /* Header: Dest. | BSSID | Source */
/* packets from our adapter are dropped (echo) */
if (!memcmp(header->addr3, priv->net_dev->dev_addr, ETH_ALEN))
return 0;

/* {broad,multi}cast packets to our IBSS go through */
if (is_multicast_ether_addr(header->addr1))
/* {broad,multi}cast packets to our BSS go through */
if (is_multicast_ether_addr(header->addr1) ||
is_broadcast_ether_addr(header->addr1))
return !memcmp(header->addr2, priv->bssid, ETH_ALEN);

/* packets to our adapter go through */
Expand Down

0 comments on commit bd09202

Please sign in to comment.