|
@@ -1327,7 +1327,7 @@ static inline struct ieee80211_rate *
|
|
|
ieee80211_get_tx_rate(const struct ieee80211_hw *hw,
|
|
ieee80211_get_tx_rate(const struct ieee80211_hw *hw,
|
|
|
const struct ieee80211_tx_info *c)
|
|
const struct ieee80211_tx_info *c)
|
|
|
{
|
|
{
|
|
|
- if (WARN_ON(c->control.rates[0].idx < 0))
|
|
|
|
|
|
|
+ if (WARN_ON_ONCE(c->control.rates[0].idx < 0))
|
|
|
return NULL;
|
|
return NULL;
|
|
|
return &hw->wiphy->bands[c->band]->bitrates[c->control.rates[0].idx];
|
|
return &hw->wiphy->bands[c->band]->bitrates[c->control.rates[0].idx];
|
|
|
}
|
|
}
|