diff options
Diffstat (limited to 'net/mac80211/driver-ops.h')
| -rw-r--r-- | net/mac80211/driver-ops.h | 35 |
1 files changed, 33 insertions, 2 deletions
diff --git a/net/mac80211/driver-ops.h b/net/mac80211/driver-ops.h index 78af32d4bc58..3729296f6f95 100644 --- a/net/mac80211/driver-ops.h +++ b/net/mac80211/driver-ops.h | |||
| @@ -5,9 +5,9 @@ | |||
| 5 | #include "ieee80211_i.h" | 5 | #include "ieee80211_i.h" |
| 6 | #include "driver-trace.h" | 6 | #include "driver-trace.h" |
| 7 | 7 | ||
| 8 | static inline int drv_tx(struct ieee80211_local *local, struct sk_buff *skb) | 8 | static inline void drv_tx(struct ieee80211_local *local, struct sk_buff *skb) |
| 9 | { | 9 | { |
| 10 | return local->ops->tx(&local->hw, skb); | 10 | local->ops->tx(&local->hw, skb); |
| 11 | } | 11 | } |
| 12 | 12 | ||
| 13 | static inline int drv_start(struct ieee80211_local *local) | 13 | static inline int drv_start(struct ieee80211_local *local) |
| @@ -495,4 +495,35 @@ static inline int drv_cancel_remain_on_channel(struct ieee80211_local *local) | |||
| 495 | return ret; | 495 | return ret; |
| 496 | } | 496 | } |
| 497 | 497 | ||
| 498 | static inline int drv_offchannel_tx(struct ieee80211_local *local, | ||
| 499 | struct sk_buff *skb, | ||
| 500 | struct ieee80211_channel *chan, | ||
| 501 | enum nl80211_channel_type channel_type, | ||
| 502 | unsigned int wait) | ||
| 503 | { | ||
| 504 | int ret; | ||
| 505 | |||
| 506 | might_sleep(); | ||
| 507 | |||
| 508 | trace_drv_offchannel_tx(local, skb, chan, channel_type, wait); | ||
| 509 | ret = local->ops->offchannel_tx(&local->hw, skb, chan, | ||
| 510 | channel_type, wait); | ||
| 511 | trace_drv_return_int(local, ret); | ||
| 512 | |||
| 513 | return ret; | ||
| 514 | } | ||
| 515 | |||
| 516 | static inline int drv_offchannel_tx_cancel_wait(struct ieee80211_local *local) | ||
| 517 | { | ||
| 518 | int ret; | ||
| 519 | |||
| 520 | might_sleep(); | ||
| 521 | |||
| 522 | trace_drv_offchannel_tx_cancel_wait(local); | ||
| 523 | ret = local->ops->offchannel_tx_cancel_wait(&local->hw); | ||
| 524 | trace_drv_return_int(local, ret); | ||
| 525 | |||
| 526 | return ret; | ||
| 527 | } | ||
| 528 | |||
| 498 | #endif /* __MAC80211_DRIVER_OPS */ | 529 | #endif /* __MAC80211_DRIVER_OPS */ |
