提交 216c57b2 编写于 作者: F Felix Fietkau 提交者: John W. Linville

mac80211: do not call rate control .tx_status before .rate_init

Most rate control implementations assume .get_rate and .tx_status are only
called once the per-station data has been fully initialized.
minstrel_ht crashes if this assumption is violated.
Signed-off-by: NFelix Fietkau <nbd@openwrt.org>
Tested-by: NArend van Spriel <arend@broadcom.com>
Signed-off-by: NJohn W. Linville <linville@tuxdriver.com>
上级 4b5a433a
...@@ -41,7 +41,7 @@ static inline void rate_control_tx_status(struct ieee80211_local *local, ...@@ -41,7 +41,7 @@ static inline void rate_control_tx_status(struct ieee80211_local *local,
struct ieee80211_sta *ista = &sta->sta; struct ieee80211_sta *ista = &sta->sta;
void *priv_sta = sta->rate_ctrl_priv; void *priv_sta = sta->rate_ctrl_priv;
if (!ref) if (!ref || !test_sta_flag(sta, WLAN_STA_RATE_CONTROL))
return; return;
ref->ops->tx_status(ref->priv, sband, ista, priv_sta, skb); ref->ops->tx_status(ref->priv, sband, ista, priv_sta, skb);
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册