summaryrefslogtreecommitdiffstats
path: root/target/linux/realtek/files/include/net80211/Makefile.kernel
diff options
context:
space:
mode:
authorRoman Yeryomin <roman@advem.lv>2012-09-13 00:40:35 +0300
committerRoman Yeryomin <roman@advem.lv>2012-12-03 00:13:21 +0200
commit5deb3317cb51ac52de922bb55f8492624018906d (patch)
treec2fbe6346699d9bb0f2100490c3029519bb8fde8 /target/linux/realtek/files/include/net80211/Makefile.kernel
parent0239d37124f9184b478a42de8a7fa1bc85a6a6fe (diff)
Add realtek target files
Signed-off-by: Roman Yeryomin <roman@advem.lv>
Diffstat (limited to 'target/linux/realtek/files/include/net80211/Makefile.kernel')
-rw-r--r--target/linux/realtek/files/include/net80211/Makefile.kernel84
1 files changed, 84 insertions, 0 deletions
diff --git a/target/linux/realtek/files/include/net80211/Makefile.kernel b/target/linux/realtek/files/include/net80211/Makefile.kernel
new file mode 100644
index 000000000..abc5a087d
--- /dev/null
+++ b/target/linux/realtek/files/include/net80211/Makefile.kernel
@@ -0,0 +1,84 @@
+#
+# Makefile for the 802.11 NET80211 module.
+#
+
+src ?= .
+srctree ?= .
+
+TOP = $(srctree)/$(src)/..
+
+include $(TOP)/BuildCaps.inc
+
+COMPAT = $(TOP)/include
+
+ATH_HAL = $(TOP)/ath_hal
+HAL = $(TOP)/hal
+
+INCS = -include $(COMPAT)/compat.h -I$(COMPAT)
+INCS += -I$(TOP) -I$(ATH_HAL) -I$(HAL)
+EXTRA_CFLAGS += $(INCS) $(COPTS)
+
+#
+# There are two authenticator mechanisms: an in-kernel implementation
+# (wlan_auth+wlan_radius) and an external implementation (wlan_xauth) that
+# requires a user process to manage the authentication process. By default
+# the external authenticator is used. ieee80211_proto.c has a table of module
+# names that defines the default module to auto-load for each authentication
+# scheme; to get the in-kernel authenticator by default modify it to load
+# wlan_auth instead of wlan_xauth or manually load wlan_auth prior to use.
+#
+MOD_AUTH := wlan_xauth.o
+#
+# Scanning policy is split into modules. The default policy modules
+# separate station-mode scanning support from ap-mode scanning support.
+#
+MOD_SCAN := wlan_scan_sta.o wlan_scan_ap.o
+
+obj-$(CONFIG_ATHEROS) += wlan.o wlan_wep.o wlan_tkip.o wlan_ccmp.o wlan_acl.o \
+ $(MOD_AUTH) $(MOD_SCAN)
+
+wlan-objs := if_media.o \
+ ieee80211.o ieee80211_beacon.o ieee80211_crypto.o \
+ ieee80211_crypto_none.o ieee80211_input.o ieee80211_node.o \
+ ieee80211_output.o ieee80211_proto.o ieee80211_power.o \
+ ieee80211_scan.o ieee80211_wireless.o ieee80211_linux.o \
+ ieee80211_monitor.o ieee80211_rate.o
+wlan_wep-objs := ieee80211_crypto_wep.o
+wlan_tkip-objs := ieee80211_crypto_tkip.o
+wlan_ccmp-objs := ieee80211_crypto_ccmp.o
+wlan_xauth-objs := ieee80211_xauth.o
+wlan_acl-objs := ieee80211_acl.o
+wlan_scan_sta-objs := ieee80211_scan_sta.o
+wlan_scan_ap-objs := ieee80211_scan_ap.o
+
+ifeq ($(VERSION).$(PATCHLEVEL),2.4)
+export-objs := if_media.o \
+ ieee80211.o ieee80211_beacon.o ieee80211_crypto.o \
+ ieee80211_crypto_none.o ieee80211_input.o ieee80211_node.o \
+ ieee80211_output.o ieee80211_power.o ieee80211_proto.o \
+ ieee80211_scan.o ieee80211_wireless.o ieee80211_linux.o \
+ ieee80211_crypto_wep.o ieee80211_crypto_tkip.o \
+ ieee80211_crypto_ccmp.o ieee80211_xauth.o ieee80211_rate.o
+list-multi := wlan.o wlan_wep.o wlan_tkip.o wlan_ccmp.o wlan_acl.o \
+ $(MOD_AUTH) $(MOD_SCAN)
+
+O_TARGET := net80211.o
+include $(TOPDIR)/Rules.make
+
+wlan.o: $(wlan-objs)
+ $(LD) -o wlan.o -r $(wlan-objs)
+wlan_wep.o: $(wlan_wep-objs)
+ $(LD) -o wlan_wep.o -r $(wlan_wep-objs)
+wlan_tkip.o: $(wlan_tkip-objs)
+ $(LD) -o wlan_tkip.o -r $(wlan_tkip-objs)
+wlan_ccmp.o: $(wlan_ccmp-objs)
+ $(LD) -o wlan_ccmp.o -r $(wlan_ccmp-objs)
+wlan_xauth.o: $(wlan_xauth-objs)
+ $(LD) -o wlan_xauth.o -r $(wlan_xauth-objs)
+wlan_acl.o: $(wlan_acl-objs)
+ $(LD) -o wlan_acl.o -r $(wlan_acl-objs)
+wlan_scan_sta.o: $(wlan_scan_sta-objs)
+ $(LD) -o wlan_scan_sta.o -r $(wlan_scan_sta-objs)
+wlan_scan_ap.o: $(wlan_scan_ap-objs)
+ $(LD) -o wlan_scan_ap.o -r $(wlan_scan_ap-objs)
+endif