You are not logged in.

#1 2013-03-11 19:29:33

nu_kru
Member
Registered: 2009-12-14
Posts: 7

hostapd (mode master) not found kernel 3.7.10, working kernel lts

Hi,

I'm trying to create an wifi hotspot from my latptop following.

After many tests trying to use a usb in wifi-master mode, so you can use it as Access Point,I saw that in the 3.7.10 kernel is not possible, always hostapd fails.

As in a pc of a roommate (ubuntu 12.10 or 12.04) hostapd work fine, i've tried in the linux-lts and all work fine.

the wifis tested and does not work in 3.7.10

tp-link-wn722n (0cf3:9271 Atheros Communications, Inc. AR9271 802.11n)
ct-wn4320z 0ace:1211 ZyDAS ZD1211 802.11g

why this happens? bug in the drivers?

Last edited by nu_kru (2013-03-13 23:27:14)

Offline

#2 2013-03-11 19:50:55

Xyne
Administrator/PM
Registered: 2008-08-03
Posts: 6,965
Website

Re: hostapd (mode master) not found kernel 3.7.10, working kernel lts

I was playing around with hostapd last week (so linux 3.7.10). I had to play around with the settings a bit but in the end I managed to get WPA2 working.

Here's the configuration that I used:

interface=wlan0
driver=nl80211
eapol_version=2

ssid=Foonet
#ignore_broadcast_ssid=1
#bridge=br0

#auth_algs=1
wpa=2
wpa_passphrase=somelongsecurepassphrasegeneratedfrom/dev/random
wpa_key_mgmt=WPA-PSK
wpa_pairwise=TKIP CCMP
rsn_pairwise=CCMP

channel=6
# b required for Macbook
#hw_mode=b
hw_mode=g

wmm_enabled=1
ieee80211n=1
ht_capab=[HT40+][SHORT-GI-40][DSSS_CCK-40]

Note that "bridge" is commented out.

If that doesn't work, post your hostapd configuration file along with the error messages that you are getting (console output, dmesg output, log files). Check the same on the client if hostapd starts but fails to connect clients.


My Arch Linux StuffForum EtiquetteCommunity Ethos - Arch is not for everyone

Offline

#3 2013-03-11 21:03:25

nu_kru
Member
Registered: 2009-12-14
Posts: 7

Re: hostapd (mode master) not found kernel 3.7.10, working kernel lts

Oops, sorry I explained bad.

In 3.7.10-1 when I use hostapd with any configuration file, there is a failure to put the wifi in AP mode

for example

hostapd-minimal.conf:

interface=wlan0
driver=nl80211
ssid=test
channel=1 

$ hostapd ./hostapd-minimal.conf 
Configuration file: ./hostapd-minimal.conf
nl80211: Failed to set interface wlan0 into AP mode
nl80211 driver initialization failed.
$ systemctl start hostapd /home/julio/hostapd-minimal.conf 
Failed to issue method call: Unit home-julio-hostapd\x2dminimal.conf.mount failed to load: No such file or directory. See system logs and 'systemctl status home-julio-hostapd\x2dminimal.conf.mount' for details.
Job for hostapd.service failed. See 'systemctl status hostapd.service' and 'journalctl -xn' for details.


$ systemctl status hostapd.service
hostapd.service - Hostapd IEEE 802.11 AP, IEEE 802.1X/WPA/WPA2/EAP/RADIUS Authenticator
          Loaded: loaded (/usr/lib/systemd/system/hostapd.service; disabled)
          Active: failed (Result: exit-code) since lun 2013-03-11 21:47:53 CET; 29s ago
         Process: 1465 ExecStart=/usr/bin/hostapd /etc/hostapd/hostapd.conf -P /run/hostapd.pid -B (code=exited, status=1/FAILURE)

mar 11 21:47:53 arch64 systemd[1]: Starting Hostapd IEEE 802.11 AP, IEEE 802.1X/WPA/WPA2/EAP/RADIUS Authenticator...
mar 11 21:47:53 arch64 hostapd[1465]: Configuration file: /etc/hostapd/hostapd.conf
mar 11 21:47:53 arch64 hostapd[1465]: nl80211: Failed to set interface wlan0 into AP mode
mar 11 21:47:53 arch64 hostapd[1465]: nl80211 driver initialization failed.
mar 11 21:47:53 arch64 systemd[1]: hostapd.service: control process exited, code=exited status=1
mar 11 21:47:53 arch64 systemd[1]: Failed to start Hostapd IEEE 802.11 AP, IEEE 802.1X/WPA/WPA2/EAP/RADIUS Authenticator.
mar 11 21:47:53 arch64 systemd[1]: Unit hostapd.service entered failed state



