summaryrefslogtreecommitdiffstats
path: root/net/mac80211
diff options
context:
space:
mode:
authorDavid S. Miller <davem@davemloft.net>2010-02-14 20:56:38 +0100
committerDavid S. Miller <davem@davemloft.net>2010-02-14 20:56:38 +0100
commit3d0beb921fa34ebf8b13e206e5473329b14deb83 (patch)
treeb7f121166e835da5e61587ce7bd18b4091b1b7be /net/mac80211
parentsfc: Fix SFE4002 initialisation (diff)
parentmac80211: fix handling of null-rate control in rate_control_get_rate (diff)
downloadlinux-3d0beb921fa34ebf8b13e206e5473329b14deb83.tar.xz
linux-3d0beb921fa34ebf8b13e206e5473329b14deb83.zip
Merge branch 'master' of ssh://master.kernel.org/pub/scm/linux/kernel/git/linville/wireless-2.6
Diffstat (limited to 'net/mac80211')
-rw-r--r--net/mac80211/rate.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/net/mac80211/rate.c b/net/mac80211/rate.c
index b9007f80cb92..12a2bff7dcdb 100644
--- a/net/mac80211/rate.c
+++ b/net/mac80211/rate.c
@@ -245,6 +245,9 @@ void rate_control_get_rate(struct ieee80211_sub_if_data *sdata,
info->control.rates[i].count = 1;
}
+ if (sdata->local->hw.flags & IEEE80211_HW_HAS_RATE_CONTROL)
+ return;
+
if (sta && sdata->force_unicast_rateidx > -1) {
info->control.rates[0].idx = sdata->force_unicast_rateidx;
} else {