Merge mac80211 driver from tree at bu3sch.de, pulled 24/6
[openwrt/svn-archive/archive.git] / package / mac80211 / src / wireless / nl80211.c
index d6a44a386c2b86b81514b08d3c9b324dd2c7d229..ffbe6288a28ac1aa0ae65c1e6d0055286f0d161c 100644 (file)
@@ -293,7 +293,7 @@ static int nl80211_add_virt_intf(struct sk_buff *skb, struct genl_info *info)
 {
        struct cfg80211_registered_device *drv;
        int err;
-       unsigned int type = NL80211_IFTYPE_UNSPECIFIED;
+       enum nl80211_iftype type = NL80211_IFTYPE_UNSPECIFIED;
 
        if (!info->attrs[NL80211_ATTR_IFNAME])
                return -EINVAL;
@@ -353,7 +353,7 @@ static int nl80211_change_virt_intf(struct sk_buff *skb, struct genl_info *info)
 {
        struct cfg80211_registered_device *drv;
        int err, ifindex;
-       unsigned int type;
+       enum nl80211_iftype type;
        struct net_device *dev;
 
        if (info->attrs[NL80211_ATTR_IFTYPE]) {