summaryrefslogtreecommitdiffstats
path: root/net
diff options
context:
space:
mode:
authorGerrit Renker <gerrit@erg.abdn.ac.uk>2009-04-14 06:32:56 +0200
committerJohn W. Linville <linville@tuxdriver.com>2009-04-16 10:39:16 -0400
commit23a99840d571a237845fd0906bce78e7c76be650 (patch)
tree08cb063e845e9a4adac60cf34974ef32d643534f /net
parentf05faa31c387fb07f4c561350f00ba12cf673c9f (diff)
downloadlinux-stable-23a99840d571a237845fd0906bce78e7c76be650.tar.gz
linux-stable-23a99840d571a237845fd0906bce78e7c76be650.tar.bz2
linux-stable-23a99840d571a237845fd0906bce78e7c76be650.zip
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 <gerrit@erg.abdn.ac.uk> Signed-off-by: John W. Linville <linville@tuxdriver.com>
Diffstat (limited to 'net')
-rw-r--r--net/mac80211/wext.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/net/mac80211/wext.c b/net/mac80211/wext.c
index ce9115c18152..959aa8379ccf 100644
--- a/net/mac80211/wext.c
+++ b/net/mac80211/wext.c
@@ -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;