aboutsummaryrefslogtreecommitdiffstats
path: root/net/mac80211/util.c
diff options
context:
space:
mode:
Diffstat (limited to 'net/mac80211/util.c')
-rw-r--r--net/mac80211/util.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/net/mac80211/util.c b/net/mac80211/util.c
index 29c0a0e1f52c..5a0564e1dbd6 100644
--- a/net/mac80211/util.c
+++ b/net/mac80211/util.c
@@ -98,6 +98,9 @@ void ieee80211_prepare_rates(struct ieee80211_local *local,
98 rate->rate == 55 || rate->rate == 110) 98 rate->rate == 55 || rate->rate == 110)
99 rate->flags |= IEEE80211_RATE_BASIC; 99 rate->flags |= IEEE80211_RATE_BASIC;
100 break; 100 break;
101 case NUM_IEEE80211_MODES:
102 /* not useful */
103 break;
101 } 104 }
102 105
103 /* Set ERP and MANDATORY flags based on phymode */ 106 /* Set ERP and MANDATORY flags based on phymode */
@@ -118,6 +121,9 @@ void ieee80211_prepare_rates(struct ieee80211_local *local,
118 rate->rate == 240) 121 rate->rate == 240)
119 rate->flags |= IEEE80211_RATE_MANDATORY; 122 rate->flags |= IEEE80211_RATE_MANDATORY;
120 break; 123 break;
124 case NUM_IEEE80211_MODES:
125 /* not useful */
126 break;
121 } 127 }
122 if (ieee80211_is_erp_rate(mode->mode, rate->rate)) 128 if (ieee80211_is_erp_rate(mode->mode, rate->rate))
123 rate->flags |= IEEE80211_RATE_ERP; 129 rate->flags |= IEEE80211_RATE_ERP;