summaryrefslogtreecommitdiffstats
path: root/net/mac80211/driver-ops.h
diff options
context:
space:
mode:
authorArik Nemtsov <arik@wizery.com>2010-11-08 11:51:06 +0200
committerJohn W. Linville <linville@tuxdriver.com>2010-11-16 16:37:04 -0500
commitf23a478075659db8a4fd62fa6e264a8bb052cc5b (patch)
treeba1492a4a781770644359b88e8ca2d8d3a00adc2 /net/mac80211/driver-ops.h
parentca4a0831917d6541b45f03542257fcb20dc9cf4a (diff)
downloadop-kernel-dev-f23a478075659db8a4fd62fa6e264a8bb052cc5b.zip
op-kernel-dev-f23a478075659db8a4fd62fa6e264a8bb052cc5b.tar.gz
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.h14
1 files changed, 14 insertions, 0 deletions
diff --git a/net/mac80211/driver-ops.h b/net/mac80211/driver-ops.h
index 1698382..79019f9 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)
{
OpenPOWER on IntegriCloud