Commit 693d454d authored by Johannes Berg's avatar Johannes Berg Committed by David S. Miller

[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: default avatarJohannes Berg <johannes@sipsolutions.net>
Signed-off-by: default avatarMichael Wu <flamingice@sourmilk.net>
Signed-off-by: default avatarJohn W. Linville <linville@tuxdriver.com>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent 6b301cdf
...@@ -98,6 +98,9 @@ void ieee80211_prepare_rates(struct ieee80211_local *local, ...@@ -98,6 +98,9 @@ void ieee80211_prepare_rates(struct ieee80211_local *local,
rate->rate == 55 || rate->rate == 110) rate->rate == 55 || rate->rate == 110)
rate->flags |= IEEE80211_RATE_BASIC; rate->flags |= IEEE80211_RATE_BASIC;
break; break;
case NUM_IEEE80211_MODES:
/* not useful */
break;
} }
/* Set ERP and MANDATORY flags based on phymode */ /* Set ERP and MANDATORY flags based on phymode */
...@@ -118,6 +121,9 @@ void ieee80211_prepare_rates(struct ieee80211_local *local, ...@@ -118,6 +121,9 @@ void ieee80211_prepare_rates(struct ieee80211_local *local,
rate->rate == 240) rate->rate == 240)
rate->flags |= IEEE80211_RATE_MANDATORY; rate->flags |= IEEE80211_RATE_MANDATORY;
break; break;
case NUM_IEEE80211_MODES:
/* not useful */
break;
} }
if (ieee80211_is_erp_rate(mode->mode, rate->rate)) if (ieee80211_is_erp_rate(mode->mode, rate->rate))
rate->flags |= IEEE80211_RATE_ERP; rate->flags |= IEEE80211_RATE_ERP;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment