[patch] use channel if no frequency sent

Holger Schurig hs4233 at mail.mn-solutions.de
Tue Mar 8 08:47:35 EST 2005


My driver doesn't send a frequency, but a channel when scanning access 
points with "iwlist eth1 scan". iwlist displays this correctly.

This patch adds a local frequency table and converts the channel. 
driver_broadcom also has this frequency table, but for now I kept it 
local.


After I got the right frequency, I called wpa_driver_wext_set_freq() from 
my driver_hermes.c and then I finally got an association event:

-----------------------
State: GROUP_HANDSHAKE -> COMPLETED
wpa_driver_wext_event_receive: event received
wpa_driver_wext_event_rtm_newlink
wpa_driver_wext_event_wireless
Wireless event: cmd=0x8c02 len=82
Custom wireless event: 
'ASSOCINFO(ReqIEs=dd180050f20101000050f20201000050f20201000050f2020000)'
Association info event
req_ies - hexdump(len=26): dd 18 00 50 f2 01 01 00 00 50 f2 02 01 00 00 50 
f2 02 01 00 00 50 f2 02 00 00
resp_ies - hexdump(len=0):
assoc_wpa_ie - hexdump(len=26): dd 18 00 50 f2 01 01 00 00 50 f2 02 01 00 
00 50 f2 02 01 00 00 50 f2 02 00 00
wpa_driver_wext_event_receive: event received
wpa_driver_wext_event_rtm_newlink
wpa_driver_wext_event_wireless
Wireless event: cmd=0x8b15 len=20
Wireless event: new AP: 00:12:7f:8b:62:30
State: COMPLETED -> ASSOCIATED
Association event - clear replay counter
Associated with 00:12:7f:8b:62:30
-----------------------


-- 
M&N Solutions GmbH       http://www.mn-solutions.de
Holger Schurig
Dieselstr. 18
61191 Rosbach v.d.Höhe
Tel: (+49) 6003 9141 0   Fax: (+49) 6003 9141 49
-------------- next part --------------
A non-text attachment was scrubbed...
Name: use-channel.patch
Type: text/x-diff
Size: 903 bytes
Desc: not available
Url : http://lists.shmoo.com/pipermail/hostap/attachments/20050308/656566d9/attachment.patch 


More information about the HostAP mailing list