D-Bus: Add a signal for HS2.0 terms and conditions
Add HS20TermsAndConditions signal to D-Bus API to allow clients to be notified when the network requires the acceptance of terms and conditions. The URL of the T&C page is provided as a signal parameter. Signed-off-by: Damien Dejean <damiendejean@chromium.org>
This commit is contained in:
parent
6a8d0e9196
commit
0ef4b1e1db
7 changed files with 138 additions and 2 deletions
|
@ -1026,3 +1026,13 @@ void wpas_notify_signal_change(struct wpa_supplicant *wpa_s)
|
|||
{
|
||||
wpas_dbus_signal_prop_changed(wpa_s, WPAS_DBUS_PROP_SIGNAL_CHANGE);
|
||||
}
|
||||
|
||||
|
||||
#ifdef CONFIG_HS20
|
||||
void wpas_notify_hs20_t_c_acceptance(struct wpa_supplicant *wpa_s,
|
||||
const char *url)
|
||||
{
|
||||
wpa_msg(wpa_s, MSG_INFO, HS20_T_C_ACCEPTANCE "%s", url);
|
||||
wpas_dbus_signal_hs20_t_c_acceptance(wpa_s, url);
|
||||
}
|
||||
#endif /* CONFIG_HS20 */
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue