• Home
  • Raw
  • Download

Lines Matching refs:wdev

97 		struct wireless_dev *wdev;  in __cfg80211_wdev_from_attrs()  local
105 list_for_each_entry(wdev, &rdev->wdev_list, list) { in __cfg80211_wdev_from_attrs()
106 if (have_ifidx && wdev->netdev && in __cfg80211_wdev_from_attrs()
107 wdev->netdev->ifindex == ifidx) { in __cfg80211_wdev_from_attrs()
108 result = wdev; in __cfg80211_wdev_from_attrs()
111 if (have_wdev_id && wdev->identifier == (u32)wdev_id) { in __cfg80211_wdev_from_attrs()
112 result = wdev; in __cfg80211_wdev_from_attrs()
145 struct wireless_dev *wdev; in __cfg80211_rdev_from_attrs() local
151 list_for_each_entry(wdev, &tmp->wdev_list, list) { in __cfg80211_rdev_from_attrs()
152 if (wdev->identifier != (u32)wdev_id) in __cfg80211_rdev_from_attrs()
478 struct wireless_dev **wdev) in nl80211_prepare_wdev_dump() argument
491 *wdev = __cfg80211_wdev_from_attrs(sock_net(skb->sk), in nl80211_prepare_wdev_dump()
493 if (IS_ERR(*wdev)) { in nl80211_prepare_wdev_dump()
494 err = PTR_ERR(*wdev); in nl80211_prepare_wdev_dump()
497 *rdev = wiphy_to_rdev((*wdev)->wiphy); in nl80211_prepare_wdev_dump()
500 cb->args[1] = (*wdev)->identifier; in nl80211_prepare_wdev_dump()
511 *wdev = NULL; in nl80211_prepare_wdev_dump()
515 *wdev = tmp; in nl80211_prepare_wdev_dump()
520 if (!*wdev) { in nl80211_prepare_wdev_dump()
871 static int nl80211_key_allowed(struct wireless_dev *wdev) in nl80211_key_allowed() argument
873 ASSERT_WDEV_LOCK(wdev); in nl80211_key_allowed()
875 switch (wdev->iftype) { in nl80211_key_allowed()
884 if (!wdev->current_bss) in nl80211_key_allowed()
1868 static bool nl80211_can_set_dev_channel(struct wireless_dev *wdev) in nl80211_can_set_dev_channel() argument
1885 return !wdev || in nl80211_can_set_dev_channel()
1886 wdev->iftype == NL80211_IFTYPE_AP || in nl80211_can_set_dev_channel()
1887 wdev->iftype == NL80211_IFTYPE_MESH_POINT || in nl80211_can_set_dev_channel()
1888 wdev->iftype == NL80211_IFTYPE_MONITOR || in nl80211_can_set_dev_channel()
1889 wdev->iftype == NL80211_IFTYPE_P2P_GO; in nl80211_can_set_dev_channel()
1964 struct wireless_dev *wdev = NULL; in __nl80211_set_channel() local
1967 wdev = dev->ieee80211_ptr; in __nl80211_set_channel()
1968 if (!nl80211_can_set_dev_channel(wdev)) in __nl80211_set_channel()
1970 if (wdev) in __nl80211_set_channel()
1971 iftype = wdev->iftype; in __nl80211_set_channel()
1984 if (wdev->beacon_interval) { in __nl80211_set_channel()
1993 if (chandef.chan != wdev->preset_chandef.chan) { in __nl80211_set_channel()
2001 wdev->preset_chandef = chandef; in __nl80211_set_channel()
2005 result = cfg80211_set_mesh_channel(rdev, wdev, &chandef); in __nl80211_set_channel()
2029 struct wireless_dev *wdev = dev->ieee80211_ptr; in nl80211_set_wds_peer() local
2041 if (wdev->iftype != NL80211_IFTYPE_WDS) in nl80211_set_wds_peer()
2053 struct wireless_dev *wdev; in nl80211_set_wiphy() local
2088 wdev = NULL; in nl80211_set_wiphy()
2092 wdev = netdev->ieee80211_ptr; in nl80211_set_wiphy()
2146 nl80211_can_set_dev_channel(wdev) ? netdev : NULL, in nl80211_set_wiphy()
2153 struct wireless_dev *txp_wdev = wdev; in nl80211_set_wiphy()
2302 static inline u64 wdev_id(struct wireless_dev *wdev) in wdev_id() argument
2304 return (u64)wdev->identifier | in wdev_id()
2305 ((u64)wiphy_to_rdev(wdev->wiphy)->wiphy_idx << 32); in wdev_id()
2339 struct wireless_dev *wdev) in nl80211_send_iface() argument
2341 struct net_device *dev = wdev->netdev; in nl80211_send_iface()
2354 nla_put_u32(msg, NL80211_ATTR_IFTYPE, wdev->iftype) || in nl80211_send_iface()
2355 nla_put_u64(msg, NL80211_ATTR_WDEV, wdev_id(wdev)) || in nl80211_send_iface()
2356 nla_put(msg, NL80211_ATTR_MAC, ETH_ALEN, wdev_address(wdev)) || in nl80211_send_iface()
2366 ret = rdev_get_channel(rdev, wdev, &chandef); in nl80211_send_iface()
2373 if (wdev->ssid_len) { in nl80211_send_iface()
2374 if (nla_put(msg, NL80211_ATTR_SSID, wdev->ssid_len, wdev->ssid)) in nl80211_send_iface()
2392 struct wireless_dev *wdev; in nl80211_dump_interface() local
2404 list_for_each_entry(wdev, &rdev->wdev_list, list) { in nl80211_dump_interface()
2411 rdev, wdev) < 0) { in nl80211_dump_interface()
2432 struct wireless_dev *wdev = info->user_ptr[1]; in nl80211_get_interface() local
2439 rdev, wdev) < 0) { in nl80211_get_interface()
2526 struct wireless_dev *wdev = dev->ieee80211_ptr; in nl80211_set_interface() local
2533 wdev_lock(wdev); in nl80211_set_interface()
2536 wdev->mesh_id_up_len = in nl80211_set_interface()
2538 memcpy(wdev->ssid, nla_data(info->attrs[NL80211_ATTR_MESH_ID]), in nl80211_set_interface()
2539 wdev->mesh_id_up_len); in nl80211_set_interface()
2540 wdev_unlock(wdev); in nl80211_set_interface()
2584 struct wireless_dev *wdev; in nl80211_new_interface() local
2634 wdev = rdev_add_virtual_intf(rdev, in nl80211_new_interface()
2637 if (IS_ERR(wdev)) { in nl80211_new_interface()
2639 return PTR_ERR(wdev); in nl80211_new_interface()
2643 wdev->owner_nlportid = info->snd_portid; in nl80211_new_interface()
2649 wdev_lock(wdev); in nl80211_new_interface()
2652 wdev->mesh_id_up_len = in nl80211_new_interface()
2654 memcpy(wdev->ssid, nla_data(info->attrs[NL80211_ATTR_MESH_ID]), in nl80211_new_interface()
2655 wdev->mesh_id_up_len); in nl80211_new_interface()
2656 wdev_unlock(wdev); in nl80211_new_interface()
2663 mutex_init(&wdev->mtx); in nl80211_new_interface()
2664 INIT_LIST_HEAD(&wdev->event_list); in nl80211_new_interface()
2665 spin_lock_init(&wdev->event_lock); in nl80211_new_interface()
2666 INIT_LIST_HEAD(&wdev->mgmt_registrations); in nl80211_new_interface()
2667 spin_lock_init(&wdev->mgmt_registrations_lock); in nl80211_new_interface()
2669 wdev->identifier = ++rdev->wdev_id; in nl80211_new_interface()
2670 list_add_rcu(&wdev->list, &rdev->wdev_list); in nl80211_new_interface()
2678 rdev, wdev) < 0) { in nl80211_new_interface()
2689 struct wireless_dev *wdev = info->user_ptr[1]; in nl80211_del_interface() local
2701 if (!wdev->netdev) in nl80211_del_interface()
2704 return rdev_del_virtual_intf(rdev, wdev); in nl80211_del_interface()
3173 struct wireless_dev *wdev; in nl80211_get_ap_channel() local
3176 list_for_each_entry(wdev, &rdev->wdev_list, list) { in nl80211_get_ap_channel()
3177 if (wdev->iftype != NL80211_IFTYPE_AP && in nl80211_get_ap_channel()
3178 wdev->iftype != NL80211_IFTYPE_P2P_GO) in nl80211_get_ap_channel()
3181 if (!wdev->preset_chandef.chan) in nl80211_get_ap_channel()
3184 params->chandef = wdev->preset_chandef; in nl80211_get_ap_channel()
3220 struct wireless_dev *wdev = dev->ieee80211_ptr; in nl80211_start_ap() local
3231 if (wdev->beacon_interval) in nl80211_start_ap()
3333 } else if (wdev->preset_chandef.chan) { in nl80211_start_ap()
3334 params.chandef = wdev->preset_chandef; in nl80211_start_ap()
3339 wdev->iftype)) in nl80211_start_ap()
3371 wdev_lock(wdev); in nl80211_start_ap()
3374 wdev->preset_chandef = params.chandef; in nl80211_start_ap()
3375 wdev->beacon_interval = params.beacon_interval; in nl80211_start_ap()
3376 wdev->chandef = params.chandef; in nl80211_start_ap()
3377 wdev->ssid_len = params.ssid_len; in nl80211_start_ap()
3378 memcpy(wdev->ssid, params.ssid, wdev->ssid_len); in nl80211_start_ap()
3380 wdev_unlock(wdev); in nl80211_start_ap()
3391 struct wireless_dev *wdev = dev->ieee80211_ptr; in nl80211_set_beacon() local
3402 if (!wdev->beacon_interval) in nl80211_set_beacon()
3409 wdev_lock(wdev); in nl80211_set_beacon()
3411 wdev_unlock(wdev); in nl80211_set_beacon()
3769 struct wireless_dev *wdev; in nl80211_dump_station() local
3774 err = nl80211_prepare_wdev_dump(skb, cb, &rdev, &wdev); in nl80211_dump_station()
3778 if (!wdev->netdev) { in nl80211_dump_station()
3790 err = rdev_dump_station(rdev, wdev->netdev, sta_idx, in nl80211_dump_station()
3800 rdev, wdev->netdev, mac_addr, in nl80211_dump_station()
4485 struct wireless_dev *wdev; in nl80211_dump_mpath() local
4491 err = nl80211_prepare_wdev_dump(skb, cb, &rdev, &wdev); in nl80211_dump_mpath()
4500 if (wdev->iftype != NL80211_IFTYPE_MESH_POINT) { in nl80211_dump_mpath()
4506 err = rdev_dump_mpath(rdev, wdev->netdev, path_idx, dst, in nl80211_dump_mpath()
4515 wdev->netdev, dst, next_hop, in nl80211_dump_mpath()
4640 struct wireless_dev *wdev = dev->ieee80211_ptr; in nl80211_set_bss() local
4708 wdev_lock(wdev); in nl80211_set_bss()
4710 wdev_unlock(wdev); in nl80211_set_bss()
4805 struct wireless_dev *wdev = dev->ieee80211_ptr; in nl80211_get_mesh_config() local
4812 if (wdev->iftype != NL80211_IFTYPE_MESH_POINT) in nl80211_get_mesh_config()
4818 wdev_lock(wdev); in nl80211_get_mesh_config()
4820 if (!wdev->mesh_id_len) in nl80211_get_mesh_config()
4824 wdev_unlock(wdev); in nl80211_get_mesh_config()
5150 struct wireless_dev *wdev = dev->ieee80211_ptr; in nl80211_update_mesh_config() local
5155 if (wdev->iftype != NL80211_IFTYPE_MESH_POINT) in nl80211_update_mesh_config()
5165 wdev_lock(wdev); in nl80211_update_mesh_config()
5166 if (!wdev->mesh_id_len) in nl80211_update_mesh_config()
5172 wdev_unlock(wdev); in nl80211_update_mesh_config()
5377 struct wireless_dev *wdev = info->user_ptr[1]; in nl80211_trigger_scan() local
5556 request->wdev = wdev; in nl80211_trigger_scan()
5564 nl80211_send_scan_start(rdev, wdev); in nl80211_trigger_scan()
5565 if (wdev->netdev) in nl80211_trigger_scan()
5566 dev_hold(wdev->netdev); in nl80211_trigger_scan()
5883 struct wireless_dev *wdev = dev->ieee80211_ptr; in nl80211_start_radar_detection() local
5889 dfs_region = reg_get_dfs_region(wdev->wiphy); in nl80211_start_radar_detection()
5900 if (wdev->cac_started) in nl80211_start_radar_detection()
5903 err = cfg80211_chandef_dfs_required(wdev->wiphy, &chandef, in nl80211_start_radar_detection()
5904 wdev->iftype); in nl80211_start_radar_detection()
5911 if (!cfg80211_chandef_dfs_usable(wdev->wiphy, &chandef)) in nl80211_start_radar_detection()
5924 wdev->chandef = chandef; in nl80211_start_radar_detection()
5925 wdev->cac_started = true; in nl80211_start_radar_detection()
5926 wdev->cac_start_time = jiffies; in nl80211_start_radar_detection()
5927 wdev->cac_time_ms = cac_time_ms; in nl80211_start_radar_detection()
5936 struct wireless_dev *wdev = dev->ieee80211_ptr; in nl80211_channel_switch() local
5958 if (!wdev->beacon_interval) in nl80211_channel_switch()
5962 if (!wdev->ssid_len) in nl80211_channel_switch()
5966 if (!wdev->mesh_id_len) in nl80211_channel_switch()
6069 wdev->iftype)) in nl80211_channel_switch()
6072 err = cfg80211_chandef_dfs_required(wdev->wiphy, in nl80211_channel_switch()
6074 wdev->iftype); in nl80211_channel_switch()
6086 wdev_lock(wdev); in nl80211_channel_switch()
6088 wdev_unlock(wdev); in nl80211_channel_switch()
6096 struct wireless_dev *wdev, in nl80211_send_bss() argument
6104 ASSERT_WDEV_LOCK(wdev); in nl80211_send_bss()
6115 if (wdev->netdev && in nl80211_send_bss()
6116 nla_put_u32(msg, NL80211_ATTR_IFINDEX, wdev->netdev->ifindex)) in nl80211_send_bss()
6118 if (nla_put_u64(msg, NL80211_ATTR_WDEV, wdev_id(wdev))) in nl80211_send_bss()
6180 switch (wdev->iftype) { in nl80211_send_bss()
6183 if (intbss == wdev->current_bss && in nl80211_send_bss()
6189 if (intbss == wdev->current_bss && in nl80211_send_bss()
6213 struct wireless_dev *wdev; in nl80211_dump_scan() local
6217 err = nl80211_prepare_wdev_dump(skb, cb, &rdev, &wdev); in nl80211_dump_scan()
6221 wdev_lock(wdev); in nl80211_dump_scan()
6232 rdev, wdev, scan) < 0) { in nl80211_dump_scan()
6239 wdev_unlock(wdev); in nl80211_dump_scan()
6311 struct wireless_dev *wdev; in nl80211_dump_survey() local
6315 res = nl80211_prepare_wdev_dump(skb, cb, &rdev, &wdev); in nl80211_dump_survey()
6319 if (!wdev->netdev) { in nl80211_dump_survey()
6332 res = rdev_dump_survey(rdev, wdev->netdev, survey_idx, &survey); in nl80211_dump_survey()
6354 wdev->netdev, &survey) < 0) in nl80211_dump_survey()
7073 struct wireless_dev *wdev = in nl80211_testmode_do() local
7080 if (IS_ERR(wdev)) { in nl80211_testmode_do()
7081 err = PTR_ERR(wdev); in nl80211_testmode_do()
7084 wdev = NULL; in nl80211_testmode_do()
7085 } else if (wdev->wiphy != &rdev->wiphy) { in nl80211_testmode_do()
7093 err = rdev_testmode_cmd(rdev, wdev, in nl80211_testmode_do()
7506 struct wireless_dev *wdev = info->user_ptr[1]; in nl80211_remain_on_channel() local
7547 err = rdev_remain_on_channel(rdev, wdev, chandef.chan, in nl80211_remain_on_channel()
7571 struct wireless_dev *wdev = info->user_ptr[1]; in nl80211_cancel_remain_on_channel() local
7582 return rdev_cancel_remain_on_channel(rdev, wdev, cookie); in nl80211_cancel_remain_on_channel()
7822 struct wireless_dev *wdev = info->user_ptr[1]; in nl80211_register_mgmt() local
7831 switch (wdev->iftype) { in nl80211_register_mgmt()
7849 return cfg80211_mlme_register_mgmt(wdev, info->snd_portid, frame_type, in nl80211_register_mgmt()
7857 struct wireless_dev *wdev = info->user_ptr[1]; in nl80211_tx_mgmt() local
7874 switch (wdev->iftype) { in nl80211_tx_mgmt()
7960 err = cfg80211_mlme_mgmt_tx(rdev, wdev, &params, &cookie); in nl80211_tx_mgmt()
7984 struct wireless_dev *wdev = info->user_ptr[1]; in nl80211_tx_mgmt_cancel_wait() local
7993 switch (wdev->iftype) { in nl80211_tx_mgmt_cancel_wait()
8008 return rdev_mgmt_tx_cancel_wait(rdev, wdev, cookie); in nl80211_tx_mgmt_cancel_wait()
8014 struct wireless_dev *wdev; in nl80211_set_power_save() local
8028 wdev = dev->ieee80211_ptr; in nl80211_set_power_save()
8035 if (state == wdev->ps) in nl80211_set_power_save()
8038 err = rdev_set_power_mgmt(rdev, dev, state, wdev->ps_timeout); in nl80211_set_power_save()
8040 wdev->ps = state; in nl80211_set_power_save()
8048 struct wireless_dev *wdev; in nl80211_get_power_save() local
8054 wdev = dev->ieee80211_ptr; in nl80211_get_power_save()
8070 if (wdev->ps) in nl80211_get_power_save()
8103 struct wireless_dev *wdev = dev->ieee80211_ptr; in nl80211_set_cqm_txe() local
8111 if (wdev->iftype != NL80211_IFTYPE_STATION && in nl80211_set_cqm_txe()
8112 wdev->iftype != NL80211_IFTYPE_P2P_CLIENT) in nl80211_set_cqm_txe()
8123 struct wireless_dev *wdev = dev->ieee80211_ptr; in nl80211_set_cqm_rssi() local
8135 if (wdev->iftype != NL80211_IFTYPE_STATION && in nl80211_set_cqm_rssi()
8136 wdev->iftype != NL80211_IFTYPE_P2P_CLIENT) in nl80211_set_cqm_rssi()
8997 struct wireless_dev *wdev = dev->ieee80211_ptr; in nl80211_set_rekey_data() local
9026 wdev_lock(wdev); in nl80211_set_rekey_data()
9027 if (!wdev->current_bss) { in nl80211_set_rekey_data()
9039 wdev_unlock(wdev); in nl80211_set_rekey_data()
9047 struct wireless_dev *wdev = dev->ieee80211_ptr; in nl80211_register_unexpected_frame() local
9049 if (wdev->iftype != NL80211_IFTYPE_AP && in nl80211_register_unexpected_frame()
9050 wdev->iftype != NL80211_IFTYPE_P2P_GO) in nl80211_register_unexpected_frame()
9053 if (wdev->ap_unexpected_nlportid) in nl80211_register_unexpected_frame()
9056 wdev->ap_unexpected_nlportid = info->snd_portid; in nl80211_register_unexpected_frame()
9065 struct wireless_dev *wdev = dev->ieee80211_ptr; in nl80211_probe_client() local
9072 if (wdev->iftype != NL80211_IFTYPE_AP && in nl80211_probe_client()
9073 wdev->iftype != NL80211_IFTYPE_P2P_GO) in nl80211_probe_client()
9150 struct wireless_dev *wdev = info->user_ptr[1]; in nl80211_start_p2p_device() local
9156 if (wdev->iftype != NL80211_IFTYPE_P2P_DEVICE) in nl80211_start_p2p_device()
9159 if (wdev->p2p_started) in nl80211_start_p2p_device()
9165 err = rdev_start_p2p_device(rdev, wdev); in nl80211_start_p2p_device()
9169 wdev->p2p_started = true; in nl80211_start_p2p_device()
9178 struct wireless_dev *wdev = info->user_ptr[1]; in nl80211_stop_p2p_device() local
9180 if (wdev->iftype != NL80211_IFTYPE_P2P_DEVICE) in nl80211_stop_p2p_device()
9186 cfg80211_stop_p2p_device(rdev, wdev); in nl80211_stop_p2p_device()
9243 struct wireless_dev *wdev = info->user_ptr[1]; in nl80211_crit_protocol_start() local
9274 ret = rdev_crit_proto_start(rdev, wdev, proto, duration); in nl80211_crit_protocol_start()
9285 struct wireless_dev *wdev = info->user_ptr[1]; in nl80211_crit_protocol_stop() local
9292 rdev_crit_proto_stop(rdev, wdev); in nl80211_crit_protocol_stop()
9300 struct wireless_dev *wdev = in nl80211_vendor_cmd() local
9308 if (IS_ERR(wdev)) { in nl80211_vendor_cmd()
9309 err = PTR_ERR(wdev); in nl80211_vendor_cmd()
9312 wdev = NULL; in nl80211_vendor_cmd()
9313 } else if (wdev->wiphy != &rdev->wiphy) { in nl80211_vendor_cmd()
9335 if (!wdev) in nl80211_vendor_cmd()
9338 !wdev->netdev) in nl80211_vendor_cmd()
9342 if (wdev->netdev && in nl80211_vendor_cmd()
9343 !netif_running(wdev->netdev)) in nl80211_vendor_cmd()
9345 if (!wdev->netdev && !wdev->p2p_started) in nl80211_vendor_cmd()
9349 wdev = NULL; in nl80211_vendor_cmd()
9358 err = rdev->wiphy.vendor_commands[i].doit(&rdev->wiphy, wdev, in nl80211_vendor_cmd()
9460 struct wireless_dev *wdev = dev->ieee80211_ptr; in nl80211_add_tx_ts() local
9501 wdev_lock(wdev); in nl80211_add_tx_ts()
9502 switch (wdev->iftype) { in nl80211_add_tx_ts()
9505 if (wdev->current_bss) in nl80211_add_tx_ts()
9517 wdev_unlock(wdev); in nl80211_add_tx_ts()
9525 struct wireless_dev *wdev = dev->ieee80211_ptr; in nl80211_del_tx_ts() local
9536 wdev_lock(wdev); in nl80211_del_tx_ts()
9538 wdev_unlock(wdev); in nl80211_del_tx_ts()
9559 struct wireless_dev *wdev; in nl80211_pre_doit() local
9578 wdev = __cfg80211_wdev_from_attrs(genl_info_net(info), in nl80211_pre_doit()
9580 if (IS_ERR(wdev)) { in nl80211_pre_doit()
9583 return PTR_ERR(wdev); in nl80211_pre_doit()
9586 dev = wdev->netdev; in nl80211_pre_doit()
9587 rdev = wiphy_to_rdev(wdev->wiphy); in nl80211_pre_doit()
9598 info->user_ptr[1] = wdev; in nl80211_pre_doit()
9611 if (!wdev->p2p_started) { in nl80211_pre_doit()
9629 struct wireless_dev *wdev = info->user_ptr[1]; in nl80211_post_doit() local
9631 if (wdev->netdev) in nl80211_post_doit()
9632 dev_put(wdev->netdev); in nl80211_post_doit()
10385 struct wireless_dev *wdev, in nl80211_send_scan_msg() argument
10396 (wdev->netdev && nla_put_u32(msg, NL80211_ATTR_IFINDEX, in nl80211_send_scan_msg()
10397 wdev->netdev->ifindex)) || in nl80211_send_scan_msg()
10398 nla_put_u64(msg, NL80211_ATTR_WDEV, wdev_id(wdev))) in nl80211_send_scan_msg()
10435 struct wireless_dev *wdev) in nl80211_send_scan_start() argument
10443 if (nl80211_send_scan_msg(msg, rdev, wdev, 0, 0, 0, in nl80211_send_scan_start()
10454 struct wireless_dev *wdev, bool aborted) in nl80211_build_scan_msg() argument
10462 if (nl80211_send_scan_msg(msg, rdev, wdev, 0, 0, 0, in nl80211_build_scan_msg()
10664 struct wireless_dev *wdev = dev->ieee80211_ptr; in cfg80211_rx_unprot_mlme_mgmt() local
10665 struct wiphy *wiphy = wdev->wiphy; in cfg80211_rx_unprot_mlme_mgmt()
10887 struct wireless_dev *wdev = dev->ieee80211_ptr; in cfg80211_notify_new_peer_candidate() local
10888 struct cfg80211_registered_device *rdev = wiphy_to_rdev(wdev->wiphy); in cfg80211_notify_new_peer_candidate()
10892 if (WARN_ON(wdev->iftype != NL80211_IFTYPE_MESH_POINT)) in cfg80211_notify_new_peer_candidate()
11021 struct wireless_dev *wdev, u64 cookie, in nl80211_send_remain_on_chan_event() argument
11039 (wdev->netdev && nla_put_u32(msg, NL80211_ATTR_IFINDEX, in nl80211_send_remain_on_chan_event()
11040 wdev->netdev->ifindex)) || in nl80211_send_remain_on_chan_event()
11041 nla_put_u64(msg, NL80211_ATTR_WDEV, wdev_id(wdev)) || in nl80211_send_remain_on_chan_event()
11063 void cfg80211_ready_on_channel(struct wireless_dev *wdev, u64 cookie, in cfg80211_ready_on_channel() argument
11067 struct wiphy *wiphy = wdev->wiphy; in cfg80211_ready_on_channel()
11070 trace_cfg80211_ready_on_channel(wdev, cookie, chan, duration); in cfg80211_ready_on_channel()
11072 rdev, wdev, cookie, chan, in cfg80211_ready_on_channel()
11077 void cfg80211_remain_on_channel_expired(struct wireless_dev *wdev, u64 cookie, in cfg80211_remain_on_channel_expired() argument
11081 struct wiphy *wiphy = wdev->wiphy; in cfg80211_remain_on_channel_expired()
11084 trace_cfg80211_ready_on_channel_expired(wdev, cookie, chan); in cfg80211_remain_on_channel_expired()
11086 rdev, wdev, cookie, chan, 0, gfp); in cfg80211_remain_on_channel_expired()
11188 struct wireless_dev *wdev = dev->ieee80211_ptr; in __nl80211_unexpected_frame() local
11189 struct cfg80211_registered_device *rdev = wiphy_to_rdev(wdev->wiphy); in __nl80211_unexpected_frame()
11192 u32 nlportid = ACCESS_ONCE(wdev->ap_unexpected_nlportid); in __nl80211_unexpected_frame()
11225 struct wireless_dev *wdev = dev->ieee80211_ptr; in cfg80211_rx_spurious_frame() local
11230 if (WARN_ON(wdev->iftype != NL80211_IFTYPE_AP && in cfg80211_rx_spurious_frame()
11231 wdev->iftype != NL80211_IFTYPE_P2P_GO)) { in cfg80211_rx_spurious_frame()
11245 struct wireless_dev *wdev = dev->ieee80211_ptr; in cfg80211_rx_unexpected_4addr_frame() local
11250 if (WARN_ON(wdev->iftype != NL80211_IFTYPE_AP && in cfg80211_rx_unexpected_4addr_frame()
11251 wdev->iftype != NL80211_IFTYPE_P2P_GO && in cfg80211_rx_unexpected_4addr_frame()
11252 wdev->iftype != NL80211_IFTYPE_AP_VLAN)) { in cfg80211_rx_unexpected_4addr_frame()
11265 struct wireless_dev *wdev, u32 nlportid, in nl80211_send_mgmt() argument
11269 struct net_device *netdev = wdev->netdev; in nl80211_send_mgmt()
11286 nla_put_u64(msg, NL80211_ATTR_WDEV, wdev_id(wdev)) || in nl80211_send_mgmt()
11305 void cfg80211_mgmt_tx_status(struct wireless_dev *wdev, u64 cookie, in cfg80211_mgmt_tx_status() argument
11308 struct wiphy *wiphy = wdev->wiphy; in cfg80211_mgmt_tx_status()
11310 struct net_device *netdev = wdev->netdev; in cfg80211_mgmt_tx_status()
11314 trace_cfg80211_mgmt_tx_status(wdev, cookie, ack); in cfg80211_mgmt_tx_status()
11329 nla_put_u64(msg, NL80211_ATTR_WDEV, wdev_id(wdev)) || in cfg80211_mgmt_tx_status()
11351 struct wireless_dev *wdev = dev->ieee80211_ptr; in cfg80211_cqm_rssi_notify() local
11352 struct wiphy *wiphy = wdev->wiphy; in cfg80211_cqm_rssi_notify()
11443 struct wireless_dev *wdev = dev->ieee80211_ptr; in cfg80211_gtk_rekey_notify() local
11444 struct wiphy *wiphy = wdev->wiphy; in cfg80211_gtk_rekey_notify()
11501 struct wireless_dev *wdev = dev->ieee80211_ptr; in cfg80211_pmksa_candidate_notify() local
11502 struct wiphy *wiphy = wdev->wiphy; in cfg80211_pmksa_candidate_notify()
11548 struct wireless_dev *wdev = dev->ieee80211_ptr; in cfg80211_ch_switch_notify() local
11549 struct wiphy *wiphy = wdev->wiphy; in cfg80211_ch_switch_notify()
11552 ASSERT_WDEV_LOCK(wdev); in cfg80211_ch_switch_notify()
11556 if (WARN_ON(wdev->iftype != NL80211_IFTYPE_AP && in cfg80211_ch_switch_notify()
11557 wdev->iftype != NL80211_IFTYPE_P2P_GO && in cfg80211_ch_switch_notify()
11558 wdev->iftype != NL80211_IFTYPE_ADHOC && in cfg80211_ch_switch_notify()
11559 wdev->iftype != NL80211_IFTYPE_MESH_POINT)) in cfg80211_ch_switch_notify()
11562 wdev->chandef = *chandef; in cfg80211_ch_switch_notify()
11563 wdev->preset_chandef = *chandef; in cfg80211_ch_switch_notify()
11572 struct wireless_dev *wdev = dev->ieee80211_ptr; in cfg80211_cqm_txe_notify() local
11573 struct wiphy *wiphy = wdev->wiphy; in cfg80211_cqm_txe_notify()
11645 struct wireless_dev *wdev = netdev->ieee80211_ptr; in nl80211_radar_notify() local
11648 nla_put_u64(msg, NL80211_ATTR_WDEV, wdev_id(wdev))) in nl80211_radar_notify()
11672 struct wireless_dev *wdev = dev->ieee80211_ptr; in cfg80211_cqm_pktloss_notify() local
11673 struct wiphy *wiphy = wdev->wiphy; in cfg80211_cqm_pktloss_notify()
11720 struct wireless_dev *wdev = dev->ieee80211_ptr; in cfg80211_probe_status() local
11721 struct cfg80211_registered_device *rdev = wiphy_to_rdev(wdev->wiphy); in cfg80211_probe_status()
11804 void cfg80211_report_wowlan_wakeup(struct wireless_dev *wdev, in cfg80211_report_wowlan_wakeup() argument
11808 struct cfg80211_registered_device *rdev = wiphy_to_rdev(wdev->wiphy); in cfg80211_report_wowlan_wakeup()
11813 trace_cfg80211_report_wowlan_wakeup(wdev->wiphy, wdev, wakeup); in cfg80211_report_wowlan_wakeup()
11827 nla_put_u64(msg, NL80211_ATTR_WDEV, wdev_id(wdev))) in cfg80211_report_wowlan_wakeup()
11830 if (wdev->netdev && nla_put_u32(msg, NL80211_ATTR_IFINDEX, in cfg80211_report_wowlan_wakeup()
11831 wdev->netdev->ifindex)) in cfg80211_report_wowlan_wakeup()
11917 struct wireless_dev *wdev = dev->ieee80211_ptr; in cfg80211_tdls_oper_request() local
11918 struct cfg80211_registered_device *rdev = wiphy_to_rdev(wdev->wiphy); in cfg80211_tdls_oper_request()
11922 trace_cfg80211_tdls_oper_request(wdev->wiphy, dev, peer, oper, in cfg80211_tdls_oper_request()
11961 struct wireless_dev *wdev; in nl80211_netlink_notify() local
11979 list_for_each_entry_rcu(wdev, &rdev->wdev_list, list) { in nl80211_netlink_notify()
11980 cfg80211_mlme_unregister_socket(wdev, notify->portid); in nl80211_netlink_notify()
11982 if (wdev->owner_nlportid == notify->portid) in nl80211_netlink_notify()
12070 void cfg80211_crit_proto_stopped(struct wireless_dev *wdev, gfp_t gfp) in cfg80211_crit_proto_stopped() argument
12077 rdev = wiphy_to_rdev(wdev->wiphy); in cfg80211_crit_proto_stopped()
12093 nla_put_u64(msg, NL80211_ATTR_WDEV, wdev_id(wdev))) in cfg80211_crit_proto_stopped()
12109 void nl80211_send_ap_stopped(struct wireless_dev *wdev) in nl80211_send_ap_stopped() argument
12111 struct wiphy *wiphy = wdev->wiphy; in nl80211_send_ap_stopped()
12125 nla_put_u32(msg, NL80211_ATTR_IFINDEX, wdev->netdev->ifindex) || in nl80211_send_ap_stopped()
12126 nla_put_u64(msg, NL80211_ATTR_WDEV, wdev_id(wdev))) in nl80211_send_ap_stopped()