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:
Damien Dejean 2024-01-19 15:52:54 +00:00 committed by Jouni Malinen
parent 6a8d0e9196
commit 0ef4b1e1db
7 changed files with 138 additions and 2 deletions

View file

@ -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 */