summaryrefslogtreecommitdiffstats
path: root/net/wireless/nl80211.c
diff options
context:
space:
mode:
authorJohannes Berg <johannes.berg@intel.com>2018-10-01 08:18:31 -0400
committerJohannes Berg <johannes.berg@intel.com>2018-10-02 03:58:57 -0400
commitec8f170bc33ec5933e139a78ead286ecec1ea56b (patch)
treec3b0ec57d6118c3ce6748426b765812efc400370 /net/wireless/nl80211.c
parent85dd3da43dd59b9220d9cba4f933a3dc0ea6faa5 (diff)
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>
Diffstat (limited to 'net/wireless/nl80211.c')
-rw-r--r--net/wireless/nl80211.c9
1 files changed, 0 insertions, 9 deletions
diff --git a/net/wireless/nl80211.c b/net/wireless/nl80211.c
index 35ee15c26027..b0a5ce8dbb5c 100644
--- a/net/wireless/nl80211.c
+++ b/net/wireless/nl80211.c
@@ -3295,15 +3295,6 @@ static int nl80211_new_interface(struct sk_buff *skb, struct genl_info *info)
3295 return -ENOBUFS; 3295 return -ENOBUFS;
3296 } 3296 }
3297 3297
3298 /*
3299 * For wdevs which have no associated netdev object (e.g. of type
3300 * NL80211_IFTYPE_P2P_DEVICE), emit the NEW_INTERFACE event here.
3301 * For all other types, the event will be generated from the
3302 * netdev notifier
3303 */
3304 if (!wdev->netdev)
3305 nl80211_notify_iface(rdev, wdev, NL80211_CMD_NEW_INTERFACE);
3306
3307 return genlmsg_reply(msg, info); 3298 return genlmsg_reply(msg, info);
3308} 3299}
3309 3300