From e31d6296d8801cd46acef4da3f8790169cb192cd Mon Sep 17 00:00:00 2001 From: James Prestwood Date: Wed, 5 Oct 2022 15:46:28 -0700 Subject: [PATCH] hwsim: fix early bail out processing rules If a rule was disabled it would cause hwsim to not continue processing frames using rules further in the queue. _Most_ tests only use one rule so this shouldn't have changed their behavior but others which use multiple rules may be effected and the tests have not been running properly. --- tools/hwsim.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tools/hwsim.c b/tools/hwsim.c index 8dcb75c4..e5501904 100644 --- a/tools/hwsim.c +++ b/tools/hwsim.c @@ -1204,7 +1204,7 @@ static void process_rules(const struct radio_info_rec *src_radio, struct hwsim_rule *rule = rule_entry->data; if (!rule->enabled) - return; + continue; if (!rule->source_any && !radio_match_addr(src_radio, rule->source) &&