View | Details | Raw Unified | Return to bug 43044 | Differences between
and this patch

Collapse All | Expand All

(-)wireless-testing-new/include/net/mac80211.h (-1 / +1 lines)
Lines 1325-1331 static inline struct ieee80211_rate * Link Here
1325
ieee80211_get_tx_rate(const struct ieee80211_hw *hw,
1325
ieee80211_get_tx_rate(const struct ieee80211_hw *hw,
1326
		      const struct ieee80211_tx_info *c)
1326
		      const struct ieee80211_tx_info *c)
1327
{
1327
{
1328
	if (WARN_ON(c->control.rates[0].idx < 0))
1328
	if (WARN_ON_ONCE(c->control.rates[0].idx < 0))
1329
		return NULL;
1329
		return NULL;
1330
	return &hw->wiphy->bands[c->band]->bitrates[c->control.rates[0].idx];
1330
	return &hw->wiphy->bands[c->band]->bitrates[c->control.rates[0].idx];
1331
}
1331
}

Return to bug 43044