]> git.karo-electronics.de Git - linux-beck.git/commitdiff
[MAC80211]: fix warnings introduced by the doc patches
authorJohannes Berg <johannes@sipsolutions.net>
Tue, 18 Sep 2007 21:29:20 +0000 (17:29 -0400)
committerDavid S. Miller <davem@sunset.davemloft.net>
Wed, 10 Oct 2007 23:52:30 +0000 (16:52 -0700)
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>
net/mac80211/util.c

index 29c0a0e1f52c172974629e494d3ec187e386555c..5a0564e1dbd6ca387c5c44d854bcd2b38fc0e84a 100644 (file)
@@ -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;