]> git.ipfire.org Git - thirdparty/hostap.git/blobdiff - hostapd/config_file.c
Extend the range of values for the RTS threshold
[thirdparty/hostap.git] / hostapd / config_file.c
index 3b30e5ec0af342a11ad4823b0fb8555b6b5e2479..e11a41d900d79aa54c2be126e6f07a6722e66f51 100644 (file)
@@ -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);