diff options
Diffstat (limited to 'net/wireless/rdev-ops.h')
-rw-r--r-- | net/wireless/rdev-ops.h | 53 |
1 files changed, 26 insertions, 27 deletions
diff --git a/net/wireless/rdev-ops.h b/net/wireless/rdev-ops.h index eb5f8974e148..6c0c8191f837 100644 --- a/net/wireless/rdev-ops.h +++ b/net/wireless/rdev-ops.h | |||
@@ -359,12 +359,11 @@ rdev_libertas_set_mesh_channel(struct cfg80211_registered_device *rdev, | |||
359 | 359 | ||
360 | static inline int | 360 | static inline int |
361 | rdev_set_monitor_channel(struct cfg80211_registered_device *rdev, | 361 | rdev_set_monitor_channel(struct cfg80211_registered_device *rdev, |
362 | struct ieee80211_channel *chan, | 362 | struct cfg80211_chan_def *chandef) |
363 | enum nl80211_channel_type channel_type) | ||
364 | { | 363 | { |
365 | int ret; | 364 | int ret; |
366 | trace_rdev_set_monitor_channel(&rdev->wiphy, chan, channel_type); | 365 | trace_rdev_set_monitor_channel(&rdev->wiphy, chandef); |
367 | ret = rdev->ops->set_monitor_channel(&rdev->wiphy, chan, channel_type); | 366 | ret = rdev->ops->set_monitor_channel(&rdev->wiphy, chandef); |
368 | trace_rdev_return_int(&rdev->wiphy, ret); | 367 | trace_rdev_return_int(&rdev->wiphy, ret); |
369 | return ret; | 368 | return ret; |
370 | } | 369 | } |
@@ -476,21 +475,22 @@ rdev_set_wiphy_params(struct cfg80211_registered_device *rdev, u32 changed) | |||
476 | } | 475 | } |
477 | 476 | ||
478 | static inline int rdev_set_tx_power(struct cfg80211_registered_device *rdev, | 477 | static inline int rdev_set_tx_power(struct cfg80211_registered_device *rdev, |
478 | struct wireless_dev *wdev, | ||
479 | enum nl80211_tx_power_setting type, int mbm) | 479 | enum nl80211_tx_power_setting type, int mbm) |
480 | { | 480 | { |
481 | int ret; | 481 | int ret; |
482 | trace_rdev_set_tx_power(&rdev->wiphy, type, mbm); | 482 | trace_rdev_set_tx_power(&rdev->wiphy, wdev, type, mbm); |
483 | ret = rdev->ops->set_tx_power(&rdev->wiphy, type, mbm); | 483 | ret = rdev->ops->set_tx_power(&rdev->wiphy, wdev, type, mbm); |
484 | trace_rdev_return_int(&rdev->wiphy, ret); | 484 | trace_rdev_return_int(&rdev->wiphy, ret); |
485 | return ret; | 485 | return ret; |
486 | } | 486 | } |
487 | 487 | ||
488 | static inline int rdev_get_tx_power(struct cfg80211_registered_device *rdev, | 488 | static inline int rdev_get_tx_power(struct cfg80211_registered_device *rdev, |
489 | int *dbm) | 489 | struct wireless_dev *wdev, int *dbm) |
490 | { | 490 | { |
491 | int ret; | 491 | int ret; |
492 | trace_rdev_get_tx_power(&rdev->wiphy); | 492 | trace_rdev_get_tx_power(&rdev->wiphy, wdev); |
493 | ret = rdev->ops->get_tx_power(&rdev->wiphy, dbm); | 493 | ret = rdev->ops->get_tx_power(&rdev->wiphy, wdev, dbm); |
494 | trace_rdev_return_int_int(&rdev->wiphy, ret, *dbm); | 494 | trace_rdev_return_int_int(&rdev->wiphy, ret, *dbm); |
495 | return ret; | 495 | return ret; |
496 | } | 496 | } |
@@ -599,14 +599,12 @@ static inline int | |||
599 | rdev_remain_on_channel(struct cfg80211_registered_device *rdev, | 599 | rdev_remain_on_channel(struct cfg80211_registered_device *rdev, |
600 | struct wireless_dev *wdev, | 600 | struct wireless_dev *wdev, |
601 | struct ieee80211_channel *chan, | 601 | struct ieee80211_channel *chan, |
602 | enum nl80211_channel_type channel_type, | ||
603 | unsigned int duration, u64 *cookie) | 602 | unsigned int duration, u64 *cookie) |
604 | { | 603 | { |
605 | int ret; | 604 | int ret; |
606 | trace_rdev_remain_on_channel(&rdev->wiphy, wdev, chan, channel_type, | 605 | trace_rdev_remain_on_channel(&rdev->wiphy, wdev, chan, duration); |
607 | duration); | ||
608 | ret = rdev->ops->remain_on_channel(&rdev->wiphy, wdev, chan, | 606 | ret = rdev->ops->remain_on_channel(&rdev->wiphy, wdev, chan, |
609 | channel_type, duration, cookie); | 607 | duration, cookie); |
610 | trace_rdev_return_int_cookie(&rdev->wiphy, ret, *cookie); | 608 | trace_rdev_return_int_cookie(&rdev->wiphy, ret, *cookie); |
611 | return ret; | 609 | return ret; |
612 | } | 610 | } |
@@ -625,17 +623,15 @@ rdev_cancel_remain_on_channel(struct cfg80211_registered_device *rdev, | |||
625 | static inline int rdev_mgmt_tx(struct cfg80211_registered_device *rdev, | 623 | static inline int rdev_mgmt_tx(struct cfg80211_registered_device *rdev, |
626 | struct wireless_dev *wdev, | 624 | struct wireless_dev *wdev, |
627 | struct ieee80211_channel *chan, bool offchan, | 625 | struct ieee80211_channel *chan, bool offchan, |
628 | enum nl80211_channel_type channel_type, | 626 | unsigned int wait, const u8 *buf, size_t len, |
629 | bool channel_type_valid, unsigned int wait, | 627 | bool no_cck, bool dont_wait_for_ack, u64 *cookie) |
630 | const u8 *buf, size_t len, bool no_cck, | ||
631 | bool dont_wait_for_ack, u64 *cookie) | ||
632 | { | 628 | { |
633 | int ret; | 629 | int ret; |
634 | trace_rdev_mgmt_tx(&rdev->wiphy, wdev, chan, offchan, channel_type, | 630 | trace_rdev_mgmt_tx(&rdev->wiphy, wdev, chan, offchan, |
635 | channel_type_valid, wait, no_cck, dont_wait_for_ack); | 631 | wait, no_cck, dont_wait_for_ack); |
636 | ret = rdev->ops->mgmt_tx(&rdev->wiphy, wdev, chan, offchan, | 632 | ret = rdev->ops->mgmt_tx(&rdev->wiphy, wdev, chan, offchan, |
637 | channel_type, channel_type_valid, wait, buf, | 633 | wait, buf, len, no_cck, |
638 | len, no_cck, dont_wait_for_ack, cookie); | 634 | dont_wait_for_ack, cookie); |
639 | trace_rdev_return_int_cookie(&rdev->wiphy, ret, *cookie); | 635 | trace_rdev_return_int_cookie(&rdev->wiphy, ret, *cookie); |
640 | return ret; | 636 | return ret; |
641 | } | 637 | } |
@@ -847,14 +843,17 @@ static inline void rdev_get_et_strings(struct cfg80211_registered_device *rdev, | |||
847 | trace_rdev_return_void(&rdev->wiphy); | 843 | trace_rdev_return_void(&rdev->wiphy); |
848 | } | 844 | } |
849 | 845 | ||
850 | static inline struct ieee80211_channel | 846 | static inline int |
851 | *rdev_get_channel(struct cfg80211_registered_device *rdev, | 847 | rdev_get_channel(struct cfg80211_registered_device *rdev, |
852 | struct wireless_dev *wdev, enum nl80211_channel_type *type) | 848 | struct wireless_dev *wdev, |
849 | struct cfg80211_chan_def *chandef) | ||
853 | { | 850 | { |
854 | struct ieee80211_channel *ret; | 851 | int ret; |
852 | |||
855 | trace_rdev_get_channel(&rdev->wiphy, wdev); | 853 | trace_rdev_get_channel(&rdev->wiphy, wdev); |
856 | ret = rdev->ops->get_channel(&rdev->wiphy, wdev, type); | 854 | ret = rdev->ops->get_channel(&rdev->wiphy, wdev, chandef); |
857 | trace_rdev_return_channel(&rdev->wiphy, ret, *type); | 855 | trace_rdev_return_chandef(&rdev->wiphy, ret, chandef); |
856 | |||
858 | return ret; | 857 | return ret; |
859 | } | 858 | } |
860 | 859 | ||