Jump to content

Problems with hostapd


Morigal

Recommended Posts

Hello,

 

I'm using the Wheezy Image with Kernel 3.4.107-cubietruck, downloaded 25th May 2015, on my Cubietruck.

 

Working through the Guide "Enable Access point mode" I ended up having a running hostapd with a ESSID

which my clients can see but can not connect.

 

I tried with default config given by the image (ssid=cubietruck and wpa=2 with wpa_passphrase=12345678).

I also tried disabling wpa (wpa=0). But no client can connect.

 

Starting "hostapd /etc/hostapd.conf" prints

root@cubietruck:~# hostapd /etc/hostapd.conf
Configuration file: /etc/hostapd.conf
nl80211: Could not re-add multicast membership for vendor events: -2 (No such file or directory)
Using interface wlan0 with hwaddr 02:1a:11:f2:53:57 and ssid "cubietruck"
wlan0: interface state UNINITIALIZED->ENABLED
wlan0: AP-ENABLED 
wlan0: STA d4:8f:33:c1:65:74 IEEE 802.11: associated
wlan0: AP-STA-CONNECTED d4:8f:33:c1:65:74
wlan0: STA d4:8f:33:c1:65:74 RADIUS: starting accounting session 5560CD08-00000000
wlan0: STA d4:8f:33:c1:65:74 IEEE 802.11: disassociated
wlan0: AP-STA-DISCONNECTED d4:8f:33:c1:65:74
^Cwlan0: interface state ENABLED->DISABLED
wlan0: AP-DISABLED 
nl80211: deinit ifname=wlan0 disabled_11b_rates=0

The bold text is what I get, when a clients tries to connect.

 

Any idea how to make hostapd work?

Link to comment
Share on other sites

Cubietruck has one exception and only with kernel 3.4.x - wifi module must be loaded (/etc/modules) this way to enable AP mode:

bcmdhd op_mode=2

I suggest you to use this predefined configuration - which you probably already set.

/etc/network/interfaces.hostapd  

You need to have some DHCP server running on the network - which usually is.

Link to comment
Share on other sites

Hello, Igor!

Please Help me setting hostapp.

 

I'm using the Wheezy and jessie Image with Kernel 3.4.107 OrangePi mini

 

root@orangepi:~# cat /etc/network/interfaces

 


auto lo br0
iface lo inet loopback

allow-hotplug eth0
iface eth0 inet manual

allow-hotplug wlan0
iface wlan0 inet manual

iface br0 inet dhcp
bridge_ports eth0 wlan0
#hwaddress ether # will be added at first boot

 

 

 

root@orangepi:~# ifconfig

 

 

br0       Link encap:Ethernet  HWaddr 00:e0:4c:1c:1c:1c
          inet addr:10.0.0.75  Bcast:10.0.0.255  Mask:255.255.255.0
          inet6 addr: fe80::2e0:4cff:fea2:1c1c/64 Scope:Link
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:185883 errors:0 dropped:0 overruns:0 frame:0
          TX packets:6456 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:0
          RX bytes:13922051 (13.2 MiB)  TX bytes:621324 (606.7 KiB)

eth0      Link encap:Ethernet  HWaddr 02:17:04:61:61:80
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:208530 errors:0 dropped:633 overruns:0 frame:0
          TX packets:6617 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000
          RX bytes:21024049 (20.0 MiB)  TX bytes:719634 (702.7 KiB)
          Interrupt:117

lo        Link encap:Local Loopback
          inet addr:127.0.0.1  Mask:255.0.0.0
          inet6 addr: ::1/128 Scope:Host
          UP LOOPBACK RUNNING  MTU:16436  Metric:1
          RX packets:9 errors:0 dropped:0 overruns:0 frame:0
          TX packets:9 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:0
          RX bytes:1216 (1.1 KiB)  TX bytes:1216 (1.1 KiB)

wlan0     Link encap:Ethernet  HWaddr 00:e0:4c:1c:1c:1c
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:0 errors:0 dropped:0 overruns:0 frame:0
          TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000
          RX bytes:0 (0.0 B)  TX bytes:0 (0.0 B)

 

 

 

 

 

root@orangepi:~# iwlist wlan0 scan

 

 

wlan0     Scan completed :
          Cell 01 - Address: 00:1A:70:32:19:C8
                    ESSID:"Europol"
                    Protocol:IEEE 802.11bg
                    Mode:Master
                    Frequency:2.462 GHz (Channel 11)
                    Encryption key:on
                    Bit Rates:54 Mb/s
                    Extra:rsn_ie=30140100000fac040100000fac040100000fac020000
                    IE: IEEE 802.11i/WPA2 Version 1
                        Group Cipher : CCMP
                        Pairwise Ciphers (1) : CCMP
                        Authentication Suites (1) : PSK
                    Quality=0/100  Signal level=-64 dBm
          Cell 02 - Address: 00:1A:70:32:50:E8
                    ESSID:"europol_learnroom"
                    Protocol:IEEE 802.11bg
                    Mode:Master
                    Frequency:2.462 GHz (Channel 11)
                    Encryption key:on
                    Bit Rates:54 Mb/s
                    Extra:wpa_ie=dd1c0050f20101000050f20202000050f2040050f20201000050f2020000
                    IE: WPA Version 1
                        Group Cipher : TKIP
                        Pairwise Ciphers (2) : CCMP TKIP
                        Authentication Suites (1) : PSK
                    Extra:rsn_ie=30180100000fac020200000fac04000fac020100000fac020000
                    IE: IEEE 802.11i/WPA2 Version 1
                        Group Cipher : TKIP
                        Pairwise Ciphers (2) : CCMP TKIP
                        Authentication Suites (1) : PSK
                    Quality=101/100  Signal level=-71 dBm
 

 

 

 

root@orangepi:~# iwconfig

 

 

lo        no wireless extensions.

br0       no wireless extensions.

tunl0     no wireless extensions.

wlan0     unassociated  Nickname:"<WIFI@REALTEK>"
          Mode:Auto  Frequency=2.412 GHz  Access Point: Not-Associated
          Sensitivity:0/0
          Retry:off   RTS thr:off   Fragment thr:off
          Encryption key:off
          Power Management:off
          Link Quality=0/100  Signal level=0 dBm  Noise level=0 dBm
          Rx invalid nwid:0  Rx invalid crypt:0  Rx invalid frag:0
          Tx excessive retries:0  Invalid misc:0   Missed beacon:0

eth0      no wireless extensions.

bond0     no wireless extensions.

 

 

 

root@orangepi:~# hostapd /etc/hostapd.conf

 

 

Configuration file: /etc/hostapd.conf
nl80211: deinit ifname=wlan0 disabled_11b_rates=0
nl80211 driver initialization failed.
wlan0: interface state UNINITIALIZED->DISABLED
wlan0: AP-DISABLED

hostapd_free_hapd_data: Interface wlan0 wasn't started

 

 

 

root@orangepi:~# hostapd /etc/hostapd.conf-rt

 

 

Configuration file: /etc/hostapd.conf-rt
Line 10: invalid/unknown driver 'rtl871xdrv'
1 errors found in configuration file '/etc/hostapd.conf-rt'
Failed to set up interface with /etc/hostapd.conf-rt
Failed to initialize interface

 

Link to comment
Share on other sites

Guest
This topic is now closed to further replies.
×
×
  • Create New...

Important Information

Terms of Use - Privacy Policy - Guidelines