Armadilloフォーラム

GW-900D wpa_supplicant起動でのエラーについて

yoshizu

2014年11月11日 12時49分

yoshizuです
お世話になっています

armadillo-840 にUSB 無線LAN GW-900Dを実装しました。
  
  atmark-dist-20140131
  linux-3.4-at9
の環境です

http://armadillo.atmark-techno.com/howto/a800-ieee80211ac-gw-900d 
にあります
「Howto : Armadillo-810/840で IEEE802.11ac USB無線LANアダプタ GW-900D を動作させる 」
の手順に従い、以下のようにwlan0,wlan1の起動までは、うまくいきました。

[root@armadillo840-0 (ttySC2) /etc/config]# iwconfig
lo no wireless extensions.

wlan1 unassociated Nickname:""
Mode:Managed Frequency=2.412 GHz Access Point: Not-Associated
Sensitivity:0/0
Retry:off RTS thr:off Fragment thr:off
Encryption key:off
Power Management:off
Link Quality:0 Signal level:0 Noise level:0
Rx invalid nwid:0 Rx invalid crypt:0 Rx invalid frag:0
Tx excessive retries:0 Invalid misc:0 Missed beacon:0

wlan0 unassociated Nickname:""
Mode:Managed Frequency=2.412 GHz Access Point: Not-Associated
Sensitivity:0/0
Retry:off RTS thr:off Fragment thr:off
Encryption key:off
Power Management:off
Link Quality:0 Signal level:0 Noise level:0
Rx invalid nwid:0 Rx invalid crypt:0 Rx invalid frag:0
Tx excessive retries:0 Invalid misc:0 Missed beacon:0

eth0 no wireless extensions.

しかしながらwpa_supplicantの起動で、以下のように
「Operation not permitted」となってしまいました。

[root@armadillo840-0 (ttySC2) /etc/config]# wpa_supplicant -i wlan0 -c /etc/con
fig/wpa_supplicant.conf -Dwext -B
ioctl[SIOCSIWMODE]: Operation not permitted
Could not configure driver to use managed mode
[root@armadillo840-0 (ttySC2) /etc/config]# RTL871X: nolinked power save enter
RTL871X: nolinked power save leave
RTL871X: nolinked power save enter

アドバイスをお願いします。

以上よろしくお願い致します

コメント

at_takashi.sasayama

2014年11月12日 9時04分

笹山です。

> しかしながらwpa_supplicantの起動で、以下のように
> 「Operation not permitted」となってしまいました。
>
> [root@armadillo840-0 (ttySC2) /etc/config]# wpa_supplicant -i wlan0 -c /etc/con
> fig/wpa_supplicant.conf -Dwext -B
> ioctl[SIOCSIWMODE]: Operation not permitted
> Could not configure driver to use managed mode
> [root@armadillo840-0 (ttySC2) /etc/config]# RTL871X: nolinked power save enter
> RTL871X: nolinked power save leave
> RTL871X: nolinked power save enter

「Operation not permitted」は、正常に接続される場合でも出力されます。
2,3秒待つと、以下のように接続が開始されませんか?

[root@armadillo840-0 (ttySC2) /etc/config]# wpa_supplicant -i wlan0 -c /etc/config/wpa_supplicant.conf -Dwext -B
ioctl[SIOCSIWMODE]: Operation not permitted
Could not configure driver to use managed mode
[root@armadillo840-0 (ttySC2) /etc/config]# RTL871X: nolinked power save enter
RTL871X: nolinked power save leave
RTL871X: set ssid [test-ap] fw_state=0x00000008
RTL871X: set bssid:xx:xx:xx:xx:xx:xx
RTL871X: start auth
RTL871X: auth success, start assoc
RTL871X: assoc success
RTL871X: send eapol packet
RTL871X: send eapol packet
RTL871X: send eapol packet
RTL871X: set pairwise key to hw: alg:4(WEP40-1 WEP104-5 TKIP-2 AES-4) camid:4
RTL871X: set group key to hw: alg:4(WEP40-1 WEP104-5 TKIP-2 AES-4) keyid:1
RTL871X: rtw_aes_decrypt(wlan0) gkey installed. no_gkey_bc_cnt:2, no_gkey_mc_cnt:0

接続されない場合は、wpa_supplicant の実行オプションに -dd を追加して、
debug ログを有効にすると、何かわかるかと思います。

コマンド例

