aboutsummaryrefslogtreecommitdiffstats
path: root/net/mac80211
diff options
context:
space:
mode:
Diffstat (limited to 'net/mac80211')
-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 29c0a0e..5a0564e 100644
--- a/net/mac80211/util.c
+++ b/net/mac80211/util.c
@@ -98,6 +98,9 @@ void ieee80211_prepare_rates(struct ieee80211_local *local,
rate->rate == 55 || rate->rate == 110)
rate->flags |= IEEE80211_RATE_BASIC;
break;
+ case NUM_IEEE80211_MODES:
+ /* not useful */
+ break;
}
/* Set ERP and MANDATORY flags based on phymode */
@@ -118,6 +121,9 @@ void ieee80211_prepare_rates(struct ieee80211_local *local,
rate->rate == 240)
rate->flags |= IEEE80211_RATE_MANDATORY;
break;
+ case NUM_IEEE80211_MODES:
+ /* not useful */
+ break;
}
if (ieee80211_is_erp_rate(mode->mode, rate->rate))
rate->flags |= IEEE80211_RATE_ERP;