wpa_cli: Support running action script on global control interface
authorIlan Peer <ilan.peer@intel.com>
Mon, 29 Feb 2016 12:29:58 +0000 (14:29 +0200)
committerJouni Malinen <j@w1.fi>
Thu, 3 Mar 2016 14:30:28 +0000 (16:30 +0200)
commit3c58df7ae7b7467e30f2aa47d2bbecc2d52abb21
tree4ddd857dffaff12b7e021c76a67591959cd9ff9c
parentb8f02d8baf4ccbe3a66cfa20bbe6f1c4c7cdf8b2
wpa_cli: Support running action script on global control interface

In case wpa_cli is started with an option to execute an action script,
but no interface is specified, wpa_cli might crash in wpa_cli_exec() if
arg1 == NULL. Fix this be setting arg1 = "global".

Signed-off-by: Ilan Peer <ilan.peer@intel.com>
wpa_supplicant/wpa_cli.c