$journalctl -xn
-- Logs begin at dom 2012-10-21 14:09:02 CEST, end at lun 2013-03-11 21:49:02 CET. --
mar 11 21:47:53 arch64 hostapd[1465]: nl80211 driver initialization failed.
mar 11 21:47:53 arch64 systemd[1]: hostapd.service: control process exited, code=exited status=1
mar 11 21:47:53 arch64 systemd[1]: Failed to start Hostapd IEEE 802.11 AP, IEEE 802.1X/WPA/WPA2/EAP/RADIUS Authenticator.
-- Subject: Unit hostapd.service has failed
-- Defined-By: systemd
-- Support: http://lists.freedesktop.org/mailman/listinfo/systemd-devel
-- Documentation: http://www.freedesktop.org/wiki/Software/systemd/catalog/be02cf6855d2428ba40df7e9d022f03d
-- 
-- Unit hostapd.service has failed.
-- 
-- The result is failed.
mar 11 21:47:53 arch64 systemd[1]: Unit hostapd.service entered failed state
mar 11 21:47:53 arch64 sudo[1462]: pam_unix(sudo:session): session closed for user root
mar 11 21:48:22 arch64 sudo[1468]: julio : TTY=pts/0 ; PWD=/home/julio ; USER=root ; COMMAND=/usr/bin/systemctl status hostapd.service
mar 11 21:48:22 arch64 sudo[1468]: pam_unix(sudo:session): session opened for user root by julio(uid=0)
mar 11 21:48:23 arch64 sudo[1468]: pam_unix(sudo:session): session closed for user root
mar 11 21:49:02 arch64 sudo[1470]: julio : TTY=pts/0 ; PWD=/home/julio ; USER=root ; COMMAND=/usr/bin/journalctl -xn
mar 11 21:49:02 arch64 sudo[1470]: pam_unix(sudo:session): session opened for user root by julio(uid=0)

When i use linux-ltx, all work fine

$ hostapd hostapd3.conf [hostapd3.con is your hotspad]
20/40 MHz operation not permitted on channel pri=6 sec=10 based on overlapping BSSes
Using interface wlan0 with hwaddr a0:f3:c1:1a:fd:73 and ssid "Foonet"
wlan0: STA 84:00:d2:ba:36:b8 IEEE 802.11: authenticated
wlan0: STA 84:00:d2:ba:36:b8 IEEE 802.11: associated (aid 1)
wlan0: AP-STA-CONNECTED 84:00:d2:ba:36:b8
wlan0: STA 84:00:d2:ba:36:b8 RADIUS: starting accounting session 513E3A95-00000000
wlan0: STA 84:00:d2:ba:36:b8 WPA: pairwise key handshake completed (RSN)
rfkill: WLAN unblocked
wlan0: STA 00:02:e3:44:71:1f IEEE 802.11: authenticated
wlan0: STA 00:02:e3:44:71:1f IEEE 802.11: associated (aid 2)
wlan0: AP-STA-CONNECTED 00:02:e3:44:71:1f
wlan0: STA 00:02:e3:44:71:1f RADIUS: starting accounting session 513E3A95-00000001
wlan0: STA 00:02:e3:44:71:1f WPA: pairwise key handshake completed (RSN)
wlan0: STA 84:00:d2:ba:36:b8 IEEE 802.11: authenticated
wlan0: STA 84:00:d2:ba:36:b8 IEEE 802.11: associated (aid 1)
wlan0: STA 84:00:d2:ba:36:b8 RADIUS: starting accounting session 513E3A95-00000000
wlan0: STA 84:00:d2:ba:36:b8 WPA: pairwise key handshake completed (RSN)
wlan0: AP-STA-DISCONNECTED 84:00:d2:ba:36:b8
wlan0: STA 84:00:d2:ba:36:b8 IEEE 802.11: disassociated
wlan0: STA 84:00:d2:ba:36:b8 IEEE 802.11: deauthenticated due to inactivity (timer DEAUTH/REMOVE) 


Using the kernel-lts, hostapd does not fail to put the wifi into AP mode

So I think that is bug driver / kernel

Offline

#4 2013-03-11 21:16:17

Xyne
Administrator/PM
Registered: 2008-08-03
Posts: 6,965
Website

Re: hostapd (mode master) not found kernel 3.7.10, working kernel lts

Ah smile

It does seem like a kernel/driver bug. I doubt that I have any suggestions to offer that you haven't considered already so I'll just bow out and hope someone else can help.


My Arch Linux StuffForum EtiquetteCommunity Ethos - Arch is not for everyone

Offline

Board footer

Powered by FluxBB