mac80211: Fragmentation threshold (typo)
PATCH 1/1 mac80211: Fragmentation threshold (typo)
mac80211: Fragmentation threshold (typo)
ieee80211_ioctl_siwfrag() sets the fragmentation_threshold to 2352 when frame fragmentation is to be disabled, yet the corresponding 'get' function tests for 2353 bytes instead.
This causes user-space tools to display a fragmentation threshold of 2352 bytes even if fragmentation has been disabled.
Signed-off-by Gerrit Renker <[email protected]>
--- wext.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
net/mac80211/wext.c +1 -1
@@ -530,7 +530,7 @@ static int ieee80211_ioctl_giwfrag(struct net_device *dev,struct ieee80211_local *local =wdev_priv (dev->ieee80211_ptr); frag->value = local->fragmentation_threshold; - frag->disabled = (frag->value >=IEEE80211_MAX_RTS_THRESHOLD ); + frag->disabled = (frag->value >=IEEE80211_MAX_FRAG_THRESHOLD ); frag->fixed =1 ;return 0 ;