기존 이솝 임베디드 포럼의 지식인 서비스가 게시판 형태로 변경되었습니다.

wlan을 hostapd를 통해서 AP로 사용할때 wpa passphrase 인증문제

 

임베디드 리눅스 보드에 iptime N100 무선 동글로 HOSTAP기능을 사용하려고 합니다.

 

hostap설치하고

패스워드를 사용하지 않을때는 바로 연결이 되어서 핸드폰에서도 바로 접속이 되는데 

패스워드를 사용하고자 wpa와 를 설정하면 그때부터 연결이 되지 않고 합니다.

어디를 살펴봐야할지 헤매고 있는데 조언 부탁드립니다.

 

 

hostapd.conf

---------------------------

interface=wlan0

ssid=myhome

channel=11

beacon_int=100

hw_mode=g

ieee80211n=1

auth_algs=1

ignore_broadcast_ssid=0

wpa=2

wpa_key_mgmt=WPA-PSK

wpa_pairwise=TKIP CCMP

rsn_pairwise=CCMP

#wpa_psk=f304373506ba9bef9592235f4a69e87774af03221cbb0dcdbb5f54062cd0d7b7

wpa_passphrase=mypasswd

------------------------------------

구동방법

cp -f ./udhcpd.conf /etc/udhcpc/udhcpd.conf
insmod 8192cu.ko
ifconfig wlan0 192.168.20.1 up
udhcpd /etc/udhcpc/udhcpd.conf
./hostapd -dd -K ./hostapd.conf -B
------------------------------------

접속실패로그

 

wlan0: STA 90:9f:33:ec:f5:9c IEEE 802.11: disassociated

wlan0: STA 90:9f:33:ec:f5:9c IEEE 802.11: disassociated

wlan0: STA 90:9f:33:ec:f5:9c IEEE 802.11: disassociated

----------------------------------

혹시 커널 컨피그레이션과 관련이 있을까요?


hostapd 문제인지 rtl8188 drv문제인지 kernel config 문제인지 focus 못하고 있습니다

기본적으로 buildroot기반이라 buildroot에서 포함되어 컴파일되는 hostapd를 사용하는데

인터넷검색으로 로그를 검색해보면, hostapd의 patch 버젼이라는 것도 있어서 적용해보았지만

mypasswd를 입력시에도 인증오류 접속되지 않았습니다.


시도해본 3가지 hostap version


hostapd v2.0
User space daemon for IEEE 802.11 AP management,
IEEE 802.1X/WPA/WPA2/EAP/RADIUS Authenticator
Copyright (c) 2002-2012, Jouni Malinen <[email protected]> and contributors


hostapd v0.8.x
User space daemon for IEEE 802.11 AP management,
IEEE 802.1X/WPA/WPA2/EAP/RADIUS Authenticator
Copyright (c) 2002-2011, Jouni Malinen <[email protected]> and contributors


hostapd v0.8.x_rtw_r7475.20130812_beta
User space daemon for IEEE 802.11 AP management,
IEEE 802.1X/WPA/WPA2/EAP/RADIUS Authenticator
Copyright (c) 2002-2011, Jouni Malinen <[email protected]> and contributors




행인1

2017.04.07 01:44:03
*.178.89.199

driver compile시 log를 출력하도록 하니 아래와 같이 로그를 얻었습니다.
(참고: 컴파일시에는 PowerSaving define은 처리)


status code 3을 찾아보면,

3station is leaving (or has left) IBSS or ESS

Deauthenticated because sending station has left or is leaving IBSS or ESS

------------------------------------------------------------------------------

