diff options
author | Gábor Stefanik <netrolller.3d@gmail.com> | 2009-04-23 13:36:00 -0400 |
---|---|---|
committer | John W. Linville <linville@tuxdriver.com> | 2009-05-06 15:14:50 -0400 |
commit | 4edf040afc9237aa8cc90bcf54b521ac47d1ed78 (patch) | |
tree | 6139e3fee617ff89ec061b48d52409f5254ffd64 /net/mac80211/rc80211_minstrel.c | |
parent | 2516baa63bc7d05a6573a0f584135484ed182a87 (diff) |
mac80211: Fix handling of retry count of NO_ACK frames in minstrel
Make the retry count zero (total try count = 1) for frames with
IEEE80211_TX_CTL_NO_ACK set.
Also remove the check for is_multicast_ether_addr in use_low_rate,
which is redundant because all multicasts have IEEE80211_TX_CTL_NO_ACK
set.
Signed-off-by: Gábor Stefanik <netrolller.3d@gmail.com>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
Diffstat (limited to 'net/mac80211/rc80211_minstrel.c')
-rw-r--r-- | net/mac80211/rc80211_minstrel.c | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/net/mac80211/rc80211_minstrel.c b/net/mac80211/rc80211_minstrel.c index 3824990d340b..5196006b35e0 100644 --- a/net/mac80211/rc80211_minstrel.c +++ b/net/mac80211/rc80211_minstrel.c | |||
@@ -80,8 +80,7 @@ use_low_rate(struct sk_buff *skb) | |||
80 | fc = le16_to_cpu(hdr->frame_control); | 80 | fc = le16_to_cpu(hdr->frame_control); |
81 | 81 | ||
82 | return ((info->flags & IEEE80211_TX_CTL_NO_ACK) || | 82 | return ((info->flags & IEEE80211_TX_CTL_NO_ACK) || |
83 | (fc & IEEE80211_FCTL_FTYPE) != IEEE80211_FTYPE_DATA || | 83 | (fc & IEEE80211_FCTL_FTYPE) != IEEE80211_FTYPE_DATA); |
84 | is_multicast_ether_addr(hdr->addr1)); | ||
85 | } | 84 | } |
86 | 85 | ||
87 | 86 | ||
@@ -245,7 +244,10 @@ minstrel_get_rate(void *priv, struct ieee80211_sta *sta, | |||
245 | 244 | ||
246 | if (!sta || !mi || use_low_rate(skb)) { | 245 | if (!sta || !mi || use_low_rate(skb)) { |
247 | ar[0].idx = rate_lowest_index(sband, sta); | 246 | ar[0].idx = rate_lowest_index(sband, sta); |
248 | ar[0].count = mp->max_retry; | 247 | if (info->flags & IEEE80211_TX_CTL_NO_ACK) |
248 | ar[0].count = 1; | ||
249 | else | ||
250 | ar[0].count = mp->max_retry; | ||
249 | return; | 251 | return; |
250 | } | 252 | } |
251 | 253 | ||