Lines Matching refs:p2p_wdev
679 struct wireless_dev *p2p_wdev, *wdev; in wil_cfg80211_add_iface() local
689 if (wil->p2p_wdev) { in wil_cfg80211_add_iface()
694 p2p_wdev = kzalloc(sizeof(*p2p_wdev), GFP_KERNEL); in wil_cfg80211_add_iface()
695 if (!p2p_wdev) in wil_cfg80211_add_iface()
698 p2p_wdev->iftype = type; in wil_cfg80211_add_iface()
699 p2p_wdev->wiphy = wiphy; in wil_cfg80211_add_iface()
701 ether_addr_copy(p2p_wdev->address, ndev_main->perm_addr); in wil_cfg80211_add_iface()
703 wil->p2p_wdev = p2p_wdev; in wil_cfg80211_add_iface()
705 return p2p_wdev; in wil_cfg80211_add_iface()
784 if (wdev != wil->p2p_wdev) { in wil_cfg80211_del_iface()
1052 if (wdev == wil->p2p_wdev && wil->radio_wdev == wil->p2p_wdev) in wil_cfg80211_abort_scan()
2839 struct wireless_dev *p2p_wdev; in wil_p2p_wdev_free() local
2842 p2p_wdev = wil->p2p_wdev; in wil_p2p_wdev_free()
2843 wil->p2p_wdev = NULL; in wil_p2p_wdev_free()
2846 if (p2p_wdev) { in wil_p2p_wdev_free()
2847 cfg80211_unregister_wdev(p2p_wdev); in wil_p2p_wdev_free()
2848 kfree(p2p_wdev); in wil_p2p_wdev_free()