You are not logged in.

#1 2008-01-28 02:17:33

phabulosa
Member
From: Mountain View, CA
Registered: 2007-10-17
Posts: 182
Website

Desperately need hostapd with madwifi support

Sorry to yell here again.
I am building my own Wifi Access Point with a Atheros pci card.
I have to have WPA support because WPE is unsecured.

I NEED hostapd !!

Attached is my PKGBUILD and CONFIG file. It builds OK, but gave me the following error when trying to access this access point from other laptop.

ath0: STA 00:90:4b:f1:ca:c7 IEEE 802.11: associated
ath0: STA 00:90:4b:f1:ca:c7 IEEE 802.11: disassociated
ioctl[IEEE80211_IOCTL_DELKEY]: No such file or directory
ioctl[IEEE80211_IOCTL_DELKEY]: No such file or directory
ioctl[IEEE80211_IOCTL_SETMLME]: No such file or directory
Could not set station 00:90:4b:f1:ca:c7 flags for kernel driver (errno=29).

I also tried to build with the latest 0.9.3.3 madwifi code downloaded directly from madwifi website instead the source code provided by Arch. It gave me similar errors.

Has anyone done this? HELP ME!

PKGBUILD

pkgname=hostapd_madwifi
# Contributor: Ning Bao <phabulosa@gmail.com>
_modpkgname=hostapd
pkgver=0.5.9
pkgrel=4
arch=(i686)
pkgdesc="hostapd is a user space daemon for access point and authentication servers with support of MadWifi driver ONLY"
url="http://hostap.epitest.fi/hostapd/"
license=('GPL')
depends=()
makedepends=()
conflicts=()
replaces=()
backup=()
install=
source=(http://hostap.epitest.fi/releases/$_modpkgname-$pkgver.tar.gz
ftp://ftp.archlinux.org/other/madwifi/madwifi-0.9.3.3.3006.tar.bz2
CONFIG)
md5sums=()

build() {
  cp CONFIG $startdir/src/$_modpkgname-$pkgver/.config
  cd $startdir
  tar xfj madwifi-0.9.3.3.3006.tar.bz2
  cd src/$_modpkgname-$pkgver
  make || return 1

# Prepare destination directory
mkdir -p ../../pkg../../pkg/etc/hostapd ../../pkg/usr/bin ../../pkg/usr/share/man/man8 ../../pkg/usr/share/man/man1

# Copy default configuration files to /etc/hostapd (in the package)
  cp hostapd.accept ../../pkg../../pkg/etc/hostapd
  cp hostapd.conf ../../pkg/etc/hostapd
  cp hostapd.deny ../../pkg/etc/hostapd
  cp hostapd.wpa_psk ../../pkg/etc/hostapd
# Copy executable binary files to /usr/bin (in the package)
  cp hostapd ../../pkg/usr/bin
  cp hostapd_cli ../../pkg/usr/bin
# Copy manpage to the right place 
  cp hostapd.8 ../../pkg/usr/share/man/man8
  cp hostapd_cli.1 ../../pkg/usr/share/man/man1
}

CONFIG

# Example hostapd build time configuration
#
# This file lists the configuration options that are used when building the
# hostapd binary. All lines starting with # are ignored. Configuration option
# lines must be commented out complete, if they are not to be included, i.e.,
# just setting VARIABLE=n is not disabling that variable.
#
# This file is included in Makefile, so variables like CFLAGS and LIBS can also
# be modified from here. In most cass, these lines should use += in order not
# to override previous values of the variables.

# Driver interface for Host AP driver
# CONFIG_DRIVER_HOSTAP=y

# Driver interface for wired authenticator
#CONFIG_DRIVER_WIRED=y

# Driver interface for madwifi driver
CONFIG_DRIVER_MADWIFI=y
CFLAGS += -I../madwifi # change to reflect local setup; directory for madwifi src

# Driver interface for Prism54 driver
#CONFIG_DRIVER_PRISM54=y

