]> bbs.cooldavid.org Git - net-next-2.6.git/commitdiff
mac80211: Fragmentation threshold (typo)
authorGerrit Renker <gerrit@erg.abdn.ac.uk>
Tue, 14 Apr 2009 04:32:56 +0000 (06:32 +0200)
committerJohn W. Linville <linville@tuxdriver.com>
Thu, 16 Apr 2009 14:39:16 +0000 (10:39 -0400)
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 <gerrit@erg.abdn.ac.uk>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
net/mac80211/wext.c

index ce9115c1815282d9c333c6a1f755eaf298375256..959aa8379ccf957a7196283df3c3d98f6aa79bbf 100644 (file)
@@ -555,7 +555,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;