Lines Matching refs:rdev

27 	struct cfg80211_registered_device *rdev = wiphy_to_rdev(wiphy);  in cfg80211_rx_assoc_resp()  local
47 nl80211_send_rx_assoc(rdev, dev, buf, len, GFP_KERNEL, uapsd_queues); in cfg80211_rx_assoc_resp()
58 struct cfg80211_registered_device *rdev = wiphy_to_rdev(wdev->wiphy); in cfg80211_process_auth() local
60 nl80211_send_rx_auth(rdev, wdev->netdev, buf, len, GFP_KERNEL); in cfg80211_process_auth()
67 struct cfg80211_registered_device *rdev = wiphy_to_rdev(wdev->wiphy); in cfg80211_process_deauth() local
73 nl80211_send_deauth(rdev, wdev->netdev, buf, len, GFP_KERNEL); in cfg80211_process_deauth()
86 struct cfg80211_registered_device *rdev = wiphy_to_rdev(wdev->wiphy); in cfg80211_process_disassoc() local
92 nl80211_send_disassoc(rdev, wdev->netdev, buf, len, GFP_KERNEL); in cfg80211_process_disassoc()
127 struct cfg80211_registered_device *rdev = wiphy_to_rdev(wiphy); in cfg80211_auth_timeout() local
131 nl80211_send_auth_timeout(rdev, dev, addr, GFP_KERNEL); in cfg80211_auth_timeout()
140 struct cfg80211_registered_device *rdev = wiphy_to_rdev(wiphy); in cfg80211_assoc_timeout() local
144 nl80211_send_assoc_timeout(rdev, dev, bss->bssid, GFP_KERNEL); in cfg80211_assoc_timeout()
176 struct cfg80211_registered_device *rdev = wiphy_to_rdev(wiphy); in cfg80211_michael_mic_failure() local
194 nl80211_michael_mic_failure(rdev, dev, addr, key_type, key_id, tsc, gfp); in cfg80211_michael_mic_failure()
199 int cfg80211_mlme_auth(struct cfg80211_registered_device *rdev, in cfg80211_mlme_auth() argument
232 req.bss = cfg80211_get_bss(&rdev->wiphy, chan, bssid, ssid, ssid_len, in cfg80211_mlme_auth()
238 err = rdev_auth(rdev, dev, &req); in cfg80211_mlme_auth()
240 cfg80211_put_bss(&rdev->wiphy, req.bss); in cfg80211_mlme_auth()
278 int cfg80211_mlme_assoc(struct cfg80211_registered_device *rdev, in cfg80211_mlme_assoc() argument
296 rdev->wiphy.ht_capa_mod_mask); in cfg80211_mlme_assoc()
298 rdev->wiphy.vht_capa_mod_mask); in cfg80211_mlme_assoc()
300 req->bss = cfg80211_get_bss(&rdev->wiphy, chan, bssid, ssid, ssid_len, in cfg80211_mlme_assoc()
306 err = rdev_assoc(rdev, dev, req); in cfg80211_mlme_assoc()
310 cfg80211_put_bss(&rdev->wiphy, req->bss); in cfg80211_mlme_assoc()
315 int cfg80211_mlme_deauth(struct cfg80211_registered_device *rdev, in cfg80211_mlme_deauth() argument
336 return rdev_deauth(rdev, dev, &req); in cfg80211_mlme_deauth()
339 int cfg80211_mlme_disassoc(struct cfg80211_registered_device *rdev, in cfg80211_mlme_disassoc() argument
363 err = rdev_disassoc(rdev, dev, &req); in cfg80211_mlme_disassoc()
372 void cfg80211_mlme_down(struct cfg80211_registered_device *rdev, in cfg80211_mlme_down() argument
380 if (!rdev->ops->deauth) in cfg80211_mlme_down()
387 cfg80211_mlme_deauth(rdev, dev, bssid, NULL, 0, in cfg80211_mlme_down()
405 cfg80211_process_mlme_unregistrations(struct cfg80211_registered_device *rdev) in cfg80211_process_mlme_unregistrations() argument
411 spin_lock_bh(&rdev->mlme_unreg_lock); in cfg80211_process_mlme_unregistrations()
412 while ((reg = list_first_entry_or_null(&rdev->mlme_unreg, in cfg80211_process_mlme_unregistrations()
416 spin_unlock_bh(&rdev->mlme_unreg_lock); in cfg80211_process_mlme_unregistrations()
418 if (rdev->ops->mgmt_frame_register) { in cfg80211_process_mlme_unregistrations()
421 rdev_mgmt_frame_register(rdev, reg->wdev, in cfg80211_process_mlme_unregistrations()
427 spin_lock_bh(&rdev->mlme_unreg_lock); in cfg80211_process_mlme_unregistrations()
429 spin_unlock_bh(&rdev->mlme_unreg_lock); in cfg80211_process_mlme_unregistrations()
434 struct cfg80211_registered_device *rdev; in cfg80211_mlme_unreg_wk() local
436 rdev = container_of(wk, struct cfg80211_registered_device, in cfg80211_mlme_unreg_wk()
440 cfg80211_process_mlme_unregistrations(rdev); in cfg80211_mlme_unreg_wk()
449 struct cfg80211_registered_device *rdev = wiphy_to_rdev(wiphy); in cfg80211_mlme_register_mgmt() local
499 cfg80211_process_mlme_unregistrations(rdev); in cfg80211_mlme_register_mgmt()
501 if (rdev->ops->mgmt_frame_register) in cfg80211_mlme_register_mgmt()
502 rdev_mgmt_frame_register(rdev, wdev, frame_type, true); in cfg80211_mlme_register_mgmt()
515 struct cfg80211_registered_device *rdev = wiphy_to_rdev(wiphy); in cfg80211_mlme_unregister_socket() local
525 spin_lock(&rdev->mlme_unreg_lock); in cfg80211_mlme_unregister_socket()
526 list_add_tail(&reg->list, &rdev->mlme_unreg); in cfg80211_mlme_unregister_socket()
527 spin_unlock(&rdev->mlme_unreg_lock); in cfg80211_mlme_unregister_socket()
529 schedule_work(&rdev->mlme_unreg_wk); in cfg80211_mlme_unregister_socket()
534 if (nlportid && rdev->crit_proto_nlportid == nlportid) { in cfg80211_mlme_unregister_socket()
535 rdev->crit_proto_nlportid = 0; in cfg80211_mlme_unregister_socket()
536 rdev_crit_proto_stop(rdev, wdev); in cfg80211_mlme_unregister_socket()
545 struct cfg80211_registered_device *rdev = wiphy_to_rdev(wdev->wiphy); in cfg80211_mlme_purge_registrations() local
548 spin_lock(&rdev->mlme_unreg_lock); in cfg80211_mlme_purge_registrations()
549 list_splice_tail_init(&wdev->mgmt_registrations, &rdev->mlme_unreg); in cfg80211_mlme_purge_registrations()
550 spin_unlock(&rdev->mlme_unreg_lock); in cfg80211_mlme_purge_registrations()
553 cfg80211_process_mlme_unregistrations(rdev); in cfg80211_mlme_purge_registrations()
556 int cfg80211_mlme_mgmt_tx(struct cfg80211_registered_device *rdev, in cfg80211_mlme_mgmt_tx() argument
566 if (!rdev->ops->mgmt_tx) in cfg80211_mlme_mgmt_tx()
651 return rdev_mgmt_tx(rdev, wdev, params, cookie); in cfg80211_mlme_mgmt_tx()
658 struct cfg80211_registered_device *rdev = wiphy_to_rdev(wiphy); in cfg80211_rx_mgmt() local
696 if (nl80211_send_mgmt(rdev, wdev, reg->nlportid, in cfg80211_rx_mgmt()
715 struct cfg80211_registered_device *rdev; in cfg80211_dfs_channels_update_work() local
725 rdev = container_of(delayed_work, struct cfg80211_registered_device, in cfg80211_dfs_channels_update_work()
727 wiphy = &rdev->wiphy; in cfg80211_dfs_channels_update_work()
751 nl80211_radar_notify(rdev, &chandef, in cfg80211_dfs_channels_update_work()
768 queue_delayed_work(cfg80211_wq, &rdev->dfs_update_channels_wk, in cfg80211_dfs_channels_update_work()
777 struct cfg80211_registered_device *rdev = wiphy_to_rdev(wiphy); in cfg80211_radar_event() local
789 queue_delayed_work(cfg80211_wq, &rdev->dfs_update_channels_wk, in cfg80211_radar_event()
792 nl80211_radar_notify(rdev, chandef, NL80211_RADAR_DETECTED, NULL, gfp); in cfg80211_radar_event()
802 struct cfg80211_registered_device *rdev = wiphy_to_rdev(wiphy); in cfg80211_cac_event() local
828 nl80211_radar_notify(rdev, chandef, event, netdev, gfp); in cfg80211_cac_event()