]> git.ipfire.org Git - thirdparty/hostap.git/commit
Allow fragmentation/RTS threshold to be disabled explicitly
authorJouni Malinen <jouni@codeaurora.org>
Tue, 12 Mar 2019 15:15:08 +0000 (17:15 +0200)
committerJouni Malinen <j@w1.fi>
Tue, 12 Mar 2019 15:15:08 +0000 (17:15 +0200)
commitbf0021ede3e5a5189de9679d22b69054b99f07e4
tree4c67dabc8ae35668c976711e3ba03167038a1c50
parentabaa0893f0861a452f7394b34befecc1d7ed3d63
Allow fragmentation/RTS threshold to be disabled explicitly

hostapd configuration parameters fragm_threshold and rts_threshold were
documented to disable the threshold with value -1 and not change driver
configuration if the parameter is not included. However, -1 was mapped
into not changing the driver value, so the explicit disabling part did
not work.

Replace the default values for these to be -2 so that explicitly set
configuration value -1 can be distinguished from the case of not
including the parameter. Map the -1 value to a driver request to disable
the threshold. Ignore any error from this operation just in case to
avoid breaking functionality should some drivers not accept the (u32) -1
value as a threshold value request to disable the mechanism.

Signed-off-by: Jouni Malinen <jouni@codeaurora.org>
src/ap/ap_config.c
src/ap/hostapd.c
src/drivers/driver_nl80211.c