mirror of
https://github.com/vanhoefm/fragattacks.git
synced 2025-01-31 09:14:03 -05:00
HE: Disable TXOP duration-based RTS if he_rts_threshold is not set
IEEE P802.11ax/D4.0 9.4.2.243 "HE Operation element" indicates that the special value 1023 in the TXOP Duration RTS Threshold field is used to indicate that TXOP duration-based RTS is disabled. Use that value as the default instead of the previously used value 0 which would really mean threshold of 0 usec. Furthermore, the previous implementation did not allow values larger than 255 to be used for this field while the field is actually 10 bits in size. Signed-off-by: Shashidhar Lakkavalli <slakkavalli@datto.com> Signed-off-by: John Crispin <john@phrozen.org>
This commit is contained in:
parent
5b3940d0c2
commit
83f30fabe3
@ -236,6 +236,11 @@ struct hostapd_config * hostapd_config_defaults(void)
|
|||||||
conf->acs_num_scans = 5;
|
conf->acs_num_scans = 5;
|
||||||
#endif /* CONFIG_ACS */
|
#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
|
/* The third octet of the country string uses an ASCII space character
|
||||||
* by default to indicate that the regulations encompass all
|
* by default to indicate that the regulations encompass all
|
||||||
* environments for the current frequency band in the country. */
|
* environments for the current frequency band in the country. */
|
||||||
|
@ -737,7 +737,7 @@ struct he_operation {
|
|||||||
u8 he_bss_color;
|
u8 he_bss_color;
|
||||||
u8 he_default_pe_duration;
|
u8 he_default_pe_duration;
|
||||||
u8 he_twt_required;
|
u8 he_twt_required;
|
||||||
u8 he_rts_threshold;
|
u16 he_rts_threshold;
|
||||||
};
|
};
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
Loading…
Reference in New Issue
Block a user