Chinaunix

标题: wpa_supplicant2.2安装配置 [打印本页]

作者: kanbulusiber    时间: 2014-10-07 23:13
标题: wpa_supplicant2.2安装配置
本帖最后由 kanbulusiber 于 2014-10-08 20:23 编辑

wpa_supplicant-2.2版本在默认的情况下安装会出错~谁用过,请告知下,他在移植到uclinux下的时候反而不会出错
另外,wpa_suPPLICANT(任何版本),我要在板子上跑的时候是不是需要一些其他选项,我改了一些常见选项后,用wpa_supplicant -Dwext -iwlan0 -B -c /etc/wpa.cfg 会报错,
大致是,rfkill: Cannot open RFKILL control device
后来在pc上发现也会报一样的错(在centos上,yum安装的wpa_supplicant),请问谁知道?应该是配置选项的问题吧~

另外,顺便问问,-D参数默认是wext,也有nl80211,请问该哪个?
我用的是rtl8189,显示的时候貌似是RTL817X,那么-D后面也应该加RTL817X?


图中就是用了wpa_supplicant -Dwext -iwlan0 -B -c /etc/wpa.cfg 类似的命令的结果
这里,wpa是用yum安装的,想知道是wpa的问题还是网卡驱动的问题
作者: kanbulusiber    时间: 2014-10-08 15:12
另外,我用wpa_supplicant -iwlan0 -c/etc/wpa_supplicant.conf -d的时候打印如下信息(不完整),请问下,除了最后那两个error以外,前面哪些有问题(没调试过,表示完全不明觉厉),不过,这句应该是error吧:nl80211: Could not add multicast membership for vendor events: -2 (No such file or directory)
下面是详细信息:
/ # wpa_supplicant -iwlan0 -c/etc/wpa_supplicant.cfg -d
wpa_supplicant v2.2
random: Trying to read entropy from /dev/random
Successfully initialized wpa_supplicant
Initializing interface 'wlan0' conf '/etc/wpa.cfg' driver 'default' ctrl_interface 'N/A' bridge 'N/A'
Configuration file '/etc/wpa.cfg' -> '/etc/wpa.cfg'
Reading configuration file '/etc/wpa.cfg'
ap_scan=1
Priority group 12
   id=0 ssid='SS_AP'
