diff options
author | Arik Nemtsov <arik@wizery.com> | 2010-11-08 10:51:06 +0100 |
---|---|---|
committer | John W. Linville <linville@tuxdriver.com> | 2010-11-16 22:37:04 +0100 |
commit | f23a478075659db8a4fd62fa6e264a8bb052cc5b (patch) | |
tree | ba1492a4a781770644359b88e8ca2d8d3a00adc2 /net/mac80211/driver-ops.h | |
parent | ssb: return -ENOMEM on alloc fail (instead of CRC check's result) (diff) | |
download | linux-f23a478075659db8a4fd62fa6e264a8bb052cc5b.tar.xz linux-f23a478075659db8a4fd62fa6e264a8bb052cc5b.zip |
mac80211: support hardware TX fragmentation offload
The lower driver is notified when the fragmentation threshold changes
and upon a reconfig of the interface.
If the driver supports hardware TX fragmentation, don't fragment
packets in the stack.
Signed-off-by: Arik Nemtsov <arik@wizery.com>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
Diffstat (limited to 'net/mac80211/driver-ops.h')
-rw-r--r-- | net/mac80211/driver-ops.h | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/net/mac80211/driver-ops.h b/net/mac80211/driver-ops.h index 16983825f8e8..79019f94f621 100644 --- a/net/mac80211/driver-ops.h +++ b/net/mac80211/driver-ops.h @@ -233,6 +233,20 @@ static inline void drv_get_tkip_seq(struct ieee80211_local *local, trace_drv_get_tkip_seq(local, hw_key_idx, iv32, iv16); } +static inline int drv_set_frag_threshold(struct ieee80211_local *local, + u32 value) +{ + int ret = 0; + + might_sleep(); + + trace_drv_set_frag_threshold(local, value); + if (local->ops->set_frag_threshold) + ret = local->ops->set_frag_threshold(&local->hw, value); + trace_drv_return_int(local, ret); + return ret; +} + static inline int drv_set_rts_threshold(struct ieee80211_local *local, u32 value) { |