mirror of
https://github.com/berlin-open-wireless-lab/DAWN.git
synced 2025-03-09 15:40:12 +00:00
ubus: actually deny association when no probe entry is found
Set return value to `dawn_metric.deny_assoc_reason` to deny the association. [rewrite commit message] Signed-off-by: Nick Hainke <vincent@systemli.org>
This commit is contained in:
parent
6361df6f30
commit
fd648a9f13
1 changed files with 1 additions and 0 deletions
|
@ -484,6 +484,7 @@ static int handle_assoc_req(struct blob_attr *msg) {
|
|||
// block if entry was not already found in probe database
|
||||
if (own_probe == NULL) {
|
||||
dawnlog_trace(MACSTR " Deny association due to no probe entry found", MAC2STR(assoc_req->client_addr.u8));
|
||||
ret = dawn_metric.deny_assoc_reason;
|
||||
}
|
||||
else if (own_probe->counter < dawn_metric.min_probe_count) {
|
||||
dawnlog_trace(MACSTR " Deny association due to low probe count", MAC2STR(assoc_req->client_addr.u8));
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue