Sign in to follow this  
Followers 0
binary_lulz

installing hostapd in fc11 preview

7 posts in this topic

So to run my laptop as an ap I need to get hostapd installed. I tried doing it through yum, with no luck. I tried installing an rpm, but got told it needed another rpm, and when I googled and installed that rpm that one gave me errors...

How can I install hostapd? Or might it already be on the system? Typing sudo hostapd or man hostapd brings up nothing. I need to use the newest linux kernel to do what I want to do (hence using FC11 preview) but without hostapd I can't set up master mode, and thus can't function as an AP.

Any help is greatly appreciated!

0

Share this post


Link to post
Share on other sites

What happens with yum? If FC11 doesn't have a pre-built model for its package manager you might need to compile it from source to support the latest kernel.

Edited by tekio
0

Share this post


Link to post
Share on other sites
What happens with yum? If FC11 doesn't have a pre-built model for its package manager you might need to compile it from source to support the latest kernel.

I figured that was the issue.

I downloaded the source from http://hostap.epitest.fi/hostapd/ and cded to the directory but get this error when I ran Make:

make: cc: Command not found
make: *** [hostapd.o] Error 127

0

Share this post


Link to post
Share on other sites

try:

export cc=gcc

0

Share this post


Link to post
Share on other sites
try:

export cc=gcc

That should really be done for you by the configure script.

You need to learn how to install software from source first. You need to install GCC, development packages, etc before you can even start with that. I have no idea how to do that on Fedora, but on Ubuntu you install a meta-package called build-essential that has all the dependencies you'll need. Fedora might have a similar package. You'll also need the kernel headers for your kernel. Once you have all that installed, the normal way of installing something from source is to run the configure script, then make, then make install. Make sure there are no errors at each step, though once you work through the kinks in the configure script, everything should work. See the README and INSTALL instructions in the source for any extra steps you have to take.

./configure
make
sudo make install

0

Share this post


Link to post
Share on other sites

So if I'm reading this error right, hostapd and nl80211 are working, but something else is causing an error:

(Note: Right now I'm not focused on putting a bridge or enabling DHCP or anything like that, I'm just trying to get a basic ssid broadcasting that clients can connect to... certain architectures were causing conflicts with madwifi, so I'm trying to see if these conflicts persist when using hostapd and mac80211 before adding in any additional functionality.

[songwhale@localhost hostapd]$ sudo hostapd ~/hostapd.conf
[sudo] password for songwhale:
Configuration file: /home/songwhale/hostapd.conf
Failed to set interface wlan0 to master mode.
nl80211 driver initialization failed.
ELOOP: remaining socket: sock=5 eloop_data=0x89dce00 user_data=(nil)
handler=0x807ac90

Edited by Binary_Lulz
0

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!


Register a new account

Sign in

Already have an account? Sign in here.


Sign In Now
Sign in to follow this  
Followers 0