carlfw/src/main.c:87:27: error: unused variable ‘delta’
carlfw/src/main.c:87:15: error: unused variable ‘boff’
carlfw/src/main.c:90:12: error: ‘struct <anonymous>’ has no member named ‘state’
Signed-off-by: Christian Lamparter <chunkeey@googlemail.com>
static void tally_update(void)
{
- unsigned int boff, time, delta;
+ unsigned int time;
time = get_clock_counter();
+#ifdef CONFIG_CARL9170FW_RADIO_FUNCTIONS
if (fw.phy.state == CARL9170_PHY_ON) {
+ unsigned int boff, delta;
+
delta = (time - fw.tally_clock);
fw.tally.active += delta;
if (boff & AR9170_MAC_BACKOFF_CCA)
fw.tally.cca += delta;
}
-
+#endif /* CONFIG_CARL9170FW_RADIO_FUNCTIONS */
fw.tally_clock = time;
fw.counter++;
}