diff options
author | Arik Nemtsov <arik@wizery.com> | 2010-11-08 04:51:06 -0500 |
---|---|---|
committer | John W. Linville <linville@tuxdriver.com> | 2010-11-16 16:37:04 -0500 |
commit | f23a478075659db8a4fd62fa6e264a8bb052cc5b (patch) | |
tree | ba1492a4a781770644359b88e8ca2d8d3a00adc2 /net/mac80211/util.c | |
parent | ca4a0831917d6541b45f03542257fcb20dc9cf4a (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 'net/mac80211/util.c')
-rw-r--r-- | net/mac80211/util.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/net/mac80211/util.c b/net/mac80211/util.c index 0b6fc92bc0d7..e486286ebf1a 100644 --- a/net/mac80211/util.c +++ b/net/mac80211/util.c | |||
@@ -1152,6 +1152,9 @@ int ieee80211_reconfig(struct ieee80211_local *local) | |||
1152 | } | 1152 | } |
1153 | mutex_unlock(&local->sta_mtx); | 1153 | mutex_unlock(&local->sta_mtx); |
1154 | 1154 | ||
1155 | /* setup fragmentation threshold */ | ||
1156 | drv_set_frag_threshold(local, hw->wiphy->frag_threshold); | ||
1157 | |||
1155 | /* setup RTS threshold */ | 1158 | /* setup RTS threshold */ |
1156 | drv_set_rts_threshold(local, hw->wiphy->rts_threshold); | 1159 | drv_set_rts_threshold(local, hw->wiphy->rts_threshold); |
1157 | 1160 | ||