[PATCH] Extend the range of values for the RTS threshold

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Since we have HT rates the maximum framesize is no longer 2346.
The usual maximum size of an AMPDU is 65535.
To disable RTS the value -1 is already internally used. Allow it.

Signed-off-by: Matthias May <matthias.may@xxxxxxxxxxx>
---
 hostapd/config_file.c | 2 +-
 hostapd/hostapd.conf  | 4 ++--
 2 files changed, 3 insertions(+), 3 deletions(-)

diff --git a/hostapd/config_file.c b/hostapd/config_file.c
index d65b805..0ff315a 100644
--- a/hostapd/config_file.c
+++ b/hostapd/config_file.c
@@ -2692,7 +2692,7 @@ static int hostapd_config_fill(struct hostapd_config *conf,
 		}
 	} else if (os_strcmp(buf, "rts_threshold") == 0) {
 		conf->rts_threshold = atoi(pos);
-		if (conf->rts_threshold < 0 || conf->rts_threshold > 2347) {
+		if (conf->rts_threshold < -1 || conf->rts_threshold > 65535) {
 			wpa_printf(MSG_ERROR,
 				   "Line %d: invalid rts_threshold %d",
 				   line, conf->rts_threshold);
diff --git a/hostapd/hostapd.conf b/hostapd/hostapd.conf
index 195e20b..a9b7acf 100644
--- a/hostapd/hostapd.conf
+++ b/hostapd/hostapd.conf
@@ -192,10 +192,10 @@ dtim_period=2
 # (default: 2007)
 max_num_sta=255
-# RTS/CTS threshold; 2347 = disabled (default); range 0..2347
+# RTS/CTS threshold; -1 = disabled (default); range -1..65535
 # If this field is not included in hostapd.conf, hostapd will not control
 # RTS threshold and 'iwconfig wlan# rts <val>' can be used to set it.
-rts_threshold=2347
+rts_threshold=-1
# Fragmentation threshold; 2346 = disabled (default); range 256..2346
 # If this field is not included in hostapd.conf, hostapd will not control
--
2.6.1


_______________________________________________
Hostap mailing list
Hostap@xxxxxxxxxxxxxxxxxxx
http://lists.infradead.org/mailman/listinfo/hostap



[Index of Archives]     [Linux Wireless]     [Linux Kernel]     [ATH6KL]     [Linux Bluetooth]     [Linux Netdev]     [Kernel Newbies]     [IDE]     [Security]     [Git]     [Netfilter]     [Bugtraq]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Linux ATA RAID]     [Samba]     [Device Mapper]

  Powered by Linux