Lines Matching refs:p2p_wdev
668 struct wireless_dev *p2p_wdev, *wdev; in wil_cfg80211_add_iface() local
678 if (wil->p2p_wdev) { in wil_cfg80211_add_iface()
683 p2p_wdev = kzalloc(sizeof(*p2p_wdev), GFP_KERNEL); in wil_cfg80211_add_iface()
684 if (!p2p_wdev) in wil_cfg80211_add_iface()
687 p2p_wdev->iftype = type; in wil_cfg80211_add_iface()
688 p2p_wdev->wiphy = wiphy; in wil_cfg80211_add_iface()
690 ether_addr_copy(p2p_wdev->address, ndev_main->perm_addr); in wil_cfg80211_add_iface()
692 wil->p2p_wdev = p2p_wdev; in wil_cfg80211_add_iface()
694 return p2p_wdev; in wil_cfg80211_add_iface()
771 if (wdev != wil->p2p_wdev) { in wil_cfg80211_del_iface()
1039 if (wdev == wil->p2p_wdev && wil->radio_wdev == wil->p2p_wdev) in wil_cfg80211_abort_scan()
2792 struct wireless_dev *p2p_wdev; in wil_p2p_wdev_free() local
2795 p2p_wdev = wil->p2p_wdev; in wil_p2p_wdev_free()
2796 wil->p2p_wdev = NULL; in wil_p2p_wdev_free()
2799 if (p2p_wdev) { in wil_p2p_wdev_free()
2800 cfg80211_unregister_wdev(p2p_wdev); in wil_p2p_wdev_free()
2801 kfree(p2p_wdev); in wil_p2p_wdev_free()