diff options
author | Luis R. Rodriguez <lrodriguez@atheros.com> | 2009-07-15 04:14:06 +0400 |
---|---|---|
committer | John W. Linville <linville@tuxdriver.com> | 2009-07-24 23:05:16 +0400 |
commit | e8986436580caf50ebbd3bf8371074aadf95aba5 (patch) | |
tree | 504a61daf5013ffe81e67f5cbffd71bf87cbae25 /net/mac80211/rc80211_minstrel.c | |
parent | 7682a76df8f4e875e4029d95b799c712ee740ddc (diff) | |
download | linux-e8986436580caf50ebbd3bf8371074aadf95aba5.tar.xz |
mac80211: make minstrel/pid RC use ieee80211_is_data(fc)
Cc: Felix Fietkau <nbd@openwrt.org>
Cc: Derek Smithies <derek@indranet.co.nz>
Cc: Chittajit Mitra <Chittajit.Mitra@Atheros.com>
Signed-off-by: Luis R. Rodriguez <lrodriguez@atheros.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 | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/net/mac80211/rc80211_minstrel.c b/net/mac80211/rc80211_minstrel.c index 37771abd8f5a..5bdce0c951dd 100644 --- a/net/mac80211/rc80211_minstrel.c +++ b/net/mac80211/rc80211_minstrel.c @@ -75,12 +75,11 @@ use_low_rate(struct sk_buff *skb) { struct ieee80211_hdr *hdr = (struct ieee80211_hdr *) skb->data; struct ieee80211_tx_info *info = IEEE80211_SKB_CB(skb); - u16 fc; + __le16 fc; - fc = le16_to_cpu(hdr->frame_control); + fc = hdr->frame_control; - return ((info->flags & IEEE80211_TX_CTL_NO_ACK) || - (fc & IEEE80211_FCTL_FTYPE) != IEEE80211_FTYPE_DATA); + return ((info->flags & IEEE80211_TX_CTL_NO_ACK) || !ieee80211_is_data(fc)); } |