Lines Matching refs:wdev
2369 static bool reg_wdev_chan_valid(struct wiphy *wiphy, struct wireless_dev *wdev) in reg_wdev_chan_valid() argument
2377 iftype = wdev->iftype; in reg_wdev_chan_valid()
2380 if (!wdev->netdev || !netif_running(wdev->netdev)) in reg_wdev_chan_valid()
2383 for (link = 0; link < ARRAY_SIZE(wdev->links); link++) { in reg_wdev_chan_valid()
2386 if (!wdev->valid_links && link > 0) in reg_wdev_chan_valid()
2388 if (wdev->valid_links && !(wdev->valid_links & BIT(link))) in reg_wdev_chan_valid()
2393 if (!wdev->links[link].ap.beacon_interval) in reg_wdev_chan_valid()
2395 chandef = wdev->links[link].ap.chandef; in reg_wdev_chan_valid()
2398 if (!wdev->u.mesh.beacon_interval) in reg_wdev_chan_valid()
2400 chandef = wdev->u.mesh.chandef; in reg_wdev_chan_valid()
2403 if (!wdev->u.ibss.ssid_len) in reg_wdev_chan_valid()
2405 chandef = wdev->u.ibss.chandef; in reg_wdev_chan_valid()
2410 if (!wdev->links[link].client.current_bss) in reg_wdev_chan_valid()
2413 chan = wdev->links[link].client.current_bss->pub.channel; in reg_wdev_chan_valid()
2418 rdev_get_channel(rdev, wdev, link, &chandef)) in reg_wdev_chan_valid()
2428 if (!wdev->u.ocb.chandef.chan) in reg_wdev_chan_valid()
2430 chandef = wdev->u.ocb.chandef; in reg_wdev_chan_valid()
2468 struct wireless_dev *wdev; in reg_leave_invalid_chans() local
2473 list_for_each_entry(wdev, &rdev->wiphy.wdev_list, list) in reg_leave_invalid_chans()
2474 if (!reg_wdev_chan_valid(wiphy, wdev)) in reg_leave_invalid_chans()
2475 cfg80211_leave(rdev, wdev); in reg_leave_invalid_chans()
3601 struct wireless_dev *wdev; in is_wiphy_all_set_reg_flag() local
3606 list_for_each_entry(wdev, &rdev->wiphy.wdev_list, list) { in is_wiphy_all_set_reg_flag()
3607 if (!(wdev->wiphy->regulatory_flags & flag)) in is_wiphy_all_set_reg_flag()
4229 struct wireless_dev *wdev; in cfg80211_check_and_end_cac() local
4243 list_for_each_entry(wdev, &rdev->wiphy.wdev_list, list) { in cfg80211_check_and_end_cac()
4246 for_each_valid_link(wdev, link_id) { in cfg80211_check_and_end_cac()
4247 if (!wdev->links[link_id].cac_started) in cfg80211_check_and_end_cac()
4250 chandef = wdev_chandef(wdev, link_id); in cfg80211_check_and_end_cac()
4255 rdev_end_cac(rdev, wdev->netdev, link_id); in cfg80211_check_and_end_cac()