Skip to content

Commit fd648a9

Browse files
imwhocodesPolynomialDivision
authored andcommitted
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 <[email protected]>
1 parent 6361df6 commit fd648a9

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/utils/ubus.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -484,6 +484,7 @@ static int handle_assoc_req(struct blob_attr *msg) {
484484
// block if entry was not already found in probe database
485485
if (own_probe == NULL) {
486486
dawnlog_trace(MACSTR " Deny association due to no probe entry found", MAC2STR(assoc_req->client_addr.u8));
487+
ret = dawn_metric.deny_assoc_reason;
487488
}
488489
else if (own_probe->counter < dawn_metric.min_probe_count) {
489490
dawnlog_trace(MACSTR " Deny association due to low probe count", MAC2STR(assoc_req->client_addr.u8));

0 commit comments

Comments
 (0)