Skip to contentSkip to conversation

Build fix in drivers/net/wireless/ath/ath9k/main.c

PATCH In review Arvydas Sidorenko 3 participants 3 messages Jun 27, 2012 – Jun 28, 2012

Subsystems (3)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 Build fix in drivers/net/wireless/ath/ath9k/main.c

Commit fad29cd2f59949581050a937786c2c9bc78b2f04 broke the build if no CONFIG_ATH9K_BTCOEX_SUPPORT is enabled.

---
 drivers/net/wireless/ath/ath9k/main.c |    2 ++
 1 files changed, 2 insertions(+), 0 deletions(-)
drivers/net/wireless/ath/ath9k/main.c +2 -0
index c14cf5a..e4e73f0 100644
@@ -151,8 +151,10 @@ static void __ath_cancel_work(struct ath_softc *sc)
 	cancel_delayed_work_sync(&sc->tx_complete_work);
 	cancel_delayed_work_sync(&sc->hw_pll_work);
 
+#ifdef CONFIG_ATH9K_BTCOEX_SUPPORT
 	if (ath9k_hw_mci_is_enabled(sc->sc_ah))
 		cancel_work_sync(&sc->mci_work);
+#endif
 }
 
 static void ath_cancel_work(struct ath_softc *sc)
Signature · 1 line
1.7.8.6
#1 lore raw

Thanks, but Sujith beat you to the same fix.

John

Quoted 27 lines · Arvydas Sidorenko

Commit fad29cd2f59949581050a937786c2c9bc78b2f04 broke the build if no CONFIG_ATH9K_BTCOEX_SUPPORT is enabled.

---
 drivers/net/wireless/ath/ath9k/main.c |    2 ++
 1 files changed, 2 insertions(+), 0 deletions(-)
drivers/net/wireless/ath/ath9k/main.c +2 -0
index c14cf5a..e4e73f0 100644
@@ -151,8 +151,10 @@ static void __ath_cancel_work(struct ath_softc *sc)
 	cancel_delayed_work_sync(&sc->tx_complete_work);
 	cancel_delayed_work_sync(&sc->hw_pll_work);
 
+#ifdef CONFIG_ATH9K_BTCOEX_SUPPORT
 	if (ath9k_hw_mci_is_enabled(sc->sc_ah))
 		cancel_work_sync(&sc->mci_work);
+#endif
 }
 
 static void ath_cancel_work(struct ath_softc *sc)
Signature · 1 line
1.7.8.6
Signature · 2 lines
John W. Linville		Someday the world will need a hero, and you
linville at tuxdriver.com			might be all we have.  Be ready.
#2 lore raw
In reply to Arvydas Sidorenko

Hi,

Quoted 24 lines · Arvydas Sidorenko

Commit fad29cd2f59949581050a937786c2c9bc78b2f04 broke the build if no CONFIG_ATH9K_BTCOEX_SUPPORT is enabled.

---
?drivers/net/wireless/ath/ath9k/main.c | ? ?2 ++
?1 files changed, 2 insertions(+), 0 deletions(-)

drivers/net/wireless/ath/ath9k/main.c +2 -1
index c14cf5a..e4e73f0 100644
@@ -151,8 +151,10 @@ static void __ath_cancel_work(struct ath_softc *sc)
 ? ? ? ?cancel_delayed_work_sync(&sc->tx_complete_work);
 ? ? ? ?cancel_delayed_work_sync(&sc->hw_pll_work);
 
+#ifdef CONFIG_ATH9K_BTCOEX_SUPPORT
 ? ? ? ?if (ath9k_hw_mci_is_enabled(sc->sc_ah))
 ? ? ? ? ? ? ? ?cancel_work_sync(&sc->mci_work);
+#endif
 ?}
 
 ?static void ath_cancel_work(struct ath_softc *sc)
--
Quoted 1 line

1.7.8.6

thanks for the patch, but it was just sent some time back
http://www.spinics.net/lists/linux-wireless/msg93078.html

Quoted 5 lines

--
To unsubscribe from this list: send the line "unsubscribe linux-wireless" in the body of a message to majordomo at vger.kernel.org
More majordomo info at ?http://vger.kernel.org/majordomo-info.html

Signature · 2 lines
thanks,
shafi