无法启动hostapd,求大侠们帮助!!感激涕零!!急。。

saswertuygjhjh 2012-03-15 09:32:39
hostapd编译成功后,配置好/etc/hostapd/hostapd.conf后,执行以下指令,有错误!!

[root@localhost hostapd]# hostapd hostapd.conf
Configuration file: hostapd.conf
Using interface wlan0 with hwaddr 48:5d:60:a3:bd:a7 and ssid 'mySoftAp'
wlan0: STA 00:23:89:a3:51:a0 IEEE 802.11: disassociated
wlan0: IEEE 802.11 disassociated
Segmentation fault (core dumped)
看debug信息:
[root@localhost hostapd]# hostapd -dd hostapd.conf
Configuration file: hostapd.conf
ctrl_interface_group=10 (from group name 'wheel')
nl80211: Register Action command failed: ret=-19 (No such device)
nl80211: Register Action match - hexdump(len=1): 06
nl80211: Failed to register Action frame processing - ignore for now
nl80211: Add own interface ifindex 0
Could not read interface wlan0 flags: No such device
nl80211 driver initialization failed.
ELOOP: remaining socket: sock=4 eloop_data=0x82dd858 user_data=0x82dead8 handler=0x8074ec0
ELOOP: remaining socket: sock=6 eloop_data=0x82e0720 user_data=(nil) handler=0x807f0a0
[root@localhost hostapd]# iwconfig
lo no wireless extensions.

p3p1 no wireless extensions.

wlan0 IEEE 802.11bgn ESSID:"admin"
Mode:Managed Frequency:2.437 GHz Access Point: FC:75:16:49:F2:40
Bit Rate=40.5 Mb/s Tx-Power=20 dBm
Retry long limit:7 RTS thr:off Fragment thr:off
Encryption key:off
Power Management:off
Link Quality=55/70 Signal level=-55 dBm
Rx invalid nwid:0 Rx invalid crypt:0 Rx invalid frag:0
Tx excessive retries:0 Invalid misc:2 Missed beacon:0

[root@localhost hostapd]# hostapd -dd hostapd.conf
Configuration file: hostapd.conf
ctrl_interface_group=10 (from group name 'wheel')
nl80211: Register Action command failed: ret=-114 (Operation already in progress)
nl80211: Register Action match - hexdump(len=1): 06
nl80211: Failed to register Action frame processing - ignore for now
nl80211: Add own interface ifindex 8
nl80211: New interface mon.wlan0 created: ifindex=9
nl80211: Add own interface ifindex 9
BSS count 1, BSSID mask 00:00:00:00:00:00 (0 bits)
nl80211: Added 802.11b mode based on 802.11g information
Allowed channel: mode=1 chan=1 freq=2412 MHz max_tx_power=20 dBm
Allowed channel: mode=1 chan=2 freq=2417 MHz max_tx_power=20 dBm
Allowed channel: mode=1 chan=3 freq=2422 MHz max_tx_power=20 dBm
Allowed channel: mode=1 chan=4 freq=2427 MHz max_tx_power=20 dBm
Allowed channel: mode=1 chan=5 freq=2432 MHz max_tx_power=20 dBm
Allowed channel: mode=1 chan=6 freq=2437 MHz max_tx_power=20 dBm
Allowed channel: mode=1 chan=7 freq=2442 MHz max_tx_power=20 dBm
Allowed channel: mode=1 chan=8 freq=2447 MHz max_tx_power=20 dBm
Allowed channel: mode=1 chan=9 freq=2452 MHz max_tx_power=20 dBm
Allowed channel: mode=1 chan=10 freq=2457 MHz max_tx_power=20 dBm
Allowed channel: mode=1 chan=11 freq=2462 MHz max_tx_power=20 dBm
Allowed channel: mode=0 chan=1 freq=2412 MHz max_tx_power=20 dBm
Allowed channel: mode=0 chan=2 freq=2417 MHz max_tx_power=20 dBm
Allowed channel: mode=0 chan=3 freq=2422 MHz max_tx_power=20 dBm
Allowed channel: mode=0 chan=4 freq=2427 MHz max_tx_power=20 dBm
Allowed channel: mode=0 chan=5 freq=2432 MHz max_tx_power=20 dBm
Allowed channel: mode=0 chan=6 freq=2437 MHz max_tx_power=20 dBm
Allowed channel: mode=0 chan=7 freq=2442 MHz max_tx_power=20 dBm
Allowed channel: mode=0 chan=8 freq=2447 MHz max_tx_power=20 dBm
Allowed channel: mode=0 chan=9 freq=2452 MHz max_tx_power=20 dBm
Allowed channel: mode=0 chan=10 freq=2457 MHz max_tx_power=20 dBm
Allowed channel: mode=0 chan=11 freq=2462 MHz max_tx_power=20 dBm
RATE[0] rate=10 flags=0x1
RATE[1] rate=20 flags=0x1
RATE[2] rate=55 flags=0x1
RATE[3] rate=110 flags=0x1
RATE[4] rate=60 flags=0x0
RATE[5] rate=90 flags=0x0
RATE[6] rate=120 flags=0x0
RATE[7] rate=180 flags=0x0
RATE[8] rate=240 flags=0x0
RATE[9] rate=360 flags=0x0
RATE[10] rate=480 flags=0x0
RATE[11] rate=540 flags=0x0
Completing interface initialization
Mode: IEEE 802.11g Channel: 1 Frequency: 2412 MHz
Flushing old station entries
Deauthenticate all stations
wpa_driver_nl80211_set_key: ifindex=8 alg=0 addr=(nil) key_idx=0 set_tx=1 seq_len=0 key_len=0
wpa_driver_nl80211_set_key: ifindex=8 alg=0 addr=(nil) key_idx=1 set_tx=0 seq_len=0 key_len=0
wpa_driver_nl80211_set_key: ifindex=8 alg=0 addr=(nil) key_idx=2 set_tx=0 seq_len=0 key_len=0
wpa_driver_nl80211_set_key: ifindex=8 alg=0 addr=(nil) key_idx=3 set_tx=0 seq_len=0 key_len=0
Using interface wlan0 with hwaddr 48:5d:60:a3:bd:a7 and ssid 'mySoftAp'
nl80211: Set beacon (beacon_set=0)
wlan0: Setup of interface done.
nl80211: Event message available
nl80211: Ignored unknown event (cmd=20)
RTM_NEWLINK: operstate=0 ifi_flags=0x1002 ()
RTM_NEWLINK, IFLA_IFNAME: Interface 'wlan0' added
Unknown event 5
RTM_NEWLINK: operstate=0 ifi_flags=0x1002 ()
RTM_NEWLINK, IFLA_IFNAME: Interface 'mon.wlan0' added
Unknown event 5
RTM_NEWLINK: operstate=0 ifi_flags=0x1043 ([UP][RUNNING])
RTM_NEWLINK, IFLA_IFNAME: Interface 'wlan0' added
Unknown event 5
RTM_NEWLINK: operstate=0 ifi_flags=0x11043 ([UP][RUNNING][LOWER_UP])
RTM_NEWLINK, IFLA_IFNAME: Interface 'mon.wlan0' added
Unknown event 5
RTM_NEWLINK: operstate=0 ifi_flags=0x11003 ([UP][LOWER_UP])
RTM_NEWLINK, IFLA_IFNAME: Interface 'wlan0' added
Unknown event 5
Unknown Broadcom information element ignored (type=52 len=26)

