cfg80211: unify sending NL80211_CMD_NEW_INTERFACE
There isn't really any need for us to be sending this from two different places - move cfg80211_init_wdev() later and send the notification from there, removing it from the non- netdev case. Signed-off-by: Johannes Berg <johannes.berg@intel.com>
This commit is contained in:
@@ -3295,15 +3295,6 @@ static int nl80211_new_interface(struct sk_buff *skb, struct genl_info *info)
|
||||
return -ENOBUFS;
|
||||
}
|
||||
|
||||
/*
|
||||
* For wdevs which have no associated netdev object (e.g. of type
|
||||
* NL80211_IFTYPE_P2P_DEVICE), emit the NEW_INTERFACE event here.
|
||||
* For all other types, the event will be generated from the
|
||||
* netdev notifier
|
||||
*/
|
||||
if (!wdev->netdev)
|
||||
nl80211_notify_iface(rdev, wdev, NL80211_CMD_NEW_INTERFACE);
|
||||
|
||||
return genlmsg_reply(msg, info);
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user