aboutsummaryrefslogtreecommitdiffstats
path: root/net/mac80211
diff options
context:
space:
mode:
authorJohannes Berg <johannes@sipsolutions.net>2007-09-18 17:29:20 -0400
committerDavid S. Miller <davem@sunset.davemloft.net>2007-10-10 19:52:30 -0400
commit693d454dffd43b2bab021d0e039a0c426181c1b0 (patch)
tree134193ff1c30c371adc883a01fab395c411d9e79 /net/mac80211
parent6b301cdfad96daa3cf4f0d775ab408f898308890 (diff)
[MAC80211]: fix warnings introduced by the doc patches
This fixes a warning about NUM_IEEE80211_MODES missing in a switch statement. Intentionally do not add a default case so we get warnings at these places if we need to add new modes. Signed-off-by: Johannes Berg <johannes@sipsolutions.net> Signed-off-by: Michael Wu <flamingice@sourmilk.net> Signed-off-by: John W. Linville <linville@tuxdriver.com> Signed-off-by: David S. Miller <davem@davemloft.net>
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 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;