Knox Tizen Wearable SDK
|
Wi-Fi policy group provides policies for Wi-Fi control. More...
Data Structures | |
struct | dhcp_info_t |
DHCP Information. More... | |
struct | wifi_info_t |
Wi-Fi Information. More... | |
struct | wifi_private_key_info_t |
Wi-Fi private key Information. More... | |
struct | mdm_wifi_open_sim_aka_data_t |
struct | mdm_wifi_wep_wpa_data_t |
Struct to store AP password. More... | |
struct | mdm_wifi_eap_peap_ttls_data_t |
Settings to set for SECURITY_LEVEL_EAP_PEAP and SECURITY_LEVEL_EAP_TTLS. More... | |
struct | mdm_wifi_eap_tls_data_t |
Settings to set for SECURITY_LEVEL_EAP_TLS. More... | |
struct | mdm_wifi_ap_config_t |
Access point configuration. More... | |
struct | mdm_wifi_configuration_t |
Wi-Fi configuration type. More... | |
Enumerations |
Functions | |
mdm_result_t | mdm_set_allow_wifi (mdm_status_t state) |
API to allow or restrict the use of Wi-Fi. More... | |
mdm_status_t | mdm_get_allow_wifi (void) |
API to check if Wi-Fi use is allowed or restricted. More... | |
mdm_data_t * | mdm_get_wifi_ssid (void) |
API to get the Service Set Identifier (SSID) of the current 802.11 network. More... | |
mdm_status_t | mdm_is_wifi_hidden_ssid (void) |
MDM_TRUE if this network does not broadcast its SSID, so an SSID-specific probe request must be used for scans. More... | |
mdm_data_t * | mdm_get_wifi_dhcpinfo (void) |
API to get the DHCP-assigned addresses from the last successful DHCP request, if any. More... | |
mdm_status_t | mdm_is_network_secure (const char *ssid) |
API to get the enterprise WLAN EAP type. More... | |
mdm_result_t | mdm_get_blocked_networks (GList **blockedlist, GList **exceptlist) |
API to get the list of blocked SSIDs and the list of SSID exceptions. More... | |
mdm_result_t | mdm_set_allow_user_policy_changes (mdm_status_t enable) |
API to allow or disallow modify all Wi-Fi network settings. More... | |
mdm_status_t | mdm_get_allow_user_policy_changes (void) |
API to allow or disallow modify all Wi-Fi network settings. More... | |
mdm_result_t | mdm_set_minimum_required_security (mdm_wifi_sec_type_e secType) |
API to set a minimum security level to connect to a Wi-Fi AP. More... | |
mdm_wifi_sec_type_e | mdm_get_minimum_required_security (void) |
API to get the current minimum security level. More... | |
mdm_result_t | mdm_set_password_hidden (mdm_status_t passHidden) |
API to set the hidden state of the WLAN enterprise network. More... | |
mdm_status_t | mdm_get_password_hidden (void) |
API to get a Wi-Fi profile from the admin. More... | |
mdm_status_t | mdm_is_network_blocked (const char *ssid) |
API to check if a network with the given SSID is blocked. More... | |
mdm_result_t | mdm_set_wifi_ap_setting (const char *ssid, mdm_wifi_sec_type_e securityType, const char *password) |
API to configure the Wi-Fi AP or Wi-Fi tethering or HotSpot setting of the device. More... | |
mdm_data_t * | mdm_get_wifi_ap_setting (void) |
API to get the current Wi-Fi AP or Wi-Fi tethering or HotSpot setting of the device. More... | |
mdm_result_t | mdm_allow_wifi_ap_setting_user_modification (mdm_status_t value) |
API to allow or deny the user to edit Wi-Fi AP settings. More... | |
mdm_status_t | mdm_is_wifi_ap_setting_user_modification_allowed (void) |
API to check whether modification of Wi-Fi AP Setting by the user is allowed or not. More... | |
mdm_result_t | mdm_add_wifi_ap_config (const mdm_wifi_ap_config_t *config) |
API to add new Wi-Fi access point configuration. More... | |
mdm_result_t | mdm_add_wifi_ssids_to_whitelist (GList *SSIDs) |
API to add a list of Wi-Fi network SSIDs to the Wi-Fi network whitelist. More... | |
mdm_result_t | mdm_remove_wifi_ssids_from_whitelist (GList *SSIDs) |
API to remove a list of Wi-Fi network SSIDs from the Wi-Fi network whitelist. More... | |
mdm_result_t | mdm_clear_wifi_ssids_whitelist (void) |
API to remove all Wi-Fi network SSIDs from the Wi-Fi network blacklist. More... | |
mdm_data_t * | mdm_get_wifi_ssids_from_whitelist (void) |
API to retrieve the whitelist of Wi-Fi network SSIDs for all admins. More... | |
mdm_result_t | mdm_add_wifi_ssids_to_blacklist (GList *SSIDs) |
API to add a list of Wi-Fi network SSIDs to the Wi-Fi network blacklist. More... | |
mdm_result_t | mdm_remove_wifi_ssids_from_blacklist (GList *SSIDs) |
API to remove a list of Wi-Fi network SSIDs from the Wi-Fi network blacklist. More... | |
mdm_result_t | mdm_clear_wifi_ssids_blacklist (void) |
API to remove all Wi-Fi network SSIDs from the Wi-Fi network blacklist. More... | |
mdm_data_t * | mdm_get_wifi_ssids_from_blacklist (void) |
API to retrieve the blacklist of Wi-Fi network SSIDs for all admins. More... | |
mdm_result_t | mdm_activate_wifi_ssid_restriction (mdm_status_t value) |
API to activate or deactivate the Wi-Fi Network SSID access restriction. More... | |
mdm_status_t | mdm_is_wifi_ssid_restriction_active (void) |
API to get active state of the Bluetooth device restriction. More... | |
mdm_result_t | mdm_set_automatic_connection_to_wifi (bool enable) |
API to allow or disallow the user to automatically connect to a known Wi-Fi network. More... | |
mdm_status_t | mdm_get_automatic_connection_to_wifi (void) |
API to check whether the automatic connection to a known Wi-Fi network is allowed or not. More... | |
mdm_result_t | mdm_set_wifi_state_change_allowed (bool allow) |
API to allow or disallow Wi-Fi State Change (to ON/OFF). More... | |
mdm_status_t | mdm_is_wifi_state_change_allowed (void) |
API to check if Wi-Fi state change is allowed or not. More... | |
mdm_result_t | knox_mdm_preferred_ssid_add (const char *ssid) |
API to add SSIDs onto the list of preferred Wi-Fi access points. More... | |
mdm_result_t | knox_mdm_preferred_ssid_delete (const char *ssid) |
API to delete specified SSIDs from the list of preferred Wi-Fi access points. More... | |
mdm_result_t | knox_mdm_preferred_ssids_clear (void) |
API to clear Wi-Fi SSIDs from the list of preferred access points. More... | |
mdm_data_t * | knox_mdm_preferred_ssids_get (mdm_status_t all_admins) |
API to identify the contents of the preferred Wi-Fi access point list. More... | |
mdm_result_t | knox_mdm_protected_ssid_add (const char *ssid) |
API to add an SSID into the protected Wi-Fi access point list. More... | |
mdm_result_t | knox_mdm_protected_ssid_delete (const char *ssid) |
API to delete an SSID from the protected Wi-Fi access point list. More... | |
mdm_result_t | knox_mdm_protected_ssids_clear (void) |
API to clear Wi-Fi SSIDs from the protected access point list. More... | |
mdm_data_t * | knox_mdm_protected_ssids_get (const mdm_status_t all_admins) |
API to identify the contents of the protected Wi-Fi access point list. More... | |
mdm_result_t | knox_mdm_preferred_ssid_enforce (mdm_status_t status) |
API to set the enforce mode of the preferred Wi-Fi access point list. More... | |
mdm_status_t | knox_mdm_preferred_ssid_is_enforced (void) |
API to get the current status of enforce mode for preferred Wi-Fi access points. More... | |
Wi-Fi policy group provides policies for Wi-Fi control.
Wi-Fi policy group.
#include <mdm.h>
This group provides APIs to configure Wi-Fi related settings, as well as management of Wi-Fi profiles.
Phase 2 EAP authentication.
enum mdm_wifi_eap_type_e |
Wi-Fi eap type.
enum mdm_wifi_sec_type_e |
Wi-Fi security type.
enum mdm_wifi_status_t |
enum wifi_noti_t |
mdm_result_t knox_mdm_preferred_ssid_add | ( | const char * | ssid | ) |
API to add SSIDs onto the list of preferred Wi-Fi access points.
Use this API to add Wi-Fi SSIDs into a list of preferred access points. SSIDs in the preferred access point list will be given connection priority by the system.
[in] | ssid | SSID name to be added to list of the Preferred Access Points. |
MDM_RESULT_SUCCESS | Successful |
MDM_RESULT_FAIL | General failure |
MDM_RESULT_NOT_SUPPORTED | Not supported |
MDM_RESULT_INVALID_PARAM | Invalid parameter |
MDM_RESULT_SERVICE_NOT_ENABLED | Service not enabled. |
MDM_RESULT_ACCESS_DENIED | The application does not have the privilege to call this function. |
mdm_result_t knox_mdm_preferred_ssid_delete | ( | const char * | ssid | ) |
API to delete specified SSIDs from the list of preferred Wi-Fi access points.
Use this API to remove Wi-Fi SSIDs from the list of preferred access points.
[in] | ssid | SSID name to be deleted from list of the Preferred Access Points. |
MDM_RESULT_SUCCESS | Success |
MDM_RESULT_FAIL | General failure. |
MDM_RESULT_SERVICE_NOT_ENABLED | Service not enabled. |
MDM_RESULT_ACCESS_DENIED | Caller is not authorized to access Knox MDM client information. |
mdm_result_t knox_mdm_preferred_ssid_enforce | ( | mdm_status_t | status | ) |
API to set the enforce mode of the preferred Wi-Fi access point list.
Use this API to configure how the system connects to Wi-Fi SSIDs on the preferred access point list:
• Enforce mode is enabled — The system will check if the current connection is on the preferred access point list. If the SSID is not on the preferred access point list, it will disconnect then re-connect to an SSID on the preferred access point list.
• Enforce mode is disabled — The system will only connect to a preferred access point after it’s disconnected from the current connection.
MDM_RESULT_SUCCESS | Success |
MDM_RESULT_FAIL | General failure. |
MDM_RESULT_SERVICE_NOT_ENABLED | Service not enabled. |
MDM_RESULT_ACCESS_DENIED | Caller is not authorized to access Knox MDM client information. |
mdm_status_t knox_mdm_preferred_ssid_is_enforced | ( | void | ) |
API to get the current status of enforce mode for preferred Wi-Fi access points.
Use this API to get the current state of enforce mode for preferred Wi-Fi access points.
MDM_TRUE | Enforce mode is enabled |
MDM_FALSE | Enforce mode is disabled |
MDM_STATUS_ERROR | On any error |
mdm_result_t knox_mdm_preferred_ssids_clear | ( | void | ) |
API to clear Wi-Fi SSIDs from the list of preferred access points.
Use this API to clear the contents of the preferred access point list.
MDM_RESULT_SUCCESS | Success |
MDM_RESULT_FAIL | General failure. |
MDM_RESULT_SERVICE_NOT_ENABLED | Service not enabled. |
MDM_RESULT_ACCESS_DENIED | Caller is not authorized to access Knox MDM client information. |
mdm_data_t* knox_mdm_preferred_ssids_get | ( | mdm_status_t | all_admins | ) |
API to identify the contents of the preferred Wi-Fi access point list.
Use this API to return the list of SSIDs in the preferred Wi-Fi access point list. The API will return a list as defined by the given administrator.
[in] | all_admins | MDM_TRUE content off all lists of all admins MDM_FALSE content of current admin only |
MDM_RESULT_SUCCESS | Success |
MDM_RESULT_FAIL | General failure. |
MDM_RESULT_SERVICE_NOT_ENABLED | Service not enabled. |
MDM_RESULT_ACCESS_DENIED | Caller is not authorized to access Knox MDM client information. |
mdm_result_t knox_mdm_protected_ssid_add | ( | const char * | ssid | ) |
API to add an SSID into the protected Wi-Fi access point list.
Use this API to add an SSID to a list of protected Wi-Fi access points. The MDM prevents user changes to SSIDs on the protected list. Only the MDM admin will be allowed to create/change/delete SSIDs on the protected Wi-Fi access point list.
[in] | ssid | SSID name to be added to the Protected Access Points list. |
MDM_RESULT_SUCCESS | Success |
MDM_RESULT_FAIL | General failure. |
MDM_RESULT_SERVICE_NOT_ENABLED | Service not enabled. |
MDM_RESULT_ACCESS_DENIED | Caller is not authorized to access Knox MDM client information. |
mdm_result_t knox_mdm_protected_ssid_delete | ( | const char * | ssid | ) |
API to delete an SSID from the protected Wi-Fi access point list.
Use this API to remove Wi-Fi SSIDs from the protected Wi-Fi access point list.
[in] | ssid | SSID name to be deleted from the Protected Access Points list. |
MDM_RESULT_SUCCESS | Success |
MDM_RESULT_FAIL | General failure. |
MDM_RESULT_SERVICE_NOT_ENABLED | Service not enabled. |
MDM_RESULT_ACCESS_DENIED | Caller is not authorized to access Knox MDM client information. |
mdm_result_t knox_mdm_protected_ssids_clear | ( | void | ) |
API to clear Wi-Fi SSIDs from the protected access point list.
Use this API to clear the contents of the protected access point list.
MDM_RESULT_SUCCESS | Success |
MDM_RESULT_FAIL | General failure. |
MDM_RESULT_SERVICE_NOT_ENABLED | Service not enabled. |
MDM_RESULT_ACCESS_DENIED | Caller is not authorized to access Knox MDM client information. |
mdm_data_t* knox_mdm_protected_ssids_get | ( | const mdm_status_t | all_admins | ) |
API to identify the contents of the protected Wi-Fi access point list.
Use this API to return SSIDs on the protected Wi-Fi access point list. The API will return a list as defined by the given administrator.
[in] | all_admins | MDM_TRUE content off all lists of all admins MDM_FALSE content of current admin only |
MDM_RESULT_SUCCESS | Success |
MDM_RESULT_FAIL | General failure. |
MDM_RESULT_SERVICE_NOT_ENABLED | Service not enabled. |
MDM_RESULT_ACCESS_DENIED | Caller is not authorized to access Knox MDM client information. |
mdm_result_t mdm_activate_wifi_ssid_restriction | ( | mdm_status_t | value | ) |
API to activate or deactivate the Wi-Fi Network SSID access restriction.
MDM_RESULT_SUCCESS | Successful |
MDM_RESULT_FAIL | General failure |
MDM_RESULT_NOT_SUPPORTED | Not supported |
MDM_RESULT_INVALID_PARAM | Invalid parameter |
MDM_RESULT_ACCESS_DENIED | The application does not have the privilege to call this function. |
mdm_result_t mdm_add_wifi_ap_config | ( | const mdm_wifi_ap_config_t * | config | ) |
API to add new Wi-Fi access point configuration.
[in] | config | The Wi-Fi configuration |
MDM_RESULT_SUCCESS | Successful |
MDM_RESULT_FAIL | General failure |
MDM_RESULT_NOT_SUPPORTED | Not supported |
MDM_RESULT_INVALID_PARAM | Invalid parameter |
MDM_RESULT_ACCESS_DENIED | The application does not have the privilege to call this function. |
mdm_result_t mdm_add_wifi_ssids_to_blacklist | ( | GList * | SSIDs | ) |
API to add a list of Wi-Fi network SSIDs to the Wi-Fi network blacklist.
[in] | SSIDs | Wi-Fi network SSID list to be added to the whitelist |
MDM_RESULT_SUCCESS | Successful |
MDM_RESULT_FAIL | General failure |
MDM_RESULT_NOT_SUPPORTED | Not supported |
MDM_RESULT_INVALID_PARAM | Invalid parameter |
MDM_RESULT_ACCESS_DENIED | The application does not have the privilege to call this function. |
mdm_result_t mdm_add_wifi_ssids_to_whitelist | ( | GList * | SSIDs | ) |
API to add a list of Wi-Fi network SSIDs to the Wi-Fi network whitelist.
[in] | SSIDs | Wi-Fi network SSID list to be added to the whitelist |
MDM_RESULT_SUCCESS | Successful |
MDM_RESULT_FAIL | General failure |
MDM_RESULT_NOT_SUPPORTED | Not supported |
MDM_RESULT_INVALID_PARAM | Invalid parameter |
MDM_RESULT_ACCESS_DENIED | The application does not have the privilege to call this function. |
mdm_result_t mdm_allow_wifi_ap_setting_user_modification | ( | mdm_status_t | value | ) |
API to allow or deny the user to edit Wi-Fi AP settings.
This will deny the user from modifying the Wi-Fi AP settings when disabled, the UI will be greyed out so user will not be able to modify the settings. When enabled back user will be able to modify the Wi-Fi AP settings.
[in] | value | MDM_RESTRICTED to deny user from changing Wi-Fi AP settings. MDM_ALLOWED to allow user to change Wi-Fi AP settings. |
MDM_RESULT_SUCCESS | Successful |
MDM_RESULT_FAIL | General failure |
MDM_RESULT_NOT_SUPPORTED | Not supported |
MDM_RESULT_INVALID_PARAM | Invalid parameter |
MDM_RESULT_ACCESS_DENIED | The application does not have the privilege to call this function. |
mdm_result_t mdm_clear_wifi_ssids_blacklist | ( | void | ) |
API to remove all Wi-Fi network SSIDs from the Wi-Fi network blacklist.
MDM_RESULT_SUCCESS | Successful |
MDM_RESULT_FAIL | General failure |
MDM_RESULT_NOT_SUPPORTED | Not supported |
MDM_RESULT_INVALID_PARAM | Invalid parameter |
MDM_RESULT_ACCESS_DENIED | The application does not have the privilege to call this function. |
mdm_result_t mdm_clear_wifi_ssids_whitelist | ( | void | ) |
API to remove all Wi-Fi network SSIDs from the Wi-Fi network blacklist.
MDM_RESULT_SUCCESS | Successful |
MDM_RESULT_FAIL | General failure |
MDM_RESULT_NOT_SUPPORTED | Not supported |
MDM_RESULT_INVALID_PARAM | Invalid parameter |
MDM_RESULT_ACCESS_DENIED | The application does not have the privilege to call this function. |
mdm_status_t mdm_get_allow_user_policy_changes | ( | void | ) |
API to allow or disallow modify all Wi-Fi network settings.
Admin can use this API to block user to modify Enterprise Wi-Fi settings except user and password.
MDM_ENABLED | Changes allowed |
MDM_DISABLED | Changes not allowed except user and password |
MDM_STATUS_ERROR | Error |
mdm_status_t mdm_get_allow_wifi | ( | void | ) |
API to check if Wi-Fi use is allowed or restricted.
Use this API to check if Wi-Fi is allowed or restricted, and take the appropriate action based on enterprise policy.
MDM_RESTRICTED | The end user is restricted from using Wi-Fi on the device. |
MDM_ALLOWED | The end user is allowed to use Wi-Fi on the device. |
MDM_STATUS_ERROR | On any error or failure. |
mdm_status_t mdm_get_automatic_connection_to_wifi | ( | void | ) |
API to check whether the automatic connection to a known Wi-Fi network is allowed or not.
Admin can use this API to check if the user is allowed or not to automatically connect to the known Wi-Fi access points which are already stored on the device.
MDM_TRUE | Automatic connection is enabled |
MDM_FALSE | Disabled |
MDM_STATUS_ERROR | Failure |
mdm_result_t mdm_get_blocked_networks | ( | GList ** | blockedlist, |
GList ** | exceptlist | ||
) |
API to get the list of blocked SSIDs and the list of SSID exceptions.
[out] | blockedlist | Blocked networks (SSIDs). |
[out] | exceptlist | Exceptional networks (SSIDs). |
User can use this API to obtain the list of blocked SSIDs.
MDM_RESULT_FAIL | General failure. |
MDM_RESULT_NOT_SUPPORTED | API is not available on this platform. |
MDM_RESULT_INVALID_PARAM | Invalid parameter: blockedlist = NULL or exceptlist = NULL. |
MDM_RESULT_ACCESS_DENIED | The application does not have the privilege to call this function. |
MDM_RESULT_SERVICE_NOT_ENABLED | MDM service is not connected. |
mdm_wifi_sec_type_e mdm_get_minimum_required_security | ( | void | ) |
API to get the current minimum security level.
Admin can get current minimum security level to connect to a Wi-Fi AP. The possible values, from the lowest to highest, are: SECURITY_LEVEL_NONE SECURITY_LEVEL_OPEN SECURITY_LEVEL_WEP SECURITY_LEVEL_WPA_PSK SECURITY_LEVEL_WPA2_PSK SECURITY_LEVEL_EAP_PEAP SECURITY_LEVEL_EAP_TLS SECURITY_LEVEL_EAP_TTLS SECURITY_LEVEL_EAP_SIM SECURITY_LEVEL_EAP_AKA
SECURITY_LEVEL_NONE | Wi-Fi security level none |
SECURITY_LEVEL_OPEN | General Wi-Fi security level open |
SECURITY_LEVEL_WEP | Wi-Fi security level wep |
SECURITY_LEVEL_WPA_PSK | Wi-Fi security level wpa psk |
SECURITY_LEVEL_WPA2_PSK | Wi-Fi security level wpa2 psk |
SECURITY_LEVEL_EAP_PEAP | Wi-Fi security level eap peap |
SECURITY_LEVEL_EAP_TLS | Wi-Fi security level eap tls |
SECURITY_LEVEL_EAP_TTLS | Wi-Fi security level eap ttls |
SECURITY_LEVEL_EAP_SIM | Wi-Fi security level eap sim |
SECURITY_LEVEL_EAP_AKA | Wi-Fi security level eap aka |
mdm_status_t mdm_get_password_hidden | ( | void | ) |
API to get a Wi-Fi profile from the admin.
Get the hidden state of the WLAN enterprise network.
mdm_data_t* mdm_get_wifi_ap_setting | ( | void | ) |
API to get the current Wi-Fi AP or Wi-Fi tethering or HotSpot setting of the device.
Admin can remove an enterprise WLAN configuration. The network name is removed from the APs list, so that the user does not need to remove it manually.
mdm_data_t* mdm_get_wifi_dhcpinfo | ( | void | ) |
API to get the DHCP-assigned addresses from the last successful DHCP request, if any.
Admin can get the DHCP address from the last succeeded DHCP request.
mdm_data_t* mdm_get_wifi_ssid | ( | void | ) |
API to get the Service Set Identifier (SSID) of the current 802.11 network.
Admin can check the Service Set Identifier (SSID) of the current 802.11 network.
mdm_data_t* mdm_get_wifi_ssids_from_blacklist | ( | void | ) |
API to retrieve the blacklist of Wi-Fi network SSIDs for all admins.
mdm_data_t* mdm_get_wifi_ssids_from_whitelist | ( | void | ) |
API to retrieve the whitelist of Wi-Fi network SSIDs for all admins.
mdm_status_t mdm_is_network_blocked | ( | const char * | ssid | ) |
API to check if a network with the given SSID is blocked.
Admin can check whether network is blocked or not.
[in] | ssid | The SSID of an Enterprise WLAN Network. |
MDM_TRUE | The network is blocked |
MDM_FALSE | The network is not blocked |
MDM_STATUS_ERROR | Error |
mdm_status_t mdm_is_network_secure | ( | const char * | ssid | ) |
API to get the enterprise WLAN EAP type.
Admin can check whether WLAN AP is secure or not (any type of protection).
[in] | ssid | The SSID of an Enterprise WLAN Network. |
MDM_TRUE | Secure |
MDM_FALSE | Not secure |
MDM_STATUS_ERROR | Fail |
mdm_status_t mdm_is_wifi_ap_setting_user_modification_allowed | ( | void | ) |
API to check whether modification of Wi-Fi AP Setting by the user is allowed or not.
Admin can use this API to check if the user is denied from modifying the Hot Spot settings. If modification is denied, the UI will be grayed out so user will not be able to modify the settings. If modification is allowed user will be able to modify the Wi-Fi AP settings.
MDM_TRUE | Activated |
MDM_FALSE | Deactivated |
MDM_STATUS_ERROR | Error |
mdm_status_t mdm_is_wifi_hidden_ssid | ( | void | ) |
MDM_TRUE if this network does not broadcast its SSID, so an SSID-specific probe request must be used for scans.
mdm_status_t mdm_is_wifi_ssid_restriction_active | ( | void | ) |
API to get active state of the Bluetooth device restriction.
MDM_TRUE | Policy is activated |
MDM_FALSE | Policy is deactivated |
MDM_STATUS_ERROR | Error |
mdm_status_t mdm_is_wifi_state_change_allowed | ( | void | ) |
API to check if Wi-Fi state change is allowed or not.
Admin can use this API to check if the user is allowed or not to change the Wi-Fi state.
MDM_TRUE | Change Wi-Fi state is allowed |
MDM_FALSE | Restricted |
MDM_STATUS_ERROR | Failure |
mdm_result_t mdm_remove_wifi_ssids_from_blacklist | ( | GList * | SSIDs | ) |
API to remove a list of Wi-Fi network SSIDs from the Wi-Fi network blacklist.
[in] | SSIDs | Wi-Fi network SSID list to be removed from the black list. Only SSIDs that are already on black list are removed. For example, if black list contains [ "SSID1", "SSID2" ] and SSIDs contain [ "SSID1" ], final black list will be [ "SSID2" ]. |
MDM_RESULT_SUCCESS | Successful |
MDM_RESULT_FAIL | General failure |
MDM_RESULT_NOT_SUPPORTED | Not supported |
MDM_RESULT_INVALID_PARAM | Invalid parameter |
MDM_RESULT_ACCESS_DENIED | The application does not have the privilege to call this function. |
mdm_result_t mdm_remove_wifi_ssids_from_whitelist | ( | GList * | SSIDs | ) |
API to remove a list of Wi-Fi network SSIDs from the Wi-Fi network whitelist.
[in] | SSIDs | Wi-Fi network SSID list to be removed from the white list. Only SSIDs that are already on white list are removed. For example, if white list contains [ "SSID1", "SSID2" ] and SSIDs contain [ "SSID1" ], final white list will be [ "SSID2" ]. |
MDM_RESULT_SUCCESS | Successful |
MDM_RESULT_FAIL | General failure |
MDM_RESULT_NOT_SUPPORTED | Not supported |
MDM_RESULT_INVALID_PARAM | Invalid parameter |
MDM_RESULT_ACCESS_DENIED | The application does not have the privilege to call this function. |
mdm_result_t mdm_set_allow_user_policy_changes | ( | mdm_status_t | enable | ) |
API to allow or disallow modify all Wi-Fi network settings.
When this policy is in effect (value false) the user is only allowed to modify user and/or password of a Wi-Fi network, also user can not remove the enterprise network. Otherwise, the user can modify all Wi-Fi network settings normally.
[in] | enable | MDM_ENABLED to allow changes in all Wi-Fi network settings. MDM_DISABLED to allow changes only in user and/or password. |
MDM_RESULT_SUCCESS | Successful |
MDM_RESULT_FAIL | General failure |
MDM_RESULT_NOT_SUPPORTED | Not supported |
MDM_RESULT_INVALID_PARAM | Invalid parameter |
MDM_RESULT_ACCESS_DENIED | The application does not have the privilege to call this function. |
mdm_result_t mdm_set_allow_wifi | ( | mdm_status_t | state | ) |
API to allow or restrict the use of Wi-Fi.
Use this API to allow or restrict the use of Wi-Fi on a device on behalf of the end user without any user interaction.
[in] | state | MDM_RESTRICTED — Restrict the use of Wi-Fi on a device. If set to restricted, the user will not be able to turn it on from device settings or quick panel menu. MDM_ALLOWED — Allow the use of Wi-Fi on a device, if the status is set to allowed. Note that if Wi-Fi capability is allowed after being restricted it will be turned off by default so the user has to turn it on manually from device settings or quick panel menu, provided that there were no access points configured yet. Otherwise default auto connection to recently configured wifi network will take place, unless explicitely blocked with mdm_set_automatic_connection_to_wifi. |
MDM_RESULT_SUCCESS | Successful |
MDM_RESULT_FAIL | General failure |
MDM_RESULT_NOT_SUPPORTED | Not supported |
MDM_RESULT_INVALID_PARAM | Invalid parameter |
MDM_RESULT_ACCESS_DENIED | The application does not have the privilege to call this function. |
mdm_result_t mdm_set_automatic_connection_to_wifi | ( | bool | enable | ) |
API to allow or disallow the user to automatically connect to a known Wi-Fi network.
[in] | enable | True to allow automatic connection to a known Wi-Fi network or false to disallow it. |
MDM_RESULT_SUCCESS | Successful |
MDM_RESULT_FAIL | General failure |
MDM_RESULT_NOT_SUPPORTED | Not supported |
MDM_RESULT_INVALID_PARAM | Invalid parameter |
MDM_RESULT_ACCESS_DENIED | The application does not have the privilege to call this function. |
mdm_result_t mdm_set_minimum_required_security | ( | mdm_wifi_sec_type_e | secType | ) |
API to set a minimum security level to connect to a Wi-Fi AP.
Admin can use this API to block user to modify Enterprise Wi-Fi settings except user and password.
[in] | secType | The minimum required security. |
MDM_RESULT_SUCCESS | Successful |
MDM_RESULT_FAIL | General failure |
MDM_RESULT_NOT_SUPPORTED | Not supported |
MDM_RESULT_INVALID_PARAM | Invalid parameter |
MDM_RESULT_ACCESS_DENIED | The application does not have the privilege to call this function. |
mdm_result_t mdm_set_password_hidden | ( | mdm_status_t | passHidden | ) |
API to set the hidden state of the WLAN enterprise network.
This policy hides the password characters of Wi-Fi connection with asterisks. The default value is MDM_TRUE.
MDM_RESULT_SUCCESS | Successful |
MDM_RESULT_FAIL | General failure |
MDM_RESULT_NOT_SUPPORTED | Not supported |
MDM_RESULT_INVALID_PARAM | Invalid parameter |
MDM_RESULT_ACCESS_DENIED | The application does not have the privilege to call this function. |
mdm_result_t mdm_set_wifi_ap_setting | ( | const char * | ssid, |
mdm_wifi_sec_type_e | securityType, | ||
const char * | password | ||
) |
API to configure the Wi-Fi AP or Wi-Fi tethering or HotSpot setting of the device.
Admin can remove an enterprise WLAN configuration. The network name is removed from the APs list, so that the user does not need to remove it manually.
[in] | ssid | The SSID of a Enterprise WLAN Network. |
[in] | securityType | security type of the Wi-Fi AP should be one of SECURITY_LEVEL_OPEN or SECURITY_LEVEL_WPA_PSK. Any other type will fail the API. |
[in] | password | password to be used when security type is SECURITY_LEVEL_WPA_PSK, will be ignored for SECURITY_LEVEL_OPEN security type. Minimum of 8 characters is required for SECURITY_TYPE_WPA_PSK security type. |
MDM_RESULT_SUCCESS | Successful |
MDM_RESULT_FAIL | General failure |
MDM_RESULT_NOT_SUPPORTED | Not supported |
MDM_RESULT_INVALID_PARAM | Invalid parameter |
MDM_RESULT_ACCESS_DENIED | The application does not have the privilege to call this function. |
mdm_result_t mdm_set_wifi_state_change_allowed | ( | bool | allow | ) |
API to allow or disallow Wi-Fi State Change (to ON/OFF).
[in] | allow | True to let the user change the Wi-Fi state or false otherwise. |
MDM_RESULT_SUCCESS | Successful |
MDM_RESULT_FAIL | General failure |
MDM_RESULT_NOT_SUPPORTED | Not supported |
MDM_RESULT_INVALID_PARAM | Invalid parameter |
MDM_RESULT_ACCESS_DENIED | The application does not have the privilege to call this function. |