• Home
  • Raw
  • Download

Lines Matching refs:rdev

59 	struct cfg80211_registered_device *result = NULL, *rdev;  in cfg80211_rdev_by_wiphy_idx()  local
63 list_for_each_entry(rdev, &cfg80211_rdev_list, list) { in cfg80211_rdev_by_wiphy_idx()
64 if (rdev->wiphy_idx == wiphy_idx) { in cfg80211_rdev_by_wiphy_idx()
65 result = rdev; in cfg80211_rdev_by_wiphy_idx()
75 struct cfg80211_registered_device *rdev = wiphy_to_rdev(wiphy); in get_wiphy_idx() local
77 return rdev->wiphy_idx; in get_wiphy_idx()
82 struct cfg80211_registered_device *rdev; in wiphy_idx_to_wiphy() local
86 rdev = cfg80211_rdev_by_wiphy_idx(wiphy_idx); in wiphy_idx_to_wiphy()
87 if (!rdev) in wiphy_idx_to_wiphy()
89 return &rdev->wiphy; in wiphy_idx_to_wiphy()
92 static int cfg80211_dev_check_name(struct cfg80211_registered_device *rdev, in cfg80211_dev_check_name() argument
105 if (taken == strlen(newname) && wiphy_idx != rdev->wiphy_idx) { in cfg80211_dev_check_name()
126 int cfg80211_dev_rename(struct cfg80211_registered_device *rdev, in cfg80211_dev_rename() argument
134 if (strcmp(newname, wiphy_name(&rdev->wiphy)) == 0) in cfg80211_dev_rename()
137 result = cfg80211_dev_check_name(rdev, newname); in cfg80211_dev_rename()
141 result = device_rename(&rdev->wiphy.dev, newname); in cfg80211_dev_rename()
145 if (!IS_ERR_OR_NULL(rdev->wiphy.debugfsdir)) in cfg80211_dev_rename()
146 debugfs_rename(rdev->wiphy.debugfsdir->d_parent, in cfg80211_dev_rename()
147 rdev->wiphy.debugfsdir, in cfg80211_dev_rename()
148 rdev->wiphy.debugfsdir->d_parent, newname); in cfg80211_dev_rename()
150 nl80211_notify_wiphy(rdev, NL80211_CMD_NEW_WIPHY); in cfg80211_dev_rename()
155 int cfg80211_switch_netns(struct cfg80211_registered_device *rdev, in cfg80211_switch_netns() argument
161 if (!(rdev->wiphy.flags & WIPHY_FLAG_NETNS_OK)) in cfg80211_switch_netns()
164 list_for_each_entry(wdev, &rdev->wiphy.wdev_list, list) { in cfg80211_switch_netns()
176 net = wiphy_net(&rdev->wiphy); in cfg80211_switch_netns()
179 &rdev->wiphy.wdev_list, in cfg80211_switch_netns()
193 list_for_each_entry(wdev, &rdev->wiphy.wdev_list, list) { in cfg80211_switch_netns()
196 nl80211_notify_iface(rdev, wdev, NL80211_CMD_DEL_INTERFACE); in cfg80211_switch_netns()
198 nl80211_notify_wiphy(rdev, NL80211_CMD_DEL_WIPHY); in cfg80211_switch_netns()
200 wiphy_net_set(&rdev->wiphy, net); in cfg80211_switch_netns()
202 err = device_rename(&rdev->wiphy.dev, dev_name(&rdev->wiphy.dev)); in cfg80211_switch_netns()
205 nl80211_notify_wiphy(rdev, NL80211_CMD_NEW_WIPHY); in cfg80211_switch_netns()
206 list_for_each_entry(wdev, &rdev->wiphy.wdev_list, list) { in cfg80211_switch_netns()
209 nl80211_notify_iface(rdev, wdev, NL80211_CMD_NEW_INTERFACE); in cfg80211_switch_netns()
217 struct cfg80211_registered_device *rdev = data; in cfg80211_rfkill_poll() local
219 wiphy_lock(&rdev->wiphy); in cfg80211_rfkill_poll()
220 rdev_rfkill_poll(rdev); in cfg80211_rfkill_poll()
221 wiphy_unlock(&rdev->wiphy); in cfg80211_rfkill_poll()
224 void cfg80211_stop_p2p_device(struct cfg80211_registered_device *rdev, in cfg80211_stop_p2p_device() argument
227 lockdep_assert_held(&rdev->wiphy.mtx); in cfg80211_stop_p2p_device()
235 rdev_stop_p2p_device(rdev, wdev); in cfg80211_stop_p2p_device()
238 rdev->opencount--; in cfg80211_stop_p2p_device()
240 if (rdev->scan_req && rdev->scan_req->wdev == wdev) { in cfg80211_stop_p2p_device()
241 if (WARN_ON(!rdev->scan_req->notified && in cfg80211_stop_p2p_device()
242 (!rdev->int_scan_req || in cfg80211_stop_p2p_device()
243 !rdev->int_scan_req->notified))) in cfg80211_stop_p2p_device()
244 rdev->scan_req->info.aborted = true; in cfg80211_stop_p2p_device()
245 ___cfg80211_scan_done(rdev, false); in cfg80211_stop_p2p_device()
249 void cfg80211_stop_nan(struct cfg80211_registered_device *rdev, in cfg80211_stop_nan() argument
252 lockdep_assert_held(&rdev->wiphy.mtx); in cfg80211_stop_nan()
260 rdev_stop_nan(rdev, wdev); in cfg80211_stop_nan()
263 rdev->opencount--; in cfg80211_stop_nan()
268 struct cfg80211_registered_device *rdev = wiphy_to_rdev(wiphy); in cfg80211_shutdown_all_interfaces() local
273 list_for_each_entry(wdev, &rdev->wiphy.wdev_list, list) { in cfg80211_shutdown_all_interfaces()
285 cfg80211_stop_p2p_device(rdev, wdev); in cfg80211_shutdown_all_interfaces()
288 cfg80211_stop_nan(rdev, wdev); in cfg80211_shutdown_all_interfaces()
301 struct cfg80211_registered_device *rdev = data; in cfg80211_rfkill_set_block() local
307 cfg80211_shutdown_all_interfaces(&rdev->wiphy); in cfg80211_rfkill_set_block()
315 struct cfg80211_registered_device *rdev; in cfg80211_rfkill_block_work() local
317 rdev = container_of(work, struct cfg80211_registered_device, in cfg80211_rfkill_block_work()
319 cfg80211_rfkill_set_block(rdev, true); in cfg80211_rfkill_block_work()
324 struct cfg80211_registered_device *rdev; in cfg80211_event_work() local
326 rdev = container_of(work, struct cfg80211_registered_device, in cfg80211_event_work()
329 wiphy_lock(&rdev->wiphy); in cfg80211_event_work()
330 cfg80211_process_rdev_events(rdev); in cfg80211_event_work()
331 wiphy_unlock(&rdev->wiphy); in cfg80211_event_work()
334 void cfg80211_destroy_ifaces(struct cfg80211_registered_device *rdev) in cfg80211_destroy_ifaces() argument
340 list_for_each_entry_safe(wdev, tmp, &rdev->wiphy.wdev_list, list) { in cfg80211_destroy_ifaces()
345 wiphy_lock(&rdev->wiphy); in cfg80211_destroy_ifaces()
346 cfg80211_leave(rdev, wdev); in cfg80211_destroy_ifaces()
347 cfg80211_remove_virtual_intf(rdev, wdev); in cfg80211_destroy_ifaces()
348 wiphy_unlock(&rdev->wiphy); in cfg80211_destroy_ifaces()
355 struct cfg80211_registered_device *rdev; in cfg80211_destroy_iface_wk() local
357 rdev = container_of(work, struct cfg80211_registered_device, in cfg80211_destroy_iface_wk()
361 cfg80211_destroy_ifaces(rdev); in cfg80211_destroy_iface_wk()
367 struct cfg80211_registered_device *rdev; in cfg80211_sched_scan_stop_wk() local
370 rdev = container_of(work, struct cfg80211_registered_device, in cfg80211_sched_scan_stop_wk()
373 wiphy_lock(&rdev->wiphy); in cfg80211_sched_scan_stop_wk()
374 list_for_each_entry_safe(req, tmp, &rdev->sched_scan_req_list, list) { in cfg80211_sched_scan_stop_wk()
376 cfg80211_stop_sched_scan_req(rdev, req, false); in cfg80211_sched_scan_stop_wk()
378 wiphy_unlock(&rdev->wiphy); in cfg80211_sched_scan_stop_wk()
383 struct cfg80211_registered_device *rdev; in cfg80211_propagate_radar_detect_wk() local
385 rdev = container_of(work, struct cfg80211_registered_device, in cfg80211_propagate_radar_detect_wk()
390 regulatory_propagate_dfs_state(&rdev->wiphy, &rdev->radar_chandef, in cfg80211_propagate_radar_detect_wk()
399 struct cfg80211_registered_device *rdev; in cfg80211_propagate_cac_done_wk() local
401 rdev = container_of(work, struct cfg80211_registered_device, in cfg80211_propagate_cac_done_wk()
406 regulatory_propagate_dfs_state(&rdev->wiphy, &rdev->cac_done_chandef, in cfg80211_propagate_cac_done_wk()
420 struct cfg80211_registered_device *rdev; in wiphy_new_nm() local
440 alloc_size = sizeof(*rdev) + sizeof_priv; in wiphy_new_nm()
442 rdev = kzalloc(alloc_size, GFP_KERNEL); in wiphy_new_nm()
443 if (!rdev) in wiphy_new_nm()
446 rdev->ops = ops; in wiphy_new_nm()
448 rdev->wiphy_idx = atomic_inc_return(&wiphy_counter); in wiphy_new_nm()
450 if (unlikely(rdev->wiphy_idx < 0)) { in wiphy_new_nm()
453 kfree(rdev); in wiphy_new_nm()
458 rdev->wiphy_idx--; in wiphy_new_nm()
465 rv = cfg80211_dev_check_name(rdev, requested_name); in wiphy_new_nm()
472 rv = dev_set_name(&rdev->wiphy.dev, "%s", requested_name); in wiphy_new_nm()
486 rv = dev_set_name(&rdev->wiphy.dev, PHY_NAME "%d", rdev->wiphy_idx); in wiphy_new_nm()
488 kfree(rdev); in wiphy_new_nm()
493 mutex_init(&rdev->wiphy.mtx); in wiphy_new_nm()
494 INIT_LIST_HEAD(&rdev->wiphy.wdev_list); in wiphy_new_nm()
495 INIT_LIST_HEAD(&rdev->beacon_registrations); in wiphy_new_nm()
496 spin_lock_init(&rdev->beacon_registrations_lock); in wiphy_new_nm()
497 spin_lock_init(&rdev->bss_lock); in wiphy_new_nm()
498 INIT_LIST_HEAD(&rdev->bss_list); in wiphy_new_nm()
499 INIT_LIST_HEAD(&rdev->sched_scan_req_list); in wiphy_new_nm()
500 INIT_WORK(&rdev->scan_done_wk, __cfg80211_scan_done); in wiphy_new_nm()
501 INIT_DELAYED_WORK(&rdev->dfs_update_channels_wk, in wiphy_new_nm()
504 rdev->wiphy.wext = &cfg80211_wext_handler; in wiphy_new_nm()
507 device_initialize(&rdev->wiphy.dev); in wiphy_new_nm()
508 rdev->wiphy.dev.class = &ieee80211_class; in wiphy_new_nm()
509 rdev->wiphy.dev.platform_data = rdev; in wiphy_new_nm()
510 device_enable_async_suspend(&rdev->wiphy.dev); in wiphy_new_nm()
512 INIT_WORK(&rdev->destroy_work, cfg80211_destroy_iface_wk); in wiphy_new_nm()
513 INIT_WORK(&rdev->sched_scan_stop_wk, cfg80211_sched_scan_stop_wk); in wiphy_new_nm()
514 INIT_WORK(&rdev->sched_scan_res_wk, cfg80211_sched_scan_results_wk); in wiphy_new_nm()
515 INIT_WORK(&rdev->propagate_radar_detect_wk, in wiphy_new_nm()
517 INIT_WORK(&rdev->propagate_cac_done_wk, cfg80211_propagate_cac_done_wk); in wiphy_new_nm()
518 INIT_WORK(&rdev->mgmt_registrations_update_wk, in wiphy_new_nm()
520 spin_lock_init(&rdev->mgmt_registrations_lock); in wiphy_new_nm()
523 rdev->wiphy.flags |= WIPHY_FLAG_PS_ON_BY_DEFAULT; in wiphy_new_nm()
526 wiphy_net_set(&rdev->wiphy, &init_net); in wiphy_new_nm()
528 rdev->rfkill_ops.set_block = cfg80211_rfkill_set_block; in wiphy_new_nm()
529 rdev->wiphy.rfkill = rfkill_alloc(dev_name(&rdev->wiphy.dev), in wiphy_new_nm()
530 &rdev->wiphy.dev, RFKILL_TYPE_WLAN, in wiphy_new_nm()
531 &rdev->rfkill_ops, rdev); in wiphy_new_nm()
533 if (!rdev->wiphy.rfkill) { in wiphy_new_nm()
534 wiphy_free(&rdev->wiphy); in wiphy_new_nm()
538 INIT_WORK(&rdev->rfkill_block, cfg80211_rfkill_block_work); in wiphy_new_nm()
539 INIT_WORK(&rdev->conn_work, cfg80211_conn_work); in wiphy_new_nm()
540 INIT_WORK(&rdev->event_work, cfg80211_event_work); in wiphy_new_nm()
541 INIT_WORK(&rdev->background_cac_abort_wk, in wiphy_new_nm()
543 INIT_DELAYED_WORK(&rdev->background_cac_done_wk, in wiphy_new_nm()
546 init_waitqueue_head(&rdev->dev_wait); in wiphy_new_nm()
553 rdev->wiphy.retry_short = 7; in wiphy_new_nm()
554 rdev->wiphy.retry_long = 4; in wiphy_new_nm()
555 rdev->wiphy.frag_threshold = (u32) -1; in wiphy_new_nm()
556 rdev->wiphy.rts_threshold = (u32) -1; in wiphy_new_nm()
557 rdev->wiphy.coverage_class = 0; in wiphy_new_nm()
559 rdev->wiphy.max_num_csa_counters = 1; in wiphy_new_nm()
561 rdev->wiphy.max_sched_scan_plans = 1; in wiphy_new_nm()
562 rdev->wiphy.max_sched_scan_plan_interval = U32_MAX; in wiphy_new_nm()
564 return &rdev->wiphy; in wiphy_new_nm()
660 struct cfg80211_registered_device *rdev = wiphy_to_rdev(wiphy); in wiphy_register() local
679 (!rdev->ops->tdls_channel_switch || in wiphy_register()
680 !rdev->ops->tdls_cancel_channel_switch))) in wiphy_register()
684 (!rdev->ops->start_nan || !rdev->ops->stop_nan || in wiphy_register()
685 !rdev->ops->add_nan_func || !rdev->ops->del_nan_func || in wiphy_register()
773 !rdev->ops->set_mac_acl))) in wiphy_register()
783 if (WARN_ON(wiphy_ext_feature_isset(&rdev->wiphy, in wiphy_register()
785 (!rdev->ops->set_pmk || !rdev->ops->del_pmk))) in wiphy_register()
788 if (WARN_ON(!(rdev->wiphy.flags & WIPHY_FLAG_SUPPORTS_FW_ROAM) && in wiphy_register()
789 rdev->ops->update_connect_params)) in wiphy_register()
913 for (i = 0; i < rdev->wiphy.n_vendor_commands; i++) { in wiphy_register()
919 if (WARN_ON(!rdev->wiphy.vendor_commands[i].policy)) in wiphy_register()
921 if (WARN_ON(!rdev->wiphy.vendor_commands[i].doit && in wiphy_register()
922 !rdev->wiphy.vendor_commands[i].dumpit)) in wiphy_register()
927 if (WARN_ON(rdev->wiphy.wowlan && rdev->wiphy.wowlan->n_patterns && in wiphy_register()
928 (!rdev->wiphy.wowlan->pattern_min_len || in wiphy_register()
929 rdev->wiphy.wowlan->pattern_min_len > in wiphy_register()
930 rdev->wiphy.wowlan->pattern_max_len))) in wiphy_register()
943 rdev->wiphy.features |= NL80211_FEATURE_SCAN_FLUSH; in wiphy_register()
946 res = device_add(&rdev->wiphy.dev); in wiphy_register()
952 list_add_rcu(&rdev->list, &cfg80211_rdev_list); in wiphy_register()
956 rdev->wiphy.debugfsdir = debugfs_create_dir(wiphy_name(&rdev->wiphy), in wiphy_register()
959 cfg80211_debugfs_rdev_add(rdev); in wiphy_register()
960 nl80211_notify_wiphy(rdev, NL80211_CMD_NEW_WIPHY); in wiphy_register()
1006 rdev->wiphy.registered = true; in wiphy_register()
1009 res = rfkill_register(rdev->wiphy.rfkill); in wiphy_register()
1011 rfkill_destroy(rdev->wiphy.rfkill); in wiphy_register()
1012 rdev->wiphy.rfkill = NULL; in wiphy_register()
1013 wiphy_unregister(&rdev->wiphy); in wiphy_register()
1023 struct cfg80211_registered_device *rdev = wiphy_to_rdev(wiphy); in wiphy_rfkill_start_polling() local
1025 if (!rdev->ops->rfkill_poll) in wiphy_rfkill_start_polling()
1027 rdev->rfkill_ops.poll = cfg80211_rfkill_poll; in wiphy_rfkill_start_polling()
1034 struct cfg80211_registered_device *rdev = wiphy_to_rdev(wiphy); in wiphy_unregister() local
1036 wait_event(rdev->dev_wait, ({ in wiphy_unregister()
1038 wiphy_lock(&rdev->wiphy); in wiphy_unregister()
1039 __count = rdev->opencount; in wiphy_unregister()
1040 wiphy_unlock(&rdev->wiphy); in wiphy_unregister()
1043 if (rdev->wiphy.rfkill) in wiphy_unregister()
1044 rfkill_unregister(rdev->wiphy.rfkill); in wiphy_unregister()
1047 wiphy_lock(&rdev->wiphy); in wiphy_unregister()
1048 nl80211_notify_wiphy(rdev, NL80211_CMD_DEL_WIPHY); in wiphy_unregister()
1049 rdev->wiphy.registered = false; in wiphy_unregister()
1051 WARN_ON(!list_empty(&rdev->wiphy.wdev_list)); in wiphy_unregister()
1057 debugfs_remove_recursive(rdev->wiphy.debugfsdir); in wiphy_unregister()
1058 list_del_rcu(&rdev->list); in wiphy_unregister()
1068 device_del(&rdev->wiphy.dev); in wiphy_unregister()
1070 wiphy_unlock(&rdev->wiphy); in wiphy_unregister()
1073 flush_work(&rdev->scan_done_wk); in wiphy_unregister()
1074 cancel_work_sync(&rdev->conn_work); in wiphy_unregister()
1075 flush_work(&rdev->event_work); in wiphy_unregister()
1076 cancel_delayed_work_sync(&rdev->dfs_update_channels_wk); in wiphy_unregister()
1077 cancel_delayed_work_sync(&rdev->background_cac_done_wk); in wiphy_unregister()
1078 flush_work(&rdev->destroy_work); in wiphy_unregister()
1079 flush_work(&rdev->sched_scan_stop_wk); in wiphy_unregister()
1080 flush_work(&rdev->propagate_radar_detect_wk); in wiphy_unregister()
1081 flush_work(&rdev->propagate_cac_done_wk); in wiphy_unregister()
1082 flush_work(&rdev->mgmt_registrations_update_wk); in wiphy_unregister()
1083 flush_work(&rdev->background_cac_abort_wk); in wiphy_unregister()
1086 if (rdev->wiphy.wowlan_config && rdev->ops->set_wakeup) in wiphy_unregister()
1087 rdev_set_wakeup(rdev, false); in wiphy_unregister()
1089 cfg80211_rdev_free_wowlan(rdev); in wiphy_unregister()
1090 cfg80211_rdev_free_coalesce(rdev); in wiphy_unregister()
1094 void cfg80211_dev_free(struct cfg80211_registered_device *rdev) in cfg80211_dev_free() argument
1098 rfkill_destroy(rdev->wiphy.rfkill); in cfg80211_dev_free()
1099 list_for_each_entry_safe(reg, treg, &rdev->beacon_registrations, list) { in cfg80211_dev_free()
1103 list_for_each_entry_safe(scan, tmp, &rdev->bss_list, list) in cfg80211_dev_free()
1104 cfg80211_put_bss(&rdev->wiphy, &scan->pub); in cfg80211_dev_free()
1105 mutex_destroy(&rdev->wiphy.mtx); in cfg80211_dev_free()
1114 kfree(rcu_dereference_raw(rdev->wiphy.regd)); in cfg80211_dev_free()
1116 kfree(rdev); in cfg80211_dev_free()
1128 struct cfg80211_registered_device *rdev = wiphy_to_rdev(wiphy); in wiphy_rfkill_set_hw_state_reason() local
1131 schedule_work(&rdev->rfkill_block); in wiphy_rfkill_set_hw_state_reason()
1144 struct cfg80211_registered_device *rdev = wiphy_to_rdev(wdev->wiphy); in _cfg80211_unregister_wdev() local
1148 lockdep_assert_held(&rdev->wiphy.mtx); in _cfg80211_unregister_wdev()
1152 nl80211_notify_iface(rdev, wdev, NL80211_CMD_DEL_INTERFACE); in _cfg80211_unregister_wdev()
1164 rdev->devlist_generation++; in _cfg80211_unregister_wdev()
1170 cfg80211_stop_p2p_device(rdev, wdev); in _cfg80211_unregister_wdev()
1173 cfg80211_stop_nan(rdev, wdev); in _cfg80211_unregister_wdev()
1223 void cfg80211_update_iface_num(struct cfg80211_registered_device *rdev, in cfg80211_update_iface_num() argument
1226 lockdep_assert_held(&rdev->wiphy.mtx); in cfg80211_update_iface_num()
1228 rdev->num_running_ifaces += num; in cfg80211_update_iface_num()
1230 rdev->num_running_monitor_ifaces += num; in cfg80211_update_iface_num()
1233 void __cfg80211_leave(struct cfg80211_registered_device *rdev, in __cfg80211_leave() argument
1239 lockdep_assert_held(&rdev->wiphy.mtx); in __cfg80211_leave()
1248 __cfg80211_leave_ibss(rdev, dev, true); in __cfg80211_leave()
1252 list_for_each_entry_safe(pos, tmp, &rdev->sched_scan_req_list, in __cfg80211_leave()
1255 cfg80211_stop_sched_scan_req(rdev, pos, false); in __cfg80211_leave()
1264 cfg80211_disconnect(rdev, dev, in __cfg80211_leave()
1268 __cfg80211_leave_mesh(rdev, dev); in __cfg80211_leave()
1272 __cfg80211_stop_ap(rdev, dev, -1, true); in __cfg80211_leave()
1275 __cfg80211_leave_ocb(rdev, dev); in __cfg80211_leave()
1293 void cfg80211_leave(struct cfg80211_registered_device *rdev, in cfg80211_leave() argument
1297 __cfg80211_leave(rdev, wdev); in cfg80211_leave()
1304 struct cfg80211_registered_device *rdev = wiphy_to_rdev(wiphy); in cfg80211_stop_iface() local
1319 queue_work(cfg80211_wq, &rdev->event_work); in cfg80211_stop_iface()
1354 void cfg80211_register_wdev(struct cfg80211_registered_device *rdev, in cfg80211_register_wdev() argument
1358 lockdep_assert_held(&rdev->wiphy.mtx); in cfg80211_register_wdev()
1368 wdev->identifier = ++rdev->wdev_id; in cfg80211_register_wdev()
1369 list_add_rcu(&wdev->list, &rdev->wiphy.wdev_list); in cfg80211_register_wdev()
1370 rdev->devlist_generation++; in cfg80211_register_wdev()
1374 sysfs_create_link(&wdev->netdev->dev.kobj, &rdev->wiphy.dev.kobj, in cfg80211_register_wdev()
1378 nl80211_notify_iface(rdev, wdev, NL80211_CMD_NEW_INTERFACE); in cfg80211_register_wdev()
1384 struct cfg80211_registered_device *rdev; in cfg80211_register_netdevice() local
1392 rdev = wiphy_to_rdev(wdev->wiphy); in cfg80211_register_netdevice()
1394 lockdep_assert_held(&rdev->wiphy.mtx); in cfg80211_register_netdevice()
1403 cfg80211_register_wdev(rdev, wdev); in cfg80211_register_netdevice()
1418 struct cfg80211_registered_device *rdev; in cfg80211_netdev_notifier_call() local
1424 rdev = wiphy_to_rdev(wdev->wiphy); in cfg80211_netdev_notifier_call()
1439 wiphy_lock(&rdev->wiphy); in cfg80211_netdev_notifier_call()
1440 cfg80211_register_wdev(rdev, wdev); in cfg80211_netdev_notifier_call()
1441 wiphy_unlock(&rdev->wiphy); in cfg80211_netdev_notifier_call()
1450 wiphy_lock(&rdev->wiphy); in cfg80211_netdev_notifier_call()
1452 wiphy_unlock(&rdev->wiphy); in cfg80211_netdev_notifier_call()
1456 wiphy_lock(&rdev->wiphy); in cfg80211_netdev_notifier_call()
1457 cfg80211_leave(rdev, wdev); in cfg80211_netdev_notifier_call()
1459 wiphy_unlock(&rdev->wiphy); in cfg80211_netdev_notifier_call()
1462 wiphy_lock(&rdev->wiphy); in cfg80211_netdev_notifier_call()
1463 cfg80211_update_iface_num(rdev, wdev->iftype, -1); in cfg80211_netdev_notifier_call()
1464 if (rdev->scan_req && rdev->scan_req->wdev == wdev) { in cfg80211_netdev_notifier_call()
1465 if (WARN_ON(!rdev->scan_req->notified && in cfg80211_netdev_notifier_call()
1466 (!rdev->int_scan_req || in cfg80211_netdev_notifier_call()
1467 !rdev->int_scan_req->notified))) in cfg80211_netdev_notifier_call()
1468 rdev->scan_req->info.aborted = true; in cfg80211_netdev_notifier_call()
1469 ___cfg80211_scan_done(rdev, false); in cfg80211_netdev_notifier_call()
1473 &rdev->sched_scan_req_list, list) { in cfg80211_netdev_notifier_call()
1475 cfg80211_stop_sched_scan_req(rdev, pos, false); in cfg80211_netdev_notifier_call()
1478 rdev->opencount--; in cfg80211_netdev_notifier_call()
1479 wiphy_unlock(&rdev->wiphy); in cfg80211_netdev_notifier_call()
1480 wake_up(&rdev->dev_wait); in cfg80211_netdev_notifier_call()
1483 wiphy_lock(&rdev->wiphy); in cfg80211_netdev_notifier_call()
1484 cfg80211_update_iface_num(rdev, wdev->iftype, 1); in cfg80211_netdev_notifier_call()
1489 cfg80211_ibss_wext_join(rdev, wdev); in cfg80211_netdev_notifier_call()
1492 cfg80211_mgd_wext_connect(rdev, wdev); in cfg80211_netdev_notifier_call()
1506 __cfg80211_join_mesh(rdev, dev, in cfg80211_netdev_notifier_call()
1516 rdev->opencount++; in cfg80211_netdev_notifier_call()
1524 rdev->ops->set_power_mgmt && in cfg80211_netdev_notifier_call()
1525 rdev_set_power_mgmt(rdev, dev, wdev->ps, in cfg80211_netdev_notifier_call()
1530 wiphy_unlock(&rdev->wiphy); in cfg80211_netdev_notifier_call()
1537 if (rfkill_blocked(rdev->wiphy.rfkill)) in cfg80211_netdev_notifier_call()
1555 struct cfg80211_registered_device *rdev; in cfg80211_pernet_exit() local
1558 list_for_each_entry(rdev, &cfg80211_rdev_list, list) { in cfg80211_pernet_exit()
1559 if (net_eq(wiphy_net(&rdev->wiphy), net)) in cfg80211_pernet_exit()
1560 WARN_ON(cfg80211_switch_netns(rdev, &init_net)); in cfg80211_pernet_exit()