wpa_supplicant -i wlan0 -c /etc/config/wpa_supplicant.conf -Dwext -B -dd

笹山様
yoshizuです
お世話になっています

教えて頂いた -ddオプションを使いますと
============================================================================================================

[root@armadillo840-0 (ttySC2) /etc/config]# wpa_supplicant -i wlan0 -c /etc/con
fig/wpa_supplicant.conf -Dwext -dd
Initializing interface 'wlan0' conf '/etc/config/wpa_supplicant.conf' driver 'wext' ctrl_interface 'N/A' bridge 'N/A'
Configuration file '/etc/config/wpa_supplicant.conf' -> '/etc/config/wpa_supplicant.conf'
Reading configuration file '/etc/config/wpa_supplicant.conf'
Line: 1 - start of a new network block
ssid - hexdump_ascii(len=6):
77 70 61 5f 61 70 wpa_ap
PSK - hexdump(len=32): [REMOVED]
proto: 0x2
key_mgmt: 0x2
pairwise: 0x10
group: 0x10
Priority group 0
id=0 ssid='wpa_ap'
Initializing interface (2) 'wlan0'
EAPOL: SUPP_PAE entering state DISCONNECTED
EAPOL: KEY_RX entering state NO_KEY_RECEIVE
EAPOL: SUPP_BE entering state INITIALIZE
EAP: EAP entering state DISABLED
EAPOL: External notification - portEnabled=0
EAPOL: External notification - portValid=0
RTL871X: nolinked power save leave
SIOCGIWRANGE: WE(compiled)=22 WE(source)=16 enc_capa=0xf
capabilities: key_mgmt 0xf enc 0xf
WEXT: Operstate: linkmode=1, operstate=5
Own MAC address: 00:22:cf:e6:57:95
wpa_driver_wext_set_wpa
wpa_driver_wext_set_key: alg=0 key_idx=0 set_tx=0 seq_len=0 key_len=0
wpa_driver_wext_set_key: alg=0 key_idx=1 set_tx=0 seq_len=0 key_len=0
wpa_driver_wext_set_key: alg=0 key_idx=2 set_tx=0 seq_len=0 key_len=0
wpa_driver_wext_set_key: alg=0 key_idx=3 set_tx=0 seq_len=0 key_len=0
wpa_driver_wext_set_countermeasures
wpa_driver_wext_set_drop_unencrypted
Setting scan request: 0 sec 100000 usec
Added interface wlan0
RTM_NEWLINK: operstate=0 ifi_flags=0x1002 ()
RTM_NEWLINK, IFLA_IFNAME: Interface 'wlan0' added
Wireless event: cmd=0x8b06 len=8
RTM_NEWLINK: operstate=0 ifi_flags=0x1003 ([UP])
RTM_NEWLINK, IFLA_IFNAME: Interface 'wlan0' added
State: DISCONNECTED -> SCANNING
Starting AP scan (broadcast SSID)
Trying to get current scan results first without requesting a new scan to speed up initial association
Received 0 bytes of scan results (0 BSSes)
Scan results: 0
Selecting BSS from priority group 0
Try to find WPA-enabled AP
Try to find non-WPA AP
No suitable AP found.
============================================================================================================

となっていましたので APの設定が悪いのではと想定し
APとして立ち上げているもう一方のarmadillo-840+GW-900Dの
hostapd.confの設定を色々変更したところ
以下の★★★部分を追加するとうまくいきました。
============================================================================================================

interface=wlan0
#ctrl_interface=/var/run/hostapd
ssid=wpa_ap
hw_mode=a
ieee80211n=1
wme_enabled=1
wpa=2 ★★★
wpa_passphrase=87654321
wpa_key_mgmt=WPA-PSK
wpa_pairwise=CCMP
ht_capab=[SHORT-GI-20][SHORT-GI-40][HT40+]
channel=44

#bridge=br0
============================================================================================================

変更後の-dd追加での結果は以下です
============================================================================================================

