]> err.no Git - linux-2.6/blobdiff - net/mac80211/iface.c
mac80211: remove useless tid assignment for management and control frames
[linux-2.6] / net / mac80211 / iface.c
index 98447270238149d7c0b8b1cdc3fab8ecba0b7aee..eeb16926aa7deb1068ab4d0720b25fc13737c257 100644 (file)
@@ -184,9 +184,9 @@ void ieee80211_if_set_type(struct net_device *dev, int type)
                sdata->u.mntr_flags = MONITOR_FLAG_CONTROL |
                                      MONITOR_FLAG_OTHER_BSS;
                break;
-       default:
-               printk(KERN_WARNING "%s: %s: Unknown interface type 0x%x",
-                      dev->name, __func__, type);
+       case IEEE80211_IF_TYPE_INVALID:
+               BUG();
+               break;
        }
        ieee80211_debugfs_change_if_type(sdata, oldtype);
 }