diff options
Diffstat (limited to 'net/mac80211/rc80211_minstrel_ht.c')
-rw-r--r-- | net/mac80211/rc80211_minstrel_ht.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/net/mac80211/rc80211_minstrel_ht.c b/net/mac80211/rc80211_minstrel_ht.c index b5ace243546c..c5b465904e3b 100644 --- a/net/mac80211/rc80211_minstrel_ht.c +++ b/net/mac80211/rc80211_minstrel_ht.c | |||
@@ -636,7 +636,7 @@ minstrel_ht_update_caps(void *priv, struct ieee80211_supported_band *sband, | |||
636 | int i; | 636 | int i; |
637 | 637 | ||
638 | /* fall back to the old minstrel for legacy stations */ | 638 | /* fall back to the old minstrel for legacy stations */ |
639 | if (sta && !sta->ht_cap.ht_supported) { | 639 | if (!sta->ht_cap.ht_supported) { |
640 | msp->is_ht = false; | 640 | msp->is_ht = false; |
641 | memset(&msp->legacy, 0, sizeof(msp->legacy)); | 641 | memset(&msp->legacy, 0, sizeof(msp->legacy)); |
642 | msp->legacy.r = msp->ratelist; | 642 | msp->legacy.r = msp->ratelist; |
@@ -748,7 +748,7 @@ minstrel_ht_alloc_sta(void *priv, struct ieee80211_sta *sta, gfp_t gfp) | |||
748 | return msp; | 748 | return msp; |
749 | 749 | ||
750 | error1: | 750 | error1: |
751 | kfree(msp->sample_table); | 751 | kfree(msp->ratelist); |
752 | error: | 752 | error: |
753 | kfree(msp); | 753 | kfree(msp); |
754 | return NULL; | 754 | return NULL; |