summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEliad Peller <eliad@wizery.com>2013-03-18 15:08:07 +0400
committerEliad Peller <eliad@wizery.com>2013-07-22 14:01:46 +0400
commitf6655ba74064083184033a900196c47aee6f02d4 (patch)
tree7269f1d5e102986dbf3205bc4564a99283bae69e
parenta105518a4b4dbef10c3f117eb3e32768bc717f1a (diff)
downloadwl18xx-f6655ba74064083184033a900196c47aee6f02d4.tar.xz
wlcore: wrap testmode.h code with __KERNEL__
we are going to move the testmode definitions to testmode.h, and then use it by userspace as well, so wrap any kernel-only code with a proper ifdef. Signed-off-by: Eliad Peller <eliad@wizery.com>
-rw-r--r--drivers/net/wireless/ti/wlcore/testmode.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/net/wireless/ti/wlcore/testmode.h b/drivers/net/wireless/ti/wlcore/testmode.h
index 8071654259e..455d0096c49 100644
--- a/drivers/net/wireless/ti/wlcore/testmode.h
+++ b/drivers/net/wireless/ti/wlcore/testmode.h
@@ -24,8 +24,10 @@
#ifndef __TESTMODE_H__
#define __TESTMODE_H__
+#ifdef __KERNEL__
#include <net/mac80211.h>
int wl1271_tm_cmd(struct ieee80211_hw *hw, void *data, int len);
+#endif
#endif /* __WL1271_TESTMODE_H__ */