Lines Matching defs:netdev

99 			if (have_ifidx && wdev->netdev &&
100 wdev->netdev->ifindex == ifidx) {
123 struct net_device *netdev;
163 netdev = __dev_get_by_index(netns, ifindex);
164 if (netdev) {
165 if (netdev->ieee80211_ptr)
167 netdev->ieee80211_ptr->wiphy);
2718 struct net_device *netdev;
2722 netdev = __dev_get_by_index(sock_net(skb->sk), ifidx);
2723 if (!netdev) {
2727 if (netdev->ieee80211_ptr) {
2729 netdev->ieee80211_ptr->wiphy);
3082 struct net_device *netdev = info->user_ptr[1];
3084 return __nl80211_set_channel(rdev, netdev, info);
3113 struct net_device *netdev = NULL;
3126 * Try to find the wiphy and netdev. Normally this
3127 * function shouldn't need the netdev, but this is
3130 * it is per netdev. Previous userland like hostapd
3131 * also passed a netdev to set_wiphy, so that it is
3132 * possible to let that go to the right netdev!
3138 netdev = __dev_get_by_index(genl_info_net(info), ifindex);
3139 if (netdev && netdev->ieee80211_ptr)
3140 rdev = wiphy_to_rdev(netdev->ieee80211_ptr->wiphy);
3142 netdev = NULL;
3145 if (!netdev) {
3151 netdev = NULL;
3154 wdev = netdev->ieee80211_ptr;
3175 if (!netdev)
3178 if (netdev->ieee80211_ptr->iftype != NL80211_IFTYPE_AP &&
3179 netdev->ieee80211_ptr->iftype != NL80211_IFTYPE_P2P_GO)
3182 if (!netif_running(netdev))
3199 result = rdev_set_txq_params(rdev, netdev,
3209 nl80211_can_set_dev_channel(wdev) ? netdev : NULL,
3441 struct net_device *dev = wdev->netdev;
3729 struct net_device *netdev, u8 use_4addr,
3733 if (netdev && netif_is_bridge_port(netdev))
3906 * P2P Device and NAN do not have a netdev, so don't go
3907 * through the netdev notifier and must be added here
3934 * If we remove a wireless device without a netdev then clear
3937 * since the wdev has been freed, unlike with a netdev where
3938 * we need the dev_put() for the netdev to really be freed.
3940 if (!wdev->netdev)
5835 if (!wdev->netdev) {
5847 err = rdev_dump_station(rdev, wdev->netdev, sta_idx,
5857 rdev, wdev->netdev, mac_addr,
6742 err = rdev_dump_mpath(rdev, wdev->netdev, path_idx, dst,
6751 wdev->netdev, dst, next_hop,
6941 err = rdev_dump_mpp(rdev, wdev->netdev, path_idx, dst,
6950 wdev->netdev, dst, mpp,
8311 if (wdev->netdev)
8312 dev_hold(wdev->netdev);
9189 if (wdev->netdev &&
9190 nla_put_u32(msg, NL80211_ATTR_IFINDEX, wdev->netdev->ifindex))
9456 if (!wdev->netdev) {
9467 res = rdev_dump_survey(rdev, wdev->netdev, survey_idx, &survey);
9483 wdev->netdev, radio_stats, &survey) < 0)
10264 if (wdev->netdev &&
10266 wdev->netdev->ifindex))
13309 (wdev->netdev && nla_put_u32(msg, NL80211_ATTR_IFINDEX,
13310 wdev->netdev->ifindex)) ||
13391 (wdev->netdev && nla_put_u32(msg, NL80211_ATTR_IFINDEX,
13392 wdev->netdev->ifindex)) ||
13592 !wdev->netdev)
13770 !wdev->netdev) {
14605 /* If a netdev is associated, it must be UP, P2P must be started */
14641 dev = wdev->netdev;
14679 if (wdev->netdev)
14680 dev_put(wdev->netdev);
15703 (wdev->netdev && nla_put_u32(msg, NL80211_ATTR_IFINDEX,
15704 wdev->netdev->ifindex)) ||
15893 struct net_device *netdev,
15913 nla_put_u32(msg, NL80211_ATTR_IFINDEX, netdev->ifindex) ||
15943 struct net_device *netdev, const u8 *buf,
15946 nl80211_send_mlme_event(rdev, netdev, buf, len,
15951 struct net_device *netdev, const u8 *buf,
15955 nl80211_send_mlme_event(rdev, netdev, buf, len,
15961 struct net_device *netdev, const u8 *buf,
15964 nl80211_send_mlme_event(rdev, netdev, buf, len,
15969 struct net_device *netdev, const u8 *buf,
15972 nl80211_send_mlme_event(rdev, netdev, buf, len,
16009 struct net_device *netdev, int cmd,
16026 nla_put_u32(msg, NL80211_ATTR_IFINDEX, netdev->ifindex) ||
16042 struct net_device *netdev, const u8 *addr,
16045 nl80211_send_mlme_timeout(rdev, netdev, NL80211_CMD_AUTHENTICATE,
16050 struct net_device *netdev, const u8 *addr,
16053 nl80211_send_mlme_timeout(rdev, netdev, NL80211_CMD_ASSOCIATE,
16058 struct net_device *netdev,
16078 nla_put_u32(msg, NL80211_ATTR_IFINDEX, netdev->ifindex) ||
16117 struct net_device *netdev,
16137 nla_put_u32(msg, NL80211_ATTR_IFINDEX, netdev->ifindex) ||
16168 struct net_device *netdev, const u8 *bssid)
16184 nla_put_u32(msg, NL80211_ATTR_IFINDEX, netdev->ifindex) ||
16199 struct net_device *netdev, u16 reason,
16216 nla_put_u32(msg, NL80211_ATTR_IFINDEX, netdev->ifindex) ||
16235 struct net_device *netdev, const u8 *bssid,
16252 nla_put_u32(msg, NL80211_ATTR_IFINDEX, netdev->ifindex) ||
16311 struct net_device *netdev, const u8 *addr,
16329 nla_put_u32(msg, NL80211_ATTR_IFINDEX, netdev->ifindex) ||
16423 (wdev->netdev && nla_put_u32(msg, NL80211_ATTR_IFINDEX,
16424 wdev->netdev->ifindex)) ||
16660 struct net_device *netdev = wdev->netdev;
16675 (netdev && nla_put_u32(msg, NL80211_ATTR_IFINDEX,
16676 netdev->ifindex)) ||
16703 struct net_device *netdev = wdev->netdev;
16723 (netdev && nla_put_u32(msg, NL80211_ATTR_IFINDEX,
16724 netdev->ifindex)) ||
16989 struct net_device *netdev, const u8 *bssid,
17007 nla_put_u32(msg, NL80211_ATTR_IFINDEX, netdev->ifindex) ||
17045 struct net_device *netdev, int index,
17063 nla_put_u32(msg, NL80211_ATTR_IFINDEX, netdev->ifindex))
17101 struct net_device *netdev,
17120 if (nla_put_u32(msg, NL80211_ATTR_IFINDEX, netdev->ifindex))
17185 struct net_device *netdev, gfp_t gfp)
17203 /* NOP and radar events don't need a netdev parameter */
17204 if (netdev) {
17205 struct wireless_dev *wdev = netdev->ieee80211_ptr;
17207 if (nla_put_u32(msg, NL80211_ATTR_IFINDEX, netdev->ifindex) ||
17460 if (wdev->netdev && nla_put_u32(msg, NL80211_ATTR_IFINDEX,
17461 wdev->netdev->ifindex))
17654 void cfg80211_ft_event(struct net_device *netdev,
17657 struct wiphy *wiphy = netdev->ieee80211_ptr->wiphy;
17662 trace_cfg80211_ft_event(wiphy, netdev, ft_event);
17677 nla_put_u32(msg, NL80211_ATTR_IFINDEX, netdev->ifindex) ||
17752 nla_put_u32(msg, NL80211_ATTR_IFINDEX, wdev->netdev->ifindex) ||
17807 void cfg80211_update_owe_info_event(struct net_device *netdev,
17811 struct wiphy *wiphy = netdev->ieee80211_ptr->wiphy;
17816 trace_cfg80211_update_owe_info_event(wiphy, netdev, owe_info);
17827 nla_put_u32(msg, NL80211_ATTR_IFINDEX, netdev->ifindex) ||