|
我的CT刷了http://www.cubieforums.com/index.php?topic=1275.0的OS,按照/etc/modules里面的提示- # if you want access point mode, load wifi module this way: bcmdhd op_mode=2
- # and edit /etc/init.d/hostapd change DAEMON_CONF=/etc/hostapd.conf ; edit your\
- wifi net settings in hostapd.conf ; reboot
复制代码 因为他这个OS似乎已经装好hostapd了,所以我想应该是配置好了的。我的/etc/hostapd.conf配置是:- ssid=CUBIE
- interface=wlan0
- hw_mode=g
- channel=6
- bridge=br0
- logger_syslog=0
- logger_syslog_level=0
- wmm_enabled=0
- wpa=2
- preamble=1
- wpa_psk=66eb31d2b48d19ba216f2e50c6831ee11be98e2fa3a8075e30b866f4a5ccda27
- wpa_passphrase=12345678
- wpa_key_mgmt=WPA-PSK
- wpa_pairwise=TKIP
- rsn_pairwise=CCMP
- auth_algs=1
- macaddr_acl=0
复制代码 我的/etc/network/interfaces配置是:- # interfaces(5) file used by ifup(8) and ifdown(8)
- auto lo
- iface lo inet loopback
- auto eth0
- allow-hotplug eth0
- iface eth0 inet dhcp
复制代码 一些信息:- root@cubie:~# iwconfig wlan0
- wlan0 IEEE 802.11 ESSID:"CUBIE"
- Mode:Master Frequency:2.437 GHz Access Point: 02:1A:11:FA:F7:4D
- Bit Rate=65 Mb/s Tx-Power:32 dBm
- Retry min limit:7 RTS thr:off Fragment thr:off
- Encryption key:off
- Power Managementmode:All packets received
复制代码- root@cubie:~# ifconfig wlan0
- wlan0 Link encap:Ethernet HWaddr 02:1a:11:fa:f7:4d
- inet6 addr: fe80::1a:11ff:fefa:f74d/64 Scope:Link
- UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
- RX packets:9 errors:0 dropped:0 overruns:0 frame:0
- TX packets:13 errors:0 dropped:0 overruns:0 carrier:0
- collisions:0 txqueuelen:1000
- RX bytes:744 (744.0 B) TX bytes:1311 (1.2 KiB)
复制代码 外部设备,比如笔记本/s3可以搜索到我的wifi,但是连接不上。我把/etc/init.d/hostapd stop,运行hostapd /etc/hostapd.conf之后,当设备连接时,提示信息是:- wlan0: STA 78:92:9c:86:1c:38 IEEE 802.11: associated
- WPA: wpa_sm_step() called recursively
- wlan0: STA 78:92:9c:86:1c:38 IEEE 802.11: disassociated
- wlan0: STA 78:92:9c:86:1c:38 IEEE 802.11: associated
- wlan0: STA 78:92:9c:86:1c:38 IEEE 802.11: disassociated
- wlan0: STA 78:92:9c:86:1c:38 IEEE 802.11: associated
- WPA: wpa_sm_step() called recursively
- wlan0: STA 78:92:9c:86:1c:38 IEEE 802.11: disassociated
- wlan0: STA 78:92:9c:86:1c:38 IEEE 802.11: associated
- wlan0: STA 78:92:9c:86:1c:38 IEEE 802.11: disassociated
- wlan0: STA 78:92:9c:86:1c:38 IEEE 802.11: associated
复制代码 昨天搞了一天了,hostapd版本是:
root@cubie:~# hostapd -v
hostapd v2.1
User space daemon for IEEE 802.11 AP management,
IEEE 802.1X/WPA/WPA2/EAP/RADIUS Authenticator
Copyright (c) 2002-2014, Jouni Malinen <j@w1.fi> and contributors
希望弄过的朋友能提示一下。。因为我ubuntu开得wifi CT连不了,所以才想用CT当作校园网的路由器。
先谢谢了!希望与大家交流更多关于CT的知识~
|
|