Commit a6a172b2 authored by Felix Fietkau's avatar Felix Fietkau Committed by John W. Linville

ath9k_hw: fix gentimer callback without overflow handler

If a gentimer has both the trigger and the overflow bits set, only
mask out the trigger bit if an overflow handler is present.
Signed-off-by: default avatarFelix Fietkau <nbd@openwrt.org>
Signed-off-by: default avatarJohn W. Linville <linville@tuxdriver.com>
parent f84d1b49
...@@ -3084,14 +3084,14 @@ void ath_gen_timer_isr(struct ath_hw *ah) ...@@ -3084,14 +3084,14 @@ void ath_gen_timer_isr(struct ath_hw *ah)
trigger_mask &= timer_table->timer_mask; trigger_mask &= timer_table->timer_mask;
thresh_mask &= timer_table->timer_mask; thresh_mask &= timer_table->timer_mask;
trigger_mask &= ~thresh_mask;
for_each_set_bit(index, &thresh_mask, ARRAY_SIZE(timer_table->timers)) { for_each_set_bit(index, &thresh_mask, ARRAY_SIZE(timer_table->timers)) {
timer = timer_table->timers[index]; timer = timer_table->timers[index];
if (!timer) if (!timer)
continue; continue;
if (!timer->overflow) if (!timer->overflow)
continue; continue;
trigger_mask &= ~BIT(index);
timer->overflow(timer->arg); timer->overflow(timer->arg);
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment