summaryrefslogtreecommitdiffstats
path: root/net/mac80211/rate.c
diff options
context:
space:
mode:
authorJohannes Berg <johannes.berg@intel.com>2015-09-23 08:02:47 -0400
committerJohannes Berg <johannes.berg@intel.com>2015-09-29 09:56:48 -0400
commit0e5c371aa05522ac14e91ddee0522ad855e12d02 (patch)
tree7b3058c77ffa24af467bbf86d5c135b2075619f1 /net/mac80211/rate.c
parenta0c391b1345cfaecfb24c3c07378d80f6168fb61 (diff)
mac80211: improve __rate_control_send_low warning
If there are no supported rates in the rate mask with the required flags, we warn, but it's not clear which part causes the warning. Add the relevant data to the warning to understand why it happens. Signed-off-by: Johannes Berg <johannes.berg@intel.com>
Diffstat (limited to 'net/mac80211/rate.c')
-rw-r--r--net/mac80211/rate.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/net/mac80211/rate.c b/net/mac80211/rate.c
index 9857693b91ec..48d053b00858 100644
--- a/net/mac80211/rate.c
+++ b/net/mac80211/rate.c
@@ -305,7 +305,10 @@ static void __rate_control_send_low(struct ieee80211_hw *hw,
305 info->control.rates[0].idx = i; 305 info->control.rates[0].idx = i;
306 break; 306 break;
307 } 307 }
308 WARN_ON_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",
310 sta ? sta->supp_rates[sband->band] : 0,
311 rate_mask, rate_flags);
309 312
310 info->control.rates[0].count = 313 info->control.rates[0].count =
311 (info->flags & IEEE80211_TX_CTL_NO_ACK) ? 314 (info->flags & IEEE80211_TX_CTL_NO_ACK) ?