Lines Matching refs:ieee80211_ptr

503 		if (IS_AP_IFACE(static_if_ndev->ieee80211_ptr)) {  in wl_cfg80211_get_sec_iface()
513 if (p2p_ndev && p2p_ndev->ieee80211_ptr) { in wl_cfg80211_get_sec_iface()
514 if (p2p_ndev->ieee80211_ptr->iftype == NL80211_IFTYPE_P2P_GO) { in wl_cfg80211_get_sec_iface()
521 if (p2p_ndev->ieee80211_ptr->iftype == NL80211_IFTYPE_STATION) { in wl_cfg80211_get_sec_iface()
526 if (p2p_ndev->ieee80211_ptr->iftype == NL80211_IFTYPE_P2P_CLIENT) { in wl_cfg80211_get_sec_iface()
758 p2p_ndev->ieee80211_ptr && in wl_cfg80211_is_associated_discovery()
759 is_p2p_group_iface(p2p_ndev->ieee80211_ptr)) { in wl_cfg80211_is_associated_discovery()
1109 WL_INFORM_MEM(("Enter. current_role:%d new_role:%d \n", ndev->ieee80211_ptr->iftype, type)); in wl_cfg80211_change_p2prole()
1119 if (!is_p2p_group_iface(ndev->ieee80211_ptr)) { in wl_cfg80211_change_p2prole()
1127 index = wl_get_bssidx_by_wdev(cfg, ndev->ieee80211_ptr); in wl_cfg80211_change_p2prole()
1224 ndev->name, ndev->ieee80211_ptr->iftype, type)); in wl_cfg80211_change_virtual_iface()
1233 netinfo = wl_get_netinfo_by_wdev(cfg, ndev->ieee80211_ptr); in wl_cfg80211_change_virtual_iface()
1242 ndev->ieee80211_ptr->iftype = type; in wl_cfg80211_change_virtual_iface()
1260 ndev->ieee80211_ptr->iftype = type; in wl_cfg80211_change_virtual_iface()
1266 wl_cfg80211_iface_state_ops(ndev->ieee80211_ptr, in wl_cfg80211_change_virtual_iface()
1275 if (ndev->ieee80211_ptr->iftype == NL80211_IFTYPE_P2P_GO) { in wl_cfg80211_change_virtual_iface()
1281 } else if (ndev->ieee80211_ptr->iftype == NL80211_IFTYPE_AP) { in wl_cfg80211_change_virtual_iface()
1333 wl_cfg80211_iface_state_ops(primary_ndev->ieee80211_ptr, in wl_cfg80211_change_virtual_iface()
1337 if (is_p2p_group_iface(ndev->ieee80211_ptr) && (type == NL80211_IFTYPE_STATION)) { in wl_cfg80211_change_virtual_iface()
1342 __FUNCTION__, ndev->ieee80211_ptr->iftype)); in wl_cfg80211_change_virtual_iface()
1347 ndev->ieee80211_ptr->iftype = type; in wl_cfg80211_change_virtual_iface()
1561 if (dev->ieee80211_ptr->iftype == NL80211_IFTYPE_AP || in wl_cfg80211_set_channel()
1562 dev->ieee80211_ptr->iftype == NL80211_IFTYPE_P2P_GO) { in wl_cfg80211_set_channel()
1567 if (cfg80211_to_wl_iftype(dev->ieee80211_ptr->iftype, in wl_cfg80211_set_channel()
1569 WL_ERR(("Unknown interface type:0x%x\n", dev->ieee80211_ptr->iftype)); in wl_cfg80211_set_channel()
1587 if (IS_P2P_GO(dev->ieee80211_ptr) && (CHSPEC_IS6G(chspec))) { in wl_cfg80211_set_channel()
1729 if ((dev->ieee80211_ptr->iftype == NL80211_IFTYPE_AP) && in wl_cfg80211_set_channel()
1734 } else if (is_p2p_group_iface(dev->ieee80211_ptr)) { in wl_cfg80211_set_channel()
1782 if (dev->ieee80211_ptr->iftype == NL80211_IFTYPE_ADHOC) in wl_validate_opensecurity()
2557 wl_cfgbss_t *bss = wl_get_cfgbss_by_wdev(cfg, dev->ieee80211_ptr); in wl_cfg80211_bcn_validate_sec()
2781 if ((bssidx = wl_get_bssidx_by_wdev(cfg, dev->ieee80211_ptr)) < 0) { in wl_cfg80211_set_ap_role()
2782 WL_ERR(("Find p2p index from wdev(%p) failed\n", dev->ieee80211_ptr)); in wl_cfg80211_set_ap_role()
3360 wl_cfgbss_t *bss = wl_get_cfgbss_by_wdev(cfg, dev->ieee80211_ptr); in wl_cfg80211_hostapd_sec()
3620 if ((bssidx = wl_get_bssidx_by_wdev(cfg, dev->ieee80211_ptr)) < 0) { in wl_cfg80211_start_ap()
3621 WL_ERR(("Find p2p index from wdev(%p) failed\n", dev->ieee80211_ptr)); in wl_cfg80211_start_ap()
3625 if (p2p_is_on(cfg) && (dev->ieee80211_ptr->iftype == NL80211_IFTYPE_P2P_GO)) { in wl_cfg80211_start_ap()
3627 } else if (dev->ieee80211_ptr->iftype == NL80211_IFTYPE_AP) { in wl_cfg80211_start_ap()
3689 if (!dev->ieee80211_ptr->u.ap.preset_chandef.chan) in wl_cfg80211_start_ap()
3691 if (!dev->ieee80211_ptr->preset_chandef.chan) in wl_cfg80211_start_ap()
3700 dev->ieee80211_ptr->u.ap.preset_chandef.chan, in wl_cfg80211_start_ap()
3702 dev->ieee80211_ptr->preset_chandef.chan, in wl_cfg80211_start_ap()
3756 if (dev->ieee80211_ptr->use_4addr) { in wl_cfg80211_start_ap()
3876 if (dev->ieee80211_ptr->iftype == NL80211_IFTYPE_AP) { in wl_cfg80211_stop_ap()
3879 } else if (dev->ieee80211_ptr->iftype == NL80211_IFTYPE_P2P_GO) { in wl_cfg80211_stop_ap()
3887 if ((bssidx = wl_get_bssidx_by_wdev(cfg, dev->ieee80211_ptr)) < 0) { in wl_cfg80211_stop_ap()
3888 WL_ERR(("find p2p index from wdev(%p) failed\n", dev->ieee80211_ptr)); in wl_cfg80211_stop_ap()
3944 wl_cfg80211_clear_per_bss_ies(cfg, dev->ieee80211_ptr); in wl_cfg80211_stop_ap()
4009 if ((bssidx = wl_get_bssidx_by_wdev(cfg, dev->ieee80211_ptr)) < 0) { in wl_cfg80211_change_beacon()
4010 WL_ERR(("Find p2p index from wdev(%p) failed\n", dev->ieee80211_ptr)); in wl_cfg80211_change_beacon()
4014 if (dev->ieee80211_ptr->iftype == NL80211_IFTYPE_P2P_GO) { in wl_cfg80211_change_beacon()
4016 } else if (dev->ieee80211_ptr->iftype == NL80211_IFTYPE_AP) { in wl_cfg80211_change_beacon()
4102 if ((bssidx = wl_get_bssidx_by_wdev(cfg, dev->ieee80211_ptr)) < 0) { in wl_cfg80211_add_set_beacon()
4103 WL_ERR(("Find p2p index from wdev(%p) failed\n", dev->ieee80211_ptr)); in wl_cfg80211_add_set_beacon()
4107 if (dev->ieee80211_ptr->iftype == NL80211_IFTYPE_P2P_GO) { in wl_cfg80211_add_set_beacon()
4109 } else if (dev->ieee80211_ptr->iftype == NL80211_IFTYPE_AP) { in wl_cfg80211_add_set_beacon()
4266 struct wireless_dev *wdev = dev->ieee80211_ptr; in wl_cfg80211_del_beacon()
4291 if ((bssidx = wl_get_bssidx_by_wdev(cfg, dev->ieee80211_ptr)) < 0) { in wl_cfg80211_del_beacon()
4292 WL_ERR(("find p2p index from wdev(%p) failed\n", dev->ieee80211_ptr)); in wl_cfg80211_del_beacon()
4306 wl_cfg80211_clear_per_bss_ies(cfg, dev->ieee80211_ptr); in wl_cfg80211_del_beacon()
4993 if (ndev->ieee80211_ptr->iftype != NL80211_IFTYPE_AP) { in wl_cfg80211_dfs_ap_move()
5237 if (dev->ieee80211_ptr->iftype == NL80211_IFTYPE_STATION || in wl_cfg80211_ch_switch_notify()
5238 dev->ieee80211_ptr->iftype == NL80211_IFTYPE_P2P_CLIENT) { in wl_cfg80211_ch_switch_notify()
5447 (ndev->ieee80211_ptr->iftype != NL80211_IFTYPE_STATION)) { in wl_cfg80211_tdls_config()
5450 ndev->ieee80211_ptr->iftype)); in wl_cfg80211_tdls_config()
5517 if (iter->ndev->ieee80211_ptr->iftype == NL80211_IFTYPE_AP) { in wl_get_ap_netdev()
6188 if ((bssidx = wl_get_bssidx_by_wdev(cfg, ndev->ieee80211_ptr)) < 0) { in wl_set_ap_suspend()
6189 WL_ERR(("Find p2p index from wdev(%p) failed\n", ndev->ieee80211_ptr)); in wl_set_ap_suspend()
6271 iftype = ifdev->ieee80211_ptr->iftype; in wl_set_softap_elna_bypass()
6305 iftype = ifdev->ieee80211_ptr->iftype; in wl_get_softap_elna_bypass()
6632 if (iter->ndev->ieee80211_ptr->iftype == NL80211_IFTYPE_AP) { in wl_restore_ap_bw()