1# 2# Copyright (C) 2006-2011 OpenWrt.org 3# 4# This is free software, licensed under the GNU General Public License v2. 5# See /LICENSE for more information. 6# 7 8include $(TOPDIR)/rules.mk 9include $(INCLUDE_DIR)/kernel.mk 10 11PKG_NAME:=hostap-driver 12PKG_VERSION:=0.4.9 13PKG_RELEASE:=2 14 15PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz 16PKG_SOURCE_URL:=http://hostap.epitest.fi/releases/ 17PKG_MD5SUM:=c7534dc040ab90218257a78488ecd378 18 19include $(INCLUDE_DIR)/package.mk 20 21define KernelPackage/hostap/Default 22 VERSION:=$(LINUX_VERSION)-$(BOARD)-$(PKG_RELEASE) 23 SUBMENU:=Wireless Drivers 24 URL:=http://hostap.epitest.fi/ 25endef 26 27define 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. 31endef 32 33 34define 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 +hostapd-common-old 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 AutoProbe,hostap) 41endef 42 43define 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. 48endef 49 50 51define 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 AutoProbe,hostap_cs) 58endef 59 60define 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. 63endef 64 65 66define 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 AutoProbe,hostap_pci) 73endef 74 75define KernelPackage/hostap-pci/description 76$(call KernelPackage/hostap/Default/description) 77 This package contains the Host AP driver for Prism2.5 PCI adaptors. 78endef 79 80 81define 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 AutoProbe,hostap_plx) 88endef 89 90define 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 93 based PCI adaptors. 94endef 95 96 97define Build/Prepare 98 mkdir -p $(PKG_BUILD_DIR) 99endef 100 101define Build/Configure 102 103endef 104 105define Build/Compile 106 107endef 108 109define KernelPackage/hostap/install 110 $(INSTALL_DIR) $(1)/lib/wifi 111 $(INSTALL_DATA) ./files/lib/wifi/hostap.sh $(1)/lib/wifi 112endef 113 114$(eval $(call KernelPackage,hostap)) 115$(eval $(call KernelPackage,hostap-cs)) 116$(eval $(call KernelPackage,hostap-pci)) 117$(eval $(call KernelPackage,hostap-plx)) 118