[root@armadillo840-0 (ttySC2) /etc/config]# wpa_supplicant -i wlan0 -c /etc/conf
ig/wpa_supplicant.conf -Dwext -dd
Initializing interface 'wlan0' conf '/etc/config/wpa_supplicant.conf' driver 'wext' ctrl_interface 'N/A' bridge 'N/A'
Configuration file '/etc/config/wpa_supplicant.conf' -> '/etc/config/wpa_supplicant.conf'
Reading configuration file '/etc/config/wpa_supplicant.conf'
Line: 1 - start of a new network block
ssid - hexdump_ascii(len=6):
77 70 61 5f 61 70 wpa_ap
PSK - hexdump(len=32): [REMOVED]
proto: 0x2
key_mgmt: 0x2
pairwise: 0x10
group: 0x10
Priority group 0
id=0 ssid='wpa_ap'
Initializing interface (2) 'wlan0'
EAPOL: SUPP_PAE entering state DISCONNECTED
EAPOL: KEY_RX entering state NO_KEY_RECEIVE
EAPOL: SUPP_BE entering state INITIALIZE
EAP: EAP entering state DISABLED
EAPOL: External notification - portEnabled=0
EAPOL: External notification - portValid=0
RTL871X: nolinked power save leave
SIOCGIWRANGE: WE(compiled)=22 WE(source)=16 enc_capa=0xf
capabilities: key_mgmt 0xf enc 0xf
WEXT: Operstate: linkmode=1, operstate=5
Own MAC address: 00:22:cf:e6:57:95
wpa_driver_wext_set_wpa
wpa_driver_wext_set_key: alg=0 key_idx=0 set_tx=0 seq_len=0 key_len=0
wpa_driver_wext_set_key: alg=0 key_idx=1 set_tx=0 seq_len=0 key_len=0
wpa_driver_wext_set_key: alg=0 key_idx=2 set_tx=0 seq_len=0 key_len=0
wpa_driver_wext_set_key: alg=0 key_idx=3 set_tx=0 seq_len=0 key_len=0
wpa_driver_wext_set_countermeasures
wpa_driver_wext_set_drop_unencrypted
Setting scan request: 0 sec 100000 usec
Added interface wlan0
RTM_NEWLINK: operstate=0 ifi_flags=0x1002 ()
RTM_NEWLINK, IFLA_IFNAME: Interface 'wlan0' added
Wireless event: cmd=0x8b06 len=8
RTM_NEWLINK: operstate=0 ifi_flags=0x1003 ([UP])
RTM_NEWLINK, IFLA_IFNAME: Interface 'wlan0' added
State: DISCONNECTED -> SCANNING
Starting AP scan (broadcast SSID)
Trying to get current scan results first without requesting a new scan to speed up initial association
Received 0 bytes of scan results (0 BSSes)
Scan results: 0
Selecting BSS from priority group 0
Try to find WPA-enabled AP
Try to find non-WPA AP
No suitable AP found.
Setting scan request: 0 sec 0 usec
Starting AP scan (broadcast SSID)
Scan requested (ret=0) - scan timeout 5 seconds
RTL871X: nolinked power save enter
Scan timeout - try to get results
Received 1331 bytes of scan results (6 BSSes)
Scan results: 6
Selecting BSS from priority group 0
Try to find WPA-enabled AP
0: 00:22:cf:e6:57:98 ssid='wpa_ap' wpa_ie_len=0 rsn_ie_len=22 caps=0x11
selected based on RSN IE
selected WPA AP 00:22:cf:e6:57:98 ssid='wpa_ap'
Try to find non-WPA AP
Trying to associate with 00:22:cf:e6:57:98 (SSID='wpa_ap' freq=5220 MHz)
Cancelling scan request
WPA: clearing own WPA/RSN IE
Automatic auth_alg selection: 0x1
RSN: using IEEE 802.11i/D9.0
WPA: Selected cipher suites: group 16 pairwise 16 key_mgmt 2 proto 2
WPA: clearing AP WPA IE
WPA: set AP RSN IE - hexdump(len=22): 30 14 01 00 00 0f ac 04 01 00 00 0f ac 04 01 00 00 0f ac 02 0c 00
WPA: using GTK CCMP
WPA: using PTK CCMP
WPA: using KEY_MGMT WPA-PSK
WPA: Set own WPA IE default - hexdump(len=22): 30 14 01 00 00 0f ac 04 01 00 00 0f ac 04 01 00 00 0f ac 02 00 00
No keys have been configured - skip key clearing
wpa_driver_wext_set_drop_unencrypted
State: SCANNING -> ASSOCIATING
wpa_driver_wext_set_operstate: operstate 0->0 (DORMANT)
WEXT: Operstate: linkmode=-1, operstate=5
wpa_driver_wext_associate
RTL871X: nolinked power save leave
RTL871X: set ssid [wpa_ap] fw_state=0x00000008
RTL871X: set bssid:00:22:cf:e6:57:98
Setting authentication timeout: 10 sec 0 usec
EAPOL: External notification - EAP success=0
EAPOL: External notification - EAP fail=0
EAPOL: External notification - portControl=Auto
RSN: Ignored PMKID candidate without preauth flag
RTM_NEWLINK: operstate=0 ifi_flags=0x1003 ([UP])
RTM_NEWLINK, IFLA_IFNAME: Interface 'wlan0' added
Wireless event: cmd=0x8b06 len=8
RTM_NEWLINK: operstate=0 ifi_flags=0x1003 ([UP])
RTM_NEWLINK, IFLA_IFNAME: Interface 'wlan0' added
Wireless event: cmd=0x8b04 len=12
RTM_NEWLINK: operstate=0 ifi_flags=0x1003 ([UP])
RTM_NEWLINK, IFLA_IFNAME: Interface 'wlan0' added
Wireless event: cmd=0x8b1a len=14
RTL871X: start auth
RTL871X: auth success, start assoc
RTL871X: assoc success
RTM_NEWLINK: operstate=0 ifi_flags=0x11003 ([UP][LOWER_UP])
RTM_NEWLINK, IFLA_IFNAME: Interface 'wlan0' added
RX EAPOL from 00:22:cf:e6:57:98
RX EAPOL - hexdump(len=99): 02 03 00 5f 02 00 8a 00 10 00 00 00 0RTL871X: send eapol packet
0 00 00 00 01 4f a1 7b 9e 63 23 b3 7f d2 4e e7 ad 57 dd 58 0c e4 ad 42 13 79 fc 4b 81 5a 99 8a e4 52 d5 e4 ec 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
Setting authentication timeout: 10 sec 0 usec
IEEE 802.1X RX: version=2 type=3 length=95
EAPOL-Key type=2
key_info 0x8a (ver=2 keyidx=0 rsvd=0 Pairwise Ack)
key_length=16 key_data_length=0
replay_counter - hexdump(len=8): 00 00 00 00 00 00 00 01
key_nonce - hexdump(len=32): 4f a1 7b 9e 63 23 b3 7f d2 4e e7 ad 57 dd 58 0c e4 ad 42 13 79 fc 4b 81 5a 99 8a e4 52 d5 e4 ec
key_iv - hexdump(len=16): 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
key_rsc - hexdump(len=8): 00 00 00 00 00 00 00 00
key_id (reserved) - hexdump(len=8): 00 00 00 00 00 00 00 00
key_mic - hexdump(len=16): 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
WPA: RX EAPOL-Key - hexdump(len=99): 02 03 00 5f 02 00 8a 00 10 00 00 00 00 00 00 00 01 4f a1 7b 9e 63 23 b3 7f d2 4e e7 ad 57 dd 58 0c e4 ad 42 13 79 fc 4b 81 5a 99 8a e4 52 d5 e4 ec 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
State: ASSOCIATING -> 4WAY_HANDSHAKE
WPA: RX message 1 of 4-Way Handshake from 00:22:cf:e6:57:98 (ver=2)
RSN: msg 1/4 key data - hexdump(len=0):
WPA: Renewed SNonce - hexdump(len=32): 05 c3 64 fd 29 d6 ac 5a a2 41 96 fb 59 48 b9 5f 8a 92 ee 4e 21 25 80 06 17 79 d3 35 f8 1b bf b1
WPA: PMK - hexdump(len=32): [REMOVED]
WPA: PTK - hexdump(len=64): [REMOVED]
WPA: WPA IE for msg 2/4 - hexdump(len=22): 30 14 01 00 00 0f ac 04 01 00 00 0f ac 04 01 00 00 0f ac 02 00 00
WPA: Sending EAPOL-Key 2/4
WPA: Use BSSID (00:22:cf:e6:57:98) as the destination for EAPOL-Key
WPA: TX EAPOL-Key - hexdump(len=121): 01 03 00 75 02 01 0a 00 00 00 00 00 00 00 00 00 01 05 c3 64 fd 29 d6 ac 5a a2 41 96 fb 59 48 b9 5f 8a 92 ee 4e 21 25 80 06 17 79 d3 35 f8 1b bf b1 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 70 29 6e 25 35 76 4f 6f 67 79 c8 69 e8 8d 12 3a 00 16 30 14 01 00 00 0f ac 04 01 00 00 0f ac 04 01 00 00 0f ac 02 00 00
RX EAPOL from 00:22:cf:e6:57:98
RX EAPOL - hexdump(len=99): 02 03RTL871X: send eapol packet
00 5f 02 00 8a 00 10 00 00 00 00 00 00 00 02 4f a1 7b 9e 63 23 b3 7f d2 4e e7 ad 57 dd 58 0c e4 ad 42 13 79 fc 4b 81 5a 99 8a e4 52 d5 e4 ec 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
IEEE 802.1X RX: version=2 type=3 length=95
EAPOL-Key type=2
key_info 0x8a (ver=2 keyidx=0 rsvd=0 Pairwise Ack)
key_length=16 key_data_length=0
replay_counter - hexdump(len=8): 00 00 00 00 00 00 00 02
key_nonce - hexdump(len=32): 4f a1 7b 9e 63 23 b3 7f d2 4e e7 ad 57 dd 58 0c e4 ad 42 13 79 fc 4b 81 5a 99 8a e4 52 d5 e4 ec
key_iv - hexdump(len=16): 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
key_rsc - hexdump(len=8): 00 00 00 00 00 00 00 00
key_id (reserved) - hexdump(len=8): 00 00 00 00 00 00 00 00
key_mic - hexdump(len=16): 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
WPA: RX EAPOL-Key - hexdump(len=99): 02 03 00 5f 02 00 8a 00 10 00 00 00 00 00 00 00 02 4f a1 7b 9e 63 23 b3 7f d2 4e e7 ad 57 dd 58 0c e4 ad 42 13 79 fc 4b 81 5a 99 8a e4 52 d5 e4 ec 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
State: 4WAY_HANDSHAKE -> 4WAY_HANDSHAKE
WPA: RX message 1 of 4-Way Handshake from 00:22:cf:e6:57:98 (ver=2)
RSN: msg 1/4 key data - hexdump(len=0):
WPA: PMK - hexdump(len=32): [REMOVED]
WPA: PTK - hexdump(len=64): [REMOVED]
WPA: WPA IE for msg 2/4 - hexdump(len=22): 30 14 01 00 00 0f ac 04 01 00 00 0f ac 04 01 00 00 0f ac 02 00 00
WPA: Sending EAPOL-Key 2/4
WPA: TX EAPOL-Key - hexdump(len=121): 01 03 00 75 02 01 0a 00 00 00 00 00 00 00 00 00 02 05 c3 64 fd 29 d6 ac 5a a2 41 96 fb 59 48 b9 5f 8a 92 ee 4e 21 25 80 06 17 79 d3 35 f8 1b bf b1 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 3e b7 e6 e1 fe f5 ec ef 7d 75 00 81 e2 f8 62 50 00 16 30 14 01 00 00 0f ac 04 01 00 00 0f ac 04 01 00 00 0f ac 02 00 00
RX EAPOL from 00:22:cf:e6:57:98
RX EAPOL - hexdump(len=99): 02 03RTL871X: send eapol packet
00 5f 02 00 8a 00 10 00 00 00 00 00 00 00 03 4f a1 7b 9e 63 23 b3 7f d2 4e e7 ad 57 dd 58 0c e4 ad 42 13 79 fc 4b 81 5a 99 8a e4 52 d5 e4 ec 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
IEEE 802.1X RX: version=2 type=3 length=95
EAPOL-Key type=2
key_info 0x8a (ver=2 keyidx=0 rsvd=0 Pairwise Ack)
key_length=16 key_data_length=0
replay_counter - hexdump(len=8): 00 00 00 00 00 00 00 03
key_nonce - hexdump(len=32): 4f a1 7b 9e 63 23 b3 7f d2 4e e7 ad 57 dd 58 0c e4 ad 42 13 79 fc 4b 81 5a 99 8a e4 52 d5 e4 ec
key_iv - hexdump(len=16): 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
key_rsc - hexdump(len=8): 00 00 00 00 00 00 00 00
key_id (reserved) - hexdump(len=8): 00 00 00 00 00 00 00 00
key_mic - hexdump(len=16): 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
WPA: RX EAPOL-Key - hexdump(len=99): 02 03 00 5f 02 00 8a 00 10 00 00 00 00 00 00 00 03 4f a1 7b 9e 63 23 b3 7f d2 4e e7 ad 57 dd 58 0c e4 ad 42 13 79 fc 4b 81 5a 99 8a e4 52 d5 e4 ec 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
State: 4WAY_HANDSHAKE -> 4WAY_HANDSHAKE
WPA: RX message 1 of 4-Way Handshake from 00:22:cf:e6:57:98 (ver=2)
RSN: msg 1/4 key data - hexdump(len=0):
WPA: PMK - hexdump(len=32): [REMOVED]
WPA: PTK - hexdump(len=64): [REMOVED]
WPA: WPA IE for msg 2/4 - hexdump(len=22): 30 14 01 00 00 0f ac 04 01 00 00 0f ac 04 01 00 00 0f ac 02 00 00
WPA: Sending EAPOL-Key 2/4
WPA: TX EAPOL-Key - hexdump(len=121): 01 03 00 75 02 01 0a 00 00 00 00 00 00 00 00 00 03 05 c3 64 fd 29 d6 ac 5a a2 41 96 fb 59 48 b9 5f 8a 92 ee 4e 21 25 80 06 17 79 d3 35 f8 1b bf b1 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 d8 53 65 40 0f 94 df d6 38 b7 d7 b2 bb 9e 7c 62 00 16 30 14 01 00 00 0f ac 04 01 00 00 0f ac 04 01 00 00 0f ac 02 00 00
============================================================================================================

