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>
This commit is contained in:

committed by
John W. Linville

parent
ca4a083191
commit
f23a478075
@@ -1652,6 +1652,11 @@ enum ieee80211_ampdu_mlme_action {
|
||||
* and IV16) for the given key from hardware.
|
||||
* The callback must be atomic.
|
||||
*
|
||||
* @set_frag_threshold: Configuration of fragmentation threshold. Assign this
|
||||
* if the device does fragmentation by itself; if this callback is
|
||||
* implemented then the stack will not do fragmentation.
|
||||
* The callback can sleep.
|
||||
*
|
||||
* @set_rts_threshold: Configuration of RTS threshold (if device needs it)
|
||||
* The callback can sleep.
|
||||
*
|
||||
@@ -1765,6 +1770,7 @@ struct ieee80211_ops {
|
||||
struct ieee80211_low_level_stats *stats);
|
||||
void (*get_tkip_seq)(struct ieee80211_hw *hw, u8 hw_key_idx,
|
||||
u32 *iv32, u16 *iv16);
|
||||
int (*set_frag_threshold)(struct ieee80211_hw *hw, u32 value);
|
||||
int (*set_rts_threshold)(struct ieee80211_hw *hw, u32 value);
|
||||
int (*sta_add)(struct ieee80211_hw *hw, struct ieee80211_vif *vif,
|
||||
struct ieee80211_sta *sta);
|
||||
|
Reference in New Issue
Block a user