nl80211: Could not add multicast membership for vendor events: -2 (No such file or directory)
rfkill: initial event: idx=0 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: Using driver-based off-channel TX
nl80211: interface wlan0 in phy phy0
nl80211: Set mode ifindex 2 iftype 2 (STATION)
nl80211: Subscribe to mgmt frames with non-AP handle 0x806c6e00
nl80211: Register frame type=0xd0 nl_handle=0x806c6e00 match=06
nl80211: Register frame type=0xd0 nl_handle=0x806c6e00 match=0a07
nl80211: Register frame type=0xd0 nl_handle=0x806c6e00 match=0a11
netlink: Operstate: ifindex=2 linkmode=1 (userspace-control), operstate=5 (IF_OPER_DORMANT)
nl80211: driver param='(null)'
Add interface wlan0 to a new radio phy0
nl80211: Regulatory information - country=00
nl80211: 2402-2472 @ 40 MHz 20 mBm
nl80211: 2457-2482 @ 20 MHz 20 mBm (no IR)
nl80211: 2474-2494 @ 20 MHz 20 mBm (no OFDM) (no IR)
nl80211: 5170-5250 @ 40 MHz 20 mBm (no IR)
nl80211: 5735-5835 @ 40 MHz 20 mBm (no IR)
nl80211: Added 802.11b mode based on 802.11g information
wlan0: Own MAC address: 00:e0:4c:01:f2:13
wpa_driver_nl80211_set_key: ifindex=2 (wlan0) alg=0 addr=(nil) key_idx=0 set_tx=0 seq_len=0 key_len=0
wpa_driver_nl80211_set_key: ifindex=2 (wlan0) alg=0 addr=(nil) key_idx=1 set_tx=0 seq_len=0 key_len=0
wpa_driver_nl80211_set_key: ifindex=2 (wlan0) alg=0 addr=(nil) key_idx=2 set_tx=0 seq_len=0 key_len=0
wpa_driver_nl80211_set_key: ifindex=2 (wlan0) alg=0 addr=(nil) key_idx=3 set_tx=0 seq_len=0 key_len=0
wlan0: RSN: flushing PMKID list in the driver
nl80211: Flush PMKIDs
RTL871X: cfg80211_rtw_flush_pmksa(wlan0)
wlan0: Setting scan request: 0.100000 sec
wlan0: WPS: UUID based on MAC address: d92de67e-b748-5143-ad20-019f88557165
EAPOL: SUPP_PAE entering state DISCONNECTED
EAPOL: Supplicant port status: Unauthorized
nl80211: Skip set_supp_port(unauthorized) while not associated
EAPOL: KEY_RX entering state NO_KEY_RECEIVE
EAPOL: SUPP_BE entering state INITIALIZE
EAP: EAP entering state DISABLED
wlan0: Added interface wlan0
wlan0: State: DISCONNECTED -> DISCONNECTED
nl80211: Set wlan0 operstate 0->0 (DORMANT)
netlink: Operstate: ifindex=2 linkmode=-1 (no change), operstate=5 (IF_OPER_DORMANT)
wlan0: State: DISCONNECTED -> SCANNING
wlan0: Starting AP scan for wildcard SSID
wlan0: Add radio work 'scan'@0x806cff68
wlan0: First radio work item in the queue - schedule start immediately
RTM_NEWLINK: ifi_index=2 ifname=wlan0 operstate=5 linkmode=0 ifi_flags=0x1003 ([UP])
wlan0: Starting radio work 'scan'@0x806cff68 after 0.040000 second wait
wlan0: nl80211: scan request
RTL871X: cfg80211_rtw_scan(wlan0)
Scan requested (ret=0) - scan timeout 10 seconds
nl80211: Drv Event 33 (NL80211_CMD_TRIGGER_SCAN) received for wlan0
wlan0: nl80211: Scan trigger
wlan0: Event SCAN_STARTED (49) received
wlan0: Own scan request started a scan in 0.060000 seconds
wlan0: CTRL-EVENT-SCAN-STARTED
EAPOL: disable timer tick
RTL871X: survey done event(0) band:0 for wlan0
RTL871X: rtw_indicate_scan_done(wlan0)
nl80211: Drv Event 34 (NL80211_CMD_NEW_SCAN_RESULTS) received for wlan0
wlan0: nl80211: New scan results available
nl80211: Scan probed for SSID ''
nl80211: Scan included frequencies: 2412 2417 2422 2427 2432 2437 2442 2447 2452 2457 2462 2467 2472
wlan0: Event SCAN_RESULTS (3) received
wlan0: Scan completed in 2.930000 seconds
nl80211: Received scan results (0 BSSes)
wlan0: BSS: Start scan result update 1
BSS: last_scan_res_used=0/0
wlan0: New scan results available (own=1 ext=0)
wlan0: Radio work 'scan'@0x806cff68 done in 3.130000 seconds
wlan0: No suitable network found
wlan0: Setting scan request: 5.000000 sec
RTM_NEWLINK: ifi_index=2 ifname=wlan0 wext ifi_flags=0x1003 ([UP])
wlan0: Starting AP scan for wildcard SSID
wlan0: Add radio work 'scan'@0x806cff68
wlan0: First radio work item in the queue - schedule start immediately
wlan0: Starting radio work 'scan'@0x806cff68 after 0.010000 second wait
wlan0: nl80211: scan request
RTL871X: cfg80211_rtw_scan(wlan0)
Scan requested (ret=0) - scan timeout 30 seconds
nl80211: Drv Event 33 (NL80211_CMD_TRIGGER_SCAN) received for wlan0
wlan0: nl80211: Scan trigger
wlan0: Event SCAN_STARTED (49) received
wlan0: Own scan request started a scan in 0.060000 seconds
wlan0: CTRL-EVENT-SCAN-STARTED
RTL871X: survey done event(0) band:0 for wlan0
RTL871X: rtw_indicate_scan_done(wlan0)
nl80211: Drv Event 34 (NL80211_CMD_NEW_SCAN_RESULTS) received for wlan0
wlan0: nl80211: New scan results available
nl80211: Scan probed for SSID ''
nl80211: Scan included frequencies: 2412 2417 2422 2427 2432 2437 2442 2447 2452 2457 2462 2467 2472
wlan0: Event SCAN_RESULTS (3) received
wlan0: Scan completed in 2.930000 seconds
nl80211: Received scan results (0 BSSes)
wlan0: BSS: Start scan result update 2
BSS: last_scan_res_used=0/0
wlan0: New scan results available (own=1 ext=0)
wlan0: Radio work 'scan'@0x806cff68 done in 3.120000 seconds
wlan0: No suitable network found
wlan0: Setting scan request: 5.000000 sec
RTM_NEWLINK: ifi_index=2 ifname=wlan0 wext ifi_flags=0x1003 ([UP])
wlan0: Starting AP scan for wildcard SSID
wlan0: Add radio work 'scan'@0x806cff68
wlan0: First radio work item in the queue - schedule start immediately
wlan0: Starting radio work 'scan'@0x806cff68 after 0.010000 second wait
wlan0: nl80211: scan request
RTL871X: cfg80211_rtw_scan(wlan0)
Scan requested (ret=0) - scan timeout 30 seconds
nl80211: Drv Event 33 (NL80211_CMD_TRIGGER_SCAN) received for wlan0
wlan0: nl80211: Scan trigger
wlan0: Event SCAN_STARTED (49) received
wlan0: Own scan request started a scan in 0.060000 seconds
wlan0: CTRL-EVENT-SCAN-STARTED
RTL871X: survey done event(0) band:0 for wlan0
RTL871X: rtw_indicate_scan_done(wlan0)
nl80211: Drv Event 34 (NL80211_CMD_NEW_SCAN_RESULTS) received for wlan0
wlan0: nl80211: New scan results available
nl80211: Scan probed for SSID ''
nl80211: Scan included frequencies: 2412 2417 2422 2427 2432 2437 2442 2447 2452 2457 2462 2467 2472
wlan0: Event SCAN_RESULTS (3) received
wlan0: Scan completed in 2.940000 seconds
nl80211: Received scan results (0 BSSes)
wlan0: BSS: Start scan result update 3
BSS: last_scan_res_used=0/0
wlan0: New scan results available (own=1 ext=0)
wlan0: Radio work 'scan'@0x806cff68 done in 3.130000 seconds
wlan0: No suitable network found
wlan0: Setting scan request: 5.000000 sec
RTM_NEWLINK: ifi_index=2 ifname=wlan0 wext ifi_flags=0x1003 ([UP])
wlan0: Starting AP scan for wildcard SSID
wlan0: Add radio work 'scan'@0x806cff68
wlan0: First radio work item in the queue - schedule start immediately
wlan0: Starting radio work 'scan'@0x806cff68 after 0.010000 second wait
wlan0: nl80211: scan request
RTL871X: cfg80211_rtw_scan(wlan0)
Scan requested (ret=0) - scan timeout 30 seconds
nl80211: Drv Event 33 (NL80211_CMD_TRIGGER_SCAN) received for wlan0
wlan0: nl80211: Scan trigger
wlan0: Event SCAN_STARTED (49) received
wlan0: Own scan request started a scan in 0.060000 seconds
wlan0: CTRL-EVENT-SCAN-STARTED
RTL871X: survey done event(0) band:0 for wlan0
RTL871X: rtw_indicate_scan_done(wlan0)
nl80211: Drv Event 34 (NL80211_CMD_NEW_SCAN_RESULTS) received for wlan0
wlan0: nl80211: New scan results available
nl80211: Scan probed for SSID ''
nl80211: Scan included frequencies: 2412 2417 2422 2427 2432 2437 2442 2447 2452 2457 2462 2467 2472
wlan0: Event SCAN_RESULTS (3) received
wlan0: Scan completed in 2.940000 seconds
nl80211: Received scan results (0 BSSes)
wlan0: BSS: Start scan result update 4
BSS: last_scan_res_used=0/0
wlan0: New scan results available (own=1 ext=0)
wlan0: Radio work 'scan'@0x806cff68 done in 3.190000 seconds
wlan0: No suitable network found
wlan0: Setting scan request: 5.000000 sec
RTM_NEWLINK: ifi_index=2 ifname=wlan0 wext ifi_flags=0x1003 ([UP])
wlan0: Starting AP scan for wildcard SSID
wlan0: Add radio work 'scan'@0x806cff68
wlan0: First radio work item in the queue - schedule start immediately
wlan0: Starting radio work 'scan'@0x806cff68 after 0.010000 second wait
wlan0: nl80211: scan request
RTL871X: cfg80211_rtw_scan(wlan0)
Scan requested (ret=0) - scan timeout 30 seconds
nl80211: Drv Event 33 (NL80211_CMD_TRIGGER_SCAN) received for wlan0
wlan0: nl80211: Scan trigger
wlan0: Event SCAN_STARTED (49) received
wlan0: Own scan request started a scan in 0.060000 seconds
wlan0: CTRL-EVENT-SCAN-STARTED
RTL871X: survey done event(0) band:0 for wlan0
RTL871X: rtw_indicate_scan_done(wlan0)
nl80211: Drv Event 34 (NL80211_CMD_NEW_SCAN_RESULTS) received for wlan0
wlan0: nl80211: New scan results available
nl80211: Scan probed for SSID ''
nl80211: Scan included frequencies: 2412 2417 2422 2427 2432 2437 2442 2447 2452 2457 2462 2467 2472
wlan0: Event SCAN_RESULTS (3) received
wlan0: Scan completed in 2.940000 seconds
nl80211: Received scan results (0 BSSes)
wlan0: BSS: Start scan result update 5
BSS: last_scan_res_used=0/0
wlan0: New scan results available (own=1 ext=0)
wlan0: Radio work 'scan'@0x806cff68 done in 3.130000 seconds
wlan0: No suitable network found
wlan0: Setting scan request: 5.000000 sec
RTM_NEWLINK: ifi_index=2 ifname=wlan0 wext ifi_flags=0x1003 ([UP])
wlan0: Starting AP scan for wildcard SSID
wlan0: Add radio work 'scan'@0x806cff68
wlan0: First radio work item in the queue - schedule start immediately
wlan0: Starting radio work 'scan'@0x806cff68 after 0.010000 second wait
wlan0: nl80211: scan request
RTL871X: cfg80211_rtw_scan(wlan0)
Scan requested (ret=0) - scan timeout 30 seconds
nl80211: Drv Event 33 (NL80211_CMD_TRIGGER_SCAN) received for wlan0
wlan0: nl80211: Scan trigger
wlan0: Event SCAN_STARTED (49) received
wlan0: Own scan request started a scan in 0.060000 seconds
wlan0: CTRL-EVENT-SCAN-STARTED
RTL871X: survey done event(0) band:0 for wlan0
RTL871X: rtw_indicate_scan_done(wlan0)
nl80211: Drv Event 34 (NL80211_CMD_NEW_SCAN_RESULTS) received for wlan0
wlan0: nl80211: New scan results available
nl80211: Scan probed for SSID ''
nl80211: Scan included frequencies: 2412 2417 2422 2427 2432 2437 2442 2447 2452 2457 2462 2467 2472
wlan0: Event SCAN_RESULTS (3) received
wlan0: Scan completed in 2.930000 seconds
nl80211: Received scan results (0 BSSes)
wlan0: BSS: Start scan result update 6
BSS: last_scan_res_used=0/0
wlan0: New scan results available (own=1 ext=0)
wlan0: Radio work 'scan'@0x806cff68 done in 3.120000 seconds
wlan0: No suitable network found
wlan0: Setting scan request: 5.000000 sec
RTM_NEWLINK: ifi_index=2 ifname=wlan0 wext ifi_flags=0x1003 ([UP])
wlan0: Starting AP scan for wildcard SSID
wlan0: Add radio work 'scan'@0x806cff68
wlan0: First radio work item in the queue - schedule start immediately
wlan0: Starting radio work 'scan'@0x806cff68 after 0.010000 second wait
wlan0: nl80211: scan request
RTL871X: cfg80211_rtw_scan(wlan0)
Scan requested (ret=0) - scan timeout 30 seconds
nl80211: Drv Event 33 (NL80211_CMD_TRIGGER_SCAN) received for wlan0
wlan0: nl80211: Scan trigger
wlan0: Event SCAN_STARTED (49) received
wlan0: Own scan request started a scan in 0.060000 seconds
wlan0: CTRL-EVENT-SCAN-STARTED
RTL871X: survey done event(0) band:0 for wlan0
RTL871X: rtw_indicate_scan_done(wlan0)
nl80211: Drv Event 34 (NL80211_CMD_NEW_SCAN_RESULTS) received for wlan0
wlan0: nl80211: New scan results available
nl80211: Scan probed for SSID ''
nl80211: Scan included frequencies: 2412 2417 2422 2427 2432 2437 2442 2447 2452 2457 2462 2467 2472
wlan0: Event SCAN_RESULTS (3) received
wlan0: Scan completed in 2.940000 seconds
nl80211: Received scan results (0 BSSes)
wlan0: BSS: Start scan result update 7
BSS: last_scan_res_used=0/0
wlan0: New scan results available (own=1 ext=0)
wlan0: Radio work 'scan'@0x806cff68 done in 3.130000 seconds
wlan0: No suitable network found
wlan0: Setting scan request: 5.000000 sec
RTM_NEWLINK: ifi_index=2 ifname=wlan0 wext ifi_flags=0x1003 ([UP])
wlan0: Starting AP scan for wildcard SSID
wlan0: Add radio work 'scan'@0x806cff68
wlan0: First radio work item in the queue - schedule start immediately
wlan0: Starting radio work 'scan'@0x806cff68 after 0.010000 second wait
wlan0: nl80211: scan request
RTL871X: cfg80211_rtw_scan(wlan0)
Scan requested (ret=0) - scan timeout 30 seconds
nl80211: Drv Event 33 (NL80211_CMD_TRIGGER_SCAN) received for wlan0
wlan0: nl80211: Scan trigger
wlan0: Event SCAN_STARTED (49) received
wlan0: Own scan request started a scan in 0.060000 seconds
wlan0: CTRL-EVENT-SCAN-STARTED
RTL871X: survey done event(0) band:0 for wlan0
RTL871X: rtw_indicate_scan_done(wlan0)
nl80211: Drv Event 34 (NL80211_CMD_NEW_SCAN_RESULTS) received for wlan0
wlan0: nl80211: New scan results available
nl80211: Scan probed for SSID ''
nl80211: Scan included frequencies: 2412 2417 2422 2427 2432 2437 2442 2447 2452 2457 2462 2467 2472
wlan0: Event SCAN_RESULTS (3) received
wlan0: Scan completed in 2.950000 seconds
nl80211: Received scan results (0 BSSes)
wlan0: BSS: Start scan result update 8
BSS: last_scan_res_used=0/0
wlan0: New scan results available (own=1 ext=0)
wlan0: Radio work 'scan'@0x806cff68 done in 3.140000 seconds
wlan0: No suitable network found
wlan0: Setting scan request: 5.000000 sec
RTM_NEWLINK: ifi_index=2 ifname=wlan0 wext ifi_flags=0x1003 ([UP])
wlan0: Starting AP scan for wildcard SSID
wlan0: Add radio work 'scan'@0x806cff68
wlan0: First radio work item in the queue - schedule start immediately
wlan0: Starting radio work 'scan'@0x806cff68 after 0.020000 second wait
wlan0: nl80211: scan request
RTL871X: cfg80211_rtw_scan(wlan0)
Scan requested (ret=0) - scan timeout 30 seconds
nl80211: Drv Event 33 (NL80211_CMD_TRIGGER_SCAN) received for wlan0
wlan0: nl80211: Scan trigger
wlan0: Event SCAN_STARTED (49) received
wlan0: Own scan request started a scan in 0.060000 seconds
wlan0: CTRL-EVENT-SCAN-STARTED
RTL871X: rtl8188e_sreset_xmit_status_check REG_TXDMA_STATUS:0x8d20002a
RTL871X: sreset_reset
RTL871X: sreset_stop_adapter(wlan0)
RTL871X: rtw_scan_abort(wlan0)fw_state=_FW_UNDER_SURVEY!
RTL871X: rtw_scan_abort(wlan0)fw_state=_FW_UNDER_SURVEY!
RTL871X: survey_timer_hdl idx:13
RTL871X: rtw_scan_abort(wlan0)fw_state=_FW_UNDER_SURVEY!
RTL871X: rtw_scan_abort(wlan0)fw_state=_FW_UNDER_SURVEY!
RTL871X: rtw_scan_abort(wlan0)fw_state=_FW_UNDER_SURVEY!
RTL871X: rtw_scan_abort(wlan0)fw_state=_FW_UNDER_SURVEY!
RTL871X: rtw_scan_abort(wlan0)waiting for scan_abort time out!
RTL871X: rtw_indicate_scan_done(wlan0)
RTL871X: ==>ips_enter cnts:1
RTL871X: nolinked power save enter
RTL871X: ===> rtw_ips_pwr_down...................
RTL871X: ====> rtw_ips_dev_unload...
Wait for FIFO Empty fail1
RTL871X: <3>sd_write32: (-110) addr=0x10284 val=0x8d24002a
nl80211: Drv Event 35 (NL80211_CMD_SCAN_ABORTED) received for wlan0
Wait for FIFO Empty fail1
wlan0: nl80211: Scan abortedRTL871X: <3>sd_write32: (-110) addr=0x10284, val=0x8d24002a, try_cnt=0

nl80211: Scan probed for SSID ''
Wait for FIFO Empty fail1
RTL871X: <3>sd_write32: (-110) addr=0x10284, val=0x8d24002a, try_cnt=1
Wait for FIFO Empty fail1
RTL871X: <3>sd_write32: (-110) addr=0x10284, val=0x8d24002a, try_cnt=2
nl80211: Scan included frequencies: 2412 2417 2422 2427 2432 2437 2442 2447 2452 2457 2462 2467 Wait for FIFO Empty fail1
2472
RTL871X: <3>sd_write32: (-110) addr=0x10284, val=0x8d24002a, try_cnt=3
wlan0: Event SCAN_RESULTS (3) received
Wait for FIFO Empty fail1
RTL871X: <3>sd_write32: (-110) addr=0x10284, val=0x8d24002a, try_cnt=4
wlan0: Scan completed in 2.400000 seconds
Wait for FIFO Empty fail1
RTL871X: <3>sd_write32: (-110) addr=0x10284, val=0x8d24002a, try_cnt=5
nl80211: Received scan results (0 BSSes)
Wait for FIFO Empty fail1
RTL871X: <3>sd_write32: (-110) addr=0x10284, val=0x8d24002a, try_cnt=6
Wait for FIFO Empty fail1
RTL871X: <3>sd_write32: (-110) addr=0x10284, val=0x8d24002a, try_cnt=7
wlan0: BSS: Start scan result update 9
RTL871X: <3>sd_write32: FAIL!(-110) addr=0x10284 val=0x8d24002a, try_cnt=8
BSS: last_scan_res_used=0/0
Wait for FIFO Full fail1
Wait for FIFO Full fail1




欢迎光临 Chinaunix (http://bbs.chinaunix.net/) Powered by Discuz! X3.2