Add option to ignore Probe Request frames when RSSI is too low
Add a new hostapd configuration parameters rssi_ignore_probe_request to ignore Probe Request frames received with too low RSSI. Signed-off-by: John Crispin <john@phrozen.org>
This commit is contained in:
parent
f2a0101401
commit
d83eaa351e
4 changed files with 11 additions and 0 deletions
|
@ -1039,6 +1039,7 @@ struct hostapd_config {
|
|||
|
||||
int rssi_reject_assoc_rssi;
|
||||
int rssi_reject_assoc_timeout;
|
||||
int rssi_ignore_probe_request;
|
||||
|
||||
#ifdef CONFIG_AIRTIME_POLICY
|
||||
enum {
|
||||
|
|
|
@ -818,6 +818,10 @@ void handle_probe_req(struct hostapd_data *hapd,
|
|||
size_t csa_offs_len;
|
||||
struct radius_sta rad_info;
|
||||
|
||||
if (hapd->iconf->rssi_ignore_probe_request && ssi_signal &&
|
||||
ssi_signal < hapd->iconf->rssi_ignore_probe_request)
|
||||
return;
|
||||
|
||||
if (len < IEEE80211_HDRLEN)
|
||||
return;
|
||||
ie = ((const u8 *) mgmt) + IEEE80211_HDRLEN;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue