Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
hostapd: Failed to set interface wlo1 into AP mode
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Networking & Security
View previous topic :: View next topic  
Author Message
yufw
n00b
n00b


Joined: 11 Nov 2013
Posts: 57

PostPosted: Fri Jun 13, 2014 7:49 am    Post subject: hostapd: Failed to set interface wlo1 into AP mode Reply with quote

I want to set my laptop as wifi hotspot for my Android phone. I have installed hostapd and I have following configuration in /etc/hostapd/hostapd.conf,
Code:
ssid=test
wpa_passphrase=secretpassword
interface=wlo1
bridge=br0
auth_algs=3
channel=7
driver=nl80211
hw_mode=g
logger_stdout=-1
logger_stdout_level=2
max_num_sta=5
rsn_pairwise=CCMP
wpa=2
wpa_key_mgmt=WPA-PSK
wpa_pairwise=TKIP CCMP

but hostpad.service just failed to start as I can see from this command,
Code:
# systemctl status hostapd
● hostapd.service - Hostapd IEEE 802.11 AP, IEEE 802.1X/WPA/WPA2/EAP/RADIUS Authenticator
   Loaded: loaded (/usr/lib64/systemd/system/hostapd.service; disabled)
   Active: failed (Result: exit-code) since Fri 2014-06-13 15:23:54 CST; 16min ago
  Process: 10278 ExecStart=/usr/sbin/hostapd /etc/hostapd/hostapd.conf (code=exited, status=1/FAILURE)
 Main PID: 10278 (code=exited, status=1/FAILURE)

Jun 13 15:23:54 gentoo systemd[1]: Started Hostapd IEEE 802.11 AP, IEEE 802.1X/WPA/WPA2/EAP/RADIUS Authenticator.
Jun 13 15:23:54 gentoo hostapd[10278]: Configuration file: /etc/hostapd/hostapd.conf
Jun 13 15:23:54 gentoo hostapd[10278]: nl80211: Failed to set interface wlo1 into AP mode
Jun 13 15:23:54 gentoo hostapd[10278]: nl80211 driver initialization failed.
Jun 13 15:23:54 gentoo systemd[1]: hostapd.service: main process exited, code=exited, status=1/FAILURE
Jun 13 15:23:54 gentoo systemd[1]: Unit hostapd.service entered failed state.

I have searched the web, and it says NetworkManager may make hostapd not work, but I do not use NetworkManager. What's more, whenever I start the hostapd.service, wlo1 goes from up to down. Could someone help me?
Back to top
View user's profile Send private message
yufw
n00b
n00b


Joined: 11 Nov 2013
Posts: 57

PostPosted: Mon Jun 16, 2014 1:02 pm    Post subject: Reply with quote

It turned out that I didn't set up my network bridge so I shouldn't have the bridge line in hostapd.conf.
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Networking & Security All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum