mac80211: add support for iwconfig wlanX frag auto
Signed-off-by: Emmanuel Grumbach <emmanuel.grumbach@intel.com> Signed-off-by: Tomas Winkler <tomas.winkler@intel.com> Signed-off-by: John W. Linville <linville@tuxdriver.com>
This commit is contained in:
Родитель
5fdae6b37e
Коммит
e4abd4d49d
|
@ -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;
|
||||
|
|
Загрузка…
Ссылка в новой задаче