]> git.ipfire.org Git - thirdparty/hostap.git/blobdiff - src/ap/ap_config.c
HE: Disable TXOP duration-based RTS if he_rts_threshold is not set
[thirdparty/hostap.git] / src / ap / ap_config.c
index 07b818eb36b8dbf6f03100bbfbbc4278f865731d..2ace6023a2a0c5de6823ce17c678a1ea8415693a 100644 (file)
@@ -236,6 +236,11 @@ struct hostapd_config * hostapd_config_defaults(void)
        conf->acs_num_scans = 5;
 #endif /* CONFIG_ACS */
 
+#ifdef CONFIG_IEEE80211AX
+       conf->he_op.he_rts_threshold = HE_OPERATION_RTS_THRESHOLD_MASK >>
+               HE_OPERATION_RTS_THRESHOLD_OFFSET;
+#endif /* CONFIG_IEEE80211AX */
+
        /* The third octet of the country string uses an ASCII space character
         * by default to indicate that the regulations encompass all
         * environments for the current frequency band in the country. */