wpa_cli event handling

Jouni Malinen jkmaline at cc.hut.fi
Sat Dec 24 19:51:22 EST 2005


On Thu, Dec 22, 2005 at 08:50:47AM -0500, Paul Fox wrote:

> but i have a simple question:  why isn't the action script that's 
> invoked passed the ssid of the network that's been joined?

For three reasons: 1) SSID can be fetched separately, if needed
('wpa_cli status' as was already mentioned or with SIOCGIWESSID if the
driver supports Linux wireless extensions). 2) SSID is 1..32 octet field
which may not be just ASCII text (e.g., 0 (nul terminator in ASCII) is a
valid character for SSID). Passing this information as a command line
parameter is not that nice unless there would be standard encoding for
it and that would just make the scripts using this more complex. 3)
wpa_cli does not actually know what the SSID is at this point, i.e., it
would need to ask wpa_supplicant for it anyway (which is what the action
script could be doing only when needed).

-- 
Jouni Malinen                                            PGP id EFC895FA



More information about the HostAP mailing list