hostapd下ubuntu无法开启无线热点

包含网卡/无线网的网络问题和ADSL/校园网/宽带拨号支持及代理/共享等网络使用问题
回复
头像
zeroer00
帖子: 69
注册时间: 2011-08-22 10:13

hostapd下ubuntu无法开启无线热点

#1

帖子 zeroer00 »

系统:ubuntu gnome 14.04
无线网卡:TP-LINK TL-WN722N
工具:ndiswrapper+E大的无线脚本:viewtopic.php?p=3016597#p3016597

TL-WN722N用ndiswrapper驱动:

代码: 全选

$ ndiswrapper -l
netathurx : driver installed
	device (0CF3:9271) present (alternate driver: ath9k_htc)
进系统自带的网络管理,已经成功驱动并可以收到无线信号。

运行脚本显示:

代码: 全选

sudo sh ~/hostapd 
		 * AP
		 * AP/VLAN
		 * AP/VLAN
		 * AP: AP: 0x00 0x10 0x20 0x30 0x40 0x50 0x60 0x70 0x80 0x90 0xa0 0xb0 0xc0 0xd0 0xe0 0xf0
                 * AP/VLAN: 0x00 0x10 0x20 0x30 0x40 0x50 0x60 0x70 0x80 0x90 0xa0 0xb0 0xc0 0xd0 0xe0 0xf0
                 * AP: 0x00 0x20 0x40 0xa0 0xb0 0xc0 0xd0
                 * AP/VLAN: 0x00 0x20 0x40 0xa0 0xb0 0xc0 0xd0
net.ipv4.ip_forward = 1
Internet Systems Consortium DHCP Server 4.2.4
Copyright 2004-2012 Internet Systems Consortium.
All rights reserved.
For info, please visit https://www.isc.org/software/dhcp/
Wrote 0 leases to leases file.
Listening on LPF/wlan0/f4:ec:**:**:**:86/192.168.0.0/24
Sending on   LPF/wlan0/f4:ec:**:**:**:86/192.168.0.0/24
Sending on   Socket/fallback/fallback-net
random: Trying to read entropy from /dev/random
Configuration file: /tmp/hostapd.conf
nl80211:Could not add multicast membership for vendor events: -2 (No such file or directory)
rfkill: initial event: idx=1 type=1 op=0 soft=0 hard=0
nl80211: Supported cipher 00-0f-ac:1
nl80211: Supported cipher 00-0f-ac:5
nl80211: Supported cipher 00-0f-ac:2
nl80211: Supported cipher 00-0f-ac:4
nl80211: Supported cipher 00-0f-ac:6
nl80211: Using driver-based off-channel TX
nl80211: Use separate P2P group interface (driver advertised support)
nl80211: interface wlan0 in phy phy1
nl80211: Set mode ifindex 6 iftype 3 (AP)
nl80211: Failed to set interface 6 to mode 3: -16 (Device or resource busy)
nl80211: Try mode change after setting interface down
nl80211: Set mode ifindex 6 iftype 3 (AP)
nl80211: Mode change succeeded while interface is down
nl80211: Setup AP(wlan0) - device_ap_sme=0 use_monitor=0
nl80211: Subscribe to mgmt frames with AP handle 0x1395780
nl80211: Register frame type=0xb0 nl_handle=0x1395780 match=
nl80211: Register frame type=0x0 nl_handle=0x1395780 match=
nl80211: Register frame type=0x20 nl_handle=0x1395780 match=
nl80211: Register frame type=0xa0 nl_handle=0x1395780 match=
nl80211: Register frame type=0xc0 nl_handle=0x1395780 match=
nl80211: Register frame type=0xd0 nl_handle=0x1395780 match=
nl80211: Register frame command failed (type=208): ret=-114 (Operation already in progress)
nl80211: Register frame match - hexdump(len=0): [NULL]
nl80211: Could not configure driver mode
nl80211: Remove monitor interface: refcount=0
nl80211: Remove beacon (ifindex=6)
netlink: Operstate: ifindex=6 linkmode=0 (kernel-control), operstate=6 (IF_OPER_UP)
nl80211: Set mode ifindex 6 iftype 2 (STATION)
nl80211: Failed to set interface 6 to mode 2: -16 (Device or resource busy)
nl80211: Try mode change after setting interface down
nl80211: Set mode ifindex 6 iftype 2 (STATION)
nl80211: Mode change succeeded while interface is down
nl80211: Teardown AP(wlan0) - device_ap_sme=0 use_monitor=0
nl80211 driver initialization failed.
hostapd_interface_deinit_free(0x1394d90)
hostapd_interface_deinit_free: num_bss=1 conf->num_bss=1
hostapd_interface_deinit(0x1394d90)
hostapd_bss_deinit: deinit bss wlan0
hostapd_cleanup(hapd=0x13960f0 (wlan0))
hostapd_free_hapd_data: Interface wlan0 wasn't started
hostapd_interface_deinit_free: driver=(nil) drv_priv=(nil) -> hapd_deinit
hostapd_interface_free(0x1394d90)
hostapd_interface_free: free hapd 0x13960f0
hostapd_cleanup_iface(0x1394d90)
hostapd_cleanup_iface_partial(0x1394d90)
hostapd_cleanup_iface: free iface=0x1394d90
对啦,我还开着miredo。

这样开启不成功,手机也收不到热点。
头像
zeroer00
帖子: 69
注册时间: 2011-08-22 10:13

Re: hostapd下ubuntu无法开启无线热点

#2

帖子 zeroer00 »

各位大神,帮帮小弟 :em01
回复