diff --git a/mt7925/init.c b/mt7925/init.c index 63cb08f4..79639be0 100644 --- a/mt7925/init.c +++ b/mt7925/init.c @@ -89,7 +89,7 @@ void mt7925_regd_be_ctrl(struct mt792x_dev *dev, u8 *alpha2) } /* Check the last one */ - if (rule->flag && BIT(0)) + if (rule->flag & BIT(0)) break; pos += sizeof(*rule);