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 trace_rdev_set_wiphy_params(&rdev->wiphy, changed); in rdev_set_wiphy_params()
584 if (rdev->ops->set_wiphy_params) in rdev_set_wiphy_params()
585 ret = rdev->ops->set_wiphy_params(&rdev->wiphy, changed); in rdev_set_wiphy_params()
586 trace_rdev_return_int(&rdev->wiphy, ret); in rdev_set_wiphy_params()
590 static inline int rdev_set_tx_power(struct cfg80211_registered_device *rdev, in rdev_set_tx_power() argument
595 trace_rdev_set_tx_power(&rdev->wiphy, wdev, type, mbm); in rdev_set_tx_power()
596 ret = rdev->ops->set_tx_power(&rdev->wiphy, wdev, type, mbm); in rdev_set_tx_power()
597 trace_rdev_return_int(&rdev->wiphy, ret); in rdev_set_tx_power()
601 static inline int rdev_get_tx_power(struct cfg80211_registered_device *rdev, in rdev_get_tx_power() argument
605 trace_rdev_get_tx_power(&rdev->wiphy, wdev); in rdev_get_tx_power()
606 ret = rdev->ops->get_tx_power(&rdev->wiphy, wdev, dbm); in rdev_get_tx_power()
607 trace_rdev_return_int_int(&rdev->wiphy, ret, *dbm); in rdev_get_tx_power()
612 rdev_set_multicast_to_unicast(struct cfg80211_registered_device *rdev, in rdev_set_multicast_to_unicast() argument
617 trace_rdev_set_multicast_to_unicast(&rdev->wiphy, dev, enabled); in rdev_set_multicast_to_unicast()
618 ret = rdev->ops->set_multicast_to_unicast(&rdev->wiphy, dev, enabled); in rdev_set_multicast_to_unicast()
619 trace_rdev_return_int(&rdev->wiphy, ret); in rdev_set_multicast_to_unicast()
624 rdev_get_txq_stats(struct cfg80211_registered_device *rdev, in rdev_get_txq_stats() argument
629 trace_rdev_get_txq_stats(&rdev->wiphy, wdev); in rdev_get_txq_stats()
630 ret = rdev->ops->get_txq_stats(&rdev->wiphy, wdev, txqstats); in rdev_get_txq_stats()
631 trace_rdev_return_int(&rdev->wiphy, ret); in rdev_get_txq_stats()
635 static inline void rdev_rfkill_poll(struct cfg80211_registered_device *rdev) in rdev_rfkill_poll() argument
637 trace_rdev_rfkill_poll(&rdev->wiphy); in rdev_rfkill_poll()
638 rdev->ops->rfkill_poll(&rdev->wiphy); in rdev_rfkill_poll()
639 trace_rdev_return_void(&rdev->wiphy); in rdev_rfkill_poll()
644 static inline int rdev_testmode_cmd(struct cfg80211_registered_device *rdev, in rdev_testmode_cmd() argument
649 trace_rdev_testmode_cmd(&rdev->wiphy, wdev); in rdev_testmode_cmd()
650 ret = rdev->ops->testmode_cmd(&rdev->wiphy, wdev, data, len); in rdev_testmode_cmd()
651 trace_rdev_return_int(&rdev->wiphy, ret); in rdev_testmode_cmd()
655 static inline int rdev_testmode_dump(struct cfg80211_registered_device *rdev, in rdev_testmode_dump() argument
661 trace_rdev_testmode_dump(&rdev->wiphy); in rdev_testmode_dump()
662 ret = rdev->ops->testmode_dump(&rdev->wiphy, skb, cb, data, len); in rdev_testmode_dump()
663 trace_rdev_return_int(&rdev->wiphy, ret); in rdev_testmode_dump()
669 rdev_set_bitrate_mask(struct cfg80211_registered_device *rdev, in rdev_set_bitrate_mask() argument
675 trace_rdev_set_bitrate_mask(&rdev->wiphy, dev, link_id, peer, mask); in rdev_set_bitrate_mask()
676 ret = rdev->ops->set_bitrate_mask(&rdev->wiphy, dev, link_id, in rdev_set_bitrate_mask()
678 trace_rdev_return_int(&rdev->wiphy, ret); in rdev_set_bitrate_mask()
682 static inline int rdev_dump_survey(struct cfg80211_registered_device *rdev, in rdev_dump_survey() argument
687 trace_rdev_dump_survey(&rdev->wiphy, netdev, idx); in rdev_dump_survey()
688 ret = rdev->ops->dump_survey(&rdev->wiphy, netdev, idx, info); in rdev_dump_survey()
690 trace_rdev_return_int(&rdev->wiphy, ret); in rdev_dump_survey()
692 trace_rdev_return_int_survey_info(&rdev->wiphy, ret, info); in rdev_dump_survey()
696 static inline int rdev_set_pmksa(struct cfg80211_registered_device *rdev, in rdev_set_pmksa() argument
701 trace_rdev_set_pmksa(&rdev->wiphy, netdev, pmksa); in rdev_set_pmksa()
702 ret = rdev->ops->set_pmksa(&rdev->wiphy, netdev, pmksa); in rdev_set_pmksa()
703 trace_rdev_return_int(&rdev->wiphy, ret); in rdev_set_pmksa()
707 static inline int rdev_del_pmksa(struct cfg80211_registered_device *rdev, in rdev_del_pmksa() argument
712 trace_rdev_del_pmksa(&rdev->wiphy, netdev, pmksa); in rdev_del_pmksa()
713 ret = rdev->ops->del_pmksa(&rdev->wiphy, netdev, pmksa); in rdev_del_pmksa()
714 trace_rdev_return_int(&rdev->wiphy, ret); in rdev_del_pmksa()
718 static inline int rdev_flush_pmksa(struct cfg80211_registered_device *rdev, in rdev_flush_pmksa() argument
722 trace_rdev_flush_pmksa(&rdev->wiphy, netdev); in rdev_flush_pmksa()
723 ret = rdev->ops->flush_pmksa(&rdev->wiphy, netdev); in rdev_flush_pmksa()
724 trace_rdev_return_int(&rdev->wiphy, ret); in rdev_flush_pmksa()
729 rdev_remain_on_channel(struct cfg80211_registered_device *rdev, in rdev_remain_on_channel() argument
735 trace_rdev_remain_on_channel(&rdev->wiphy, wdev, chan, duration); in rdev_remain_on_channel()
736 ret = rdev->ops->remain_on_channel(&rdev->wiphy, wdev, chan, in rdev_remain_on_channel()
738 trace_rdev_return_int_cookie(&rdev->wiphy, ret, *cookie); in rdev_remain_on_channel()
743 rdev_cancel_remain_on_channel(struct cfg80211_registered_device *rdev, in rdev_cancel_remain_on_channel() argument
747 trace_rdev_cancel_remain_on_channel(&rdev->wiphy, wdev, cookie); in rdev_cancel_remain_on_channel()
748 ret = rdev->ops->cancel_remain_on_channel(&rdev->wiphy, wdev, cookie); in rdev_cancel_remain_on_channel()
749 trace_rdev_return_int(&rdev->wiphy, ret); in rdev_cancel_remain_on_channel()
753 static inline int rdev_mgmt_tx(struct cfg80211_registered_device *rdev, in rdev_mgmt_tx() argument
759 trace_rdev_mgmt_tx(&rdev->wiphy, wdev, params); in rdev_mgmt_tx()
760 ret = rdev->ops->mgmt_tx(&rdev->wiphy, wdev, params, cookie); in rdev_mgmt_tx()
761 trace_rdev_return_int_cookie(&rdev->wiphy, ret, *cookie); in rdev_mgmt_tx()
765 static inline int rdev_tx_control_port(struct cfg80211_registered_device *rdev, in rdev_tx_control_port() argument
773 trace_rdev_tx_control_port(&rdev->wiphy, dev, buf, len, in rdev_tx_control_port()
775 ret = rdev->ops->tx_control_port(&rdev->wiphy, dev, buf, len, in rdev_tx_control_port()
778 trace_rdev_return_int_cookie(&rdev->wiphy, ret, *cookie); in rdev_tx_control_port()
780 trace_rdev_return_int(&rdev->wiphy, ret); in rdev_tx_control_port()
785 rdev_mgmt_tx_cancel_wait(struct cfg80211_registered_device *rdev, in rdev_mgmt_tx_cancel_wait() argument
789 trace_rdev_mgmt_tx_cancel_wait(&rdev->wiphy, wdev, cookie); in rdev_mgmt_tx_cancel_wait()
790 ret = rdev->ops->mgmt_tx_cancel_wait(&rdev->wiphy, wdev, cookie); in rdev_mgmt_tx_cancel_wait()
791 trace_rdev_return_int(&rdev->wiphy, ret); in rdev_mgmt_tx_cancel_wait()
795 static inline int rdev_set_power_mgmt(struct cfg80211_registered_device *rdev, in rdev_set_power_mgmt() argument
800 trace_rdev_set_power_mgmt(&rdev->wiphy, dev, enabled, timeout); in rdev_set_power_mgmt()
801 ret = rdev->ops->set_power_mgmt(&rdev->wiphy, dev, enabled, timeout); in rdev_set_power_mgmt()
802 trace_rdev_return_int(&rdev->wiphy, ret); in rdev_set_power_mgmt()
807 rdev_set_cqm_rssi_config(struct cfg80211_registered_device *rdev, in rdev_set_cqm_rssi_config() argument
811 trace_rdev_set_cqm_rssi_config(&rdev->wiphy, dev, rssi_thold, in rdev_set_cqm_rssi_config()
813 ret = rdev->ops->set_cqm_rssi_config(&rdev->wiphy, dev, rssi_thold, in rdev_set_cqm_rssi_config()
815 trace_rdev_return_int(&rdev->wiphy, ret); in rdev_set_cqm_rssi_config()
820 rdev_set_cqm_rssi_range_config(struct cfg80211_registered_device *rdev, in rdev_set_cqm_rssi_range_config() argument
824 trace_rdev_set_cqm_rssi_range_config(&rdev->wiphy, dev, low, high); in rdev_set_cqm_rssi_range_config()
825 ret = rdev->ops->set_cqm_rssi_range_config(&rdev->wiphy, dev, in rdev_set_cqm_rssi_range_config()
827 trace_rdev_return_int(&rdev->wiphy, ret); in rdev_set_cqm_rssi_range_config()
832 rdev_set_cqm_txe_config(struct cfg80211_registered_device *rdev, in rdev_set_cqm_txe_config() argument
836 trace_rdev_set_cqm_txe_config(&rdev->wiphy, dev, rate, pkts, intvl); in rdev_set_cqm_txe_config()
837 ret = rdev->ops->set_cqm_txe_config(&rdev->wiphy, dev, rate, pkts, in rdev_set_cqm_txe_config()
839 trace_rdev_return_int(&rdev->wiphy, ret); in rdev_set_cqm_txe_config()
844 rdev_update_mgmt_frame_registrations(struct cfg80211_registered_device *rdev, in rdev_update_mgmt_frame_registrations() argument
850 trace_rdev_update_mgmt_frame_registrations(&rdev->wiphy, wdev, upd); in rdev_update_mgmt_frame_registrations()
851 if (rdev->ops->update_mgmt_frame_registrations) in rdev_update_mgmt_frame_registrations()
852 rdev->ops->update_mgmt_frame_registrations(&rdev->wiphy, wdev, in rdev_update_mgmt_frame_registrations()
854 trace_rdev_return_void(&rdev->wiphy); in rdev_update_mgmt_frame_registrations()
857 static inline int rdev_set_antenna(struct cfg80211_registered_device *rdev, in rdev_set_antenna() argument
861 trace_rdev_set_antenna(&rdev->wiphy, tx_ant, rx_ant); in rdev_set_antenna()
862 ret = rdev->ops->set_antenna(&rdev->wiphy, tx_ant, rx_ant); in rdev_set_antenna()
863 trace_rdev_return_int(&rdev->wiphy, ret); in rdev_set_antenna()
867 static inline int rdev_get_antenna(struct cfg80211_registered_device *rdev, in rdev_get_antenna() argument
871 trace_rdev_get_antenna(&rdev->wiphy); in rdev_get_antenna()
872 ret = rdev->ops->get_antenna(&rdev->wiphy, tx_ant, rx_ant); in rdev_get_antenna()
874 trace_rdev_return_int(&rdev->wiphy, ret); in rdev_get_antenna()
876 trace_rdev_return_int_tx_rx(&rdev->wiphy, ret, *tx_ant, in rdev_get_antenna()
882 rdev_sched_scan_start(struct cfg80211_registered_device *rdev, in rdev_sched_scan_start() argument
887 trace_rdev_sched_scan_start(&rdev->wiphy, dev, request->reqid); in rdev_sched_scan_start()
888 ret = rdev->ops->sched_scan_start(&rdev->wiphy, dev, request); in rdev_sched_scan_start()
889 trace_rdev_return_int(&rdev->wiphy, ret); in rdev_sched_scan_start()
893 static inline int rdev_sched_scan_stop(struct cfg80211_registered_device *rdev, in rdev_sched_scan_stop() argument
897 trace_rdev_sched_scan_stop(&rdev->wiphy, dev, reqid); in rdev_sched_scan_stop()
898 ret = rdev->ops->sched_scan_stop(&rdev->wiphy, dev, reqid); in rdev_sched_scan_stop()
899 trace_rdev_return_int(&rdev->wiphy, ret); in rdev_sched_scan_stop()
903 static inline int rdev_set_rekey_data(struct cfg80211_registered_device *rdev, in rdev_set_rekey_data() argument
908 trace_rdev_set_rekey_data(&rdev->wiphy, dev); in rdev_set_rekey_data()
909 ret = rdev->ops->set_rekey_data(&rdev->wiphy, dev, data); in rdev_set_rekey_data()
910 trace_rdev_return_int(&rdev->wiphy, ret); in rdev_set_rekey_data()
914 static inline int rdev_tdls_mgmt(struct cfg80211_registered_device *rdev, in rdev_tdls_mgmt() argument
922 trace_rdev_tdls_mgmt(&rdev->wiphy, dev, peer, link_id, action_code, in rdev_tdls_mgmt()
925 ret = rdev->ops->tdls_mgmt(&rdev->wiphy, dev, peer, link_id, in rdev_tdls_mgmt()
928 trace_rdev_return_int(&rdev->wiphy, ret); in rdev_tdls_mgmt()
932 static inline int rdev_tdls_oper(struct cfg80211_registered_device *rdev, in rdev_tdls_oper() argument
937 trace_rdev_tdls_oper(&rdev->wiphy, dev, peer, oper); in rdev_tdls_oper()
938 ret = rdev->ops->tdls_oper(&rdev->wiphy, dev, peer, oper); in rdev_tdls_oper()
939 trace_rdev_return_int(&rdev->wiphy, ret); in rdev_tdls_oper()
943 static inline int rdev_probe_client(struct cfg80211_registered_device *rdev, in rdev_probe_client() argument
948 trace_rdev_probe_client(&rdev->wiphy, dev, peer); in rdev_probe_client()
949 ret = rdev->ops->probe_client(&rdev->wiphy, dev, peer, cookie); in rdev_probe_client()
950 trace_rdev_return_int_cookie(&rdev->wiphy, ret, *cookie); in rdev_probe_client()
954 static inline int rdev_set_noack_map(struct cfg80211_registered_device *rdev, in rdev_set_noack_map() argument
958 trace_rdev_set_noack_map(&rdev->wiphy, dev, noack_map); in rdev_set_noack_map()
959 ret = rdev->ops->set_noack_map(&rdev->wiphy, dev, noack_map); in rdev_set_noack_map()
960 trace_rdev_return_int(&rdev->wiphy, ret); in rdev_set_noack_map()
965 rdev_get_channel(struct cfg80211_registered_device *rdev, in rdev_get_channel() argument
972 trace_rdev_get_channel(&rdev->wiphy, wdev, link_id); in rdev_get_channel()
973 ret = rdev->ops->get_channel(&rdev->wiphy, wdev, link_id, chandef); in rdev_get_channel()
974 trace_rdev_return_chandef(&rdev->wiphy, ret, chandef); in rdev_get_channel()
979 static inline int rdev_start_p2p_device(struct cfg80211_registered_device *rdev, in rdev_start_p2p_device() argument
984 trace_rdev_start_p2p_device(&rdev->wiphy, wdev); in rdev_start_p2p_device()
985 ret = rdev->ops->start_p2p_device(&rdev->wiphy, wdev); in rdev_start_p2p_device()
986 trace_rdev_return_int(&rdev->wiphy, ret); in rdev_start_p2p_device()
990 static inline void rdev_stop_p2p_device(struct cfg80211_registered_device *rdev, in rdev_stop_p2p_device() argument
993 trace_rdev_stop_p2p_device(&rdev->wiphy, wdev); in rdev_stop_p2p_device()
994 rdev->ops->stop_p2p_device(&rdev->wiphy, wdev); in rdev_stop_p2p_device()
995 trace_rdev_return_void(&rdev->wiphy); in rdev_stop_p2p_device()
998 static inline int rdev_start_nan(struct cfg80211_registered_device *rdev, in rdev_start_nan() argument
1004 trace_rdev_start_nan(&rdev->wiphy, wdev, conf); in rdev_start_nan()
1005 ret = rdev->ops->start_nan(&rdev->wiphy, wdev, conf); in rdev_start_nan()
1006 trace_rdev_return_int(&rdev->wiphy, ret); in rdev_start_nan()
1010 static inline void rdev_stop_nan(struct cfg80211_registered_device *rdev, in rdev_stop_nan() argument
1013 trace_rdev_stop_nan(&rdev->wiphy, wdev); in rdev_stop_nan()
1014 rdev->ops->stop_nan(&rdev->wiphy, wdev); in rdev_stop_nan()
1015 trace_rdev_return_void(&rdev->wiphy); in rdev_stop_nan()
1019 rdev_add_nan_func(struct cfg80211_registered_device *rdev, in rdev_add_nan_func() argument
1025 trace_rdev_add_nan_func(&rdev->wiphy, wdev, nan_func); in rdev_add_nan_func()
1026 ret = rdev->ops->add_nan_func(&rdev->wiphy, wdev, nan_func); in rdev_add_nan_func()
1027 trace_rdev_return_int(&rdev->wiphy, ret); in rdev_add_nan_func()
1031 static inline void rdev_del_nan_func(struct cfg80211_registered_device *rdev, in rdev_del_nan_func() argument
1034 trace_rdev_del_nan_func(&rdev->wiphy, wdev, cookie); in rdev_del_nan_func()
1035 rdev->ops->del_nan_func(&rdev->wiphy, wdev, cookie); in rdev_del_nan_func()
1036 trace_rdev_return_void(&rdev->wiphy); in rdev_del_nan_func()
1040 rdev_nan_change_conf(struct cfg80211_registered_device *rdev, in rdev_nan_change_conf() argument
1046 trace_rdev_nan_change_conf(&rdev->wiphy, wdev, conf, changes); in rdev_nan_change_conf()
1047 if (rdev->ops->nan_change_conf) in rdev_nan_change_conf()
1048 ret = rdev->ops->nan_change_conf(&rdev->wiphy, wdev, conf, in rdev_nan_change_conf()
1052 trace_rdev_return_int(&rdev->wiphy, ret); in rdev_nan_change_conf()
1056 static inline int rdev_set_mac_acl(struct cfg80211_registered_device *rdev, in rdev_set_mac_acl() argument
1062 trace_rdev_set_mac_acl(&rdev->wiphy, dev, params); in rdev_set_mac_acl()
1063 ret = rdev->ops->set_mac_acl(&rdev->wiphy, dev, params); in rdev_set_mac_acl()
1064 trace_rdev_return_int(&rdev->wiphy, ret); in rdev_set_mac_acl()
1068 static inline int rdev_update_ft_ies(struct cfg80211_registered_device *rdev, in rdev_update_ft_ies() argument
1074 trace_rdev_update_ft_ies(&rdev->wiphy, dev, ftie); in rdev_update_ft_ies()
1075 ret = rdev->ops->update_ft_ies(&rdev->wiphy, dev, ftie); in rdev_update_ft_ies()
1076 trace_rdev_return_int(&rdev->wiphy, ret); in rdev_update_ft_ies()
1080 static inline int rdev_crit_proto_start(struct cfg80211_registered_device *rdev, in rdev_crit_proto_start() argument
1087 trace_rdev_crit_proto_start(&rdev->wiphy, wdev, protocol, duration); in rdev_crit_proto_start()
1088 ret = rdev->ops->crit_proto_start(&rdev->wiphy, wdev, in rdev_crit_proto_start()
1090 trace_rdev_return_int(&rdev->wiphy, ret); in rdev_crit_proto_start()
1094 static inline void rdev_crit_proto_stop(struct cfg80211_registered_device *rdev, in rdev_crit_proto_stop() argument
1097 trace_rdev_crit_proto_stop(&rdev->wiphy, wdev); in rdev_crit_proto_stop()
1098 rdev->ops->crit_proto_stop(&rdev->wiphy, wdev); in rdev_crit_proto_stop()
1099 trace_rdev_return_void(&rdev->wiphy); in rdev_crit_proto_stop()
1102 static inline int rdev_channel_switch(struct cfg80211_registered_device *rdev, in rdev_channel_switch() argument
1108 trace_rdev_channel_switch(&rdev->wiphy, dev, params); in rdev_channel_switch()
1109 ret = rdev->ops->channel_switch(&rdev->wiphy, dev, params); in rdev_channel_switch()
1110 trace_rdev_return_int(&rdev->wiphy, ret); in rdev_channel_switch()
1114 static inline int rdev_set_qos_map(struct cfg80211_registered_device *rdev, in rdev_set_qos_map() argument
1120 if (rdev->ops->set_qos_map) { in rdev_set_qos_map()
1121 trace_rdev_set_qos_map(&rdev->wiphy, dev, qos_map); in rdev_set_qos_map()
1122 ret = rdev->ops->set_qos_map(&rdev->wiphy, dev, qos_map); in rdev_set_qos_map()
1123 trace_rdev_return_int(&rdev->wiphy, ret); in rdev_set_qos_map()
1130 rdev_set_ap_chanwidth(struct cfg80211_registered_device *rdev, in rdev_set_ap_chanwidth() argument
1137 trace_rdev_set_ap_chanwidth(&rdev->wiphy, dev, link_id, chandef); in rdev_set_ap_chanwidth()
1138 ret = rdev->ops->set_ap_chanwidth(&rdev->wiphy, dev, link_id, chandef); in rdev_set_ap_chanwidth()
1139 trace_rdev_return_int(&rdev->wiphy, ret); in rdev_set_ap_chanwidth()
1145 rdev_add_tx_ts(struct cfg80211_registered_device *rdev, in rdev_add_tx_ts() argument
1151 trace_rdev_add_tx_ts(&rdev->wiphy, dev, tsid, peer, in rdev_add_tx_ts()
1153 if (rdev->ops->add_tx_ts) in rdev_add_tx_ts()
1154 ret = rdev->ops->add_tx_ts(&rdev->wiphy, dev, tsid, peer, in rdev_add_tx_ts()
1156 trace_rdev_return_int(&rdev->wiphy, ret); in rdev_add_tx_ts()
1162 rdev_del_tx_ts(struct cfg80211_registered_device *rdev, in rdev_del_tx_ts() argument
1167 trace_rdev_del_tx_ts(&rdev->wiphy, dev, tsid, peer); in rdev_del_tx_ts()
1168 if (rdev->ops->del_tx_ts) in rdev_del_tx_ts()
1169 ret = rdev->ops->del_tx_ts(&rdev->wiphy, dev, tsid, peer); in rdev_del_tx_ts()
1170 trace_rdev_return_int(&rdev->wiphy, ret); in rdev_del_tx_ts()
1176 rdev_tdls_channel_switch(struct cfg80211_registered_device *rdev, in rdev_tdls_channel_switch() argument
1182 trace_rdev_tdls_channel_switch(&rdev->wiphy, dev, addr, oper_class, in rdev_tdls_channel_switch()
1184 ret = rdev->ops->tdls_channel_switch(&rdev->wiphy, dev, addr, in rdev_tdls_channel_switch()
1186 trace_rdev_return_int(&rdev->wiphy, ret); in rdev_tdls_channel_switch()
1191 rdev_tdls_cancel_channel_switch(struct cfg80211_registered_device *rdev, in rdev_tdls_cancel_channel_switch() argument
1194 trace_rdev_tdls_cancel_channel_switch(&rdev->wiphy, dev, addr); in rdev_tdls_cancel_channel_switch()
1195 rdev->ops->tdls_cancel_channel_switch(&rdev->wiphy, dev, addr); in rdev_tdls_cancel_channel_switch()
1196 trace_rdev_return_void(&rdev->wiphy); in rdev_tdls_cancel_channel_switch()
1200 rdev_start_radar_detection(struct cfg80211_registered_device *rdev, in rdev_start_radar_detection() argument
1207 trace_rdev_start_radar_detection(&rdev->wiphy, dev, chandef, in rdev_start_radar_detection()
1209 if (rdev->ops->start_radar_detection) in rdev_start_radar_detection()
1210 ret = rdev->ops->start_radar_detection(&rdev->wiphy, dev, in rdev_start_radar_detection()
1213 trace_rdev_return_int(&rdev->wiphy, ret); in rdev_start_radar_detection()
1218 rdev_end_cac(struct cfg80211_registered_device *rdev, in rdev_end_cac() argument
1221 trace_rdev_end_cac(&rdev->wiphy, dev, link_id); in rdev_end_cac()
1222 if (rdev->ops->end_cac) in rdev_end_cac()
1223 rdev->ops->end_cac(&rdev->wiphy, dev, link_id); in rdev_end_cac()
1224 trace_rdev_return_void(&rdev->wiphy); in rdev_end_cac()
1228 rdev_set_mcast_rate(struct cfg80211_registered_device *rdev, in rdev_set_mcast_rate() argument
1234 trace_rdev_set_mcast_rate(&rdev->wiphy, dev, mcast_rate); in rdev_set_mcast_rate()
1235 if (rdev->ops->set_mcast_rate) in rdev_set_mcast_rate()
1236 ret = rdev->ops->set_mcast_rate(&rdev->wiphy, dev, mcast_rate); in rdev_set_mcast_rate()
1237 trace_rdev_return_int(&rdev->wiphy, ret); in rdev_set_mcast_rate()
1242 rdev_set_coalesce(struct cfg80211_registered_device *rdev, in rdev_set_coalesce() argument
1247 trace_rdev_set_coalesce(&rdev->wiphy, coalesce); in rdev_set_coalesce()
1248 if (rdev->ops->set_coalesce) in rdev_set_coalesce()
1249 ret = rdev->ops->set_coalesce(&rdev->wiphy, coalesce); in rdev_set_coalesce()
1250 trace_rdev_return_int(&rdev->wiphy, ret); in rdev_set_coalesce()
1254 static inline int rdev_set_pmk(struct cfg80211_registered_device *rdev, in rdev_set_pmk() argument
1260 trace_rdev_set_pmk(&rdev->wiphy, dev, pmk_conf); in rdev_set_pmk()
1261 if (rdev->ops->set_pmk) in rdev_set_pmk()
1262 ret = rdev->ops->set_pmk(&rdev->wiphy, dev, pmk_conf); in rdev_set_pmk()
1263 trace_rdev_return_int(&rdev->wiphy, ret); in rdev_set_pmk()
1267 static inline int rdev_del_pmk(struct cfg80211_registered_device *rdev, in rdev_del_pmk() argument
1272 trace_rdev_del_pmk(&rdev->wiphy, dev, aa); in rdev_del_pmk()
1273 if (rdev->ops->del_pmk) in rdev_del_pmk()
1274 ret = rdev->ops->del_pmk(&rdev->wiphy, dev, aa); in rdev_del_pmk()
1275 trace_rdev_return_int(&rdev->wiphy, ret); in rdev_del_pmk()
1280 rdev_external_auth(struct cfg80211_registered_device *rdev, in rdev_external_auth() argument
1286 trace_rdev_external_auth(&rdev->wiphy, dev, params); in rdev_external_auth()
1287 if (rdev->ops->external_auth) in rdev_external_auth()
1288 ret = rdev->ops->external_auth(&rdev->wiphy, dev, params); in rdev_external_auth()
1289 trace_rdev_return_int(&rdev->wiphy, ret); in rdev_external_auth()
1294 rdev_get_ftm_responder_stats(struct cfg80211_registered_device *rdev, in rdev_get_ftm_responder_stats() argument
1300 trace_rdev_get_ftm_responder_stats(&rdev->wiphy, dev, ftm_stats); in rdev_get_ftm_responder_stats()
1301 if (rdev->ops->get_ftm_responder_stats) in rdev_get_ftm_responder_stats()
1302 ret = rdev->ops->get_ftm_responder_stats(&rdev->wiphy, dev, in rdev_get_ftm_responder_stats()
1304 trace_rdev_return_int(&rdev->wiphy, ret); in rdev_get_ftm_responder_stats()
1309 rdev_start_pmsr(struct cfg80211_registered_device *rdev, in rdev_start_pmsr() argument
1315 trace_rdev_start_pmsr(&rdev->wiphy, wdev, request->cookie); in rdev_start_pmsr()
1316 if (rdev->ops->start_pmsr) in rdev_start_pmsr()
1317 ret = rdev->ops->start_pmsr(&rdev->wiphy, wdev, request); in rdev_start_pmsr()
1318 trace_rdev_return_int(&rdev->wiphy, ret); in rdev_start_pmsr()
1323 rdev_abort_pmsr(struct cfg80211_registered_device *rdev, in rdev_abort_pmsr() argument
1327 trace_rdev_abort_pmsr(&rdev->wiphy, wdev, request->cookie); in rdev_abort_pmsr()
1328 if (rdev->ops->abort_pmsr) in rdev_abort_pmsr()
1329 rdev->ops->abort_pmsr(&rdev->wiphy, wdev, request); in rdev_abort_pmsr()
1330 trace_rdev_return_void(&rdev->wiphy); in rdev_abort_pmsr()
1333 static inline int rdev_update_owe_info(struct cfg80211_registered_device *rdev, in rdev_update_owe_info() argument
1339 trace_rdev_update_owe_info(&rdev->wiphy, dev, oweinfo); in rdev_update_owe_info()
1340 if (rdev->ops->update_owe_info) in rdev_update_owe_info()
1341 ret = rdev->ops->update_owe_info(&rdev->wiphy, dev, oweinfo); in rdev_update_owe_info()
1342 trace_rdev_return_int(&rdev->wiphy, ret); in rdev_update_owe_info()
1347 rdev_probe_mesh_link(struct cfg80211_registered_device *rdev, in rdev_probe_mesh_link() argument
1353 trace_rdev_probe_mesh_link(&rdev->wiphy, dev, dest, buf, len); in rdev_probe_mesh_link()
1354 ret = rdev->ops->probe_mesh_link(&rdev->wiphy, dev, buf, len); in rdev_probe_mesh_link()
1355 trace_rdev_return_int(&rdev->wiphy, ret); in rdev_probe_mesh_link()
1359 static inline int rdev_set_tid_config(struct cfg80211_registered_device *rdev, in rdev_set_tid_config() argument
1365 trace_rdev_set_tid_config(&rdev->wiphy, dev, tid_conf); in rdev_set_tid_config()
1366 ret = rdev->ops->set_tid_config(&rdev->wiphy, dev, tid_conf); in rdev_set_tid_config()
1367 trace_rdev_return_int(&rdev->wiphy, ret); in rdev_set_tid_config()
1371 static inline int rdev_reset_tid_config(struct cfg80211_registered_device *rdev, in rdev_reset_tid_config() argument
1377 trace_rdev_reset_tid_config(&rdev->wiphy, dev, peer, tids); in rdev_reset_tid_config()
1378 ret = rdev->ops->reset_tid_config(&rdev->wiphy, dev, peer, tids); in rdev_reset_tid_config()
1379 trace_rdev_return_int(&rdev->wiphy, ret); in rdev_reset_tid_config()
1383 static inline int rdev_set_sar_specs(struct cfg80211_registered_device *rdev, in rdev_set_sar_specs() argument
1388 trace_rdev_set_sar_specs(&rdev->wiphy, sar); in rdev_set_sar_specs()
1389 ret = rdev->ops->set_sar_specs(&rdev->wiphy, sar); in rdev_set_sar_specs()
1390 trace_rdev_return_int(&rdev->wiphy, ret); in rdev_set_sar_specs()
1395 static inline int rdev_color_change(struct cfg80211_registered_device *rdev, in rdev_color_change() argument
1401 trace_rdev_color_change(&rdev->wiphy, dev, params); in rdev_color_change()
1402 ret = rdev->ops->color_change(&rdev->wiphy, dev, params); in rdev_color_change()
1403 trace_rdev_return_int(&rdev->wiphy, ret); in rdev_color_change()
1409 rdev_set_fils_aad(struct cfg80211_registered_device *rdev, in rdev_set_fils_aad() argument
1414 trace_rdev_set_fils_aad(&rdev->wiphy, dev, fils_aad); in rdev_set_fils_aad()
1415 if (rdev->ops->set_fils_aad) in rdev_set_fils_aad()
1416 ret = rdev->ops->set_fils_aad(&rdev->wiphy, dev, fils_aad); in rdev_set_fils_aad()
1417 trace_rdev_return_int(&rdev->wiphy, ret); in rdev_set_fils_aad()
1423 rdev_set_radar_background(struct cfg80211_registered_device *rdev, in rdev_set_radar_background() argument
1426 struct wiphy *wiphy = &rdev->wiphy; in rdev_set_radar_background()
1430 if (rdev->ops->set_radar_background) in rdev_set_radar_background()
1431 ret = rdev->ops->set_radar_background(wiphy, chandef); in rdev_set_radar_background()
1438 rdev_add_intf_link(struct cfg80211_registered_device *rdev, in rdev_add_intf_link() argument
1444 trace_rdev_add_intf_link(&rdev->wiphy, wdev, link_id); in rdev_add_intf_link()
1445 if (rdev->ops->add_intf_link) in rdev_add_intf_link()
1446 ret = rdev->ops->add_intf_link(&rdev->wiphy, wdev, link_id); in rdev_add_intf_link()
1447 trace_rdev_return_int(&rdev->wiphy, ret); in rdev_add_intf_link()
1453 rdev_del_intf_link(struct cfg80211_registered_device *rdev, in rdev_del_intf_link() argument
1457 trace_rdev_del_intf_link(&rdev->wiphy, wdev, link_id); in rdev_del_intf_link()
1458 if (rdev->ops->del_intf_link) in rdev_del_intf_link()
1459 rdev->ops->del_intf_link(&rdev->wiphy, wdev, link_id); in rdev_del_intf_link()
1460 trace_rdev_return_void(&rdev->wiphy); in rdev_del_intf_link()
1464 rdev_add_link_station(struct cfg80211_registered_device *rdev, in rdev_add_link_station() argument
1470 trace_rdev_add_link_station(&rdev->wiphy, dev, params); in rdev_add_link_station()
1471 if (rdev->ops->add_link_station) in rdev_add_link_station()
1472 ret = rdev->ops->add_link_station(&rdev->wiphy, dev, params); in rdev_add_link_station()
1473 trace_rdev_return_int(&rdev->wiphy, ret); in rdev_add_link_station()
1478 rdev_mod_link_station(struct cfg80211_registered_device *rdev, in rdev_mod_link_station() argument
1484 trace_rdev_mod_link_station(&rdev->wiphy, dev, params); in rdev_mod_link_station()
1485 if (rdev->ops->mod_link_station) in rdev_mod_link_station()
1486 ret = rdev->ops->mod_link_station(&rdev->wiphy, dev, params); in rdev_mod_link_station()
1487 trace_rdev_return_int(&rdev->wiphy, ret); in rdev_mod_link_station()
1492 rdev_del_link_station(struct cfg80211_registered_device *rdev, in rdev_del_link_station() argument
1498 trace_rdev_del_link_station(&rdev->wiphy, dev, params); in rdev_del_link_station()
1499 if (rdev->ops->del_link_station) in rdev_del_link_station()
1500 ret = rdev->ops->del_link_station(&rdev->wiphy, dev, params); in rdev_del_link_station()
1501 trace_rdev_return_int(&rdev->wiphy, ret); in rdev_del_link_station()
1506 rdev_set_hw_timestamp(struct cfg80211_registered_device *rdev, in rdev_set_hw_timestamp() argument
1510 struct wiphy *wiphy = &rdev->wiphy; in rdev_set_hw_timestamp()
1514 if (rdev->ops->set_hw_timestamp) in rdev_set_hw_timestamp()
1515 ret = rdev->ops->set_hw_timestamp(wiphy, dev, hwts); in rdev_set_hw_timestamp()
1522 rdev_set_ttlm(struct cfg80211_registered_device *rdev, in rdev_set_ttlm() argument
1526 struct wiphy *wiphy = &rdev->wiphy; in rdev_set_ttlm()
1530 if (rdev->ops->set_ttlm) in rdev_set_ttlm()
1531 ret = rdev->ops->set_ttlm(wiphy, dev, params); in rdev_set_ttlm()
1538 rdev_get_radio_mask(struct cfg80211_registered_device *rdev, in rdev_get_radio_mask() argument
1541 struct wiphy *wiphy = &rdev->wiphy; in rdev_get_radio_mask()
1543 if (!rdev->ops->get_radio_mask) in rdev_get_radio_mask()
1546 return rdev->ops->get_radio_mask(wiphy, dev); in rdev_get_radio_mask()