From: Emmanuel Grumbach Date: Thu, 3 Jul 2008 15:02:27 +0000 (+0300) Subject: mac80211: add support for iwconfig wlanX frag auto X-Git-Tag: v2.6.27-rc1~969^2~186^2~19 X-Git-Url: http://pilppa.com/gitweb/?a=commitdiff_plain;h=e4abd4d49d6df6d5e94564c5e831c61ac722f6ec;p=linux-2.6-omap-h63xx.git mac80211: add support for iwconfig wlanX frag auto Signed-off-by: Emmanuel Grumbach Signed-off-by: Tomas Winkler Signed-off-by: John W. Linville --- diff --git a/net/mac80211/wext.c b/net/mac80211/wext.c index 1babb979fe0..736c32e340f 100644 --- a/net/mac80211/wext.c +++ b/net/mac80211/wext.c @@ -800,6 +800,8 @@ static int ieee80211_ioctl_siwfrag(struct net_device *dev, if (frag->disabled) local->fragmentation_threshold = IEEE80211_MAX_FRAG_THRESHOLD; + else if (!frag->fixed) + local->fragmentation_threshold = IEEE80211_MAX_FRAG_THRESHOLD; else if (frag->value < 256 || frag->value > IEEE80211_MAX_FRAG_THRESHOLD) return -EINVAL;