summaryrefslogtreecommitdiff
path: root/src/supplicant/nm-supplicant-interface.h
diff options
context:
space:
mode:
authorBenjamin Berg <bberg@redhat.com>2018-10-10 17:50:34 +0200
committerThomas Haller <thaller@redhat.com>2018-12-13 09:20:55 +0100
commite2a99cabdad967cd62cdb903ae439252852df8b5 (patch)
tree78f39d88279209b8600fa5bb1f3925c587707f1d /src/supplicant/nm-supplicant-interface.h
parent55407fd0275004a17aa422277b843e42d5dd5b5a (diff)
supplicant: Detect P2P and WFD support
Add detection for P2P and WFD support in wpa_supplicant and pass the information to the NMSupplicantInterface.
Diffstat (limited to 'src/supplicant/nm-supplicant-interface.h')
-rw-r--r--src/supplicant/nm-supplicant-interface.h14
1 files changed, 13 insertions, 1 deletions
diff --git a/src/supplicant/nm-supplicant-interface.h b/src/supplicant/nm-supplicant-interface.h
index 0365fdcd6..a62f9dade 100644
--- a/src/supplicant/nm-supplicant-interface.h
+++ b/src/supplicant/nm-supplicant-interface.h
@@ -62,6 +62,8 @@ typedef enum {
#define NM_SUPPLICANT_INTERFACE_AP_SUPPORT "ap-support"
#define NM_SUPPLICANT_INTERFACE_PMF_SUPPORT "pmf-support"
#define NM_SUPPLICANT_INTERFACE_FILS_SUPPORT "fils-support"
+#define NM_SUPPLICANT_INTERFACE_P2P_SUPPORT "p2p-support"
+#define NM_SUPPLICANT_INTERFACE_WFD_SUPPORT "wfd-support"
/* Signals */
#define NM_SUPPLICANT_INTERFACE_STATE "state"
@@ -81,7 +83,9 @@ NMSupplicantInterface * nm_supplicant_interface_new (const char *ifname,
NMSupplicantFeature fast_support,
NMSupplicantFeature ap_support,
NMSupplicantFeature pmf_support,
- NMSupplicantFeature fils_support);
+ NMSupplicantFeature fils_support,
+ NMSupplicantFeature p2p_support,
+ NMSupplicantFeature wfd_support);
void nm_supplicant_interface_set_supplicant_available (NMSupplicantInterface *self,
gboolean available);
@@ -128,6 +132,8 @@ gboolean nm_supplicant_interface_credentials_reply (NMSupplicantInterface *self,
NMSupplicantFeature nm_supplicant_interface_get_ap_support (NMSupplicantInterface *self);
NMSupplicantFeature nm_supplicant_interface_get_pmf_support (NMSupplicantInterface *self);
NMSupplicantFeature nm_supplicant_interface_get_fils_support (NMSupplicantInterface *self);
+NMSupplicantFeature nm_supplicant_interface_get_p2p_support (NMSupplicantInterface *self);
+NMSupplicantFeature nm_supplicant_interface_get_wfd_support (NMSupplicantInterface *self);
void nm_supplicant_interface_set_ap_support (NMSupplicantInterface *self,
NMSupplicantFeature apmode);
@@ -141,6 +147,12 @@ void nm_supplicant_interface_set_pmf_support (NMSupplicantInterface *self,
void nm_supplicant_interface_set_fils_support (NMSupplicantInterface *self,
NMSupplicantFeature fils_support);
+void nm_supplicant_interface_set_p2p_support (NMSupplicantInterface *self,
+ NMSupplicantFeature p2p_support);
+
+void nm_supplicant_interface_set_wfd_support (NMSupplicantInterface *self,
+ NMSupplicantFeature wfd_support);
+
void nm_supplicant_interface_enroll_wps (NMSupplicantInterface *self,
const char *const type,
const char *bssid,