From: David Kimdon <[EMAIL PROTECTED]>

Signed-off-by: David Kimdon <[EMAIL PROTECTED]>
Signed-off-by: Jiri Benc <[EMAIL PROTECTED]>

---

 net/d80211/ieee80211.c |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

22acdd71c90cc4123d3df59a07919d432847e3e7
diff --git a/net/d80211/ieee80211.c b/net/d80211/ieee80211.c
index 86062c9..50b2b29 100644
--- a/net/d80211/ieee80211.c
+++ b/net/d80211/ieee80211.c
@@ -442,7 +442,7 @@ ieee80211_tx_h_fragment(struct ieee80211
 
        hdrlen = ieee80211_get_hdrlen(tx->fc);
        payload_len = first->len - hdrlen;
-       per_fragm = frag_threshold - hdrlen - 4 /* FCS */;
+       per_fragm = frag_threshold - hdrlen - FCS_LEN;
        num_fragm = (payload_len + per_fragm - 1) / per_fragm;
 
        frags = kzalloc(num_fragm * sizeof(struct sk_buff *), GFP_ATOMIC);
@@ -1062,7 +1062,7 @@ __ieee80211_tx_prepare(struct ieee80211_
         control->no_ack = is_multicast_ether_addr(hdr->addr1);
        tx->fragmented = local->fragmentation_threshold <
                IEEE80211_MAX_FRAG_THRESHOLD && tx->u.tx.unicast &&
-               skb->len + 4 /* FCS */ > local->fragmentation_threshold &&
+               skb->len + FCS_LEN > local->fragmentation_threshold &&
                (!local->hw->set_frag_threshold);
        if (!tx->sta)
                control->clear_dst_mask = 1;
-- 
1.3.0

-
To unsubscribe from this list: send the line "unsubscribe netdev" in
the body of a message to [EMAIL PROTECTED]
More majordomo info at  http://vger.kernel.org/majordomo-info.html

Reply via email to