aboutsummaryrefslogtreecommitdiffstats
path: root/package/network/services
diff options
context:
space:
mode:
authorFelix Fietkau <nbd@nbd.name>2021-05-26 13:34:41 +0200
committerFelix Fietkau <nbd@nbd.name>2021-06-02 09:33:12 +0200
commit190d4b6184ef3a5212a6d6fb9d3d8847035b7d0a (patch)
treeafacb46b0231983da21775f4d0307682467e8f39 /package/network/services
parent46509a51dd63aa49648ad0f130461817f43532d0 (diff)
downloadupstream-190d4b6184ef3a5212a6d6fb9d3d8847035b7d0a.tar.gz
upstream-190d4b6184ef3a5212a6d6fb9d3d8847035b7d0a.tar.bz2
upstream-190d4b6184ef3a5212a6d6fb9d3d8847035b7d0a.zip
hostapd: add configurable rssi thresholds for rejecting assoc/probe requests
Signed-off-by: Felix Fietkau <nbd@nbd.name>
Diffstat (limited to 'package/network/services')
-rw-r--r--package/network/services/hostapd/files/hostapd.sh6
1 files changed, 5 insertions, 1 deletions
diff --git a/package/network/services/hostapd/files/hostapd.sh b/package/network/services/hostapd/files/hostapd.sh
index 4c4cb3f4b1..13699bf673 100644
--- a/package/network/services/hostapd/files/hostapd.sh
+++ b/package/network/services/hostapd/files/hostapd.sh
@@ -101,6 +101,8 @@ hostapd_common_add_device_config() {
config_add_boolean legacy_rates
config_add_int cell_density
config_add_int rts_threshold
+ config_add_int rssi_reject_assoc_rssi
+ config_add_int rssi_ignore_probe_request
config_add_string acs_chan_bias
config_add_array hostapd_options
@@ -118,7 +120,7 @@ hostapd_prepare_device_config() {
json_get_vars country country_ie beacon_int:100 dtim_period:2 doth require_mode legacy_rates \
acs_chan_bias local_pwr_constraint spectrum_mgmt_required airtime_mode cell_density \
- rts_threshold beacon_rate
+ rts_threshold beacon_rate rssi_reject_assoc_rssi rssi_ignore_probe_request
hostapd_set_log_options base_cfg
@@ -209,6 +211,8 @@ hostapd_prepare_device_config() {
hostapd_add_rate brlist "$br"
done
+ [ -n "$rssi_reject_assoc_rssi" ] && append base_cfg "rssi_reject_assoc_rssi=$rssi_reject_assoc_rssi" "$N"
+ [ -n "$rssi_ignore_probe_request" ] && append base_cfg "rssi_ignore_probe_request=$rssi_ignore_probe_request" "$N"
[ -n "$beacon_rate" ] && append base_cfg "beacon_rate=$beacon_rate" "$N"
[ -n "$rlist" ] && append base_cfg "supported_rates=$rlist" "$N"
[ -n "$brlist" ] && append base_cfg "basic_rates=$brlist" "$N"