diff options
Diffstat (limited to 'net/mac80211/rate.h')
-rw-r--r-- | net/mac80211/rate.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/net/mac80211/rate.h b/net/mac80211/rate.h index 669dddd40521..998cf7a935b6 100644 --- a/net/mac80211/rate.h +++ b/net/mac80211/rate.h | |||
@@ -44,6 +44,10 @@ static inline void rate_control_tx_status(struct ieee80211_local *local, | |||
44 | struct rate_control_ref *ref = local->rate_ctrl; | 44 | struct rate_control_ref *ref = local->rate_ctrl; |
45 | struct ieee80211_sta *ista = &sta->sta; | 45 | struct ieee80211_sta *ista = &sta->sta; |
46 | void *priv_sta = sta->rate_ctrl_priv; | 46 | void *priv_sta = sta->rate_ctrl_priv; |
47 | |||
48 | if (!ref) | ||
49 | return; | ||
50 | |||
47 | ref->ops->tx_status(ref->priv, sband, ista, priv_sta, skb); | 51 | ref->ops->tx_status(ref->priv, sband, ista, priv_sta, skb); |
48 | } | 52 | } |
49 | 53 | ||