[ 8285.200000] +OnAuth
[ 8285.210000] auth alg=0, seq=1
[ 8285.210000] going to alloc stainfo for sa=34:80:b3:f2:76:8a
[ 8285.220000] OnAssocReq
[ 8285.220000] allocate new AID = (1)
[ 8285.220000] update_bcn_fixed_ie
[ 8285.230000] HT: STA 34:80:b3:f2:76:8a HT Capabilities Info: 0x012c
[ 8285.230000] bss_cap_update_on_sta_join STA 34:80:b3:f2:76:8a - no greenfield, num of non-gf stations 1
[ 8285.240000] bss_cap_update_on_sta_join STA 34:80:b3:f2:76:8a - 20 MHz HT, num of 20MHz HT STAs 1
[ 8285.250000] bss_cap_update_on_sta_join, updated=1
[ 8285.250000] issue_asocrsp
[ 8285.260000] indicate_sta_join_event to upper layer - hostapd
[ 8285.260000] rtw_cfg80211_indicate_sta_assoc(wlan0)
[ 8285.270000] report_add_sta_event: add STA
[ 8285.270000] rtl8192c_dm_RF_Saving(): RF_Normal
[ 8285.280000] add_RATid=> mac_id:2 , raid:0 , bitmap=0xfffff, arg=0xa2
[ 8288.280000] OnDeAuth Reason code(3)
[ 8288.280000] OnDeAuth, STA:34:80:b3:f2:76:8a
[ 8288.290000] rtw_cfg80211_indicate_sta_disassoc(wlan0)
[ 8288.290000] report_del_sta_event: delete STA, mac_id=2
[ 8288.300000] update_bcn_fixed_ie
[ 8288.300000] bss_cap_update_on_sta_leave, updated=1
[ 8289.220000] rtl8192c_dm_RF_Saving(): RF_Save


List of Articles
번호 제목 글쓴이 날짜sort 조회 수
6328 Android BSP만 제공하는 SOC에 Linux BSP로 만들려면? [2] 김민욱 2017-12-15 508
6327 리눅스 스크립트 질문입니다. [3] 하하호호하하 2017-11-07 272
6326 nxp4330 개발보드를 아직도 구매할수 있나요? [3] biokk 2017-10-31 364
6325 안드로이드 시스템 프로퍼티값을 디바이스 드라이버에서 읽을수 있나요... [1] 하하호호하하 2017-09-28 269
6324 libtool 로 라이브러리를 만드는데, [undefined reference] 에... [3] 김민욱 2017-09-06 372
6323 시절이 하도 수상해서, 문의 드립니다... [6] 김민욱 2017-08-17 650
6322 usb장치를 사용하는데 libusb VS kernel driver 속도에 차이가 ... [5] biokk 2017-08-01 659
6321 하나의 프로그램에서 , 녹음과 음악 play를 동시에 하기. [3] 김민욱 2017-07-12 299
6320 [4K영상받기] [3] 밥줘잉 2017-07-11 286
6319 opencl 사용가능한 soc 를 찾고 있습니다. [3] 행인1 2017-07-10 548
6318 ALSA-UTILS를 cross-compile 하려고 하는데요.자꾸 에러가 나요. [2] 김민욱 2017-07-07 1139
6317 android bluedroid 에서 sco over hci 가 안되죠? [3] 쾌도난마 2017-07-01 321
6316 2개 이상의 사운드 출력장치를 가진 시스템의 출력 우선도 설정 [1] 겟페우스 2017-06-27 253
6315 nfs 서버 구축 질문 [4] 김민욱 2017-06-10 164
6314 안드로이드 서비스 개발시 알아야 할 것들이 궁금합니다 [8] 김석원입니다. 2017-06-09 401
6313 ACPI Shutdown Signal이 들어갈때의 동작을 변경하고 싶습니다. +... [4] 겟페우스 2017-06-08 165
6312 USB GPS를 재부팅 후에도 자동으로 동작하게 하려고 합니다. [3] 겟페우스 2017-06-03 172
6311 input device에 할당된 버튼키를 제거하고 터미널에서 키보드로 대... [1] 김민욱 2017-05-25 122
6310 ppc405ep serial 질문 [3] marmar 2017-04-13 235
6309 usb device 구조 질문 [2] ydgoo9 2017-04-12 256

사용자 로그인