# Driver interface for drivers using Devicescape IEEE 802.11 stack
#CONFIG_DRIVER_DEVICESCAPE=y
# Currently, driver_devicescape.c build requires some additional parameters
# to be able to include some of the kernel header files. Following lines can
# be used to set these (WIRELESS_DEV must point to the root directory of the
# wireless-dev.git tree).
#WIRELESS_DEV=/usr/src/wireless-dev
#CFLAGS += -I$(WIRELESS_DEV)/net/mac80211

# Driver interface for FreeBSD net80211 layer (e.g., Atheros driver)
#CONFIG_DRIVER_BSD=y
#CFLAGS += -I/usr/local/include
#LIBS += -L/usr/local/lib

# IEEE 802.11F/IAPP
CONFIG_IAPP=y

# WPA2/IEEE 802.11i RSN pre-authentication
CONFIG_RSN_PREAUTH=y

# PeerKey handshake for Station to Station Link (IEEE 802.11e DLS)
CONFIG_PEERKEY=y

# IEEE 802.11w (management frame protection)
# This version is an experimental implementation based on IEEE 802.11w/D1.0
# draft and is subject to change since the standard has not yet been finalized.
# Driver support is also needed for IEEE 802.11w.
#CONFIG_IEEE80211W=y

# Integrated EAP server
CONFIG_EAP=y

# EAP-MD5 for the integrated EAP server
CONFIG_EAP_MD5=y

# EAP-TLS for the integrated EAP server
CONFIG_EAP_TLS=y

# EAP-MSCHAPv2 for the integrated EAP server
CONFIG_EAP_MSCHAPV2=y

# EAP-PEAP for the integrated EAP server
CONFIG_EAP_PEAP=y

# EAP-GTC for the integrated EAP server
CONFIG_EAP_GTC=y

# EAP-TTLS for the integrated EAP server
CONFIG_EAP_TTLS=y

# EAP-SIM for the integrated EAP server
#CONFIG_EAP_SIM=y

# EAP-AKA for the integrated EAP server
#CONFIG_EAP_AKA=y

# EAP-PAX for the integrated EAP server
#CONFIG_EAP_PAX=y

# EAP-PSK for the integrated EAP server (this is _not_ needed for WPA-PSK)
#CONFIG_EAP_PSK=y

# EAP-SAKE for the integrated EAP server
#CONFIG_EAP_SAKE=y

# EAP-GPSK for the integrated EAP server
#CONFIG_EAP_GPSK=y
# Include support for optional SHA256 cipher suite in EAP-GPSK
#CONFIG_EAP_GPSK_SHA256=y

# PKCS#12 (PFX) support (used to read private key and certificate file from
# a file that usually has extension .p12 or .pfx)
CONFIG_PKCS12=y

# RADIUS authentication server. This provides access to the integrated EAP
# server from external hosts using RADIUS.
#CONFIG_RADIUS_SERVER=y

# Build IPv6 support for RADIUS operations
CONFIG_IPV6=y

Offline

#2 2008-02-09 14:13:39

Paris Heng
Member
From: Kuala Lumpur, Malaysia
Registered: 2008-02-09
Posts: 1
Website

Re: Desperately need hostapd with madwifi support

Dear phabulosa,

I also doing same sort of things like you. Madwifi + Hostapd

I able to build the Madwifi Driver (madwifi-0.9.3.1) + Hostapd (hostapd-0.5.5).

After all, to run the hostapd daemon, the following file is missing,

/etc/init.d/hostapd restart

So, I don't know how to run it. big_smile

Last edited by Paris Heng (2008-02-09 14:24:18)

Offline

#3 2009-04-11 00:52:28

once
Member
From: Taiwan
Registered: 2006-09-12
Posts: 266

Re: Desperately need hostapd with madwifi support

so, someone try ath5k + hostapd on kernel-2.6.29.1 ??

Offline

#4 2011-02-04 20:01:41

phoenixpb
Member
Registered: 2011-01-24
Posts: 15

Re: Desperately need hostapd with madwifi support

this work
sudo pacman -S hostapd
sudo pacman -S subversion

svn checkout http://madwifi-project.org/svn/madwifi/trunk madwifi
cd madwifi
make
sudo make install
sudo reboot

Offline

Board footer

Powered by FluxBB