Lines Matching refs:new_ndev
778 int dhd_add_monitor(const char *name, struct net_device **new_ndev);
1894 struct net_device *new_ndev = NULL; in wl_cfg80211_p2p_if_add() local
1970 new_ndev = wl_cfg80211_post_ifcreate(bcmcfg_to_prmry_ndev(cfg), event, in wl_cfg80211_p2p_if_add()
1972 if (unlikely(!new_ndev)) { in wl_cfg80211_p2p_if_add()
1980 wl_to_p2p_bss_ndev(cfg, cfg_type) = new_ndev; in wl_cfg80211_p2p_if_add()
1997 return new_ndev->ieee80211_ptr; in wl_cfg80211_p2p_if_add()
3000 struct net_device *new_ndev = NULL; in bcm_cfg80211_add_ibss_if() local
3041 new_ndev = wl_cfg80211_allocate_if(cfg, event->ifidx, event->name, in bcm_cfg80211_add_ibss_if()
3043 if (new_ndev == NULL) in bcm_cfg80211_add_ibss_if()
3050 wdev->netdev = new_ndev; in bcm_cfg80211_add_ibss_if()
3051 new_ndev->ieee80211_ptr = wdev; in bcm_cfg80211_add_ibss_if()
3052 SET_NETDEV_DEV(new_ndev, wiphy_dev(wdev->wiphy)); in bcm_cfg80211_add_ibss_if()
3058 if (wl_cfg80211_register_if(cfg, event->ifidx, new_ndev, FALSE) != BCME_OK) in bcm_cfg80211_add_ibss_if()
3061 wl_alloc_netinfo(cfg, new_ndev, wdev, WL_IF_TYPE_IBSS, in bcm_cfg80211_add_ibss_if()
3063 cfg->ibss_cfgdev = ndev_to_cfgdev(new_ndev); in bcm_cfg80211_add_ibss_if()
3064 WL_ERR(("IBSS interface %s created\n", new_ndev->name)); in bcm_cfg80211_add_ibss_if()
3070 if (new_ndev) in bcm_cfg80211_add_ibss_if()
3071 wl_cfg80211_remove_if(cfg, event->ifidx, new_ndev, FALSE); in bcm_cfg80211_add_ibss_if()
3610 struct net_device *new_ndev = NULL; in wl_cfg80211_post_ifcreate() local
3702 new_ndev = wl_cfg80211_post_static_ifcreate(cfg, event, addr, iface_type, in wl_cfg80211_post_ifcreate()
3704 if (!new_ndev) { in wl_cfg80211_post_ifcreate()
3708 wdev = new_ndev->ieee80211_ptr; in wl_cfg80211_post_ifcreate()
3712 new_ndev = wl_cfg80211_allocate_if(cfg, event->ifidx, in wl_cfg80211_post_ifcreate()
3714 if (!new_ndev) { in wl_cfg80211_post_ifcreate()
3725 wl_cfg80211_remove_if(cfg, event->ifidx, new_ndev, rtnl_lock_reqd); in wl_cfg80211_post_ifcreate()
3732 new_ndev->ieee80211_ptr = wdev; in wl_cfg80211_post_ifcreate()
3742 SET_NETDEV_DEV(new_ndev, wiphy_dev(wdev->wiphy)); in wl_cfg80211_post_ifcreate()
3744 dev_addr_set(new_ndev, addr); in wl_cfg80211_post_ifcreate()
3747 wl_ext_iapsta_ifadding(new_ndev, event->ifidx); in wl_cfg80211_post_ifcreate()
3750 if (wl_cfg80211_register_if(cfg, event->ifidx, new_ndev, rtnl_lock_reqd) in wl_cfg80211_post_ifcreate()
3757 wl_cfg80211_remove_if(cfg, event->ifidx, new_ndev, rtnl_lock_reqd); in wl_cfg80211_post_ifcreate()
3763 ret = wl_alloc_netinfo(cfg, new_ndev, wdev, wl_iftype, in wl_cfg80211_post_ifcreate()
3771 if ((ret = wl_config_infra(cfg, new_ndev, wl_iftype)) < 0) { in wl_cfg80211_post_ifcreate()
3777 wl_set_drv_status(cfg, AP_CREATING, new_ndev); in wl_cfg80211_post_ifcreate()
3780 wl_ext_iapsta_update_iftype(new_ndev, wl_iftype); in wl_cfg80211_post_ifcreate()
3785 new_ndev->name, iface_type, event->role, MAC2STRDBG(new_ndev->dev_addr))); in wl_cfg80211_post_ifcreate()
3791 return new_ndev; in wl_cfg80211_post_ifcreate()
3799 wl_cfg80211_update_iflist_info(cfg, new_ndev, WL_STATIC_IFIDX+static_ifidx, addr, in wl_cfg80211_post_ifcreate()
3803 if (new_ndev) { in wl_cfg80211_post_ifcreate()
3805 wl_cfg80211_remove_if(cfg, event->ifidx, new_ndev, rtnl_lock_reqd); in wl_cfg80211_post_ifcreate()
3978 struct net_device *new_ndev = NULL; in wl_cfg80211_create_iface() local
4070 new_ndev = wl_cfg80211_post_ifcreate(primary_ndev, in wl_cfg80211_create_iface()
4073 if (new_ndev) { in wl_cfg80211_create_iface()
4075 return new_ndev->ieee80211_ptr; in wl_cfg80211_create_iface()