Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 21299
b: refs/heads/master
c: 9d0be03
h: refs/heads/master
i:
  21297: ba6f276
  21295: 07510c7
v: v3
  • Loading branch information
Zhu Yi authored and John W. Linville committed Mar 17, 2006
1 parent 721917b commit 034558c
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 25 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: 85149bace30eae1dc1f86d2c327329673123dd22
refs/heads/master: 9d0be03aeeadcd59bd8f57219817e876a5e88e88
3 changes: 2 additions & 1 deletion trunk/drivers/net/wireless/ipw2200.c
Original file line number Diff line number Diff line change
Expand Up @@ -7895,7 +7895,8 @@ static void ipw_rx(struct ipw_priv *priv)
le16_to_cpu(pkt->u.frame.length));

if (le16_to_cpu(pkt->u.frame.length) <
frame_hdr_len(header)) {
ieee80211_get_hdrlen(le16_to_cpu(
header->frame_ctl))) {
IPW_DEBUG_DROP
("Received packet is too small. "
"Dropping.\n");
Expand Down
23 changes: 0 additions & 23 deletions trunk/drivers/net/wireless/ipw2200.h
Original file line number Diff line number Diff line change
Expand Up @@ -1907,27 +1907,4 @@ struct ipw_cmd_log {

#define IPW_MAX_CONFIG_RETRIES 10

static inline u32 frame_hdr_len(struct ieee80211_hdr_4addr *hdr)
{
u32 retval;
u16 fc;

retval = sizeof(struct ieee80211_hdr_3addr);
fc = le16_to_cpu(hdr->frame_ctl);

/*
* Function ToDS FromDS
* IBSS 0 0
* To AP 1 0
* From AP 0 1
* WDS (bridge) 1 1
*
* Only WDS frames use Address4 among them. --YZ
*/
if (!(fc & IEEE80211_FCTL_TODS) || !(fc & IEEE80211_FCTL_FROMDS))
retval -= ETH_ALEN;

return retval;
}

#endif /* __ipw2200_h__ */

0 comments on commit 034558c

Please sign in to comment.