そして

wlan0 IEEE 802.11an ESSID:"wpa_ap" Nickname:""
Mode:Managed Frequency:5.22 GHz Access Point: 00:22:CF:E6:57:98
Bit Rate:300 Mb/s Sensitivity:0/0
Retry:off RTS thr:off Fragment thr:off
Encryption key:****-****-****-****-****-****-****-**** Security mode:open
Power Management:off
Link Quality=100/100 Signal level=100/100 Noise level=0/100
Rx invalid nwid:0 Rx invalid crypt:0 Rx invalid frag:0
Tx excessive retries:0 Invalid misc:0 Missed beacon:0

となってAPと接続できているように見えましたので 成功です。

hostapd.confでの 「wpa=2」というのがどのような意味なのかは
無線LANについての勉強不足で理解していませんが、
結果としては接続できました。

アドバイスありがとうございました。

今後ともよろしくお願い致します。

> 笹山です。
>
> > しかしながらwpa_supplicantの起動で、以下のように
> > 「Operation not permitted」となってしまいました。
> >
> > [root@armadillo840-0 (ttySC2) /etc/config]# wpa_supplicant -i wlan0 -c /etc/con
> > fig/wpa_supplicant.conf -Dwext -B
> > ioctl[SIOCSIWMODE]: Operation not permitted
> > Could not configure driver to use managed mode
> > [root@armadillo840-0 (ttySC2) /etc/config]# RTL871X: nolinked power save enter
> > RTL871X: nolinked power save leave
> > RTL871X: nolinked power save enter
>
> 「Operation not permitted」は、正常に接続される場合でも出力されます。
> 2,3秒待つと、以下のように接続が開始されませんか?
>
>

