无线网卡bcm4321,hostapd起不了,各位帮忙看看。

回复
xblx
帖子: 274
注册时间: 2006-12-18 1:05
送出感谢: 0
接收感谢: 0

无线网卡bcm4321,hostapd起不了,各位帮忙看看。

#1

帖子 xblx » 2013-12-23 21:01

代码: 全选

lspci -vnn | grep 14e4 
02:00.0 Network controller [0280]: Broadcom Corporation BCM4321 802.11b/g/n [14e4:4329] (rev 01)
安装驱动:

代码: 全选

sudo yaourt -S broadcom-wl
至此ip link 已可显示接口wlp2s0:

代码: 全选

ip link set dev wlp2s0 up
ip addr add 192.168.10.2/24 broadcast 192.168.10.255 dev wlp2s0
ifconfig的情况:

代码: 全选

wlp2s0: flags=4163<UP,BROADCAST,RUNNING,MULTICAST>  mtu 1500
        inet 192.168.10.2  netmask 255.255.255.0  broadcast 192.168.10.255
        inet6 fe80::218:39ff:fe5c:5543  prefixlen 64  scopeid 0x20<link>
        ether 00:18:39:5c:55:43  txqueuelen 1000  (Ethernet)
        RX packets 0  bytes 0 (0.0 B)
        RX errors 0  dropped 0  overruns 0  frame 0
        TX packets 0  bytes 0 (0.0 B)
        TX errors 0  dropped 0 overruns 0  carrier 0  collisions 0
到运行hostapd这总是报错,谁帮忙找找原因?谢谢。

代码: 全选

hostapd -d /etc/hostapd/hostapd.conf
random: Trying to read entropy from /dev/random
Configuration file: /etc/hostapd/hostapd.conf
nl80211: interface wlp2s0 in phy phy0
rfkill: initial event: idx=0 type=1 op=0 soft=0 hard=0
netlink: Operstate: linkmode=0, operstate=6
Could not set interface wlp2s0 flags (DOWN): Operation not permitted
nl80211: Set mode ifindex 3 iftype 2 (STATION)
nl80211: Failed to set interface 3 to mode 2: -1 (Operation not permitted)
nl80211: Try mode change after setting interface down
Could not set interface wlp2s0 flags (DOWN): Operation not permitted
nl80211: Failed to set interface down
Could not set interface wlp2s0 flags (DOWN): Operation not permitted
nl80211: Failed to set interface down
Could not set interface wlp2s0 flags (DOWN): Operation not permitted
nl80211: Failed to set interface down
Could not set interface wlp2s0 flags (DOWN): Operation not permitted
nl80211: Failed to set interface down
Could not set interface wlp2s0 flags (DOWN): Operation not permitted
nl80211: Failed to set interface down
Could not set interface wlp2s0 flags (DOWN): Operation not permitted
nl80211: Failed to set interface down
Could not set interface wlp2s0 flags (DOWN): Operation not permitted
nl80211: Failed to set interface down
Could not set interface wlp2s0 flags (DOWN): Operation not permitted
nl80211: Failed to set interface down
Could not set interface wlp2s0 flags (DOWN): Operation not permitted
nl80211: Failed to set interface down
Could not set interface wlp2s0 flags (DOWN): Operation not permitted
nl80211: Failed to set interface down
nl80211: Interface mode change to 2 from 0 failed
nl80211 driver initialization failed.
hostapd.conf:

代码: 全选

cat /etc/hostapd/hostapd.conf
ssid=YourWifiName
wpa_passphrase=Somepassphrase
interface=wlp2s0
#bridge=br0
auth_algs=3
channel=7
driver=nl80211
hw_mode=g
logger_stdout=-1
logger_stdout_level=2
max_num_sta=5
rsn_pairwise=CCMP
wpa=2
wpa_key_mgmt=WPA-PSK
wpa_pairwise=TKIP CCMP
oldoldstone
帖子: 190
注册时间: 2009-08-05 11:38
送出感谢: 3 次
接收感谢: 1 次

Re: 无线网卡bcm4321,hostapd起不了,各位帮忙看看。

#2

帖子 oldoldstone » 2013-12-25 15:35

无线网卡名字不对? wlp2s0?
没有root权限?
可以试试这个
https://github.com/oblique/create_ap
头像
eexpress
帖子: 58428
注册时间: 2005-08-14 21:55
来自: 长沙
送出感谢: 4 次
接收感谢: 256 次

Re: 无线网卡bcm4321,hostapd起不了,各位帮忙看看。

#3

帖子 eexpress » 2013-12-25 16:14

hostapd你不需要sudo的?
● 鸣学
回复

回到 “Arch发行版”