diff options
author | David S. Miller <davem@davemloft.net> | 2011-03-15 13:57:18 -0700 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2011-03-15 13:57:18 -0700 |
commit | 918690f9811029667eaf132dbfeb180c6e4e2029 (patch) | |
tree | 7bcefc7484e88090eba789b3b6a52e17a83a2f55 /net/mac80211/driver-ops.h | |
parent | 31111c26d976ca0f298312f08e44cdb078005b03 (diff) | |
parent | 106af2c99a5249b809aaed45b8353ac087821f4a (diff) | |
download | op-kernel-dev-918690f9811029667eaf132dbfeb180c6e4e2029.zip op-kernel-dev-918690f9811029667eaf132dbfeb180c6e4e2029.tar.gz |
Merge branch 'for-davem' of git://git.kernel.org/pub/scm/linux/kernel/git/linville/wireless-next-2.6
Diffstat (limited to 'net/mac80211/driver-ops.h')
-rw-r--r-- | net/mac80211/driver-ops.h | 26 |
1 files changed, 26 insertions, 0 deletions
diff --git a/net/mac80211/driver-ops.h b/net/mac80211/driver-ops.h index 3729296..9c0d62b 100644 --- a/net/mac80211/driver-ops.h +++ b/net/mac80211/driver-ops.h @@ -526,4 +526,30 @@ static inline int drv_offchannel_tx_cancel_wait(struct ieee80211_local *local) return ret; } +static inline int drv_set_ringparam(struct ieee80211_local *local, + u32 tx, u32 rx) +{ + int ret = -ENOTSUPP; + + might_sleep(); + + trace_drv_set_ringparam(local, tx, rx); + if (local->ops->set_ringparam) + ret = local->ops->set_ringparam(&local->hw, tx, rx); + trace_drv_return_int(local, ret); + + return ret; +} + +static inline void drv_get_ringparam(struct ieee80211_local *local, + u32 *tx, u32 *tx_max, u32 *rx, u32 *rx_max) +{ + might_sleep(); + + trace_drv_get_ringparam(local, tx, tx_max, rx, rx_max); + if (local->ops->get_ringparam) + local->ops->get_ringparam(&local->hw, tx, tx_max, rx, rx_max); + trace_drv_return_void(local); +} + #endif /* __MAC80211_DRIVER_OPS */ |