3
0
mirror of https://git.kernel.org/pub/scm/network/wireless/iwd.git synced 2024-11-21 22:09:23 +01:00

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.
This commit is contained in:
James Prestwood 2022-10-05 15:46:28 -07:00 committed by Denis Kenzior
parent 3bc5728815
commit e31d6296d8

View File

@ -1204,7 +1204,7 @@ static void process_rules(const struct radio_info_rec *src_radio,
struct hwsim_rule *rule = rule_entry->data; struct hwsim_rule *rule = rule_entry->data;
if (!rule->enabled) if (!rule->enabled)
return; continue;
if (!rule->source_any && if (!rule->source_any &&
!radio_match_addr(src_radio, rule->source) && !radio_match_addr(src_radio, rule->source) &&