summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBjarke Istrup Pedersen <gurligebis@gentoo.org>2008-06-05 14:15:23 +0000
committerBjarke Istrup Pedersen <gurligebis@gentoo.org>2008-06-05 14:15:23 +0000
commitacb36b89e8ad3fa9ee450b9eacff309c8abb210b (patch)
treef849a1032687feaa8a84b4fea01c12178138914e /net-wireless/hostapd
parentVersion bump (diff)
downloadhistorical-acb36b89e8ad3fa9ee450b9eacff309c8abb210b.tar.gz
historical-acb36b89e8ad3fa9ee450b9eacff309c8abb210b.tar.bz2
historical-acb36b89e8ad3fa9ee450b9eacff309c8abb210b.zip
Bumping to 0.6.3-r1, finally adding support for nl80211.
Package-Manager: portage-2.1.5.2
Diffstat (limited to 'net-wireless/hostapd')
-rw-r--r--net-wireless/hostapd/ChangeLog9
-rw-r--r--net-wireless/hostapd/Manifest5
-rw-r--r--net-wireless/hostapd/files/004-nl80211-rename-STAT-to-INFO.patch55
-rw-r--r--net-wireless/hostapd/hostapd-0.6.3-r1.ebuild (renamed from net-wireless/hostapd/hostapd-0.6.3.ebuild)41
4 files changed, 98 insertions, 12 deletions
diff --git a/net-wireless/hostapd/ChangeLog b/net-wireless/hostapd/ChangeLog
index 1fee68133128..73914dc10be5 100644
--- a/net-wireless/hostapd/ChangeLog
+++ b/net-wireless/hostapd/ChangeLog
@@ -1,6 +1,13 @@
# ChangeLog for net-wireless/hostapd
# Copyright 2000-2008 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/net-wireless/hostapd/ChangeLog,v 1.79 2008/06/03 02:01:41 mr_bones_ Exp $
+# $Header: /var/cvsroot/gentoo-x86/net-wireless/hostapd/ChangeLog,v 1.80 2008/06/05 14:15:22 gurligebis Exp $
+
+*hostapd-0.6.3-r1 (05 Jun 2008)
+
+ 05 Jun 2008; Bjarke Istrup Pedersen <gurligebis@gentoo.org>
+ +files/004-nl80211-rename-STAT-to-INFO.patch, -hostapd-0.6.3.ebuild,
+ +hostapd-0.6.3-r1.ebuild:
+ Bumping to 0.6.3-r1, finally adding support for nl80211.
03 Jun 2008; Michael Sterrett <mr_bones_@gentoo.org> hostapd-0.4.9.ebuild,
hostapd-0.5.10.ebuild, hostapd-0.6.3.ebuild:
diff --git a/net-wireless/hostapd/Manifest b/net-wireless/hostapd/Manifest
index 6e93ff08bc03..b02b3d5a844a 100644
--- a/net-wireless/hostapd/Manifest
+++ b/net-wireless/hostapd/Manifest
@@ -1,3 +1,4 @@
+AUX 004-nl80211-rename-STAT-to-INFO.patch 2420 RMD160 d56e98ce56278f1c17470a6acd28adbe6ba3bd48 SHA1 49eb31e187a8e1d5fb141a583991ce8bb813dc9c SHA256 a040e4a3baa8b7ded12992ba62225695b7c751ef73bbadd0a5fe2170c2357919
AUX hostapd-0.4.9-conf.d 245 RMD160 88b816218cb37d32fd940db17ece84d612c87f14 SHA1 0d88865c313bf1ffbc168029a13c76f288280a3d SHA256 916f4b14095ee4ec8a510391c883e9f01868e18d79a3d5cbeb13a104a793d45d
AUX hostapd-0.4.9-init.d 954 RMD160 f134d4131c899350606f9a672608dc5b2dfd143f SHA1 4ff32edd48023c2fa0052cdf0c2986c2d0e025be SHA256 1e346d22fa9a3bb3c100999552ca545f0650815411252a34f619b8bb8a2a90c2
AUX hostapd-0.5.10-conf.d 245 RMD160 88b816218cb37d32fd940db17ece84d612c87f14 SHA1 0d88865c313bf1ffbc168029a13c76f288280a3d SHA256 916f4b14095ee4ec8a510391c883e9f01868e18d79a3d5cbeb13a104a793d45d
@@ -9,6 +10,6 @@ DIST hostapd-0.5.10.tar.gz 460973 RMD160 405b1d66c718c4050a55b78b530c7dc9f6f4db7
DIST hostapd-0.6.3.tar.gz 890883 RMD160 0012b443fa61ccf555d182ef76f7b0f3232dbee5 SHA1 f9871e4cffbdcd71e4725d77112e98aa6270c7b8 SHA256 dd9de3b06c591dbf5a2b1c7d11c179e828a01ec3529ec625bd5ae6664aa0f44d
EBUILD hostapd-0.4.9.ebuild 3104 RMD160 163c66b660c035a37c6c8807e7bf953d7c6ee4bf SHA1 1fc87ac61eb063f5995fc462835e4587ffc8607a SHA256 71b1c835f538e59795c24dd3d4fd3249ace973f8e32dff6ecfa1781fc5dd5733
EBUILD hostapd-0.5.10.ebuild 3532 RMD160 1c1e3c790b460debc80b66a108951d0e23c3222a SHA1 7fc05a69c46789c82acf42078641ec67d2e99594 SHA256 3adc55012b8978bab0caf8d30a01c75a497a2e30cc7f07ff279c40f606c536ae
-EBUILD hostapd-0.6.3.ebuild 4222 RMD160 26a30f99e1580e015eeff6d30aadb354fc288923 SHA1 cfb86585ae5904cf942616b7c3b1074514386295 SHA256 7b1f4e6bc216dabbe4b178b84c579806608a246aaaf258fb101831629566063b
-MISC ChangeLog 14307 RMD160 34a9b09f11c0ee40da0d683615f4f73248a83bfd SHA1 5a7204bc26b717799c2b1dccf4579f85e9420dc7 SHA256 bd427b199a011fac059f5cb61f304cde8e326c611c0c113c0b8ccbd2d119bbee
+EBUILD hostapd-0.6.3-r1.ebuild 5010 RMD160 fb3bdf0549fab5b3aa8eabfa89f2ad9885741344 SHA1 f5694615c945392034b4299d878efe8046db73be SHA256 ef25313ffeb8013be87200290abc22961e128c82ee45e91947385ea676d17ba5
+MISC ChangeLog 14562 RMD160 6af58dfcabe00da3fcbd09fedec1afe3baebc17c SHA1 7ebfd77e1721cad95f0524aed4dca582da93a13e SHA256 cda482b33208de5437b2b07513c816a482f0d8809a5107cf9cdb0a4e6fdabc8d
MISC metadata.xml 467 RMD160 f06fbc5b02928dfc4d096863710bcecf4346fd3d SHA1 4f5a511cb78a32d8d81666fba412133e957ca6ad SHA256 f2b7264f93feb662cca940e95a1e2bd5b5a2cdef3c9a99b9d67db7e26f5bbf18
diff --git a/net-wireless/hostapd/files/004-nl80211-rename-STAT-to-INFO.patch b/net-wireless/hostapd/files/004-nl80211-rename-STAT-to-INFO.patch
new file mode 100644
index 000000000000..7664a8633af0
--- /dev/null
+++ b/net-wireless/hostapd/files/004-nl80211-rename-STAT-to-INFO.patch
@@ -0,0 +1,55 @@
+Index: hostapd-20071107_03ec0ec5cdb974d51a4a2a566bea4c4568138576/hostapd/driver_nl80211.c
+===================================================================
+--- hostapd-20071107_03ec0ec5cdb974d51a4a2a566bea4c4568138576.orig/hostapd/driver_nl80211.c.orig 2008-04-09 14:03:17.000000000 +1200
++++ hostapd-20071107_03ec0ec5cdb974d51a4a2a566bea4c4568138576/hostapd/driver_nl80211.c 2008-04-09 14:06:37.000000000 +1200
+@@ -598,11 +598,11 @@
+ struct nlattr *tb[NL80211_ATTR_MAX + 1];
+ struct genlmsghdr *gnlh = nlmsg_data(nlmsg_hdr(msg));
+ struct hostap_sta_driver_data *data = arg;
+- struct nlattr *stats[NL80211_STA_STAT_MAX + 1];
+- static struct nla_policy stats_policy[NL80211_STA_STAT_MAX + 1] = {
+- [NL80211_STA_STAT_INACTIVE_TIME] = { .type = NLA_U32 },
+- [NL80211_STA_STAT_RX_BYTES] = { .type = NLA_U32 },
+- [NL80211_STA_STAT_TX_BYTES] = { .type = NLA_U32 },
++ struct nlattr *stats[NL80211_STA_INFO_MAX + 1];
++ static struct nla_policy stats_policy[NL80211_STA_INFO_MAX + 1] = {
++ [NL80211_STA_INFO_INACTIVE_TIME] = { .type = NLA_U32 },
++ [NL80211_STA_INFO_RX_BYTES] = { .type = NLA_U32 },
++ [NL80211_STA_INFO_TX_BYTES] = { .type = NLA_U32 },
+ };
+
+ nla_parse(tb, NL80211_ATTR_MAX, genlmsg_attrdata(gnlh, 0),
+@@ -614,24 +614,24 @@
+ * the kernel starts sending station notifications.
+ */
+
+- if (!tb[NL80211_ATTR_STA_STATS]) {
++ if (!tb[NL80211_ATTR_STA_INFO]) {
+ wpa_printf(MSG_DEBUG, "sta stats missing!");
+ return NL_SKIP;
+ }
+- if (nla_parse_nested(stats, NL80211_STA_STAT_MAX,
+- tb[NL80211_ATTR_STA_STATS],
++ if (nla_parse_nested(stats, NL80211_STA_INFO_MAX,
++ tb[NL80211_ATTR_STA_INFO],
+ stats_policy)) {
+ wpa_printf(MSG_DEBUG, "failed to parse nested attributes!");
+ return NL_SKIP;
+ }
+
+- if (stats[NL80211_STA_STAT_INACTIVE_TIME])
++ if (stats[NL80211_STA_INFO_INACTIVE_TIME])
+ data->inactive_msec =
+- nla_get_u32(stats[NL80211_STA_STAT_INACTIVE_TIME]);
+- if (stats[NL80211_STA_STAT_RX_BYTES])
+- data->rx_bytes = nla_get_u32(stats[NL80211_STA_STAT_RX_BYTES]);
+- if (stats[NL80211_STA_STAT_TX_BYTES])
+- data->rx_bytes = nla_get_u32(stats[NL80211_STA_STAT_TX_BYTES]);
++ nla_get_u32(stats[NL80211_STA_INFO_INACTIVE_TIME]);
++ if (stats[NL80211_STA_INFO_RX_BYTES])
++ data->rx_bytes = nla_get_u32(stats[NL80211_STA_INFO_RX_BYTES]);
++ if (stats[NL80211_STA_INFO_TX_BYTES])
++ data->rx_bytes = nla_get_u32(stats[NL80211_STA_INFO_TX_BYTES]);
+
+ return NL_SKIP;
+ }
diff --git a/net-wireless/hostapd/hostapd-0.6.3.ebuild b/net-wireless/hostapd/hostapd-0.6.3-r1.ebuild
index a9d33840d5e5..0fc5241866b3 100644
--- a/net-wireless/hostapd/hostapd-0.6.3.ebuild
+++ b/net-wireless/hostapd/hostapd-0.6.3-r1.ebuild
@@ -1,8 +1,8 @@
# Copyright 1999-2008 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/net-wireless/hostapd/hostapd-0.6.3.ebuild,v 1.2 2008/06/03 02:01:41 mr_bones_ Exp $
+# $Header: /var/cvsroot/gentoo-x86/net-wireless/hostapd/hostapd-0.6.3-r1.ebuild,v 1.1 2008/06/05 14:15:22 gurligebis Exp $
-inherit toolchain-funcs linux-info
+inherit toolchain-funcs linux-info eutils
DESCRIPTION="IEEE 802.11 wireless LAN Host AP daemon"
HOMEPAGE="http://hostap.epitest.fi"
@@ -14,6 +14,7 @@ KEYWORDS="~amd64 ~ppc ~x86"
IUSE="ipv6 logwatch madwifi ssl"
DEPEND="ssl? ( dev-libs/openssl )
+ >=dev-libs/libnl-1.1
madwifi? ( ||
( >net-wireless/madwifi-ng-tools-0.9.3
net-wireless/madwifi-old ) )"
@@ -48,24 +49,43 @@ generate_config() {
echo "CONFIG_EAP_GPSK=y" >> ${CONFIG}
echo "CONFIG_EAP_GPSK_SHA256=y" >> ${CONFIG}
+ einfo "Enabling drivers: "
+
# drivers
echo "CONFIG_DRIVER_HOSTAP=y" >> ${CONFIG}
+ einfo " HostAP driver enabled"
echo "CONFIG_DRIVER_WIRED=y" >> ${CONFIG}
+ einfo " Wired driver enabled"
echo "CONFIG_DRIVER_PRISM54=y" >> ${CONFIG}
+ einfo " Prism54 driver enabled"
if use madwifi; then
# Add include path for madwifi-driver headers
+ einfo " Madwifi driver enabled"
echo "CFLAGS += -I/usr/include/madwifi" >> ${CONFIG}
echo "CONFIG_DRIVER_MADWIFI=y" >> ${CONFIG}
+ else
+ einfo " HostAP driver disabled"
fi
- # REMOVED FOR NOW, BROKEN
- #if [ -e "${KV_DIR}"/net/mac80211 ]; then
- # # Kernel source has the mac80211 subsystem, so we enable the driver
- # echo "CONFIG_DRIVER_DEVICESCAPE=y" >> ${CONFIG}
- # echo "WIRELESS_DEV=\"${KV_DIR}\"" >> ${CONFIG}
- # echo "CFLAGS += -I\$(WIRELESS_DEV)/net/mac80211" >> ${CONFIG}
- #fi
+ if [[ ${KV_MAJOR} -ge 2 && ${KV_MINOR} -ge 6 || ${KV_PATCH} -ge 26 ]] ; then
+ # Test if header version is new enough (2.6.26+)
+ if [ "$(grep NL80211_MNTR_FLAG_COOK_FRAMES /usr/include/linux/nl80211.h)" ]; then
+ # Test to see if cfg.c contains to code to enable AP mode
+ if [ "$(grep NL80211_IFTYPE_AP: ${KV_DIR}/net/mac80211/cfg.c)" ]; then
+ einfo " nl80211 driver enabled"
+ echo "CONFIG_DRIVER_NL80211=y" >> ${CONFIG}
+ echo "CFLAGS += -I/usr/include/netlink" >> ${CONFIG}
+ echo "LIBS += -L/usr/lib" >> ${CONFIG}
+ else
+ einfo " nl80211 driver disabled (due to no AP support in cfg.c file)"
+ fi
+ else
+ einfo " nl80211 driver disabled (due to header version below 2.6.26)"
+ fi
+ else
+ einfo " nl80211 driver disabled (due to kernel version below 2.6.26)"
+ fi
# misc
echo "CONFIG_PKCS12=y" >> ${CONFIG}
@@ -87,6 +107,9 @@ generate_config() {
src_unpack() {
unpack ${A}
+ cd "${S}"
+ epatch "${FILESDIR}/004-nl80211-rename-STAT-to-INFO.patch"
+
sed -i -e "s:/etc/hostapd:/etc/hostapd/hostapd:g" \
"${S}/hostapd.conf"