aboutsummaryrefslogtreecommitdiffstats
path: root/include/net/mac80211.h
diff options
context:
space:
mode:
authorArik Nemtsov <arik@wizery.com>2010-11-08 04:51:06 -0500
committerJohn W. Linville <linville@tuxdriver.com>2010-11-16 16:37:04 -0500
commitf23a478075659db8a4fd62fa6e264a8bb052cc5b (patch)
treeba1492a4a781770644359b88e8ca2d8d3a00adc2 /include/net/mac80211.h
parentca4a0831917d6541b45f03542257fcb20dc9cf4a (diff)
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 'include/net/mac80211.h')
-rw-r--r--include/net/mac80211.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/include/net/mac80211.h b/include/net/mac80211.h
index 9fdf982d1286..6122e8a3297e 100644
--- a/include/net/mac80211.h
+++ b/include/net/mac80211.h
@@ -1652,6 +1652,11 @@ enum ieee80211_ampdu_mlme_action {
1652 * and IV16) for the given key from hardware. 1652 * and IV16) for the given key from hardware.
1653 * The callback must be atomic. 1653 * The callback must be atomic.
1654 * 1654 *
1655 * @set_frag_threshold: Configuration of fragmentation threshold. Assign this
1656 * if the device does fragmentation by itself; if this callback is
1657 * implemented then the stack will not do fragmentation.
1658 * The callback can sleep.
1659 *
1655 * @set_rts_threshold: Configuration of RTS threshold (if device needs it) 1660 * @set_rts_threshold: Configuration of RTS threshold (if device needs it)
1656 * The callback can sleep. 1661 * The callback can sleep.
1657 * 1662 *
@@ -1765,6 +1770,7 @@ struct ieee80211_ops {
1765 struct ieee80211_low_level_stats *stats); 1770 struct ieee80211_low_level_stats *stats);
1766 void (*get_tkip_seq)(struct ieee80211_hw *hw, u8 hw_key_idx, 1771 void (*get_tkip_seq)(struct ieee80211_hw *hw, u8 hw_key_idx,
1767 u32 *iv32, u16 *iv16); 1772 u32 *iv32, u16 *iv16);
1773 int (*set_frag_threshold)(struct ieee80211_hw *hw, u32 value);
1768 int (*set_rts_threshold)(struct ieee80211_hw *hw, u32 value); 1774 int (*set_rts_threshold)(struct ieee80211_hw *hw, u32 value);
1769 int (*sta_add)(struct ieee80211_hw *hw, struct ieee80211_vif *vif, 1775 int (*sta_add)(struct ieee80211_hw *hw, struct ieee80211_vif *vif,
1770 struct ieee80211_sta *sta); 1776 struct ieee80211_sta *sta);