2013-12-14 99 views
-1

我正嘗試在我的Beaglebone黑色上啓動WiFi接入點。 沒有brige。我只是想從我的手機連接到AP來設置一些自定義配置。BeagleBone WiFi接入點

我安裝hostapd成功,並編輯以下配置文件: 我使用Linux的埃(內核3.8)

等/網絡/接口

#When auto_bridge is "yes" then init.script makes bridge itself 
#when aut_bridge is "no" then init.script start /etc/network/bridge 
AUTO_BRIDGE=yes 

STP_ENABLE=no 
FD_TIMER=0 
GCINT_TIMER=0 

#BR0_USE_DHCP=no 
#BR0_IPADDR=192.168.0.50/24 

IPV4_FORWARD_ENABLE=yes 
START_IPTABLES=yes 

VLAN_START=yes 

WLAN_ENABLED=yes 
WLAN_FORCEIP=no 
WLAN_IN_BR0=yes 
WLAN_USE_DHCP=yes 
WLAN_IPADDR=192.168.0.5/24 
WLAN_MACADDR=00006c576976 
WLAN_BURST=no 

WLAN_USE_UNCHECKED_MIBS=no 

等/ udhcpd.conf

start   192.168.0.10 #default: 192.168.0.20 
end    192.168.0.15 #default: 192.168.0.254 

# The interface that udhcpd will use 

interface  wlan0   #default: eth0 

opt  dns  xxx.xxx.xxx.xxx xxx.xxx.xxx.xxx 
option subnet 255.255.255.0 
opt  router 192.168.0.5 
option lease 864000 

等/ hostapd/hostapd.conf

# Basic configuration 

interface=wlan0 
ssid=MyNet 
channel=1 
#bridge=br0 

# WPA and WPA2 configuration 

auth_algs=1 
ignore_broadcast_ssid=0 
wpa=3 
wpa_passphrase=aaaaaaaaaa 
wpa_key_mgmt=WPA-PSK 
wpa_pairwise=TKIP 
rsn_pairwise=CCMP 

# Hardware configuration 

driver=rtl871xdrv 
ieee80211n=1 
hw_mode=g 
device_name=RTL8188CU 
manufacturer=Realtek 

這之後我寫connamd行:

sh-4.2# udhcpd /etc/udhcpd.conf 
sh-4.2# hostapd /etc/hostapd/hostapd.conf 
Configuration file: /etc/hostapd/hostapd.conf 
drv->ifindex=4 
l2_sock_recv==l2_sock_xmit=0x0x63648 
+rtl871x_sta_deauth_ops, ff:ff:ff:ff:ff:ff is deauth, reason=2 
rtl871x_set_key_ops 
rtl871x_set_key_ops 
rtl871x_set_key_ops 
rtl871x_set_key_ops 
Using interface wlan0 with hwaddr 00:0f:13:76:1d:6b and ssid 'MyNet' 
rtl871x_set_wps_assoc_resp_ie 
rtl871x_set_wps_beacon_ie 
rtl871x_set_wps_probe_resp_ie 
rtl871x_set_key_ops 
rtl871x_set_beacon_ops 
rtl871x_set_hidden_ssid_ops 
+rtl871x_get_sta_wpaie, 00:a0:c6:fe:5e:ec is sta's address 

亞特這個我想從我的手機連接到AP。 見請hostapd的follwing日誌:

wlan0: STA 00:a0:c6:fe:5e:ec IEEE 802.11: associated 
rtl871x_set_key_ops 
rtl871x_set_key_ops 
rtl871x_set_key_ops 
+rtl871x_send_eapol 
+rtl871x_send_eapol 
rtl871x_set_key_ops 
wlan0: AP-STA-CONNECTED 00:a0:c6:fe:5e:ec 
wlan0: STA 00:a0:c6:fe:5e:ec RADIUS: starting accounting session 52AC6766-00000000 
wlan0: STA 00:a0:c6:fe:5e:ec WPA: pairwise key handshake completed (RSN) 
wlan0: STA 00:a0:c6:fe:5e:ec IEEE 802.11: disassociated 
wlan0: AP-STA-DISCONNECTED 00:a0:c6:fe:5e:ec 
rtl871x_set_key_ops 
rtl871x_set_key_ops 
+rtl871x_sta_remove_ops, 00:a0:c6:fe:5e:ec is sta address removed 
+rtl871x_get_sta_wpaie, 00:a0:c6:fe:5e:ec is sta's address 
wlan0: STA 00:a0:c6:fe:5e:ec IEEE 802.11: associated 
rtl871x_set_key_ops 
rtl871x_set_key_ops 
+rtl871x_send_eapol 
+rtl871x_send_eapol 
rtl871x_set_key_ops 
wlan0: AP-STA-CONNECTED 00:a0:c6:fe:5e:ec 
wlan0: STA 00:a0:c6:fe:5e:ec RADIUS: starting accounting session 52AC6766-00000001 
wlan0: STA 00:a0:c6:fe:5e:ec WPA: pairwise key handshake completed (RSN) 

在我的手機,我看到的消息:

Connecting 
Autentification 
Getting ip address 

Connecting 
Autentification 
Getting ip address 

Connecting 
Autentification 
Getting ip address 

我的手機不能連接到AP作爲一個結果。 我認爲這個問題在udhcpd中。

請幫我找到問題。

感謝

回答

相關問題