2 # Copyright (C) 2006 OpenWrt.org
4 # This is free software, licensed under the GNU General Public License v2.
5 # See /LICENSE for more information.
9 include $(TOPDIR)/rules.mk
10 include $(INCLUDE_DIR)/kernel.mk
12 PKG_NAME:=hostap-driver
16 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
17 PKG_SOURCE_URL:=http://hostap.epitest.fi/releases/
18 PKG_MD5SUM:=c7534dc040ab90218257a78488ecd378
20 include $(INCLUDE_DIR)/package.mk
22 -include $(LINUX_DIR)/.config
25 define KernelPackage/hostap/Default/2.4
26 VERSION:=$(LINUX_VERSION)+$(PKG_VERSION)-$(BOARD)-$(PKG_RELEASE)
28 define KernelPackage/hostap/Default/2.6
29 VERSION:=$(LINUX_VERSION)-$(BOARD)-$(PKG_RELEASE)
31 define KernelPackage/hostap/Default
32 SUBMENU:=Wireless Drivers
34 Host AP is a driver for 802.11b wireless cards based on Intersil \\\
35 Prism2/2.5/3 chipset. It supports so called Host AP mode that allows the \\\
36 card to act as an IEEE 802.11 access point.
37 URL:=http://hostap.epitest.fi/
38 $(call KernelPackage/hostap/Default/$(KERNEL))
42 define KernelPackage/hostap
43 $(call KernelPackage/hostap/Default)
44 DEPENDS:=@PCI_SUPPORT||PCMCIA_SUPPORT +kmod-ieee80211 +kmod-crypto
45 TITLE:=Host AP support for Prism2/2.5/3
48 This package contains the base Host AP driver code that is shared by \\\
49 different hardware models. You will also need to enable support for \\\
50 PLX/PCI/CS version of the driver to actually use the driver.
52 define KernelPackage/hostap/2.4
55 $(PKG_BUILD_DIR)/driver/modules/hostap.$(LINUX_KMOD_SUFFIX) \
56 $(PKG_BUILD_DIR)/driver/modules/hostap_crypt_ccmp.$(LINUX_KMOD_SUFFIX) \
57 $(PKG_BUILD_DIR)/driver/modules/hostap_crypt_tkip.$(LINUX_KMOD_SUFFIX) \
58 $(PKG_BUILD_DIR)/driver/modules/hostap_crypt_wep.$(LINUX_KMOD_SUFFIX)
59 AUTOLOAD:=$(call AutoLoad,60,hostap hostap_crypt_wep hostap_crypt_tkip hostap_crypt_ccmp)
61 define KernelPackage/hostap/2.6
62 KCONFIG:=$(CONFIG_HOSTAP)
64 $(LINUX_DIR)/drivers/net/wireless/hostap/hostap.$(LINUX_KMOD_SUFFIX)
65 AUTOLOAD:=$(call AutoLoad,60,hostap)
69 define KernelPackage/hostap-pci
70 $(call KernelPackage/hostap/Default)
72 TITLE:=Host AP driver for PCI adaptors
75 This package contains the Host AP driver for Prism2.5 PCI adaptors.
76 AUTOLOAD:=$(call AutoLoad,60,hostap_pci)
78 define KernelPackage/hostap-pci/2.4
80 $(PKG_BUILD_DIR)/driver/modules/hostap_pci.$(LINUX_KMOD_SUFFIX)
82 define KernelPackage/hostap-pci/2.6
83 KCONFIG:=$(CONFIG_HOSTAP_PCI)
85 $(LINUX_DIR)/drivers/net/wireless/hostap/hostap_pci.$(LINUX_KMOD_SUFFIX)
89 define KernelPackage/hostap-plx
90 $(call KernelPackage/hostap/Default)
92 TITLE:=Host AP driver for PLX9052 based PCI adaptors
95 This package contains the Host AP driver for Prism2/2.5/3 in PLX9052 \\\
97 AUTOLOAD:=$(call AutoLoad,60,hostap_plx)
99 define KernelPackage/hostap-plx/2.4
101 $(PKG_BUILD_DIR)/driver/modules/hostap_plx.$(LINUX_KMOD_SUFFIX)
103 define KernelPackage/hostap-plx/2.6
104 KCONFIG:=$(CONFIG_HOSTAP_PLX)
106 $(LINUX_DIR)/drivers/net/wireless/hostap/hostap_plx.$(LINUX_KMOD_SUFFIX)
112 $(MAKE) -C $(LINUX_DIR)/ \
113 ARCH="$(LINUX_KARCH)" \
114 CROSS_COMPILE="$(TARGET_CROSS)" \
115 SUBDIRS="$(PKG_BUILD_DIR)/driver/modules" \
120 mkdir -p $(PKG_BUILD_DIR)
123 define Build/Configure
131 $(eval $(call KernelPackage,hostap))
132 $(eval $(call KernelPackage,hostap-pci))
133 $(eval $(call KernelPackage,hostap-plx))