IAPP using HostAP-2002-10-12

Jouni Malinen jkmaline
Wed Jan 22 19:49:36 PST 2003


On Wed, Jan 22, 2003 at 07:08:33PM +0530, Mohit Bajpai wrote:

> MOHIT: Could you tell me the link from where I can download it. I could not find this draft on the Internet.

Unfortunately, IEEE 802.11 drafts are not publicly available.

> MOHIT: Regarding your suggestion to access STA related data I would further like to ask that when STA moves to the new AP area. AP2 (new AP) sends move notify message to AP1 (old AP) then the function which is handling received Notify messages on AP1 does not have access to valid hostapd structure pointer which is a parameter in ap_get_sta () function to retrieve STA info. Could you please suggest a way to get this value.

If you are linking your code to the same binary, easiest way to get that
pointer would be to use the same event loop implementation as the rest
of hostapd is using. You can register a handler for a "read socket" with
eloop_register_read_sock() function. Your handler will then be called
with pointer to the main hostapd data as eloop_ctx (second argument)
when new data packet (in case of UDP) or new incoming connection (TCP)
is available.

-- 
Jouni Malinen                                            PGP id EFC895FA




More information about the Hostap mailing list