]> git.karo-electronics.de Git - linux-beck.git/commitdiff
ath6kl: fix compilation when NL80211_TESTMODE is disabled
authorKalle Valo <kvalo@qca.qualcomm.com>
Thu, 1 Sep 2011 09:04:59 +0000 (12:04 +0300)
committerKalle Valo <kvalo@qca.qualcomm.com>
Thu, 1 Sep 2011 09:04:59 +0000 (12:04 +0300)
ERROR: "ath6kl_tm_rx_report_event"
[drivers/net/wireless/ath/ath6kl/ath6kl.ko] undefined

Reported-by: Jouni Malinen <jouni@qca.qualcomm.com>
Signed-off-by: Kalle Valo <kvalo@qca.qualcomm.com>
drivers/net/wireless/ath/ath6kl/testmode.h

index 2e6b723d1da210151c2d525983147416c99aa200..43dffcc11fb120b75faffe1307b05279c1881bb9 100644 (file)
 
 #include "core.h"
 
+#ifdef CONFIG_NL80211_TESTMODE
+
 void ath6kl_tm_rx_report_event(struct ath6kl *ar, void *buf, size_t buf_len);
 int ath6kl_tm_cmd(struct wiphy *wiphy, void *data, int len);
+
+#else
+
+static inline void ath6kl_tm_rx_report_event(struct ath6kl *ar, void *buf,
+                                            size_t buf_len)
+{
+}
+
+static inline int ath6kl_tm_cmd(struct wiphy *wiphy, void *data, int len)
+{
+       return 0;
+}
+
+#endif