Message ID | 20130715112502.GA10778@shrek.podlesie.net (mailing list archive) |
---|---|
State | Not Applicable, archived |
Headers | show |
diff --git a/net/mac80211/rc80211_minstrel.c b/net/mac80211/rc80211_minstrel.c index ac7ef54..be17d52 100644 --- a/net/mac80211/rc80211_minstrel.c +++ b/net/mac80211/rc80211_minstrel.c @@ -290,9 +290,15 @@ minstrel_get_rate(void *priv, struct ieee80211_sta *sta, struct minstrel_rate *msr, *mr; unsigned int ndx; bool mrr_capable; - bool prev_sample = mi->prev_sample; + bool prev_sample; int delta; int sampling_ratio; + + if (!mi) { + printk("Oops, mi is NULL\n"); + return; + } + prev_sample = mi->prev_sample; /* management/no-ack frames do not use rate control */ if (rate_control_send_low(sta, priv_sta, txrc))