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.
8 include $(TOPDIR
)/rules.mk
9 include $(INCLUDE_DIR
)/kernel.mk
11 PKG_NAME
:=hostap-driver
15 PKG_SOURCE
:=$(PKG_NAME
)-$(PKG_VERSION
).
tar.gz
16 PKG_SOURCE_URL
:=http
://hostap.epitest.fi
/releases
/
17 PKG_MD5SUM
:=c7534dc040ab90218257a78488ecd378
19 include $(INCLUDE_DIR
)/package.mk
21 define KernelPackage
/hostap
/Default
22 VERSION
:=$(LINUX_VERSION
)-$(BOARD
)-$(PKG_RELEASE
)
23 SUBMENU
:=Wireless Drivers
24 URL
:=http
://hostap.epitest.fi
/
27 define KernelPackage
/hostap
/Default
/description
28 Host AP is a driver for
802.11b wireless cards based on Intersil
29 Prism2
/2.5/3 chipset. It supports so called Host AP mode that allows the
30 card to act
as an IEEE
802.11 access point.
34 define KernelPackage
/hostap
35 $(call KernelPackage
/hostap
/Default
)
36 TITLE
:=Host AP support for Prism2
/2.5/3
37 DEPENDS
:=@PCI_SUPPORT||PCMCIA_SUPPORT
+kmod-lib80211
+wireless-tools
38 KCONFIG
:=CONFIG_HOSTAP CONFIG_HOSTAP_FIRMWARE
=y CONFIG_HOSTAP_FIRMWARE_NVRAM
=y
39 FILES
:=$(LINUX_DIR
)/drivers
/net
/wireless
/hostap
/hostap.ko
40 AUTOLOAD
:=$(call AutoLoad
,60,hostap
)
43 define KernelPackage
/hostap
/description
44 $(call KernelPackage
/hostap
/Default
/description
)
45 This package contains the base Host AP driver code that is shared by
46 different hardware models. You will also need to enable support for
47 PLX
/PCI
/CS version of the driver to actually use the driver.
51 define KernelPackage
/hostap-cs
52 $(call KernelPackage
/hostap
/Default
)
53 TITLE
:=Host AP driver for PCMCIA adaptors
54 DEPENDS
:=@PCMCIA_SUPPORT
+kmod-hostap
+kmod-pcmcia-core
55 KCONFIG
:=CONFIG_HOSTAP_CS
56 FILES
:=$(LINUX_DIR
)/drivers
/net
/wireless
/hostap
/hostap_cs.ko
57 AUTOLOAD
:=$(call AutoLoad
,60,hostap_cs
)
60 define KernelPackage
/hostap-cs
/description
61 $(call KernelPackage
/hostap
/Default
/description
)
62 This package contains the Host AP driver for Prism2
/2.5/3 PC cards.
66 define KernelPackage
/hostap-pci
67 $(call KernelPackage
/hostap
/Default
)
68 TITLE
:=Host AP driver for PCI adaptors
69 DEPENDS
:=@PCI_SUPPORT
+kmod-hostap
70 KCONFIG
:=CONFIG_HOSTAP_PCI
71 FILES
:=$(LINUX_DIR
)/drivers
/net
/wireless
/hostap
/hostap_pci.ko
72 AUTOLOAD
:=$(call AutoLoad
,60,hostap_pci
)
75 define KernelPackage
/hostap-pci
/description
76 $(call KernelPackage
/hostap
/Default
/description
)
77 This package contains the Host AP driver for Prism2.5 PCI adaptors.
81 define KernelPackage
/hostap-plx
82 $(call KernelPackage
/hostap
/Default
)
83 TITLE
:=Host AP driver for PLX9052 based PCI adaptors
84 DEPENDS
:=@PCI_SUPPORT
+kmod-hostap
85 KCONFIG
:=CONFIG_HOSTAP_PLX
86 FILES
:=$(LINUX_DIR
)/drivers
/net
/wireless
/hostap
/hostap_plx.ko
87 AUTOLOAD
:=$(call AutoLoad
,60,hostap_plx
)
90 define KernelPackage
/hostap-plx
/description
91 $(call KernelPackage
/hostap
/Default
/description
)
92 This package contains the Host AP driver for Prism2
/2.5/3 in PLX9052
98 mkdir
-p
$(PKG_BUILD_DIR
)
101 define Build
/Configure
109 define KernelPackage
/hostap
/install
110 $(INSTALL_DIR
) $(1)/lib
/wifi
111 $(INSTALL_DATA
) .
/files
/lib
/wifi
/hostap.sh
$(1)/lib
/wifi
114 $(eval
$(call KernelPackage
,hostap
))
115 $(eval
$(call KernelPackage
,hostap-cs
))
116 $(eval
$(call KernelPackage
,hostap-pci
))
117 $(eval
$(call KernelPackage
,hostap-plx
))