diff options
Diffstat (limited to 'net/mac80211/rc80211_minstrel.c')
-rw-r--r-- | net/mac80211/rc80211_minstrel.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/net/mac80211/rc80211_minstrel.c b/net/mac80211/rc80211_minstrel.c index efaf38349731..0a11515341ba 100644 --- a/net/mac80211/rc80211_minstrel.c +++ b/net/mac80211/rc80211_minstrel.c | |||
@@ -479,7 +479,7 @@ minstrel_alloc_sta(void *priv, struct ieee80211_sta *sta, gfp_t gfp) | |||
479 | 479 | ||
480 | for (i = 0; i < IEEE80211_NUM_BANDS; i++) { | 480 | for (i = 0; i < IEEE80211_NUM_BANDS; i++) { |
481 | sband = hw->wiphy->bands[i]; | 481 | sband = hw->wiphy->bands[i]; |
482 | if (sband->n_bitrates > max_rates) | 482 | if (sband && sband->n_bitrates > max_rates) |
483 | max_rates = sband->n_bitrates; | 483 | max_rates = sband->n_bitrates; |
484 | } | 484 | } |
485 | 485 | ||