Message ID | 20110518101116.GA14900@zenon.in.qult.net (mailing list archive) |
---|---|
State | Not Applicable, archived |
Headers | show |
diff --git a/net/mac80211/iface.c b/net/mac80211/iface.c index 8531915..27264de 100644 --- a/net/mac80211/iface.c +++ b/net/mac80211/iface.c @@ -1173,6 +1173,10 @@ int ieee80211_if_add(struct ieee80211_local *local, const char *name, ndev->needed_tailroom = IEEE80211_ENCRYPT_TAILROOM; #endif + ret = dev_alloc_name(ndev, ndev->name); + if (ret < 0) + goto fail; + ieee80211_assign_perm_addr(local, ndev, type); memcpy(ndev->dev_addr, ndev->perm_addr, ETH_ALEN); SET_NETDEV_DEV(ndev, wiphy_dev(local->hw.wiphy));