[PATCH] wpa_cli: Run action file in case of an AP event
joerg.krause at embedded.rocks
Wed May 25 00:08:11 PDT 2016
On Di, 2016-05-24 at 00:19 +0300, Jouni Malinen wrote:
> On Mon, May 23, 2016 at 05:11:47PM +0200, Jörg Krause wrote:
> > Run the action script in case of an AP event "AP-ENABLED" or "AP-
> > DISABLED".
> Thanks, applied.
I would like to pass more events, e.g. ASSOC-REJECT, to the action
script. Do you have any concerns about which events are passed?
Currently, the events are passed in two different ways: Pass a
shortened string like "CONNECTED" and "DISCONNECTED" for CTRL_EVENT_*
or pass a full string for all other events.
As ASSOC-REJECT is of type CTRL_EVENT_* too, do you prefer to pass the
string "ASSOC-REJECT" or CTRL_EVENT_ASSOC_REJECT, e.g.
wpa_cli_exec(action_file, ifname, "ASSOC-REJECT");
wpa_cli_exec(action_file, ifname, CTRL_EVENT_ASSOC_REJECT);
More information about the Hostap