Lines Matching defs:wdev

655 bool cfg80211_beaconing_iface_active(struct wireless_dev *wdev)
659 ASSERT_WDEV_LOCK(wdev);
661 if (!wdev->chandef.chan)
664 switch (wdev->iftype) {
667 active = wdev->beacon_interval != 0;
670 active = wdev->ssid_len != 0;
673 active = wdev->mesh_id_len != 0;
696 struct wireless_dev *wdev;
698 list_for_each_entry(wdev, &wiphy->wdev_list, list) {
699 wdev_lock(wdev);
700 if (!cfg80211_beaconing_iface_active(wdev)) {
701 wdev_unlock(wdev);
705 if (cfg80211_is_sub_chan(&wdev->chandef, chan)) {
706 wdev_unlock(wdev);
709 wdev_unlock(wdev);
1093 struct wireless_dev *wdev;
1122 list_for_each_entry(wdev, &rdev->wiphy.wdev_list, list) {
1126 wdev_lock(wdev);
1127 if (wdev->iftype == NL80211_IFTYPE_STATION &&
1128 wdev->current_bss)
1129 other_chan = wdev->current_bss->pub.channel;
1139 wdev->iftype == NL80211_IFTYPE_P2P_GO &&
1140 wdev->beacon_interval &&
1142 other_chan = wdev->chandef.chan;
1143 wdev_unlock(wdev);
1248 cfg80211_get_chan_state(struct wireless_dev *wdev,
1258 ASSERT_WDEV_LOCK(wdev);
1260 if (wdev->netdev && !netif_running(wdev->netdev))
1263 switch (wdev->iftype) {
1265 if (wdev->current_bss) {
1266 *chan = wdev->current_bss->pub.channel;
1267 *chanmode = (wdev->ibss_fixed &&
1268 !wdev->ibss_dfs_possible)
1274 if (wdev->ibss_dfs_possible)
1275 *radar_detect |= BIT(wdev->chandef.width);
1281 if (wdev->current_bss) {
1282 *chan = wdev->current_bss->pub.channel;
1289 if (wdev->cac_started) {
1290 *chan = wdev->chandef.chan;
1292 *radar_detect |= BIT(wdev->chandef.width);
1293 } else if (wdev->beacon_interval) {
1294 *chan = wdev->chandef.chan;
1297 ret = cfg80211_chandef_dfs_required(wdev->wiphy,
1298 &wdev->chandef,
1299 wdev->iftype);
1302 *radar_detect |= BIT(wdev->chandef.width);
1306 if (wdev->mesh_id_len) {
1307 *chan = wdev->chandef.chan;
1310 ret = cfg80211_chandef_dfs_required(wdev->wiphy,
1311 &wdev->chandef,
1312 wdev->iftype);
1315 *radar_detect |= BIT(wdev->chandef.width);
1319 if (wdev->chandef.chan) {
1320 *chan = wdev->chandef.chan;