Debian Codegraph @

patches/mac80211_2.6.28-rc4-wl_frag+ack_v3.patch

raw
1 diff --git a/net/mac80211/tx.c b/net/mac80211/tx.c
2 index 0855cac..221bed6 100644
3 --- a/net/mac80211/tx.c
4 +++ b/net/mac80211/tx.c
5 @@ -611,11 +611,19 @@ ieee80211_tx_h_sequence(struct ieee80211_tx_data *tx)
6
7 /*
8 * Packet injection may want to control the sequence
9 - * number, if we have no matching interface then we
10 - * neither assign one ourselves nor ask the driver to.
11 + * number, so if an injected packet is found, skip
12 + * renumbering it. Also make the packet NO_ACK to avoid
13 + * excessive retries (ACKing and retrying should be
14 + * handled by the injecting application).
15 + * FIXME This may break hostapd and some other injectors.
16 + * This should be done using a radiotap flag.
17 */
18 - if (unlikely(!info->control.vif))
19 + if (unlikely((info->flags & IEEE80211_TX_CTL_INJECTED) &&
20 + !(tx->sdata->u.mntr_flags & MONITOR_FLAG_COOK_FRAMES))) {
21 + if (!ieee80211_has_morefrags(hdr->frame_control))
22 + info->flags |= IEEE80211_TX_CTL_NO_ACK;
23 return TX_CONTINUE;
24 + }
25
26 if (unlikely(ieee80211_is_ctl(hdr->frame_control)))
27 return TX_CONTINUE;