From: Christian Lamparter Date: Sat, 19 Jan 2013 13:28:19 +0000 (+0100) Subject: carl9170: fix CONFIG_CARL9170FW_DEBUG && !CONFIG_CARL9170FW_RADIO_FUNC X-Git-Tag: 1.9.8~18 X-Git-Url: https://jxself.org/git/?a=commitdiff_plain;h=8be0cbe819b892ac1cc3d25783949ecbcd0d4ccc;p=carl9170fw.git carl9170: fix CONFIG_CARL9170FW_DEBUG && !CONFIG_CARL9170FW_RADIO_FUNC wlantx.c:262:2: error: struct has no member named psm Signed-off-by: Christian Lamparter --- diff --git a/carlfw/src/wlantx.c b/carlfw/src/wlantx.c index 9f2f51b..8010866 100644 --- a/carlfw/src/wlantx.c +++ b/carlfw/src/wlantx.c @@ -258,9 +258,9 @@ static void __wlan_tx(struct dma_desc *desc) wlan_tx_ampdu(super); -#ifdef CONFIG_CARL9170FW_DEBUG +#if (defined CONFIG_CARL9170FW_DEBUG) && (defined CONFIG_CARL9170FW_RADIO_FUNCTIONS) BUG_ON(fw.phy.psm.state != CARL9170_PSM_WAKE); -#endif /* CONFIG_CARL9170FW_DEBUG */ +#endif /* CONFIG_CARL9170FW_DEBUG && CONFIG_CARL9170FW_RADIO_FUNCTIONS */ /* insert desc into the right queue */ dma_put(&fw.wlan.tx_queue[super->s.queue], desc);