页次: 1
网卡情况:
lspci | grep Network
00:0c.0 Network controller: Ralink corp. RT2561/RT61 rev B 802.11g
02:00.0 Network controller: Broadcom Corporation BCM4321 802.11b/g/n (rev 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.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
到运行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.
最近编辑记录 smallville (2013-12-23 22:10:32)
离线
iw list 的结果贴出来?
离线
不好意思。我其实有两块无线网卡、初初 iw list 时看到支持AP,其实是另一块 RT2561/RT61 支持AP的。而我发问的这个是没支持的。(手机翻屏不容易啊)
而我有测试过RT2561 ,也是同样的错误提示。我RT2561 用的驱动是linux-firmware,现在要重新考虑驱动问题了。
谢谢百合提供的线索。
奇怪的是查了官网14e4:4329 这个芯片是支持AP的啊。
离线
页次: 1