Thanks to the aggressive cflags, the compiler will
optimize the check away if wol is not enabled.
Signed-off-by: Christian Lamparter <chunkeey@googlemail.com>
rx_filter |= CARL9170_RX_FILTER_MGMT;
}
rx_filter |= CARL9170_RX_FILTER_MGMT;
}
-#ifdef CONFIG_CARL9170FW_WOL
if (unlikely(fw.suspend_mode == CARL9170_HOST_SUSPENDED)) {
wol_rx(rx_filter, hdr, min(data_len,
(unsigned int)AR9170_BLOCK_SIZE));
}
if (unlikely(fw.suspend_mode == CARL9170_HOST_SUSPENDED)) {
wol_rx(rx_filter, hdr, min(data_len,
(unsigned int)AR9170_BLOCK_SIZE));
}
-#endif /* CONFIG_CARL9170FW_WOL */
#undef AR9170_RX_ERROR_BAD
#undef AR9170_RX_ERROR_BAD