Lines Matching defs:netdev

93 			if (have_ifidx && wdev->netdev &&
94 wdev->netdev->ifindex == ifidx) {
119 if (have_ifidx && wdev->netdev &&
120 wdev->netdev->ifindex == ifidx) {
143 struct net_device *netdev;
183 netdev = __dev_get_by_index(netns, ifindex);
184 if (netdev) {
185 if (netdev->ieee80211_ptr)
187 netdev->ieee80211_ptr->wiphy);
3033 struct net_device *netdev;
3037 netdev = __dev_get_by_index(sock_net(skb->sk), ifidx);
3038 if (!netdev) {
3042 if (netdev->ieee80211_ptr) {
3044 netdev->ieee80211_ptr->wiphy);
3425 struct net_device *netdev = info->user_ptr[1];
3428 wdev_lock(netdev->ieee80211_ptr);
3429 ret = __nl80211_set_channel(rdev, netdev, info, link_id);
3430 wdev_unlock(netdev->ieee80211_ptr);
3438 struct net_device *netdev = NULL;
3450 * Try to find the wiphy and netdev. Normally this
3451 * function shouldn't need the netdev, but this is
3454 * it is per netdev. Previous userland like hostapd
3455 * also passed a netdev to set_wiphy, so that it is
3456 * possible to let that go to the right netdev!
3462 netdev = __dev_get_by_index(genl_info_net(info), ifindex);
3463 if (netdev && netdev->ieee80211_ptr)
3464 rdev = wiphy_to_rdev(netdev->ieee80211_ptr->wiphy);
3466 netdev = NULL;
3469 if (!netdev) {
3477 netdev = NULL;
3480 wdev = netdev->ieee80211_ptr;
3506 if (!netdev) {
3511 if (netdev->ieee80211_ptr->iftype != NL80211_IFTYPE_AP &&
3512 netdev->ieee80211_ptr->iftype != NL80211_IFTYPE_P2P_GO) {
3517 if (!netif_running(netdev)) {
3539 wdev_lock(netdev->ieee80211_ptr);
3541 !(netdev->ieee80211_ptr->valid_links &
3545 !netdev->ieee80211_ptr->valid_links)
3548 result = rdev_set_txq_params(rdev, netdev,
3550 wdev_unlock(netdev->ieee80211_ptr);
3563 nl80211_can_set_dev_channel(wdev) ? netdev : NULL,
3567 result = __nl80211_set_channel(rdev, netdev, info, link_id);
3827 struct net_device *dev = wdev->netdev;
4143 struct net_device *netdev, u8 use_4addr,
4147 if (netdev && netif_is_bridge_port(netdev))
4319 * P2P Device and NAN do not have a netdev, so don't go
4320 * through the netdev notifier and must be added here
4366 * the netdev notifiers, and we need to acquire the mutex there
4373 * If we remove a wireless device without a netdev then clear
4376 * since the wdev has been freed, unlike with a netdev where
4377 * we need the dev_put() for the netdev to really be freed.
4379 if (!wdev->netdev)
4382 dev_close(wdev->netdev);
5896 nla_put_u32(msg, NL80211_ATTR_IFINDEX, wdev->netdev->ifindex) ||
6237 params->mbssid_config.tx_wdev->netdev &&
6238 params->mbssid_config.tx_wdev->netdev != dev)
6239 dev_put(params->mbssid_config.tx_wdev->netdev);
6774 if (!wdev->netdev) {
6786 err = rdev_dump_station(rdev, wdev->netdev, sta_idx,
6796 rdev, wdev->netdev, mac_addr,
7771 err = rdev_dump_mpath(rdev, wdev->netdev, path_idx, dst,
7780 wdev->netdev, dst, next_hop,
7971 err = rdev_dump_mpp(rdev, wdev->netdev, path_idx, dst,
7980 wdev->netdev, dst, mpp,
9379 dev_hold(wdev->netdev);
10326 if (wdev->netdev &&
10327 nla_put_u32(msg, NL80211_ATTR_IFINDEX, wdev->netdev->ifindex))
10602 if (!wdev->netdev) {
10614 res = rdev_dump_survey(rdev, wdev->netdev, survey_idx, &survey);
10631 wdev->netdev, radio_stats, &survey) < 0)
11589 if (wdev->netdev &&
11591 wdev->netdev->ifindex))
14716 (wdev->netdev && nla_put_u32(msg, NL80211_ATTR_IFINDEX,
14717 wdev->netdev->ifindex)) ||
14798 (wdev->netdev && nla_put_u32(msg, NL80211_ATTR_IFINDEX,
14799 wdev->netdev->ifindex)) ||
15000 !wdev->netdev)
15178 !wdev->netdev) {
16373 /* If a netdev is associated, it must be UP, P2P must be started */
16486 dev = wdev->netdev;
16566 dev_put(wdev->netdev);
17689 (wdev->netdev && nla_put_u32(msg, NL80211_ATTR_IFINDEX,
17690 wdev->netdev->ifindex)) ||
17879 struct net_device *netdev,
17899 nla_put_u32(msg, NL80211_ATTR_IFINDEX, netdev->ifindex) ||
17932 struct net_device *netdev, const u8 *buf,
17935 nl80211_send_mlme_event(rdev, netdev, buf, len,
17941 struct net_device *netdev,
17944 nl80211_send_mlme_event(rdev, netdev, data->buf, data->len,
17951 struct net_device *netdev, const u8 *buf,
17954 nl80211_send_mlme_event(rdev, netdev, buf, len,
17960 struct net_device *netdev, const u8 *buf,
17963 nl80211_send_mlme_event(rdev, netdev, buf, len,
18001 struct net_device *netdev, int cmd,
18018 nla_put_u32(msg, NL80211_ATTR_IFINDEX, netdev->ifindex) ||
18034 struct net_device *netdev, const u8 *addr,
18037 nl80211_send_mlme_timeout(rdev, netdev, NL80211_CMD_AUTHENTICATE,
18042 struct net_device *netdev, const u8 *addr,
18045 nl80211_send_mlme_timeout(rdev, netdev, NL80211_CMD_ASSOCIATE,
18050 struct net_device *netdev,
18090 nla_put_u32(msg, NL80211_ATTR_IFINDEX, netdev->ifindex) ||
18163 struct net_device *netdev,
18204 nla_put_u32(msg, NL80211_ATTR_IFINDEX, netdev->ifindex) ||
18267 struct net_device *netdev, const u8 *bssid,
18284 nla_put_u32(msg, NL80211_ATTR_IFINDEX, netdev->ifindex) ||
18304 struct net_device *netdev, u16 reason,
18321 nla_put_u32(msg, NL80211_ATTR_IFINDEX, netdev->ifindex) ||
18410 struct net_device *netdev, const u8 *bssid,
18427 nla_put_u32(msg, NL80211_ATTR_IFINDEX, netdev->ifindex) ||
18486 struct net_device *netdev, const u8 *addr,
18504 nla_put_u32(msg, NL80211_ATTR_IFINDEX, netdev->ifindex) ||
18598 (wdev->netdev && nla_put_u32(msg, NL80211_ATTR_IFINDEX,
18599 wdev->netdev->ifindex)) ||
18623 void cfg80211_assoc_comeback(struct net_device *netdev,
18626 struct wireless_dev *wdev = netdev->ieee80211_ptr;
18645 nla_put_u32(msg, NL80211_ATTR_IFINDEX, netdev->ifindex) ||
18872 struct net_device *netdev = wdev->netdev;
18887 (netdev && nla_put_u32(msg, NL80211_ATTR_IFINDEX,
18888 netdev->ifindex)) ||
18925 struct net_device *netdev = wdev->netdev;
18947 (netdev && nla_put_u32(msg, NL80211_ATTR_IFINDEX,
18948 netdev->ifindex)) ||
19158 cfg80211_cqm_rssi_update(rdev, wdev->netdev, cqm_config);
19163 msg = cfg80211_prepare_cqm(wdev->netdev, NULL, GFP_KERNEL);
19254 struct net_device *netdev, const u8 *bssid,
19272 nla_put_u32(msg, NL80211_ATTR_IFINDEX, netdev->ifindex) ||
19310 struct net_device *netdev, int index,
19328 nla_put_u32(msg, NL80211_ATTR_IFINDEX, netdev->ifindex))
19366 struct net_device *netdev,
19373 struct wireless_dev *wdev = netdev->ieee80211_ptr;
19387 if (nla_put_u32(msg, NL80211_ATTR_IFINDEX, netdev->ifindex))
19533 struct net_device *netdev, gfp_t gfp)
19551 /* NOP and radar events don't need a netdev parameter */
19552 if (netdev) {
19553 struct wireless_dev *wdev = netdev->ieee80211_ptr;
19555 if (nla_put_u32(msg, NL80211_ATTR_IFINDEX, netdev->ifindex) ||
19808 if (wdev->netdev && nla_put_u32(msg, NL80211_ATTR_IFINDEX,
19809 wdev->netdev->ifindex))
20003 void cfg80211_ft_event(struct net_device *netdev,
20006 struct wiphy *wiphy = netdev->ieee80211_ptr->wiphy;
20011 trace_cfg80211_ft_event(wiphy, netdev, ft_event);
20026 nla_put_u32(msg, NL80211_ATTR_IFINDEX, netdev->ifindex) ||
20101 nla_put_u32(msg, NL80211_ATTR_IFINDEX, wdev->netdev->ifindex) ||
20160 void cfg80211_update_owe_info_event(struct net_device *netdev,
20164 struct wiphy *wiphy = netdev->ieee80211_ptr->wiphy;
20169 trace_cfg80211_update_owe_info_event(wiphy, netdev, owe_info);
20180 nla_put_u32(msg, NL80211_ATTR_IFINDEX, netdev->ifindex) ||