> [root@armadillo840-0 (ttySC2) /etc/config]# wpa_supplicant -i wlan0 -c /etc/config/wpa_supplicant.conf -Dwext -B
> ioctl[SIOCSIWMODE]: Operation not permitted
> Could not configure driver to use managed mode
> [root@armadillo840-0 (ttySC2) /etc/config]# RTL871X: nolinked power save enter
> RTL871X: nolinked power save leave
> RTL871X: set ssid [test-ap] fw_state=0x00000008
> RTL871X: set bssid:xx:xx:xx:xx:xx:xx
> RTL871X: start auth
> RTL871X: auth success, start assoc
> RTL871X: assoc success
> RTL871X: send eapol packet
> RTL871X: send eapol packet
> RTL871X: send eapol packet
> RTL871X: set pairwise key to hw: alg:4(WEP40-1 WEP104-5 TKIP-2 AES-4) camid:4
> RTL871X: set group key to hw: alg:4(WEP40-1 WEP104-5 TKIP-2 AES-4) keyid:1
> RTL871X: rtw_aes_decrypt(wlan0) gkey installed. no_gkey_bc_cnt:2, no_gkey_mc_cnt:0
> 

>
> 接続されない場合は、wpa_supplicant の実行オプションに -dd を追加して、
> debug ログを有効にすると、何かわかるかと思います。
>
> コマンド例
>

> wpa_supplicant -i wlan0 -c /etc/config/wpa_supplicant.conf -Dwext -B -dd
>