From: Johannes Berg Date: Tue, 18 Sep 2007 21:29:20 +0000 (-0400) Subject: [MAC80211]: fix warnings introduced by the doc patches X-Git-Tag: v2.6.24-rc1~1454^2~372 X-Git-Url: https://git.karo-electronics.de/?a=commitdiff_plain;h=693d454dffd43b2bab021d0e039a0c426181c1b0;p=karo-tx-linux.git [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 Signed-off-by: Michael Wu Signed-off-by: John W. Linville Signed-off-by: David S. Miller --- 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, 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;