BeagleBone的WiFi接入点

时间:2013-12-14 15:10:04

标签: wifi dhcp angstrom-linux beagleboneblack access-point

我正在尝试在我的Beaglebone Black上启动WiFi接入点。 没有桥梁。我只想通过手机连接到AP来设置一些自定义配置。

我安装了hostapd成功,并编辑以下配置文件: 我正在使用Angstrom 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的以下日志:

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中存在这个问题。

请帮我找个问题。

由于

1 个答案:

答案 0 :(得分:1)

也许可以参考http://fleshandmachines.wordpress.com/2012/10/04/wifi-acces-point-on-beaglebone-with-dhcp/

总结一下,说埃不支持你想做的事。这个解决方案使用debian。