Project Home
Project Home
Wiki
Wiki
Discussion Forums
Discussions
Project Information
Project Info
Forum Topic - cant ping from qnx AP (running hostapd) to wireless client and vice versa, after client status shows 'connected' : (3 Items)
   
cant ping from qnx AP (running hostapd) to wireless client and vice versa, after client status shows 'connected'  
Hello

I'm trying to run hostapd (0.6.4) on qnx board using the configuration below.

interface=run0
ssid=DemoAP
macaddr_acl=0
auth_algs=1
wpa=1
wpa_passphrase=password
wpa_key_mgmt=WPA-PSK
wpa_pairwise=CCMP

I'm using my windows xp integrated wireless card as the client, and it gets to the connected status but both host ap and
 client cannot ping each other.

I'm running hostapd with the -d option now, I get the messages below.
I'm new to this so I'm not sure whats going on.  I made sure I entered the correct password too. I see the error 'Could 
not set station 00:21:5c:88:ea:99 flags for kernel driver (errno=22)'. Does anyone know whats happening?

Any info will be appreciated.

thanks
joyce

# hostapd -d /etc/hostapd.conf

Configuration file: /etc/hostapd.conf
bsd_set_iface_flags: dev_up=0
BSS count 1, BSSID mask ff:ff:ff:ff:ff:ff (0 bits)
run0: IEEE 802.11 Fetching hardware channel/rate support not supported.
Flushing old station entries
bsd_sta_deauth: addr=ff:ff:ff:ff:ff:ff reason_code=3
Deauthenticate all stations
bsd_sta_deauth: addr=ff:ff:ff:ff:ff:ff reason_code=2
bsd_set_privacy: enabled=0
bsd_del_key: addr=00:00:00:00:00:00 key_idx=0
bsd_del_key: addr=00:00:00:00:00:00 key_idx=1
bsd_del_key: addr=00:00:00:00:00:00 key_idx=2
bsd_del_key: addr=00:00:00:00:00:00 key_idx=3
bsd_get_ssid: ssid=""
Using interface run0 with hwaddr 00:0e:8e:20:9f:40 and ssid 'DemoAP'
SSID - hexdump_ascii(len=6):
     44 65 6d 6f 41 50                                 DemoAP          
PSK (ASCII passphrase) - hexdump_ascii(len=8):
     70 61 73 73 77 6f 72 64                           password        
PSK (from passphrase) - hexdump(len=32): c2 19 dd 6f ba e9 e0 78 d4 d2 d9 97 f9 3d 14 37 b4 a0 8c 00 af 8a 0e 20 e0 b7 
e0 36 e1 5c ef 6e
bsd_set_ssid: ssid="DemoAP"
bsd_set_ieee8021x: enabled=1
bsd_configure_wpa: group key cipher=AES-CCM (3)
bsd_configure_wpa: pairwise key ciphers=0x8
bsd_configure_wpa: key management algorithms=0x2
bsd_configure_wpa: rsn capabilities=0x0
bsd_configure_wpa: enable WPA= 0x1
bsd_set_iface_flags: dev_up=1
WPA: group state machine entering state GTK_INIT (VLAN-ID 0)
GMK - hexdump(len=32): [REMOVED]
GTK - hexdump(len=16): [REMOVED]
WPA: group state machine entering state SETKEYSDONE (VLAN-ID 0)
bsd_set_key: alg=CCMP addr=00:00:00:00:00:00 key_idx=1
bsd_set_privacy: enabled=1
run0: Setup of interface done.
run0: STA 00:21:5c:88:ea:99 IEEE 802.11: associated
  New STA
run0: STA 00:21:5c:88:ea:99 WPA: event 1 notification
bsd_del_key: addr=00:21:5c:88:ea:99 key_idx=0
run0: STA 00:21:5c:88:ea:99 WPA: start authentication
WPA: 00:21:5c:88:ea:99 WPA_PTK entering state INITIALIZE
bsd_del_key: addr=00:21:5c:88:ea:99 key_idx=0
bsd_set_sta_authorized: addr=00:21:5c:88:ea:99 authorized=0
run0: STA 00:21:5c:88:ea:99 IEEE 802.1X: unauthorizing port
WPA: 00:21:5c:88:ea:99 WPA_PTK_GROUP entering state IDLE
WPA: 00:21:5c:88:ea:99 WPA_PTK entering state AUTHENTICATION
WPA: 00:21:5c:88:ea:99 WPA_PTK entering state AUTHENTICATION2
WPA: 00:21:5c:88:ea:99 WPA_PTK entering state INITPSK
WPA: 00:21:5c:88:ea:99 WPA_PTK entering state PTKSTART
run0: STA 00:21:5c:88:ea:99 WPA: sending 1/4 msg of 4-Way Handshake
WPA: Send EAPOL(version=2 secure=0 mic=0 ack=1 install=0 pairwise=8 kde_len=0 keyidx=0 encr=0)
TX EAPOL - hexdump(len=113): 00 21 5c 88 ea 99 00 0e 8e 20 9f 40 88 8e 02 03 00 5f fe 00 8a 00 10 00 00 00 00 00 00 00 
01 a2 16 35 10 8a 2e 78 dc 3c 35 60 74 e1 06 73 51 68 94 9a c0 cf fd 27 e4 7a 92 20 90 c8 c5 1a ba 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: 125 bytes from 00:21:5c:88:ea:99
   IEEE 802.1X: version=1 type=3 length=121
run0: STA 00:21:5c:88:ea:99 WPA: received EAPOL-Key frame (2/4 Pairwise)
WPA: 00:21:5c:88:ea:99 WPA_PTK entering state PTKCALCNEGOTIATING
WPA: PTK derivation - A1=00:0e:8e:20:9f:40 A2=00:21:5c:88:ea:99
WPA: PMK -...
View Full Message
RE: cant ping from qnx AP (running hostapd) to wireless client and vice versa, after client status shows 'connected'  
Which 802.11 driver are you running?  I think
the Atheros works pretty well as an AP.  The
bcm43xx driver has had a lot of fixes lately,
I hope they made it into 6.4.1!

--
aboyd
Re: RE: cant ping from qnx AP (running hostapd) to wireless client and vice versa, after client status shows 'connected'  
Thanks for the reply. It turns out to be a hardware issue, another hardware made all the problems to go away!

thanks
joyce