2006-06-27 08:35:46 +08:00
|
|
|
#
|
|
|
|
# Copyright (C) 2006 OpenWrt.org
|
|
|
|
#
|
|
|
|
# This is free software, licensed under the GNU General Public License v2.
|
|
|
|
# See /LICENSE for more information.
|
|
|
|
#
|
2006-06-17 17:28:39 +08:00
|
|
|
|
|
|
|
include $(TOPDIR)/rules.mk
|
2006-06-21 10:32:39 +08:00
|
|
|
include $(INCLUDE_DIR)/kernel.mk
|
2006-06-17 17:28:39 +08:00
|
|
|
|
|
|
|
PKG_NAME:=hostap-driver
|
|
|
|
PKG_VERSION:=0.4.9
|
|
|
|
PKG_RELEASE:=1
|
|
|
|
|
|
|
|
PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
|
2006-09-25 04:49:31 +08:00
|
|
|
PKG_SOURCE_URL:=http://hostap.epitest.fi/releases/
|
|
|
|
PKG_MD5SUM:=c7534dc040ab90218257a78488ecd378
|
2006-06-17 17:28:39 +08:00
|
|
|
|
2006-06-21 10:32:39 +08:00
|
|
|
include $(INCLUDE_DIR)/package.mk
|
2007-09-26 10:49:50 +08:00
|
|
|
|
2006-11-17 11:10:45 +08:00
|
|
|
define KernelPackage/hostap/Default
|
2010-06-27 04:43:41 +08:00
|
|
|
VERSION:=$(LINUX_VERSION)-$(BOARD)-$(PKG_RELEASE)
|
2006-11-17 11:10:45 +08:00
|
|
|
SUBMENU:=Wireless Drivers
|
2006-08-05 04:11:55 +08:00
|
|
|
URL:=http://hostap.epitest.fi/
|
2006-06-17 17:28:39 +08:00
|
|
|
endef
|
|
|
|
|
2007-09-07 16:34:51 +08:00
|
|
|
define KernelPackage/hostap/Default/description
|
|
|
|
Host AP is a driver for 802.11b wireless cards based on Intersil
|
|
|
|
Prism2/2.5/3 chipset. It supports so called Host AP mode that allows the
|
|
|
|
card to act as an IEEE 802.11 access point.
|
|
|
|
endef
|
2006-11-17 11:10:45 +08:00
|
|
|
|
2007-09-26 10:49:50 +08:00
|
|
|
|
2006-11-17 11:10:45 +08:00
|
|
|
define KernelPackage/hostap
|
2007-09-07 16:34:51 +08:00
|
|
|
$(call KernelPackage/hostap/Default)
|
2006-09-25 04:49:31 +08:00
|
|
|
TITLE:=Host AP support for Prism2/2.5/3
|
2010-06-27 04:43:41 +08:00
|
|
|
DEPENDS:=@PCI_SUPPORT||PCMCIA_SUPPORT +kmod-lib80211 +wireless-tools
|
2009-05-25 01:13:14 +08:00
|
|
|
KCONFIG:=CONFIG_HOSTAP CONFIG_HOSTAP_FIRMWARE=y CONFIG_HOSTAP_FIRMWARE_NVRAM=y
|
2010-07-12 22:06:13 +08:00
|
|
|
FILES:=$(LINUX_DIR)/drivers/net/wireless/hostap/hostap.ko
|
2006-11-19 05:21:31 +08:00
|
|
|
AUTOLOAD:=$(call AutoLoad,60,hostap)
|
2006-11-17 11:10:45 +08:00
|
|
|
endef
|
|
|
|
|
2007-09-07 16:34:51 +08:00
|
|
|
define KernelPackage/hostap/description
|
|
|
|
$(call KernelPackage/hostap/Default/description)
|
|
|
|
This package contains the base Host AP driver code that is shared by
|
|
|
|
different hardware models. You will also need to enable support for
|
|
|
|
PLX/PCI/CS version of the driver to actually use the driver.
|
|
|
|
endef
|
2006-09-25 04:49:31 +08:00
|
|
|
|
2007-09-26 10:49:50 +08:00
|
|
|
|
|
|
|
define KernelPackage/hostap-cs
|
|
|
|
$(call KernelPackage/hostap/Default)
|
|
|
|
TITLE:=Host AP driver for PCMCIA adaptors
|
2010-03-22 19:39:47 +08:00
|
|
|
DEPENDS:=@PCMCIA_SUPPORT +kmod-hostap +kmod-pcmcia-core
|
2007-09-26 10:49:50 +08:00
|
|
|
KCONFIG:=CONFIG_HOSTAP_CS
|
2010-07-12 22:06:13 +08:00
|
|
|
FILES:=$(LINUX_DIR)/drivers/net/wireless/hostap/hostap_cs.ko
|
2007-09-26 10:49:50 +08:00
|
|
|
AUTOLOAD:=$(call AutoLoad,60,hostap_cs)
|
|
|
|
endef
|
|
|
|
|
|
|
|
define KernelPackage/hostap-cs/description
|
|
|
|
$(call KernelPackage/hostap/Default/description)
|
|
|
|
This package contains the Host AP driver for Prism2/2.5/3 PC cards.
|
|
|
|
endef
|
|
|
|
|
|
|
|
|
2006-11-17 11:10:45 +08:00
|
|
|
define KernelPackage/hostap-pci
|
2007-09-07 16:34:51 +08:00
|
|
|
$(call KernelPackage/hostap/Default)
|
2006-09-25 04:49:31 +08:00
|
|
|
TITLE:=Host AP driver for PCI adaptors
|
2010-03-22 19:43:46 +08:00
|
|
|
DEPENDS:=@PCI_SUPPORT +kmod-hostap
|
2007-07-18 19:53:07 +08:00
|
|
|
KCONFIG:=CONFIG_HOSTAP_PCI
|
2010-07-12 22:06:13 +08:00
|
|
|
FILES:=$(LINUX_DIR)/drivers/net/wireless/hostap/hostap_pci.ko
|
2006-11-19 05:21:31 +08:00
|
|
|
AUTOLOAD:=$(call AutoLoad,60,hostap_pci)
|
2006-06-17 17:28:39 +08:00
|
|
|
endef
|
2007-09-26 10:49:50 +08:00
|
|
|
|
2007-09-07 16:34:51 +08:00
|
|
|
define KernelPackage/hostap-pci/description
|
|
|
|
$(call KernelPackage/hostap/Default/description)
|
|
|
|
This package contains the Host AP driver for Prism2.5 PCI adaptors.
|
|
|
|
endef
|
2006-06-17 17:28:39 +08:00
|
|
|
|
2007-09-26 10:49:50 +08:00
|
|
|
|
2006-11-17 11:10:45 +08:00
|
|
|
define KernelPackage/hostap-plx
|
2007-09-07 16:34:51 +08:00
|
|
|
$(call KernelPackage/hostap/Default)
|
2007-09-26 10:49:50 +08:00
|
|
|
TITLE:=Host AP driver for PLX9052 based PCI adaptors
|
2010-03-22 19:39:47 +08:00
|
|
|
DEPENDS:=@PCI_SUPPORT +kmod-hostap
|
2007-07-18 19:53:07 +08:00
|
|
|
KCONFIG:=CONFIG_HOSTAP_PLX
|
2010-07-12 22:06:13 +08:00
|
|
|
FILES:=$(LINUX_DIR)/drivers/net/wireless/hostap/hostap_plx.ko
|
2006-11-19 05:21:31 +08:00
|
|
|
AUTOLOAD:=$(call AutoLoad,60,hostap_plx)
|
2006-06-17 17:28:39 +08:00
|
|
|
endef
|
2007-09-26 10:49:50 +08:00
|
|
|
|
2007-09-07 16:34:51 +08:00
|
|
|
define KernelPackage/hostap-plx/description
|
|
|
|
$(call KernelPackage/hostap/Default/description)
|
|
|
|
This package contains the Host AP driver for Prism2/2.5/3 in PLX9052
|
|
|
|
based PCI adaptors.
|
|
|
|
endef
|
|
|
|
|
2006-06-17 17:28:39 +08:00
|
|
|
|
2010-06-27 04:43:41 +08:00
|
|
|
define Build/Prepare
|
2006-11-17 11:10:45 +08:00
|
|
|
mkdir -p $(PKG_BUILD_DIR)
|
2010-06-27 04:43:41 +08:00
|
|
|
endef
|
|
|
|
|
|
|
|
define Build/Configure
|
|
|
|
|
|
|
|
endef
|
|
|
|
|
|
|
|
define Build/Compile
|
|
|
|
|
|
|
|
endef
|
2006-08-05 04:11:55 +08:00
|
|
|
|
2009-05-07 21:47:04 +08:00
|
|
|
define KernelPackage/hostap/install
|
2007-11-28 11:44:18 +08:00
|
|
|
$(INSTALL_DIR) $(1)/lib/wifi
|
|
|
|
$(INSTALL_DATA) ./files/lib/wifi/hostap.sh $(1)/lib/wifi
|
|
|
|
endef
|
2006-06-17 17:28:39 +08:00
|
|
|
|
2006-11-17 11:10:45 +08:00
|
|
|
$(eval $(call KernelPackage,hostap))
|
2007-09-26 10:49:50 +08:00
|
|
|
$(eval $(call KernelPackage,hostap-cs))
|
2006-11-17 11:10:45 +08:00
|
|
|
$(eval $(call KernelPackage,hostap-pci))
|
|
|
|
$(eval $(call KernelPackage,hostap-plx))
|