diff options
Diffstat (limited to 'net/mac80211/ieee80211.c')
-rw-r--r-- | net/mac80211/ieee80211.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/net/mac80211/ieee80211.c b/net/mac80211/ieee80211.c index 62877a8f9f0f..373e8b728782 100644 --- a/net/mac80211/ieee80211.c +++ b/net/mac80211/ieee80211.c | |||
@@ -351,6 +351,10 @@ static int ieee80211_open(struct net_device *dev) | |||
351 | case IEEE80211_IF_TYPE_IBSS: | 351 | case IEEE80211_IF_TYPE_IBSS: |
352 | /* no special treatment */ | 352 | /* no special treatment */ |
353 | break; | 353 | break; |
354 | case IEEE80211_IF_TYPE_INVALID: | ||
355 | /* cannot happen */ | ||
356 | WARN_ON(1); | ||
357 | break; | ||
354 | } | 358 | } |
355 | 359 | ||
356 | if (local->open_count == 0) { | 360 | if (local->open_count == 0) { |