Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 23a99840 authored by Gerrit Renker's avatar Gerrit Renker Committed by John W. Linville
Browse files

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: default avatarGerrit Renker <gerrit@erg.abdn.ac.uk>
Signed-off-by: default avatarJohn W. Linville <linville@tuxdriver.com>
parent f05faa31
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -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;