diff options
author | Johannes Berg <johannes.berg@intel.com> | 2015-10-25 04:59:42 -0400 |
---|---|---|
committer | Johannes Berg <johannes.berg@intel.com> | 2015-11-03 04:56:42 -0500 |
commit | ef95d8ba384781ce574c10f87b97d6bab2659735 (patch) | |
tree | 618888d2146d2f970affae325394ca919a0172b3 /net/mac80211 | |
parent | 2ed77ea69205139c3f6016b250d34e09bf48574d (diff) |
mac80211: further improve "no supported rates" warning
Allow distinguishing the non-station case from the case of a
station without rates, by using -1 for the non-station case.
This value cannot be reached with a station since that many
legacy rates don't exist.
Signed-off-by: Johannes Berg <johannes.berg@intel.com>
Signed-off-by: Emmanuel Grumbach <emmanuel.grumbach@intel.com>
Signed-off-by: Johannes Berg <johannes.berg@intel.com>
Diffstat (limited to 'net/mac80211')
-rw-r--r-- | net/mac80211/rate.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/net/mac80211/rate.c b/net/mac80211/rate.c index b07e2f748f93..a4e2f4e67f94 100644 --- a/net/mac80211/rate.c +++ b/net/mac80211/rate.c | |||
@@ -307,7 +307,7 @@ static void __rate_control_send_low(struct ieee80211_hw *hw, | |||
307 | } | 307 | } |
308 | WARN_ONCE(i == sband->n_bitrates, | 308 | WARN_ONCE(i == sband->n_bitrates, |
309 | "no supported rates (0x%x) in rate_mask 0x%x with flags 0x%x\n", | 309 | "no supported rates (0x%x) in rate_mask 0x%x with flags 0x%x\n", |
310 | sta ? sta->supp_rates[sband->band] : 0, | 310 | sta ? sta->supp_rates[sband->band] : -1, |
311 | rate_mask, rate_flags); | 311 | rate_mask, rate_flags); |
312 | 312 | ||
313 | info->control.rates[0].count = | 313 | info->control.rates[0].count = |