• Home
  • Raw
  • Download

Lines Matching refs:rdev

15 static inline int rdev_suspend(struct cfg80211_registered_device *rdev,  in rdev_suspend()  argument
19 trace_rdev_suspend(&rdev->wiphy, wowlan); in rdev_suspend()
20 ret = rdev->ops->suspend(&rdev->wiphy, wowlan); in rdev_suspend()
21 trace_rdev_return_int(&rdev->wiphy, ret); in rdev_suspend()
25 static inline int rdev_resume(struct cfg80211_registered_device *rdev) in rdev_resume() argument
28 trace_rdev_resume(&rdev->wiphy); in rdev_resume()
29 ret = rdev->ops->resume(&rdev->wiphy); in rdev_resume()
30 trace_rdev_return_int(&rdev->wiphy, ret); in rdev_resume()
34 static inline void rdev_set_wakeup(struct cfg80211_registered_device *rdev, in rdev_set_wakeup() argument
37 trace_rdev_set_wakeup(&rdev->wiphy, enabled); in rdev_set_wakeup()
38 rdev->ops->set_wakeup(&rdev->wiphy, enabled); in rdev_set_wakeup()
39 trace_rdev_return_void(&rdev->wiphy); in rdev_set_wakeup()
43 *rdev_add_virtual_intf(struct cfg80211_registered_device *rdev, char *name, in rdev_add_virtual_intf() argument
49 trace_rdev_add_virtual_intf(&rdev->wiphy, name, type); in rdev_add_virtual_intf()
50 ret = rdev->ops->add_virtual_intf(&rdev->wiphy, name, name_assign_type, in rdev_add_virtual_intf()
52 trace_rdev_return_wdev(&rdev->wiphy, ret); in rdev_add_virtual_intf()
57 rdev_del_virtual_intf(struct cfg80211_registered_device *rdev, in rdev_del_virtual_intf() argument
61 trace_rdev_del_virtual_intf(&rdev->wiphy, wdev); in rdev_del_virtual_intf()
62 ret = rdev->ops->del_virtual_intf(&rdev->wiphy, wdev); in rdev_del_virtual_intf()
63 trace_rdev_return_int(&rdev->wiphy, ret); in rdev_del_virtual_intf()
68 rdev_change_virtual_intf(struct cfg80211_registered_device *rdev, in rdev_change_virtual_intf() argument
73 trace_rdev_change_virtual_intf(&rdev->wiphy, dev, type); in rdev_change_virtual_intf()
74 ret = rdev->ops->change_virtual_intf(&rdev->wiphy, dev, type, params); in rdev_change_virtual_intf()
75 trace_rdev_return_int(&rdev->wiphy, ret); in rdev_change_virtual_intf()
79 static inline int rdev_add_key(struct cfg80211_registered_device *rdev, in rdev_add_key() argument
85 trace_rdev_add_key(&rdev->wiphy, netdev, link_id, key_index, pairwise, in rdev_add_key()
87 ret = rdev->ops->add_key(&rdev->wiphy, netdev, link_id, key_index, in rdev_add_key()
89 trace_rdev_return_int(&rdev->wiphy, ret); in rdev_add_key()
94 rdev_get_key(struct cfg80211_registered_device *rdev, struct net_device *netdev, in rdev_get_key() argument
100 trace_rdev_get_key(&rdev->wiphy, netdev, link_id, key_index, pairwise, in rdev_get_key()
102 ret = rdev->ops->get_key(&rdev->wiphy, netdev, link_id, key_index, in rdev_get_key()
104 trace_rdev_return_int(&rdev->wiphy, ret); in rdev_get_key()
108 static inline int rdev_del_key(struct cfg80211_registered_device *rdev, in rdev_del_key() argument
113 trace_rdev_del_key(&rdev->wiphy, netdev, link_id, key_index, pairwise, in rdev_del_key()
115 ret = rdev->ops->del_key(&rdev->wiphy, netdev, link_id, key_index, in rdev_del_key()
117 trace_rdev_return_int(&rdev->wiphy, ret); in rdev_del_key()
122 rdev_set_default_key(struct cfg80211_registered_device *rdev, in rdev_set_default_key() argument
127 trace_rdev_set_default_key(&rdev->wiphy, netdev, link_id, key_index, in rdev_set_default_key()
129 ret = rdev->ops->set_default_key(&rdev->wiphy, netdev, link_id, in rdev_set_default_key()
131 trace_rdev_return_int(&rdev->wiphy, ret); in rdev_set_default_key()
136 rdev_set_default_mgmt_key(struct cfg80211_registered_device *rdev, in rdev_set_default_mgmt_key() argument
140 trace_rdev_set_default_mgmt_key(&rdev->wiphy, netdev, link_id, in rdev_set_default_mgmt_key()
142 ret = rdev->ops->set_default_mgmt_key(&rdev->wiphy, netdev, link_id, in rdev_set_default_mgmt_key()
144 trace_rdev_return_int(&rdev->wiphy, ret); in rdev_set_default_mgmt_key()
149 rdev_set_default_beacon_key(struct cfg80211_registered_device *rdev, in rdev_set_default_beacon_key() argument
155 trace_rdev_set_default_beacon_key(&rdev->wiphy, netdev, link_id, in rdev_set_default_beacon_key()
157 ret = rdev->ops->set_default_beacon_key(&rdev->wiphy, netdev, link_id, in rdev_set_default_beacon_key()
159 trace_rdev_return_int(&rdev->wiphy, ret); in rdev_set_default_beacon_key()
163 static inline int rdev_start_ap(struct cfg80211_registered_device *rdev, in rdev_start_ap() argument
168 trace_rdev_start_ap(&rdev->wiphy, dev, settings); in rdev_start_ap()
169 ret = rdev->ops->start_ap(&rdev->wiphy, dev, settings); in rdev_start_ap()
170 trace_rdev_return_int(&rdev->wiphy, ret); in rdev_start_ap()
174 static inline int rdev_change_beacon(struct cfg80211_registered_device *rdev, in rdev_change_beacon() argument
179 trace_rdev_change_beacon(&rdev->wiphy, dev, info); in rdev_change_beacon()
180 ret = rdev->ops->change_beacon(&rdev->wiphy, dev, info); in rdev_change_beacon()
181 trace_rdev_return_int(&rdev->wiphy, ret); in rdev_change_beacon()
185 static inline int rdev_stop_ap(struct cfg80211_registered_device *rdev, in rdev_stop_ap() argument
189 trace_rdev_stop_ap(&rdev->wiphy, dev, link_id); in rdev_stop_ap()
190 ret = rdev->ops->stop_ap(&rdev->wiphy, dev, link_id); in rdev_stop_ap()
191 trace_rdev_return_int(&rdev->wiphy, ret); in rdev_stop_ap()
195 static inline int rdev_add_station(struct cfg80211_registered_device *rdev, in rdev_add_station() argument
200 trace_rdev_add_station(&rdev->wiphy, dev, mac, params); in rdev_add_station()
201 ret = rdev->ops->add_station(&rdev->wiphy, dev, mac, params); in rdev_add_station()
202 trace_rdev_return_int(&rdev->wiphy, ret); in rdev_add_station()
206 static inline int rdev_del_station(struct cfg80211_registered_device *rdev, in rdev_del_station() argument
211 trace_rdev_del_station(&rdev->wiphy, dev, params); in rdev_del_station()
212 ret = rdev->ops->del_station(&rdev->wiphy, dev, params); in rdev_del_station()
213 trace_rdev_return_int(&rdev->wiphy, ret); in rdev_del_station()
217 static inline int rdev_change_station(struct cfg80211_registered_device *rdev, in rdev_change_station() argument
222 trace_rdev_change_station(&rdev->wiphy, dev, mac, params); in rdev_change_station()
223 ret = rdev->ops->change_station(&rdev->wiphy, dev, mac, params); in rdev_change_station()
224 trace_rdev_return_int(&rdev->wiphy, ret); in rdev_change_station()
228 static inline int rdev_get_station(struct cfg80211_registered_device *rdev, in rdev_get_station() argument
233 trace_rdev_get_station(&rdev->wiphy, dev, mac); in rdev_get_station()
234 ret = rdev->ops->get_station(&rdev->wiphy, dev, mac, sinfo); in rdev_get_station()
235 trace_rdev_return_int_station_info(&rdev->wiphy, ret, sinfo); in rdev_get_station()
239 static inline int rdev_dump_station(struct cfg80211_registered_device *rdev, in rdev_dump_station() argument
244 trace_rdev_dump_station(&rdev->wiphy, dev, idx, mac); in rdev_dump_station()
245 ret = rdev->ops->dump_station(&rdev->wiphy, dev, idx, mac, sinfo); in rdev_dump_station()
246 trace_rdev_return_int_station_info(&rdev->wiphy, ret, sinfo); in rdev_dump_station()
250 static inline int rdev_add_mpath(struct cfg80211_registered_device *rdev, in rdev_add_mpath() argument
254 trace_rdev_add_mpath(&rdev->wiphy, dev, dst, next_hop); in rdev_add_mpath()
255 ret = rdev->ops->add_mpath(&rdev->wiphy, dev, dst, next_hop); in rdev_add_mpath()
256 trace_rdev_return_int(&rdev->wiphy, ret); in rdev_add_mpath()
260 static inline int rdev_del_mpath(struct cfg80211_registered_device *rdev, in rdev_del_mpath() argument
264 trace_rdev_del_mpath(&rdev->wiphy, dev, dst); in rdev_del_mpath()
265 ret = rdev->ops->del_mpath(&rdev->wiphy, dev, dst); in rdev_del_mpath()
266 trace_rdev_return_int(&rdev->wiphy, ret); in rdev_del_mpath()
270 static inline int rdev_change_mpath(struct cfg80211_registered_device *rdev, in rdev_change_mpath() argument
275 trace_rdev_change_mpath(&rdev->wiphy, dev, dst, next_hop); in rdev_change_mpath()
276 ret = rdev->ops->change_mpath(&rdev->wiphy, dev, dst, next_hop); in rdev_change_mpath()
277 trace_rdev_return_int(&rdev->wiphy, ret); in rdev_change_mpath()
281 static inline int rdev_get_mpath(struct cfg80211_registered_device *rdev, in rdev_get_mpath() argument
286 trace_rdev_get_mpath(&rdev->wiphy, dev, dst, next_hop); in rdev_get_mpath()
287 ret = rdev->ops->get_mpath(&rdev->wiphy, dev, dst, next_hop, pinfo); in rdev_get_mpath()
288 trace_rdev_return_int_mpath_info(&rdev->wiphy, ret, pinfo); in rdev_get_mpath()
293 static inline int rdev_get_mpp(struct cfg80211_registered_device *rdev, in rdev_get_mpp() argument
299 trace_rdev_get_mpp(&rdev->wiphy, dev, dst, mpp); in rdev_get_mpp()
300 ret = rdev->ops->get_mpp(&rdev->wiphy, dev, dst, mpp, pinfo); in rdev_get_mpp()
301 trace_rdev_return_int_mpath_info(&rdev->wiphy, ret, pinfo); in rdev_get_mpp()
305 static inline int rdev_dump_mpath(struct cfg80211_registered_device *rdev, in rdev_dump_mpath() argument
311 trace_rdev_dump_mpath(&rdev->wiphy, dev, idx, dst, next_hop); in rdev_dump_mpath()
312 ret = rdev->ops->dump_mpath(&rdev->wiphy, dev, idx, dst, next_hop, in rdev_dump_mpath()
314 trace_rdev_return_int_mpath_info(&rdev->wiphy, ret, pinfo); in rdev_dump_mpath()
318 static inline int rdev_dump_mpp(struct cfg80211_registered_device *rdev, in rdev_dump_mpp() argument
325 trace_rdev_dump_mpp(&rdev->wiphy, dev, idx, dst, mpp); in rdev_dump_mpp()
326 ret = rdev->ops->dump_mpp(&rdev->wiphy, dev, idx, dst, mpp, pinfo); in rdev_dump_mpp()
327 trace_rdev_return_int_mpath_info(&rdev->wiphy, ret, pinfo); in rdev_dump_mpp()
332 rdev_get_mesh_config(struct cfg80211_registered_device *rdev, in rdev_get_mesh_config() argument
336 trace_rdev_get_mesh_config(&rdev->wiphy, dev); in rdev_get_mesh_config()
337 ret = rdev->ops->get_mesh_config(&rdev->wiphy, dev, conf); in rdev_get_mesh_config()
338 trace_rdev_return_int_mesh_config(&rdev->wiphy, ret, conf); in rdev_get_mesh_config()
343 rdev_update_mesh_config(struct cfg80211_registered_device *rdev, in rdev_update_mesh_config() argument
348 trace_rdev_update_mesh_config(&rdev->wiphy, dev, mask, nconf); in rdev_update_mesh_config()
349 ret = rdev->ops->update_mesh_config(&rdev->wiphy, dev, mask, nconf); in rdev_update_mesh_config()
350 trace_rdev_return_int(&rdev->wiphy, ret); in rdev_update_mesh_config()
354 static inline int rdev_join_mesh(struct cfg80211_registered_device *rdev, in rdev_join_mesh() argument
360 trace_rdev_join_mesh(&rdev->wiphy, dev, conf, setup); in rdev_join_mesh()
361 ret = rdev->ops->join_mesh(&rdev->wiphy, dev, conf, setup); in rdev_join_mesh()
362 trace_rdev_return_int(&rdev->wiphy, ret); in rdev_join_mesh()
367 static inline int rdev_leave_mesh(struct cfg80211_registered_device *rdev, in rdev_leave_mesh() argument
371 trace_rdev_leave_mesh(&rdev->wiphy, dev); in rdev_leave_mesh()
372 ret = rdev->ops->leave_mesh(&rdev->wiphy, dev); in rdev_leave_mesh()
373 trace_rdev_return_int(&rdev->wiphy, ret); in rdev_leave_mesh()
377 static inline int rdev_join_ocb(struct cfg80211_registered_device *rdev, in rdev_join_ocb() argument
382 trace_rdev_join_ocb(&rdev->wiphy, dev, setup); in rdev_join_ocb()
383 ret = rdev->ops->join_ocb(&rdev->wiphy, dev, setup); in rdev_join_ocb()
384 trace_rdev_return_int(&rdev->wiphy, ret); in rdev_join_ocb()
388 static inline int rdev_leave_ocb(struct cfg80211_registered_device *rdev, in rdev_leave_ocb() argument
392 trace_rdev_leave_ocb(&rdev->wiphy, dev); in rdev_leave_ocb()
393 ret = rdev->ops->leave_ocb(&rdev->wiphy, dev); in rdev_leave_ocb()
394 trace_rdev_return_int(&rdev->wiphy, ret); in rdev_leave_ocb()
398 static inline int rdev_change_bss(struct cfg80211_registered_device *rdev, in rdev_change_bss() argument
404 trace_rdev_change_bss(&rdev->wiphy, dev, params); in rdev_change_bss()
405 ret = rdev->ops->change_bss(&rdev->wiphy, dev, params); in rdev_change_bss()
406 trace_rdev_return_int(&rdev->wiphy, ret); in rdev_change_bss()
410 static inline void rdev_inform_bss(struct cfg80211_registered_device *rdev, in rdev_inform_bss() argument
416 trace_rdev_inform_bss(&rdev->wiphy, bss); in rdev_inform_bss()
417 if (rdev->ops->inform_bss) in rdev_inform_bss()
418 rdev->ops->inform_bss(&rdev->wiphy, bss, ies, drv_data); in rdev_inform_bss()
419 trace_rdev_return_void(&rdev->wiphy); in rdev_inform_bss()
422 static inline int rdev_set_txq_params(struct cfg80211_registered_device *rdev, in rdev_set_txq_params() argument
428 trace_rdev_set_txq_params(&rdev->wiphy, dev, params); in rdev_set_txq_params()
429 ret = rdev->ops->set_txq_params(&rdev->wiphy, dev, params); in rdev_set_txq_params()
430 trace_rdev_return_int(&rdev->wiphy, ret); in rdev_set_txq_params()
435 rdev_libertas_set_mesh_channel(struct cfg80211_registered_device *rdev, in rdev_libertas_set_mesh_channel() argument
440 trace_rdev_libertas_set_mesh_channel(&rdev->wiphy, dev, chan); in rdev_libertas_set_mesh_channel()
441 ret = rdev->ops->libertas_set_mesh_channel(&rdev->wiphy, dev, chan); in rdev_libertas_set_mesh_channel()
442 trace_rdev_return_int(&rdev->wiphy, ret); in rdev_libertas_set_mesh_channel()
447 rdev_set_monitor_channel(struct cfg80211_registered_device *rdev, in rdev_set_monitor_channel() argument
451 trace_rdev_set_monitor_channel(&rdev->wiphy, chandef); in rdev_set_monitor_channel()
452 ret = rdev->ops->set_monitor_channel(&rdev->wiphy, chandef); in rdev_set_monitor_channel()
453 trace_rdev_return_int(&rdev->wiphy, ret); in rdev_set_monitor_channel()
457 static inline int rdev_scan(struct cfg80211_registered_device *rdev, in rdev_scan() argument
465 trace_rdev_scan(&rdev->wiphy, request); in rdev_scan()
466 ret = rdev->ops->scan(&rdev->wiphy, request); in rdev_scan()
467 trace_rdev_return_int(&rdev->wiphy, ret); in rdev_scan()
471 static inline void rdev_abort_scan(struct cfg80211_registered_device *rdev, in rdev_abort_scan() argument
474 trace_rdev_abort_scan(&rdev->wiphy, wdev); in rdev_abort_scan()
475 rdev->ops->abort_scan(&rdev->wiphy, wdev); in rdev_abort_scan()
476 trace_rdev_return_void(&rdev->wiphy); in rdev_abort_scan()
479 static inline int rdev_auth(struct cfg80211_registered_device *rdev, in rdev_auth() argument
484 trace_rdev_auth(&rdev->wiphy, dev, req); in rdev_auth()
485 ret = rdev->ops->auth(&rdev->wiphy, dev, req); in rdev_auth()
486 trace_rdev_return_int(&rdev->wiphy, ret); in rdev_auth()
490 static inline int rdev_assoc(struct cfg80211_registered_device *rdev, in rdev_assoc() argument
496 trace_rdev_assoc(&rdev->wiphy, dev, req); in rdev_assoc()
497 ret = rdev->ops->assoc(&rdev->wiphy, dev, req); in rdev_assoc()
498 trace_rdev_return_int(&rdev->wiphy, ret); in rdev_assoc()
502 static inline int rdev_deauth(struct cfg80211_registered_device *rdev, in rdev_deauth() argument
507 trace_rdev_deauth(&rdev->wiphy, dev, req); in rdev_deauth()
508 ret = rdev->ops->deauth(&rdev->wiphy, dev, req); in rdev_deauth()
509 trace_rdev_return_int(&rdev->wiphy, ret); in rdev_deauth()
513 static inline int rdev_disassoc(struct cfg80211_registered_device *rdev, in rdev_disassoc() argument
518 trace_rdev_disassoc(&rdev->wiphy, dev, req); in rdev_disassoc()
519 ret = rdev->ops->disassoc(&rdev->wiphy, dev, req); in rdev_disassoc()
520 trace_rdev_return_int(&rdev->wiphy, ret); in rdev_disassoc()
524 static inline int rdev_connect(struct cfg80211_registered_device *rdev, in rdev_connect() argument
529 trace_rdev_connect(&rdev->wiphy, dev, sme); in rdev_connect()
530 ret = rdev->ops->connect(&rdev->wiphy, dev, sme); in rdev_connect()
531 trace_rdev_return_int(&rdev->wiphy, ret); in rdev_connect()
536 rdev_update_connect_params(struct cfg80211_registered_device *rdev, in rdev_update_connect_params() argument
541 trace_rdev_update_connect_params(&rdev->wiphy, dev, sme, changed); in rdev_update_connect_params()
542 ret = rdev->ops->update_connect_params(&rdev->wiphy, dev, sme, changed); in rdev_update_connect_params()
543 trace_rdev_return_int(&rdev->wiphy, ret); in rdev_update_connect_params()
547 static inline int rdev_disconnect(struct cfg80211_registered_device *rdev, in rdev_disconnect() argument
551 trace_rdev_disconnect(&rdev->wiphy, dev, reason_code); in rdev_disconnect()
552 ret = rdev->ops->disconnect(&rdev->wiphy, dev, reason_code); in rdev_disconnect()
553 trace_rdev_return_int(&rdev->wiphy, ret); in rdev_disconnect()
557 static inline int rdev_join_ibss(struct cfg80211_registered_device *rdev, in rdev_join_ibss() argument
562 trace_rdev_join_ibss(&rdev->wiphy, dev, params); in rdev_join_ibss()
563 ret = rdev->ops->join_ibss(&rdev->wiphy, dev, params); in rdev_join_ibss()
564 trace_rdev_return_int(&rdev->wiphy, ret); in rdev_join_ibss()
568 static inline int rdev_leave_ibss(struct cfg80211_registered_device *rdev, in rdev_leave_ibss() argument
572 trace_rdev_leave_ibss(&rdev->wiphy, dev); in rdev_leave_ibss()
573 ret = rdev->ops->leave_ibss(&rdev->wiphy, dev); in rdev_leave_ibss()
574 trace_rdev_return_int(&rdev->wiphy, ret); in rdev_leave_ibss()
579 rdev_set_wiphy_params(struct cfg80211_registered_device *rdev, u32 changed) in rdev_set_wiphy_params() argument
583 if (!rdev->ops->set_wiphy_params) in rdev_set_wiphy_params()
586 trace_rdev_set_wiphy_params(&rdev->wiphy, changed); in rdev_set_wiphy_params()
587 ret = rdev->ops->set_wiphy_params(&rdev->wiphy, changed); in rdev_set_wiphy_params()
588 trace_rdev_return_int(&rdev->wiphy, ret); in rdev_set_wiphy_params()
592 static inline int rdev_set_tx_power(struct cfg80211_registered_device *rdev, in rdev_set_tx_power() argument
597 trace_rdev_set_tx_power(&rdev->wiphy, wdev, type, mbm); in rdev_set_tx_power()
598 ret = rdev->ops->set_tx_power(&rdev->wiphy, wdev, type, mbm); in rdev_set_tx_power()
599 trace_rdev_return_int(&rdev->wiphy, ret); in rdev_set_tx_power()
603 static inline int rdev_get_tx_power(struct cfg80211_registered_device *rdev, in rdev_get_tx_power() argument
607 trace_rdev_get_tx_power(&rdev->wiphy, wdev); in rdev_get_tx_power()
608 ret = rdev->ops->get_tx_power(&rdev->wiphy, wdev, dbm); in rdev_get_tx_power()
609 trace_rdev_return_int_int(&rdev->wiphy, ret, *dbm); in rdev_get_tx_power()
614 rdev_set_multicast_to_unicast(struct cfg80211_registered_device *rdev, in rdev_set_multicast_to_unicast() argument
619 trace_rdev_set_multicast_to_unicast(&rdev->wiphy, dev, enabled); in rdev_set_multicast_to_unicast()
620 ret = rdev->ops->set_multicast_to_unicast(&rdev->wiphy, dev, enabled); in rdev_set_multicast_to_unicast()
621 trace_rdev_return_int(&rdev->wiphy, ret); in rdev_set_multicast_to_unicast()
626 rdev_get_txq_stats(struct cfg80211_registered_device *rdev, in rdev_get_txq_stats() argument
631 trace_rdev_get_txq_stats(&rdev->wiphy, wdev); in rdev_get_txq_stats()
632 ret = rdev->ops->get_txq_stats(&rdev->wiphy, wdev, txqstats); in rdev_get_txq_stats()
633 trace_rdev_return_int(&rdev->wiphy, ret); in rdev_get_txq_stats()
637 static inline void rdev_rfkill_poll(struct cfg80211_registered_device *rdev) in rdev_rfkill_poll() argument
639 trace_rdev_rfkill_poll(&rdev->wiphy); in rdev_rfkill_poll()
640 rdev->ops->rfkill_poll(&rdev->wiphy); in rdev_rfkill_poll()
641 trace_rdev_return_void(&rdev->wiphy); in rdev_rfkill_poll()
646 static inline int rdev_testmode_cmd(struct cfg80211_registered_device *rdev, in rdev_testmode_cmd() argument
651 trace_rdev_testmode_cmd(&rdev->wiphy, wdev); in rdev_testmode_cmd()
652 ret = rdev->ops->testmode_cmd(&rdev->wiphy, wdev, data, len); in rdev_testmode_cmd()
653 trace_rdev_return_int(&rdev->wiphy, ret); in rdev_testmode_cmd()
657 static inline int rdev_testmode_dump(struct cfg80211_registered_device *rdev, in rdev_testmode_dump() argument
663 trace_rdev_testmode_dump(&rdev->wiphy); in rdev_testmode_dump()
664 ret = rdev->ops->testmode_dump(&rdev->wiphy, skb, cb, data, len); in rdev_testmode_dump()
665 trace_rdev_return_int(&rdev->wiphy, ret); in rdev_testmode_dump()
671 rdev_set_bitrate_mask(struct cfg80211_registered_device *rdev, in rdev_set_bitrate_mask() argument
677 trace_rdev_set_bitrate_mask(&rdev->wiphy, dev, link_id, peer, mask); in rdev_set_bitrate_mask()
678 ret = rdev->ops->set_bitrate_mask(&rdev->wiphy, dev, link_id, in rdev_set_bitrate_mask()
680 trace_rdev_return_int(&rdev->wiphy, ret); in rdev_set_bitrate_mask()
684 static inline int rdev_dump_survey(struct cfg80211_registered_device *rdev, in rdev_dump_survey() argument
689 trace_rdev_dump_survey(&rdev->wiphy, netdev, idx); in rdev_dump_survey()
690 ret = rdev->ops->dump_survey(&rdev->wiphy, netdev, idx, info); in rdev_dump_survey()
692 trace_rdev_return_int(&rdev->wiphy, ret); in rdev_dump_survey()
694 trace_rdev_return_int_survey_info(&rdev->wiphy, ret, info); in rdev_dump_survey()
698 static inline int rdev_set_pmksa(struct cfg80211_registered_device *rdev, in rdev_set_pmksa() argument
703 trace_rdev_set_pmksa(&rdev->wiphy, netdev, pmksa); in rdev_set_pmksa()
704 ret = rdev->ops->set_pmksa(&rdev->wiphy, netdev, pmksa); in rdev_set_pmksa()
705 trace_rdev_return_int(&rdev->wiphy, ret); in rdev_set_pmksa()
709 static inline int rdev_del_pmksa(struct cfg80211_registered_device *rdev, in rdev_del_pmksa() argument
714 trace_rdev_del_pmksa(&rdev->wiphy, netdev, pmksa); in rdev_del_pmksa()
715 ret = rdev->ops->del_pmksa(&rdev->wiphy, netdev, pmksa); in rdev_del_pmksa()
716 trace_rdev_return_int(&rdev->wiphy, ret); in rdev_del_pmksa()
720 static inline int rdev_flush_pmksa(struct cfg80211_registered_device *rdev, in rdev_flush_pmksa() argument
724 trace_rdev_flush_pmksa(&rdev->wiphy, netdev); in rdev_flush_pmksa()
725 ret = rdev->ops->flush_pmksa(&rdev->wiphy, netdev); in rdev_flush_pmksa()
726 trace_rdev_return_int(&rdev->wiphy, ret); in rdev_flush_pmksa()
731 rdev_remain_on_channel(struct cfg80211_registered_device *rdev, in rdev_remain_on_channel() argument
737 trace_rdev_remain_on_channel(&rdev->wiphy, wdev, chan, duration); in rdev_remain_on_channel()
738 ret = rdev->ops->remain_on_channel(&rdev->wiphy, wdev, chan, in rdev_remain_on_channel()
740 trace_rdev_return_int_cookie(&rdev->wiphy, ret, *cookie); in rdev_remain_on_channel()
745 rdev_cancel_remain_on_channel(struct cfg80211_registered_device *rdev, in rdev_cancel_remain_on_channel() argument
749 trace_rdev_cancel_remain_on_channel(&rdev->wiphy, wdev, cookie); in rdev_cancel_remain_on_channel()
750 ret = rdev->ops->cancel_remain_on_channel(&rdev->wiphy, wdev, cookie); in rdev_cancel_remain_on_channel()
751 trace_rdev_return_int(&rdev->wiphy, ret); in rdev_cancel_remain_on_channel()
755 static inline int rdev_mgmt_tx(struct cfg80211_registered_device *rdev, in rdev_mgmt_tx() argument
761 trace_rdev_mgmt_tx(&rdev->wiphy, wdev, params); in rdev_mgmt_tx()
762 ret = rdev->ops->mgmt_tx(&rdev->wiphy, wdev, params, cookie); in rdev_mgmt_tx()
763 trace_rdev_return_int_cookie(&rdev->wiphy, ret, *cookie); in rdev_mgmt_tx()
767 static inline int rdev_tx_control_port(struct cfg80211_registered_device *rdev, in rdev_tx_control_port() argument
775 trace_rdev_tx_control_port(&rdev->wiphy, dev, buf, len, in rdev_tx_control_port()
777 ret = rdev->ops->tx_control_port(&rdev->wiphy, dev, buf, len, in rdev_tx_control_port()
780 trace_rdev_return_int_cookie(&rdev->wiphy, ret, *cookie); in rdev_tx_control_port()
782 trace_rdev_return_int(&rdev->wiphy, ret); in rdev_tx_control_port()
787 rdev_mgmt_tx_cancel_wait(struct cfg80211_registered_device *rdev, in rdev_mgmt_tx_cancel_wait() argument
791 trace_rdev_mgmt_tx_cancel_wait(&rdev->wiphy, wdev, cookie); in rdev_mgmt_tx_cancel_wait()
792 ret = rdev->ops->mgmt_tx_cancel_wait(&rdev->wiphy, wdev, cookie); in rdev_mgmt_tx_cancel_wait()
793 trace_rdev_return_int(&rdev->wiphy, ret); in rdev_mgmt_tx_cancel_wait()
797 static inline int rdev_set_power_mgmt(struct cfg80211_registered_device *rdev, in rdev_set_power_mgmt() argument
802 trace_rdev_set_power_mgmt(&rdev->wiphy, dev, enabled, timeout); in rdev_set_power_mgmt()
803 ret = rdev->ops->set_power_mgmt(&rdev->wiphy, dev, enabled, timeout); in rdev_set_power_mgmt()
804 trace_rdev_return_int(&rdev->wiphy, ret); in rdev_set_power_mgmt()
809 rdev_set_cqm_rssi_config(struct cfg80211_registered_device *rdev, in rdev_set_cqm_rssi_config() argument
813 trace_rdev_set_cqm_rssi_config(&rdev->wiphy, dev, rssi_thold, in rdev_set_cqm_rssi_config()
815 ret = rdev->ops->set_cqm_rssi_config(&rdev->wiphy, dev, rssi_thold, in rdev_set_cqm_rssi_config()
817 trace_rdev_return_int(&rdev->wiphy, ret); in rdev_set_cqm_rssi_config()
822 rdev_set_cqm_rssi_range_config(struct cfg80211_registered_device *rdev, in rdev_set_cqm_rssi_range_config() argument
826 trace_rdev_set_cqm_rssi_range_config(&rdev->wiphy, dev, low, high); in rdev_set_cqm_rssi_range_config()
827 ret = rdev->ops->set_cqm_rssi_range_config(&rdev->wiphy, dev, in rdev_set_cqm_rssi_range_config()
829 trace_rdev_return_int(&rdev->wiphy, ret); in rdev_set_cqm_rssi_range_config()
834 rdev_set_cqm_txe_config(struct cfg80211_registered_device *rdev, in rdev_set_cqm_txe_config() argument
838 trace_rdev_set_cqm_txe_config(&rdev->wiphy, dev, rate, pkts, intvl); in rdev_set_cqm_txe_config()
839 ret = rdev->ops->set_cqm_txe_config(&rdev->wiphy, dev, rate, pkts, in rdev_set_cqm_txe_config()
841 trace_rdev_return_int(&rdev->wiphy, ret); in rdev_set_cqm_txe_config()
846 rdev_update_mgmt_frame_registrations(struct cfg80211_registered_device *rdev, in rdev_update_mgmt_frame_registrations() argument
852 trace_rdev_update_mgmt_frame_registrations(&rdev->wiphy, wdev, upd); in rdev_update_mgmt_frame_registrations()
853 if (rdev->ops->update_mgmt_frame_registrations) in rdev_update_mgmt_frame_registrations()
854 rdev->ops->update_mgmt_frame_registrations(&rdev->wiphy, wdev, in rdev_update_mgmt_frame_registrations()
856 trace_rdev_return_void(&rdev->wiphy); in rdev_update_mgmt_frame_registrations()
859 static inline int rdev_set_antenna(struct cfg80211_registered_device *rdev, in rdev_set_antenna() argument
863 trace_rdev_set_antenna(&rdev->wiphy, tx_ant, rx_ant); in rdev_set_antenna()
864 ret = rdev->ops->set_antenna(&rdev->wiphy, tx_ant, rx_ant); in rdev_set_antenna()
865 trace_rdev_return_int(&rdev->wiphy, ret); in rdev_set_antenna()
869 static inline int rdev_get_antenna(struct cfg80211_registered_device *rdev, in rdev_get_antenna() argument
873 trace_rdev_get_antenna(&rdev->wiphy); in rdev_get_antenna()
874 ret = rdev->ops->get_antenna(&rdev->wiphy, tx_ant, rx_ant); in rdev_get_antenna()
876 trace_rdev_return_int(&rdev->wiphy, ret); in rdev_get_antenna()
878 trace_rdev_return_int_tx_rx(&rdev->wiphy, ret, *tx_ant, in rdev_get_antenna()
884 rdev_sched_scan_start(struct cfg80211_registered_device *rdev, in rdev_sched_scan_start() argument
889 trace_rdev_sched_scan_start(&rdev->wiphy, dev, request->reqid); in rdev_sched_scan_start()
890 ret = rdev->ops->sched_scan_start(&rdev->wiphy, dev, request); in rdev_sched_scan_start()
891 trace_rdev_return_int(&rdev->wiphy, ret); in rdev_sched_scan_start()
895 static inline int rdev_sched_scan_stop(struct cfg80211_registered_device *rdev, in rdev_sched_scan_stop() argument
899 trace_rdev_sched_scan_stop(&rdev->wiphy, dev, reqid); in rdev_sched_scan_stop()
900 ret = rdev->ops->sched_scan_stop(&rdev->wiphy, dev, reqid); in rdev_sched_scan_stop()
901 trace_rdev_return_int(&rdev->wiphy, ret); in rdev_sched_scan_stop()
905 static inline int rdev_set_rekey_data(struct cfg80211_registered_device *rdev, in rdev_set_rekey_data() argument
910 trace_rdev_set_rekey_data(&rdev->wiphy, dev); in rdev_set_rekey_data()
911 ret = rdev->ops->set_rekey_data(&rdev->wiphy, dev, data); in rdev_set_rekey_data()
912 trace_rdev_return_int(&rdev->wiphy, ret); in rdev_set_rekey_data()
916 static inline int rdev_tdls_mgmt(struct cfg80211_registered_device *rdev, in rdev_tdls_mgmt() argument
924 trace_rdev_tdls_mgmt(&rdev->wiphy, dev, peer, link_id, action_code, in rdev_tdls_mgmt()
927 ret = rdev->ops->tdls_mgmt(&rdev->wiphy, dev, peer, link_id, in rdev_tdls_mgmt()
930 trace_rdev_return_int(&rdev->wiphy, ret); in rdev_tdls_mgmt()
934 static inline int rdev_tdls_oper(struct cfg80211_registered_device *rdev, in rdev_tdls_oper() argument
939 trace_rdev_tdls_oper(&rdev->wiphy, dev, peer, oper); in rdev_tdls_oper()
940 ret = rdev->ops->tdls_oper(&rdev->wiphy, dev, peer, oper); in rdev_tdls_oper()
941 trace_rdev_return_int(&rdev->wiphy, ret); in rdev_tdls_oper()
945 static inline int rdev_probe_client(struct cfg80211_registered_device *rdev, in rdev_probe_client() argument
950 trace_rdev_probe_client(&rdev->wiphy, dev, peer); in rdev_probe_client()
951 ret = rdev->ops->probe_client(&rdev->wiphy, dev, peer, cookie); in rdev_probe_client()
952 trace_rdev_return_int_cookie(&rdev->wiphy, ret, *cookie); in rdev_probe_client()
956 static inline int rdev_set_noack_map(struct cfg80211_registered_device *rdev, in rdev_set_noack_map() argument
960 trace_rdev_set_noack_map(&rdev->wiphy, dev, noack_map); in rdev_set_noack_map()
961 ret = rdev->ops->set_noack_map(&rdev->wiphy, dev, noack_map); in rdev_set_noack_map()
962 trace_rdev_return_int(&rdev->wiphy, ret); in rdev_set_noack_map()
967 rdev_get_channel(struct cfg80211_registered_device *rdev, in rdev_get_channel() argument
974 trace_rdev_get_channel(&rdev->wiphy, wdev, link_id); in rdev_get_channel()
975 ret = rdev->ops->get_channel(&rdev->wiphy, wdev, link_id, chandef); in rdev_get_channel()
976 trace_rdev_return_chandef(&rdev->wiphy, ret, chandef); in rdev_get_channel()
981 static inline int rdev_start_p2p_device(struct cfg80211_registered_device *rdev, in rdev_start_p2p_device() argument
986 trace_rdev_start_p2p_device(&rdev->wiphy, wdev); in rdev_start_p2p_device()
987 ret = rdev->ops->start_p2p_device(&rdev->wiphy, wdev); in rdev_start_p2p_device()
988 trace_rdev_return_int(&rdev->wiphy, ret); in rdev_start_p2p_device()
992 static inline void rdev_stop_p2p_device(struct cfg80211_registered_device *rdev, in rdev_stop_p2p_device() argument
995 trace_rdev_stop_p2p_device(&rdev->wiphy, wdev); in rdev_stop_p2p_device()
996 rdev->ops->stop_p2p_device(&rdev->wiphy, wdev); in rdev_stop_p2p_device()
997 trace_rdev_return_void(&rdev->wiphy); in rdev_stop_p2p_device()
1000 static inline int rdev_start_nan(struct cfg80211_registered_device *rdev, in rdev_start_nan() argument
1006 trace_rdev_start_nan(&rdev->wiphy, wdev, conf); in rdev_start_nan()
1007 ret = rdev->ops->start_nan(&rdev->wiphy, wdev, conf); in rdev_start_nan()
1008 trace_rdev_return_int(&rdev->wiphy, ret); in rdev_start_nan()
1012 static inline void rdev_stop_nan(struct cfg80211_registered_device *rdev, in rdev_stop_nan() argument
1015 trace_rdev_stop_nan(&rdev->wiphy, wdev); in rdev_stop_nan()
1016 rdev->ops->stop_nan(&rdev->wiphy, wdev); in rdev_stop_nan()
1017 trace_rdev_return_void(&rdev->wiphy); in rdev_stop_nan()
1021 rdev_add_nan_func(struct cfg80211_registered_device *rdev, in rdev_add_nan_func() argument
1027 trace_rdev_add_nan_func(&rdev->wiphy, wdev, nan_func); in rdev_add_nan_func()
1028 ret = rdev->ops->add_nan_func(&rdev->wiphy, wdev, nan_func); in rdev_add_nan_func()
1029 trace_rdev_return_int(&rdev->wiphy, ret); in rdev_add_nan_func()
1033 static inline void rdev_del_nan_func(struct cfg80211_registered_device *rdev, in rdev_del_nan_func() argument
1036 trace_rdev_del_nan_func(&rdev->wiphy, wdev, cookie); in rdev_del_nan_func()
1037 rdev->ops->del_nan_func(&rdev->wiphy, wdev, cookie); in rdev_del_nan_func()
1038 trace_rdev_return_void(&rdev->wiphy); in rdev_del_nan_func()
1042 rdev_nan_change_conf(struct cfg80211_registered_device *rdev, in rdev_nan_change_conf() argument
1048 trace_rdev_nan_change_conf(&rdev->wiphy, wdev, conf, changes); in rdev_nan_change_conf()
1049 if (rdev->ops->nan_change_conf) in rdev_nan_change_conf()
1050 ret = rdev->ops->nan_change_conf(&rdev->wiphy, wdev, conf, in rdev_nan_change_conf()
1054 trace_rdev_return_int(&rdev->wiphy, ret); in rdev_nan_change_conf()
1058 static inline int rdev_set_mac_acl(struct cfg80211_registered_device *rdev, in rdev_set_mac_acl() argument
1064 trace_rdev_set_mac_acl(&rdev->wiphy, dev, params); in rdev_set_mac_acl()
1065 ret = rdev->ops->set_mac_acl(&rdev->wiphy, dev, params); in rdev_set_mac_acl()
1066 trace_rdev_return_int(&rdev->wiphy, ret); in rdev_set_mac_acl()
1070 static inline int rdev_update_ft_ies(struct cfg80211_registered_device *rdev, in rdev_update_ft_ies() argument
1076 trace_rdev_update_ft_ies(&rdev->wiphy, dev, ftie); in rdev_update_ft_ies()
1077 ret = rdev->ops->update_ft_ies(&rdev->wiphy, dev, ftie); in rdev_update_ft_ies()
1078 trace_rdev_return_int(&rdev->wiphy, ret); in rdev_update_ft_ies()
1082 static inline int rdev_crit_proto_start(struct cfg80211_registered_device *rdev, in rdev_crit_proto_start() argument
1089 trace_rdev_crit_proto_start(&rdev->wiphy, wdev, protocol, duration); in rdev_crit_proto_start()
1090 ret = rdev->ops->crit_proto_start(&rdev->wiphy, wdev, in rdev_crit_proto_start()
1092 trace_rdev_return_int(&rdev->wiphy, ret); in rdev_crit_proto_start()
1096 static inline void rdev_crit_proto_stop(struct cfg80211_registered_device *rdev, in rdev_crit_proto_stop() argument
1099 trace_rdev_crit_proto_stop(&rdev->wiphy, wdev); in rdev_crit_proto_stop()
1100 rdev->ops->crit_proto_stop(&rdev->wiphy, wdev); in rdev_crit_proto_stop()
1101 trace_rdev_return_void(&rdev->wiphy); in rdev_crit_proto_stop()
1104 static inline int rdev_channel_switch(struct cfg80211_registered_device *rdev, in rdev_channel_switch() argument
1110 trace_rdev_channel_switch(&rdev->wiphy, dev, params); in rdev_channel_switch()
1111 ret = rdev->ops->channel_switch(&rdev->wiphy, dev, params); in rdev_channel_switch()
1112 trace_rdev_return_int(&rdev->wiphy, ret); in rdev_channel_switch()
1116 static inline int rdev_set_qos_map(struct cfg80211_registered_device *rdev, in rdev_set_qos_map() argument
1122 if (rdev->ops->set_qos_map) { in rdev_set_qos_map()
1123 trace_rdev_set_qos_map(&rdev->wiphy, dev, qos_map); in rdev_set_qos_map()
1124 ret = rdev->ops->set_qos_map(&rdev->wiphy, dev, qos_map); in rdev_set_qos_map()
1125 trace_rdev_return_int(&rdev->wiphy, ret); in rdev_set_qos_map()
1132 rdev_set_ap_chanwidth(struct cfg80211_registered_device *rdev, in rdev_set_ap_chanwidth() argument
1139 trace_rdev_set_ap_chanwidth(&rdev->wiphy, dev, link_id, chandef); in rdev_set_ap_chanwidth()
1140 ret = rdev->ops->set_ap_chanwidth(&rdev->wiphy, dev, link_id, chandef); in rdev_set_ap_chanwidth()
1141 trace_rdev_return_int(&rdev->wiphy, ret); in rdev_set_ap_chanwidth()
1147 rdev_add_tx_ts(struct cfg80211_registered_device *rdev, in rdev_add_tx_ts() argument
1153 trace_rdev_add_tx_ts(&rdev->wiphy, dev, tsid, peer, in rdev_add_tx_ts()
1155 if (rdev->ops->add_tx_ts) in rdev_add_tx_ts()
1156 ret = rdev->ops->add_tx_ts(&rdev->wiphy, dev, tsid, peer, in rdev_add_tx_ts()
1158 trace_rdev_return_int(&rdev->wiphy, ret); in rdev_add_tx_ts()
1164 rdev_del_tx_ts(struct cfg80211_registered_device *rdev, in rdev_del_tx_ts() argument
1169 trace_rdev_del_tx_ts(&rdev->wiphy, dev, tsid, peer); in rdev_del_tx_ts()
1170 if (rdev->ops->del_tx_ts) in rdev_del_tx_ts()
1171 ret = rdev->ops->del_tx_ts(&rdev->wiphy, dev, tsid, peer); in rdev_del_tx_ts()
1172 trace_rdev_return_int(&rdev->wiphy, ret); in rdev_del_tx_ts()
1178 rdev_tdls_channel_switch(struct cfg80211_registered_device *rdev, in rdev_tdls_channel_switch() argument
1184 trace_rdev_tdls_channel_switch(&rdev->wiphy, dev, addr, oper_class, in rdev_tdls_channel_switch()
1186 ret = rdev->ops->tdls_channel_switch(&rdev->wiphy, dev, addr, in rdev_tdls_channel_switch()
1188 trace_rdev_return_int(&rdev->wiphy, ret); in rdev_tdls_channel_switch()
1193 rdev_tdls_cancel_channel_switch(struct cfg80211_registered_device *rdev, in rdev_tdls_cancel_channel_switch() argument
1196 trace_rdev_tdls_cancel_channel_switch(&rdev->wiphy, dev, addr); in rdev_tdls_cancel_channel_switch()
1197 rdev->ops->tdls_cancel_channel_switch(&rdev->wiphy, dev, addr); in rdev_tdls_cancel_channel_switch()
1198 trace_rdev_return_void(&rdev->wiphy); in rdev_tdls_cancel_channel_switch()
1202 rdev_start_radar_detection(struct cfg80211_registered_device *rdev, in rdev_start_radar_detection() argument
1209 trace_rdev_start_radar_detection(&rdev->wiphy, dev, chandef, in rdev_start_radar_detection()
1211 if (rdev->ops->start_radar_detection) in rdev_start_radar_detection()
1212 ret = rdev->ops->start_radar_detection(&rdev->wiphy, dev, in rdev_start_radar_detection()
1214 trace_rdev_return_int(&rdev->wiphy, ret); in rdev_start_radar_detection()
1219 rdev_end_cac(struct cfg80211_registered_device *rdev, in rdev_end_cac() argument
1222 trace_rdev_end_cac(&rdev->wiphy, dev); in rdev_end_cac()
1223 if (rdev->ops->end_cac) in rdev_end_cac()
1224 rdev->ops->end_cac(&rdev->wiphy, dev); in rdev_end_cac()
1225 trace_rdev_return_void(&rdev->wiphy); in rdev_end_cac()
1229 rdev_set_mcast_rate(struct cfg80211_registered_device *rdev, in rdev_set_mcast_rate() argument
1235 trace_rdev_set_mcast_rate(&rdev->wiphy, dev, mcast_rate); in rdev_set_mcast_rate()
1236 if (rdev->ops->set_mcast_rate) in rdev_set_mcast_rate()
1237 ret = rdev->ops->set_mcast_rate(&rdev->wiphy, dev, mcast_rate); in rdev_set_mcast_rate()
1238 trace_rdev_return_int(&rdev->wiphy, ret); in rdev_set_mcast_rate()
1243 rdev_set_coalesce(struct cfg80211_registered_device *rdev, in rdev_set_coalesce() argument
1248 trace_rdev_set_coalesce(&rdev->wiphy, coalesce); in rdev_set_coalesce()
1249 if (rdev->ops->set_coalesce) in rdev_set_coalesce()
1250 ret = rdev->ops->set_coalesce(&rdev->wiphy, coalesce); in rdev_set_coalesce()
1251 trace_rdev_return_int(&rdev->wiphy, ret); in rdev_set_coalesce()
1255 static inline int rdev_set_pmk(struct cfg80211_registered_device *rdev, in rdev_set_pmk() argument
1261 trace_rdev_set_pmk(&rdev->wiphy, dev, pmk_conf); in rdev_set_pmk()
1262 if (rdev->ops->set_pmk) in rdev_set_pmk()
1263 ret = rdev->ops->set_pmk(&rdev->wiphy, dev, pmk_conf); in rdev_set_pmk()
1264 trace_rdev_return_int(&rdev->wiphy, ret); in rdev_set_pmk()
1268 static inline int rdev_del_pmk(struct cfg80211_registered_device *rdev, in rdev_del_pmk() argument
1273 trace_rdev_del_pmk(&rdev->wiphy, dev, aa); in rdev_del_pmk()
1274 if (rdev->ops->del_pmk) in rdev_del_pmk()
1275 ret = rdev->ops->del_pmk(&rdev->wiphy, dev, aa); in rdev_del_pmk()
1276 trace_rdev_return_int(&rdev->wiphy, ret); in rdev_del_pmk()
1281 rdev_external_auth(struct cfg80211_registered_device *rdev, in rdev_external_auth() argument
1287 trace_rdev_external_auth(&rdev->wiphy, dev, params); in rdev_external_auth()
1288 if (rdev->ops->external_auth) in rdev_external_auth()
1289 ret = rdev->ops->external_auth(&rdev->wiphy, dev, params); in rdev_external_auth()
1290 trace_rdev_return_int(&rdev->wiphy, ret); in rdev_external_auth()
1295 rdev_get_ftm_responder_stats(struct cfg80211_registered_device *rdev, in rdev_get_ftm_responder_stats() argument
1301 trace_rdev_get_ftm_responder_stats(&rdev->wiphy, dev, ftm_stats); in rdev_get_ftm_responder_stats()
1302 if (rdev->ops->get_ftm_responder_stats) in rdev_get_ftm_responder_stats()
1303 ret = rdev->ops->get_ftm_responder_stats(&rdev->wiphy, dev, in rdev_get_ftm_responder_stats()
1305 trace_rdev_return_int(&rdev->wiphy, ret); in rdev_get_ftm_responder_stats()
1310 rdev_start_pmsr(struct cfg80211_registered_device *rdev, in rdev_start_pmsr() argument
1316 trace_rdev_start_pmsr(&rdev->wiphy, wdev, request->cookie); in rdev_start_pmsr()
1317 if (rdev->ops->start_pmsr) in rdev_start_pmsr()
1318 ret = rdev->ops->start_pmsr(&rdev->wiphy, wdev, request); in rdev_start_pmsr()
1319 trace_rdev_return_int(&rdev->wiphy, ret); in rdev_start_pmsr()
1324 rdev_abort_pmsr(struct cfg80211_registered_device *rdev, in rdev_abort_pmsr() argument
1328 trace_rdev_abort_pmsr(&rdev->wiphy, wdev, request->cookie); in rdev_abort_pmsr()
1329 if (rdev->ops->abort_pmsr) in rdev_abort_pmsr()
1330 rdev->ops->abort_pmsr(&rdev->wiphy, wdev, request); in rdev_abort_pmsr()
1331 trace_rdev_return_void(&rdev->wiphy); in rdev_abort_pmsr()
1334 static inline int rdev_update_owe_info(struct cfg80211_registered_device *rdev, in rdev_update_owe_info() argument
1340 trace_rdev_update_owe_info(&rdev->wiphy, dev, oweinfo); in rdev_update_owe_info()
1341 if (rdev->ops->update_owe_info) in rdev_update_owe_info()
1342 ret = rdev->ops->update_owe_info(&rdev->wiphy, dev, oweinfo); in rdev_update_owe_info()
1343 trace_rdev_return_int(&rdev->wiphy, ret); in rdev_update_owe_info()
1348 rdev_probe_mesh_link(struct cfg80211_registered_device *rdev, in rdev_probe_mesh_link() argument
1354 trace_rdev_probe_mesh_link(&rdev->wiphy, dev, dest, buf, len); in rdev_probe_mesh_link()
1355 ret = rdev->ops->probe_mesh_link(&rdev->wiphy, dev, buf, len); in rdev_probe_mesh_link()
1356 trace_rdev_return_int(&rdev->wiphy, ret); in rdev_probe_mesh_link()
1360 static inline int rdev_set_tid_config(struct cfg80211_registered_device *rdev, in rdev_set_tid_config() argument
1366 trace_rdev_set_tid_config(&rdev->wiphy, dev, tid_conf); in rdev_set_tid_config()
1367 ret = rdev->ops->set_tid_config(&rdev->wiphy, dev, tid_conf); in rdev_set_tid_config()
1368 trace_rdev_return_int(&rdev->wiphy, ret); in rdev_set_tid_config()
1372 static inline int rdev_reset_tid_config(struct cfg80211_registered_device *rdev, in rdev_reset_tid_config() argument
1378 trace_rdev_reset_tid_config(&rdev->wiphy, dev, peer, tids); in rdev_reset_tid_config()
1379 ret = rdev->ops->reset_tid_config(&rdev->wiphy, dev, peer, tids); in rdev_reset_tid_config()
1380 trace_rdev_return_int(&rdev->wiphy, ret); in rdev_reset_tid_config()
1384 static inline int rdev_set_sar_specs(struct cfg80211_registered_device *rdev, in rdev_set_sar_specs() argument
1389 trace_rdev_set_sar_specs(&rdev->wiphy, sar); in rdev_set_sar_specs()
1390 ret = rdev->ops->set_sar_specs(&rdev->wiphy, sar); in rdev_set_sar_specs()
1391 trace_rdev_return_int(&rdev->wiphy, ret); in rdev_set_sar_specs()
1396 static inline int rdev_color_change(struct cfg80211_registered_device *rdev, in rdev_color_change() argument
1402 trace_rdev_color_change(&rdev->wiphy, dev, params); in rdev_color_change()
1403 ret = rdev->ops->color_change(&rdev->wiphy, dev, params); in rdev_color_change()
1404 trace_rdev_return_int(&rdev->wiphy, ret); in rdev_color_change()
1410 rdev_set_fils_aad(struct cfg80211_registered_device *rdev, in rdev_set_fils_aad() argument
1415 trace_rdev_set_fils_aad(&rdev->wiphy, dev, fils_aad); in rdev_set_fils_aad()
1416 if (rdev->ops->set_fils_aad) in rdev_set_fils_aad()
1417 ret = rdev->ops->set_fils_aad(&rdev->wiphy, dev, fils_aad); in rdev_set_fils_aad()
1418 trace_rdev_return_int(&rdev->wiphy, ret); in rdev_set_fils_aad()
1424 rdev_set_radar_background(struct cfg80211_registered_device *rdev, in rdev_set_radar_background() argument
1427 struct wiphy *wiphy = &rdev->wiphy; in rdev_set_radar_background()
1430 if (!rdev->ops->set_radar_background) in rdev_set_radar_background()
1434 ret = rdev->ops->set_radar_background(wiphy, chandef); in rdev_set_radar_background()
1441 rdev_add_intf_link(struct cfg80211_registered_device *rdev, in rdev_add_intf_link() argument
1447 trace_rdev_add_intf_link(&rdev->wiphy, wdev, link_id); in rdev_add_intf_link()
1448 if (rdev->ops->add_intf_link) in rdev_add_intf_link()
1449 ret = rdev->ops->add_intf_link(&rdev->wiphy, wdev, link_id); in rdev_add_intf_link()
1450 trace_rdev_return_int(&rdev->wiphy, ret); in rdev_add_intf_link()
1456 rdev_del_intf_link(struct cfg80211_registered_device *rdev, in rdev_del_intf_link() argument
1460 trace_rdev_del_intf_link(&rdev->wiphy, wdev, link_id); in rdev_del_intf_link()
1461 if (rdev->ops->del_intf_link) in rdev_del_intf_link()
1462 rdev->ops->del_intf_link(&rdev->wiphy, wdev, link_id); in rdev_del_intf_link()
1463 trace_rdev_return_void(&rdev->wiphy); in rdev_del_intf_link()
1467 rdev_add_link_station(struct cfg80211_registered_device *rdev, in rdev_add_link_station() argument
1473 if (!rdev->ops->add_link_station) in rdev_add_link_station()
1476 trace_rdev_add_link_station(&rdev->wiphy, dev, params); in rdev_add_link_station()
1477 ret = rdev->ops->add_link_station(&rdev->wiphy, dev, params); in rdev_add_link_station()
1478 trace_rdev_return_int(&rdev->wiphy, ret); in rdev_add_link_station()
1483 rdev_mod_link_station(struct cfg80211_registered_device *rdev, in rdev_mod_link_station() argument
1489 if (!rdev->ops->mod_link_station) in rdev_mod_link_station()
1492 trace_rdev_mod_link_station(&rdev->wiphy, dev, params); in rdev_mod_link_station()
1493 ret = rdev->ops->mod_link_station(&rdev->wiphy, dev, params); in rdev_mod_link_station()
1494 trace_rdev_return_int(&rdev->wiphy, ret); in rdev_mod_link_station()
1499 rdev_del_link_station(struct cfg80211_registered_device *rdev, in rdev_del_link_station() argument
1505 if (!rdev->ops->del_link_station) in rdev_del_link_station()
1508 trace_rdev_del_link_station(&rdev->wiphy, dev, params); in rdev_del_link_station()
1509 ret = rdev->ops->del_link_station(&rdev->wiphy, dev, params); in rdev_del_link_station()
1510 trace_rdev_return_int(&rdev->wiphy, ret); in rdev_del_link_station()
1515 rdev_set_hw_timestamp(struct cfg80211_registered_device *rdev, in rdev_set_hw_timestamp() argument
1519 struct wiphy *wiphy = &rdev->wiphy; in rdev_set_hw_timestamp()
1522 if (!rdev->ops->set_hw_timestamp) in rdev_set_hw_timestamp()
1526 ret = rdev->ops->set_hw_timestamp(wiphy, dev, hwts); in rdev_set_hw_timestamp()
1533 rdev_set_ttlm(struct cfg80211_registered_device *rdev, in rdev_set_ttlm() argument
1537 struct wiphy *wiphy = &rdev->wiphy; in rdev_set_ttlm()
1540 if (!rdev->ops->set_ttlm) in rdev_set_ttlm()
1544 ret = rdev->ops->set_ttlm(wiphy, dev, params); in rdev_set_ttlm()