From d62ee7eaf2ba025c3f64b2d4e10dc7cec4637612 Mon Sep 17 00:00:00 2001 From: Richard Purdie Date: Wed, 1 Sep 2010 19:09:11 +0100 Subject: packages: Separate out most of the remaining packages into recipes Signed-off-by: Richard Purdie --- meta/recipes-bsp/hostap/files/hostap-fw-load.patch | 20 +++ meta/recipes-bsp/hostap/files/hostap_cs.conf | 193 +++++++++++++++++++++ .../hostap/files/hostap_cs.conf-upstream | 191 ++++++++++++++++++++ meta/recipes-bsp/hostap/files/hostap_cs.modalias | 28 +++ meta/recipes-bsp/hostap/hostap-conf_1.0.bb | 29 ++++ meta/recipes-bsp/hostap/hostap-utils.inc | 25 +++ meta/recipes-bsp/hostap/hostap-utils_0.4.7.bb | 1 + 7 files changed, 487 insertions(+) create mode 100644 meta/recipes-bsp/hostap/files/hostap-fw-load.patch create mode 100644 meta/recipes-bsp/hostap/files/hostap_cs.conf create mode 100644 meta/recipes-bsp/hostap/files/hostap_cs.conf-upstream create mode 100644 meta/recipes-bsp/hostap/files/hostap_cs.modalias create mode 100644 meta/recipes-bsp/hostap/hostap-conf_1.0.bb create mode 100644 meta/recipes-bsp/hostap/hostap-utils.inc create mode 100644 meta/recipes-bsp/hostap/hostap-utils_0.4.7.bb (limited to 'meta/recipes-bsp/hostap') diff --git a/meta/recipes-bsp/hostap/files/hostap-fw-load.patch b/meta/recipes-bsp/hostap/files/hostap-fw-load.patch new file mode 100644 index 0000000000..88adee2bc9 --- /dev/null +++ b/meta/recipes-bsp/hostap/files/hostap-fw-load.patch @@ -0,0 +1,20 @@ + +# +# Patch managed by http://www.holgerschurig.de/patcher.html +# + +--- hostap-utils-0.2.4/hostap_fw_load~hostap-fw-load ++++ hostap-utils-0.2.4/hostap_fw_load +@@ -6,9 +6,9 @@ + # Firmware images for the card + # TODO: could try to select correct firmware type automatically + +-PRI=/etc/pcmcia/PM010102.HEX +-STA=/etc/pcmcia/RF010802.HEX +-PRISM2_SREC=/usr/local/bin/prism2_srec ++PRI=/etc/pcmcia/pm010102.hex ++STA=/etc/pcmcia/rf010804.hex ++PRISM2_SREC=/usr/sbin/prism2_srec + + set -e + diff --git a/meta/recipes-bsp/hostap/files/hostap_cs.conf b/meta/recipes-bsp/hostap/files/hostap_cs.conf new file mode 100644 index 0000000000..8dda82aad3 --- /dev/null +++ b/meta/recipes-bsp/hostap/files/hostap_cs.conf @@ -0,0 +1,193 @@ +module "hostap_cs" opts "channel=3 iw_mode=2 essid=any ignore_cis_vcc=1" + +card "Actiontec 802CI2" + manfid 0x1668, 0x0101 + bind "hostap_cs" + +card "AirWay 802.11 Adapter (PCMCIA)" + #version "AirWay", "802.11 Adapter (PCMCIA)" + manfid 0x0261, 0x0002 + bind "hostap_cs" + +card "Asus SpaceLink WL110" + manfid 0x02aa,0x0002 + bind "hostap_cs" + +## handhelds.org bug 964 +card "Belkin F5D6060 Ethernet" + #version "PCMCIA", "11M WLAN Card v2.5", "ISL37300P", "RevA" + manfid 0x0274, 0x1612 + bind "hostap_cs" + +card "Compaq 11Mbps Wireless PC Card" + manfid 0x028a, 0x0002 + bind "hostap_cs" + +card "Compaq WL100 11 Mbps Wireless Adapter" + manfid 0x0138, 0x0002 + bind "hostap_cs" + +card "Compaq HNW-100 11 Mbps Wireless Adapter" + manfid 0x028a, 0x0002 + bind "hostap_cs" + +card "D-Link DWL-650" + version "D", "Link DWL-650 11Mbps WLAN Card" + bind "hostap_cs" + +card "D-Link DRC-650" + version "D", "Link DRC-650 11Mbps WLAN Card" + bind "hostap_cs" + +card "D-Link DCF660" + manfid 0xd601, 0x0005 + bind "hostap_cs" + +card "Farallon SkyLINE" + version "INTERSIL", "HFA384x/IEEE" + bind "hostap_cs" + +card "HyperLink Wireless PC Card 11Mbps" + version "HyperLink", "Wireless PC Card 11Mbps" + bind "hostap_cs" + +# card "Intersil PRISM2 11 Mbps Wireless Adapter" +# manfid 0x0156, 0x0002 +# bind "hostap_cs" + +card "LA4111 Spectrum24 Wireless LAN PC Card" + version "Symbol Technologies" + bind "hostap_cs" + +card "Linksys WPC11 11Mbps 802.11b WLAN Card" + version "Instant Wireless ", " Network PC CARD", "Version 01.02" + bind "hostap_cs" + +card "Linksys WCF11 11Mbps 802.11b WLAN Card" + manfid 0x0274, 0x3301 + bind "hostap_cs" + +## handhelds.org bug #790 +card "Linksys Wireless CompactFlash Card WCF12" + manfid 0x028a, 0x0673 + bind "hostap_cs" + +card "Linksys WLAN CF Card" + manfid 0x0274, 0x3301 + bind "hostap_cs" + +card "NETGEAR MA701 Wireless CF Card" + manfid 0xd601, 0x0002 + bind "hostap_cs" + +card "Nortel Networks eMobility 802.11 Wireless Adapter" + manfid 0x01eb, 0x080a + bind "hostap_cs" + +card "PLANEX GeoWave GW-CF110" + version "PLANEX", "GeoWave/GW-CF110" + bind "hostap_cs" + +card "PROXIM LAN PC CARD HARMONY 80211B" + version "PROXIM", "LAN PC CARD HARMONY 80211B" + bind "hostap_cs" + +card "Proxim RangeLAN/DS" + version "PROXIM","RangeLAN-DS/LAN PC CARD" + manfid 0x0126, 0x8000 + bind "hostap_cs" + +card "Safeway 802.11b Wireless Adapter" + manfid 0xd601, 0x0002 + bind "hostap_cs" + +card "SAMSUNG 11Mbps WLAN Card" + version "SAMSUNG", "11Mbps WLAN Card" + bind "hostap_cs" + +# needs firmware upload via hostap_fw_load +card "SanDisk ConnectPlus OEM (0MB)" + manfid 0xd601, 0x0010 + bind "hostap_cs" + +# needs special activation (>=hostap 0.3.2 only) plus firmware upload +card "SanDisk ConnectPlus w/ Memory" + version "SanDisk", "ConnectPlus" + manfid 0xd601, 0x0101 + bind "hostap_cs" to 0 +# bind "ide-cs" to 1 + +card "Senao/Origo 80211b WLAN Card" + manfid 0x000b,0x7100 + bind "hostap_cs" + +card "Sitecom WL-007 WLAN CF Card" + manfid 0xd601, 0x0004 + bind "hostap_cs" + +card "SMC2632 802.11 (prism2) Card" + version "SMC", "SMC2632W", "Version 01.02", "" + bind "hostap_cs" + +card "SpeedStream SS1021 Wireless Adapter" + #version "Siemens", "SpeedStream Wireless PCMCIA" + manfid 0x02ac, 0x0002 + bind "hostap_cs" + +card "ZCOMAX AirRunner/XI-300" + #version "ZCOMAX", "AirRunner/XI-300" + manfid 0xd601, 0x0002 + bind "hostap_cs" + +card "Zonet ZCF1100" + manfid 0x000b, 0x7100 + bind "hostap_cs" + +card "Wireless LAN Adapter Version 01.02" + version "Wireless", "LAN Adapter", "Version 01.02" +# manfid 0x0156, 0x0002 + bind "hostap_cs" + +card "Ambicom WL1100C 11Mbs Card 802.11b" + version "AmbiCom", "WL1100C 802.11b CF-Card", "2.2" + manfid 0xd601,0x0002 + bind "hostap_cs" + +card "Ambicom WL1100C 11Mbs Card 802.11b" + manfid 0xd601,0x0002 + bind "hostap_cs" + +card "Sandisk Connect SDWCFB-000" + manfid 0xd601,0x0005 + bind "hostap_cs" + +# Cards with Intersil firmware (Prism chipset) + +card "Linksys WPC11 11Mbps 802.11b WLAN Card" + version "The Linksys Group, Inc.", "Instant Wireless Network PC Card", "ISL37300P", "RevA" + bind "hostap_cs" + +card "Linksys CompactFlash Wireless Card" + version "Linksys", "Wireless CompactFlash Card" + bind "hostap_cs" + +card "ACTIONTEC PRISM Wireless LAN PC Card" + version "ACTIONTEC", "PRISM Wireless LAN PC Card" + bind "hostap_cs" + +card "Linksys WPC11 Version 3" + manfid 0x0274,0x1613 + bind "hostap_cs" + +card "BENQ AWL100" + version "BENQ", "AWL100 PCMCIA ADAPTER" + bind "hostap_cs" + +card "Pretec WLAN" + version "Pretec", "CompactWLAN Card 802.11b", "2.5" + manfid 0x0156, 0x0002 + bind "hostap_cs" + +card "TrendNet TEW PC16" + manfid 0x0274, 0x1601 + bind "hostap_cs" diff --git a/meta/recipes-bsp/hostap/files/hostap_cs.conf-upstream b/meta/recipes-bsp/hostap/files/hostap_cs.conf-upstream new file mode 100644 index 0000000000..5b7385a7cb --- /dev/null +++ b/meta/recipes-bsp/hostap/files/hostap_cs.conf-upstream @@ -0,0 +1,191 @@ +device "hostap_cs" + class "network" module "hostap", "hostap_cs" + +card "Intersil PRISM2 Reference Design 11Mb/s WLAN Card" + version "INTERSIL", "HFA384x/IEEE" + bind "hostap_cs" + +card "Compaq WL100 11Mb/s WLAN Card" + manfid 0x0138, 0x0002 + bind "hostap_cs" + +card "Compaq WL200" + version "Compaq", "WL200_11Mbps_Wireless_PCI_Card" + bind "hostap_cs" + +card "EMTAC A2424i 11Mbps WLAN Card" + manfid 0xc250, 0x0002 +# cis "cis/Emtac.dat" + bind "hostap_cs" + +card "Linksys WPC11 11Mbps WLAN Card" + version "Instant Wireless ", " Network PC CARD", "Version 01.02" + bind "hostap_cs" + +card "Linksys WPC11 Ver 2.5 11Mbps WLAN Card" + manfid 0x0274, 0x1612 + bind "hostap_cs" + +card "Linksys WPC11 Ver 3 11Mbps WLAN Card" + manfid 0x0274, 0x1613 + bind "hostap_cs" + +card "Linksys WCF12 Wireless CompactFlash Card" + version "Linksys", "Wireless CompactFlash Card" + bind "hostap_cs" + +card "D-Link DWL-650 11Mbps WLAN Card" + version "D", "Link DWL-650 11Mbps WLAN Card", "Version 01.02" + bind "hostap_cs" + +card "D-Link DRC-650 11Mbps WLAN Card" +# version "D", "Link DRC-650 11Mbps WLAN Card", "Version 01.02" + manfid 0x028a, 0x0002 + bind "hostap_cs" + +card "ZoomAir 4100 11Mb/s WLAN Card" + version "ZoomAir 11Mbps High", "Rate wireless Networking" + bind "hostap_cs" + +card "Addtron AWP-100 11Mbps WLAN Card" + version "Addtron", "AWP-100 Wireless PCMCIA", "Version 01.02" + bind "hostap_cs" + +card "Samsung SWL2000-N 11Mb/s WLAN Card" + manfid 0x0250, 0x0002 + bind "hostap_cs" + +card "SMC 2632W 11Mbps WLAN Card" + version "SMC", "SMC2632W", "Version 01.02" + bind "hostap_cs" + +card "BroMax Freeport 11Mbps WLAN Card" + version "Intersil", "PRISM 2_5 PCMCIA ADAPTER", "ISL37300P", "Eval-RevA" + bind "hostap_cs" + +card "Z-Com XI300 11Mb/s WLAN Card" + manfid 0xd601, 0x0002 + bind "hostap_cs" + +card "Zcomax XI-325H 200mW" +# version " ", "IEEE 802.11 Wireless LAN/PC Card" + manfid 0xd601, 0x0005 + bind "hostap_cs" + +card "3Com AirConnect PCI 777A" + manfid 0x0101, 0x0777 + bind "hostap_cs" + +card "U.S. Robotics IEEE 802.11b PC-CARD" + version "U.S. Robotics", "IEEE 802.11b PC-CARD", "Version 01.02" +# manfid 0x0156, 0x0002 + bind "hostap_cs" + +card "Longshine LCR-8531 11Mbps WLAN PCMCIA CARD" + version "OEM", "PRISM2 IEEE 802.11 PC-Card", "Version 01.02" +# manfid 0x0156, 0x0002 + bind "hostap_cs" + +card "Philips 802.11b WLAN PCMCIA" + manfid 0x000b, 0x7300 + bind "hostap_cs" + +card "Proxim RangeLAN" +# version "PROXIM", "RangeLAN-DS/LAN PC CARD" + manfid 0x0126, 0x8000 + bind "hostap_cs" + +card "Buffalo WLI-CF-S11G" + version "BUFFALO", "WLI-CF-S11G" +# manfid 0x026f, 0x030b + bind "hostap_cs" + +card "Level-One WPC-0100" + version "Digital Data Communications", "WPC-0100", "Version 00.00" + manfid 0x0156, 0x0002 + bind "hostap_cs" + +card "Belkin 802.11b WLAN PCMCIA" + version "Belkin", "11Mbps Wireless Notebook Network Adapter", "Version 01.02" + manfid 0x0156, 0x0002 + bind "hostap_cs" + +card "Senao SL-2011CD/SL-2011CDPLUS" + version "INTERSIL", "HFA384x/IEEE", "Version 01.02" + manfid 0x0156, 0x0002 + bind "hostap_cs" + +card "Fulbond Airbond XI-300B" + version " ", "IEEE 802.11 Wireless LAN/PC Card" + manfid 0xd601, 0x0002 + bind "hostap_cs" + +card "Netgear MA401" + version "NETGEAR MA401 Wireless PC", "Card", "Version 01.00" +# manfid 0x0156, 0x0002 + bind "hostap_cs" + +card "D-Link DWL-650 Rev. P1" + version "D-Link", "DWL-650 Wireless PC Card RevP", "ISL37101P-10", "A3" +# manfid 0x000b, 0x7110 + bind "hostap_cs" + +card "SonicWALL Long Range Wireless Card" + version "SonicWALL", "Long Range Wireless Card", "ISL37100P", "1.0" + manfid 0x000b, 0x7100 + bind "hostap_cs" + +card "Senao NL-2011CD PLUS Ext2 Mercury" + version "WLAN", "11Mbps_PC-Card_3.0", "ISL37100P", "Eval-RevA" + manfid 0x000b, 0x7100 + bind "hostap_cs" + +card "Airvast WL100" + version "AIRVAST", "IEEE 802.11b Wireless PCMCIA Card", "HFA3863" + manfid 0x50c2, 0x0001 + bind "hostap_cs" + +card "Microsoft Wireless Notebook Adapter MN-520 1.0.3" + version "Microsoft", "Wireless Notebook Adapter MN-520", "", "1.0.3" + manfid 0x02d2, 0x0001 + bind "hostap_cs" + +card "NETGEAR MA401RA" + version "NETGEAR MA401RA Wireless PC", "Card", "ISL37300P", "Eval-RevA" + manfid 0x000b, 0x7300 + bind "hostap_cs" + +card "Allied Telesyn AT-WCL452" + version "Allied Telesyn", "AT-WCL452 Wireless PCMCIA Radio", "Ver. 1.00" + manfid 0xc00f, 0x0000 + bind "hostap_cs" + +card "corega WL PCCL-11" + version "corega", "WL PCCL-11", "ISL37300P", "RevA" + manfid 0xc00f, 0x0000 + bind "hostap_cs" + +card "SanDisk ConnectPlus" + version "SanDisk", "ConnectPlus" + manfid 0xd601, 0x0101 + bind "hostap_cs" to 0 + bind "ide-cs" to 1 + +card "ASUS WL-100 8011b WLAN PC Card" + version "ASUS", "802_11b_PC_CARD_25", "Version 01.00" + manfid 0x02aa, 0x0002 + bind "hostap_cs" + +card "ZyXel Zyair B-101 802.11b WLAN card" + version " ", "IEEE 802.11 Wireless LAN/PC Card" + manfid 0xd601, 0x0010 + bind "hostap_cs" + +card "WLAN PRISM PCMCIA CARD 37300P RevB6" + version "WLAN", "PRISM PCMCIA CARD", "37300P", "Revision B6" + manfid 0x50c2, 0x7300 + bind "hostap_cs" + + +# Optional configuration parameters for hostap_cs.o +# module "hostap_cs" opts "channel=3 iw_mode=3 essid=test ignore_cis_vcc=0" diff --git a/meta/recipes-bsp/hostap/files/hostap_cs.modalias b/meta/recipes-bsp/hostap/files/hostap_cs.modalias new file mode 100644 index 0000000000..cb9efab271 --- /dev/null +++ b/meta/recipes-bsp/hostap/files/hostap_cs.modalias @@ -0,0 +1,28 @@ +# product info: "Pretec", "CompactWLAN Card 802.11b", "2.5" +pcmcia:m0156c0002f06fn00pfn00pa1CADD3E5pbE697636Cpc7A5BFCF1pd00000000 hostap_cs + +# manufacturer ID which exist in orinoco_cs AND in hostap_cs +pcmcia:m000Bc7100f06fn00pfn00pa*pb*pc*pd* hostap_cs +pcmcia:m000Bc7300f06fn00pfn00pa*pb*pc*pd* hostap_cs +pcmcia:m0126c8000f06fn00pfn00pa*pb*pc*pd* hostap_cs +pcmcia:m0138c0002f06fn00pfn00pa*pb*pc*pd* hostap_cs +pcmcia:m0250c0002f06fn00pfn00pa*pb*pc*pd* hostap_cs +pcmcia:m0274c1612f06fn00pfn00pa*pb*pc*pd* hostap_cs +pcmcia:m0274c1613f06fn00pfn00pa*pb*pc*pd* hostap_cs +pcmcia:m028Ac0002f06fn00pfn00pa*pb*pc*pd* hostap_cs +pcmcia:m02AAc0002f06fn00pfn00pa*pb*pc*pd* hostap_cs +pcmcia:m50C2c7300f06fn00pfn00pa*pb*pc*pd* hostap_cs +pcmcia:mD601c0002f06fn00pfn00pa*pb*pc*pd* hostap_cs +pcmcia:mD601c0005f06fn00pfn00pa*pb*pc*pd* hostap_cs + +# product info: "Linksys", "Wireless CompactFlash Card", "", "" +pcmcia:m028Ac0673f06fn00pfn00pa0733CC81pb0C52F395pc00000000pd00000000 hostap_cs + +# product info:"PLANEX COMMUNICATION INC","PLANEX GW-CF11X Wireless CF Card", "", "" +pcmcia:mD601c0010f06fn00pfn00pa4703CF68pbFAD7318Dpc00000000pd00000000 hostap_cs + +# 0x0156, 0x0002 and "Version 01.02" only appear for Prism based cards. +pcmcia:m0156c0002f06fn00pfn00pa*pb*pc4B74BAA0pd00000000 hostap_cs + +# "BUFFALO", "WLI-CF-S11G", "", "" +pcmcia:m026Fc030Bf06fn00pfn00pa2DECECE3pb82067C18pc00000000pd00000000 hostap_cs diff --git a/meta/recipes-bsp/hostap/hostap-conf_1.0.bb b/meta/recipes-bsp/hostap/hostap-conf_1.0.bb new file mode 100644 index 0000000000..ce069662c7 --- /dev/null +++ b/meta/recipes-bsp/hostap/hostap-conf_1.0.bb @@ -0,0 +1,29 @@ +DESCRIPTION = "PCMCIA-cs configuration files for wireless LAN cards based on Intersil's Prism2/2.5/3 chipset" +SECTION = "kernel/modules" +PRIORITY = "optional" +LICENSE = "GPL" +RDEPENDS = "update-modules" +PACKAGE_ARCH = "all" +PR = "r10" + +SRC_URI = "file://hostap_cs.modalias" + +do_compile() { +} + +do_install() { + install -d ${D}${sysconfdir}/modutils + + install -m 0644 ${WORKDIR}/hostap_cs.modalias ${D}${sysconfdir}/modutils/hostap_cs.conf +} + +pkg_postinst () { + if [ -n "$D" ]; then + exit 1 + fi + update-modules || true +} + +pkg_postrm () { + update-modules || true +} diff --git a/meta/recipes-bsp/hostap/hostap-utils.inc b/meta/recipes-bsp/hostap/hostap-utils.inc new file mode 100644 index 0000000000..16880f1196 --- /dev/null +++ b/meta/recipes-bsp/hostap/hostap-utils.inc @@ -0,0 +1,25 @@ +DESCRIPTION = "User mode helpers for the hostap driver" +HOMEPAGE = "http://hostap.epitest.fi" +BUGTRACKER = "http://hostap.epitest.fi/bugz/" +LICENSE = "GPLv2" +LIC_FILES_CHKSUM = "file://COPYING;md5=0636e73ff0215e8d672dc4c32c317bb3 \ + file://util.c;beginline=1;endline=9;md5=d3b9280851302e5ba34e5fb717489b6d" +SECTION = "kernel/userland" +PRIORITY = "optional" +PR = "r4" + +SRC_URI = "http://hostap.epitest.fi/releases/hostap-utils-${PV}.tar.gz \ + file://hostap-fw-load.patch;patch=1" +S = "${WORKDIR}/hostap-utils-${PV}" + +BINARIES = "hostap_crypt_conf hostap_diag hostap_fw_load hostap_io_debug \ + hostap_rid prism2_param prism2_srec split_combined_hex" + +do_install() { + install -d ${D}${sbindir}/ + for f in ${BINARIES} + do + install -m 0755 $f ${D}${sbindir}/ + done +} + diff --git a/meta/recipes-bsp/hostap/hostap-utils_0.4.7.bb b/meta/recipes-bsp/hostap/hostap-utils_0.4.7.bb new file mode 100644 index 0000000000..9fe362b19f --- /dev/null +++ b/meta/recipes-bsp/hostap/hostap-utils_0.4.7.bb @@ -0,0 +1 @@ +require hostap-utils.inc -- cgit 1.2.3-korg