Forums

Skip to content

Advanced search
  • Quick links
    • Unanswered topics
    • Active topics
    • Search
  • FAQ
  • Login
  • Register
  • Board index Assistance Networking & Security
  • Search

hostapd won't work with the prism54 driver

Having problems getting connected to the internet or running a server? Wondering about securing your box? Ask here.
Post Reply
Advanced search
3 posts • Page 1 of 1
Author
Message
gsurbey
Apprentice
Apprentice
User avatar
Posts: 212
Joined: Mon Mar 24, 2003 10:52 am
Location: Nashua, NH
Contact:
Contact gsurbey
Website

hostapd won't work with the prism54 driver

  • Quote

Post by gsurbey » Tue May 24, 2005 9:02 pm

I'm trying to get my prism54 card to work as a WPA enabled Access Point. I know that on the prism54 site it states that there is no wireless client wpa support however on the hostapd site it states that it will run with the Prism54 driver to create a WPA Access Point. So I downloaded the prism54-svn=20050501 snapshot and followed these instructions in order to be sure I have the latest driver. I also placed "=net-wireless/hostapd-0.4.1 ~x86" in my /etc/portage/package.keywords file so I emerged the latest version of that.

Still, I get the following error:

Code: Select all

testbox ~ # /usr/sbin/hostapd -d /etc/hostapd/hostapd.conf
Configuration file: /etc/hostapd/hostapd.conf
Opening raw packet socket for ifindex 6
ioctl(SIOCGIFINDEX): No such device
prism54 driver initialization failed.
rmdir[ctrl_interface]: No such file or directory
This error has been reported elsewhere. Anyone have ideas?

My /etc/conf.d/hostapd file:

Code: Select all

INTERFACES="eth1"
CONFIGS="/etc/hostapd/hostapd.conf"
OPTIONS="-B"
My /etc/hostapd/hostapd.conf file:

Code: Select all

interface=eth1
driver=prism54
logger_syslog=-1
logger_syslog_level=2
logger_stdout=-1
logger_stdout_level=2
debug=0
dump_file=/tmp/hostapd.dump
ctrl_interface=/var/run/hostapd
ctrl_interface_group=0
ssid=test
macaddr_acl=0
auth_algs=3
eap_authenticator=0
eap_message=hello
eapol_key_index_workaround=0
own_ip_addr=10.1.2.231
wpa=1
wpa_passphrase=testing123
wpa_key_mgmt=WPA-PSK
wpa_pairwise=TKIP CCMP
-Greg Surbey
Top
ziererk
n00b
n00b
Posts: 32
Joined: Fri Mar 26, 2004 1:38 pm
Location: Germany

  • Quote

Post by ziererk » Fri Apr 07, 2006 7:21 pm

Hi.
many peoples had this problem and no one got an answer.

If you are still interested, I solved this problem this way:
Download the source code from http://hostap.epitest.fi/releases/hostapd-0.4.8.tar.gz
Modify the driver_prism54.c and remove in line 976 (snprintf(ifr.ifr_name, sizeof(ifr.ifr_name), "%sap", drv->iface)) the *ap* from "%sap".

This is because if you set the interface to "eth1" hostapd tries to open "eth1ap" which doesn't exist.
I don't know why "ethXap" is used instead of "ethX", but it works for me.

Regards,
Klaus
Top
gsurbey
Apprentice
Apprentice
User avatar
Posts: 212
Joined: Mon Mar 24, 2003 10:52 am
Location: Nashua, NH
Contact:
Contact gsurbey
Website

  • Quote

Post by gsurbey » Tue Apr 11, 2006 10:17 am

Thank you for your very informative reply ziererk. It worked! :D
This is how I modified my install:

Code: Select all

ACCEPT_KEYWORDS="~x86" emerge -f hostapd
mv /usr/portage/distfiles/hostapd-0.5.7.tar.gz .
tar -xvf hostapd-0.5.7.tar.gz
cd hostapd-0.5.7
vi driver_prism54.c
Line 1006
cd ..
tar -czv hostapd-0.5.7 -f hostapd-0.5.7.tar.gz
rm -R hostapd-0.5.7/
mv hostapd-0.5.7.tar.gz /usr/portage/distfiles/
ebuild /usr/portage/net-wireless/hostapd/hostapd-0.5.7.ebuild digest
ACCEPT_KEYWORDS="~x86" emerge hostapd
However I still can't get hostapd to work correctly. No matter how I do the settings WEP or WAP my wireless access point always shows up as open and unsecured.
-Greg Surbey
Top
Post Reply

3 posts • Page 1 of 1

Return to “Networking & Security”

Jump to
  • Assistance
  • ↳   News & Announcements
  • ↳   Frequently Asked Questions
  • ↳   Installing Gentoo
  • ↳   Multimedia
  • ↳   Desktop Environments
  • ↳   Networking & Security
  • ↳   Kernel & Hardware
  • ↳   Portage & Programming
  • ↳   Gamers & Players
  • ↳   Other Things Gentoo
  • ↳   Unsupported Software
  • Discussion & Documentation
  • ↳   Documentation, Tips & Tricks
  • ↳   Gentoo Chat
  • ↳   Gentoo Forums Feedback
  • ↳   Duplicate Threads
  • International Gentoo Users
  • ↳   中文 (Chinese)
  • ↳   Dutch
  • ↳   Finnish
  • ↳   French
  • ↳   Deutsches Forum (German)
  • ↳   Diskussionsforum
  • ↳   Deutsche Dokumentation
  • ↳   Greek
  • ↳   Forum italiano (Italian)
  • ↳   Forum di discussione italiano
  • ↳   Risorse italiane (documentazione e tools)
  • ↳   Polskie forum (Polish)
  • ↳   Instalacja i sprzęt
  • ↳   Polish OTW
  • ↳   Portuguese
  • ↳   Documentação, Ferramentas e Dicas
  • ↳   Russian
  • ↳   Scandinavian
  • ↳   Spanish
  • ↳   Other Languages
  • Architectures & Platforms
  • ↳   Gentoo on ARM
  • ↳   Gentoo on PPC
  • ↳   Gentoo on Sparc
  • ↳   Gentoo on Alternative Architectures
  • ↳   Gentoo on AMD64
  • ↳   Gentoo for Mac OS X (Portage for Mac OS X)
  • Board index
  • All times are UTC
  • Delete cookies

© 2001–2026 Gentoo Foundation, Inc.

Powered by phpBB® Forum Software © phpBB Limited

Privacy Policy

 

 

magic