nl80211: Event message available
nl80211: MLME event 39
nl80211: MLME event frame - hexdump(len=26): c0 00 00 00 fc 75 16 49 f2 40 48 5d 60 a3 bd a7 fc 75 16 49 f2 40 00 00 03 00
wlan0: STA fc:75:16:49:f2:40 IEEE 802.11: disassociated
Disassociation notification for unknown STA fc:75:16:49:f2:40
Could not parse ProbeReq from 48:5d:60:eb:58:3b
nl80211: Event message available
wlan0: IEEE 802.11 disassociated
Segmentation fault (core dumped)
[root@localhost hostapd]# iwconfig
lo no wireless extensions.

p3p1 no wireless extensions.

wlan0 IEEE 802.11bgn Mode:Master Frequency:2.412 GHz Tx-Power=20 dBm
Retry long limit:7 RTS thr:off Fragment thr:off
Power Management:off

mon.wlan0 IEEE 802.11bgn Mode:Monitor Frequency:2.412 GHz Tx-Power=20 dBm
Retry long limit:7 RTS thr:off Fragment thr:off
Power Management:off
此时无线网卡断开,不能上网!只能拔下重新插上才能上网!求大侠们帮助!感激不尽!!!
...全文
2853 3 打赏 收藏 转发到动态 举报
写回复
用AI写文章
3 条回复
切换为时间正序
请发表友善的回复…
发表回复
行知E人 2013-10-16
  • 打赏
  • 举报
回复
是呀,我也遇到这个问题了。。 谁能解决呀?Please ....
Pillar_zuo 2013-04-24
  • 打赏
  • 举报
回复
我也遇到这个问题,不知道大神搞定没有,希望共享解决办法
saswertuygjhjh 2012-03-15
  • 打赏
  • 举报
回复
主要是想实现soft-AP功能,想通过hostapd开启无线网卡(主芯片是AR9271)的AP功能,但是现在hostapd不能开启!求各位有经验的大侠给看看!!太谢谢了

4,436

社区成员

发帖
与我相关
我的任务
社区描述
Linux/Unix社区 内核源代码研究区
社区管理员
  • 内核源代码研究区社区
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

试试用AI创作助手写篇文章吧