Tizen Native API
5.5
|
The Network Monitoring API provides functions for getting Wi-Fi AP information.
#include <inm.h>
This set of functions is used to get Wi-Fi AP related information. To use This kind of APIs, You should create a inm handle using inm_initialize(). After that, you need to get connection handle using inm_wifi_get_connected_ap(), inm_wifi_foreach_found_ap(). You should destroy the created ap handle if you do not need it anymore. You should destroy the created inm handle if you do not need it anymore.
This API is related with the following features:
Functions | |
int | inm_wifi_ap_get_essid (inm_connection_h ap, char **essid) |
Gets ESSID (Extended Service Set Identifier). | |
int | inm_wifi_ap_get_raw_ssid (inm_connection_h ap, char **ssid, int *ssid_len) |
Gets raw SSID (Service Set Identifier). | |
int | inm_wifi_ap_get_bssid (inm_connection_h ap, char **bssid) |
Gets BSSID (Basic Service Set Identifier). | |
int | inm_wifi_ap_get_rssi (inm_connection_h ap, int *rssi) |
Gets the RSSI. | |
int | inm_wifi_ap_get_rssi_level (inm_connection_h ap, inm_wifi_rssi_level_e *rssi_level) |
Gets the RSSI level. | |
int | inm_wifi_ap_get_frequency (inm_connection_h ap, int *frequency) |
Gets the frequency band (MHz). | |
int | inm_wifi_ap_get_max_speed (inm_connection_h ap, int *max_speed) |
Gets the max speed (Mbps). | |
int | inm_wifi_ap_is_favorite (inm_connection_h ap, bool *favorite) |
Checks whether the access point is favorite or not. | |
int | inm_wifi_ap_is_passpoint (inm_connection_h ap, bool *passpoint) |
Checks whether the access point is a Passpoint or not. | |
int | inm_wifi_ap_get_security_type (inm_connection_h ap, inm_wifi_security_type_e *type) |
Gets the Wi-Fi security mode. | |
int | inm_wifi_ap_get_encryption_type (inm_connection_h ap, inm_wifi_encryption_type_e *type) |
Gets the Wi-Fi encryption type. | |
int | inm_wifi_ap_is_passphrase_required (inm_connection_h ap, bool *required) |
Checks whether the passphrase is required or not. | |
int | inm_wifi_ap_is_wps_supported (inm_connection_h ap, bool *supported) |
Checks whether the WPS (Wi-Fi Protected Setup) is supported or not. | |
int | inm_wifi_ap_get_disconnect_reason (inm_connection_h ap, inm_wifi_disconnect_reason_e *disconnect_reason) |
Gets the Wi-Fi disconnect reason from the supplicant. | |
int | inm_wifi_ap_get_assoc_status_code (inm_connection_h ap, inm_wifi_assoc_status_code_e *status_code) |
Gets the Wi-Fi Association Status Code from the supplicant. | |
int | inm_wifi_ap_foreach_vsie (inm_connection_h ap, inm_wifi_ap_vsie_cb callback, void *user_data) |
Gets all VSIE of AP. | |
Typedefs | |
typedef bool(* | inm_wifi_ap_vsie_cb )(unsigned char *vsie, int length, void *user_data) |
Called with VSIE data and length of VSIE. |
typedef bool(* inm_wifi_ap_vsie_cb)(unsigned char *vsie, int length, void *user_data) |
Called with VSIE data and length of VSIE.
[in] | vsie | The vendor specific data |
[in] | length | The length of vendor specific data |
[in] | user_data | The user data passed from the foreach function |
true
to continue with the next iteration of the loop, false
to break out of the loop Enumeration for Wi-Fi Association Status code, provided by the supplicant.
The Wi-Fi Standard Reference : Status codes (IEEE 802.11-2007, 7.3.1.9, Table 7-23).
Enumeration for Wi-Fi disconnect reason, provided by the supplicant.
Enumeration for Wi-Fi encryption type.
The following encryption modes are used in infrastructure and ad-hoc mode.
Enumeration for Wi-Fi security type.
The following security modes are used in infrastructure and ad-hoc mode. For now all EAP security mechanisms are provided only in infrastructure mode.
int inm_wifi_ap_foreach_vsie | ( | inm_connection_h | ap, |
inm_wifi_ap_vsie_cb | callback, | ||
void * | user_data | ||
) |
Gets all VSIE of AP.
[in] | ap | The access point handle |
[in] | callback | The callback to be called for each VSIE of AP |
[in] | user_data | The user data passed to the callback function |
INM_ERROR_NONE | Successful |
INM_ERROR_OUT_OF_MEMORY | Out of memory |
INM_ERROR_INVALID_PARAMETER | Invalid parameter |
INM_ERROR_NOT_SUPPORTED | Not supported |
INM_ERROR_OPERATION_FAILED | Operation failed |
int inm_wifi_ap_get_assoc_status_code | ( | inm_connection_h | ap, |
inm_wifi_assoc_status_code_e * | status_code | ||
) |
Gets the Wi-Fi Association Status Code from the supplicant.
[in] | ap | The access point handle |
[out] | status_code | The supplicant Wi-Fi association status code |
INM_ERROR_NONE | Successful |
INM_ERROR_INVALID_PARAMETER | Invalid parameter |
INM_ERROR_NOT_SUPPORTED | Not supported |
INM_ERROR_OPERATION_FAILED | Operation failed |
int inm_wifi_ap_get_bssid | ( | inm_connection_h | ap, |
char ** | bssid | ||
) |
Gets BSSID (Basic Service Set Identifier).
[in] | ap | The access point handle |
[out] | bssid | The BSSID |
INM_ERROR_NONE | Successful |
INM_ERROR_OUT_OF_MEMORY | Out of memory |
INM_ERROR_INVALID_PARAMETER | Invalid parameter |
INM_ERROR_NOT_SUPPORTED | Not supported |
INM_ERROR_OPERATION_FAILED | Operation failed |
int inm_wifi_ap_get_disconnect_reason | ( | inm_connection_h | ap, |
inm_wifi_disconnect_reason_e * | disconnect_reason | ||
) |
Gets the Wi-Fi disconnect reason from the supplicant.
[in] | ap | The access point handle |
[out] | disconnect_reason | The supplicant disconnect reason |
INM_ERROR_NONE | Successful |
INM_ERROR_INVALID_PARAMETER | Invalid parameter |
INM_ERROR_NOT_SUPPORTED | Not supported |
INM_ERROR_OPERATION_FAILED | Operation failed |
int inm_wifi_ap_get_encryption_type | ( | inm_connection_h | ap, |
inm_wifi_encryption_type_e * | type | ||
) |
Gets the Wi-Fi encryption type.
[in] | ap | The access point handle |
[out] | type | The type of Wi-Fi encryption |
INM_ERROR_NONE | Successful |
INM_ERROR_INVALID_PARAMETER | Invalid parameter |
INM_ERROR_NOT_SUPPORTED | Not supported |
INM_ERROR_OPERATION_FAILED | Operation failed |
int inm_wifi_ap_get_essid | ( | inm_connection_h | ap, |
char ** | essid | ||
) |
Gets ESSID (Extended Service Set Identifier).
[in] | ap | The access point handle |
[out] | essid | The ESSID |
INM_ERROR_NONE | Successful |
INM_ERROR_OUT_OF_MEMORY | Out of memory |
INM_ERROR_INVALID_PARAMETER | Invalid parameter |
INM_ERROR_NOT_SUPPORTED | Not supported |
INM_ERROR_OPERATION_FAILED | Operation failed |
int inm_wifi_ap_get_frequency | ( | inm_connection_h | ap, |
int * | frequency | ||
) |
Gets the frequency band (MHz).
[in] | ap | The access point handle |
[out] | frequency | The frequency |
INM_ERROR_NONE | Successful |
INM_ERROR_INVALID_PARAMETER | Invalid parameter |
INM_ERROR_NOT_SUPPORTED | Not supported |
INM_ERROR_OPERATION_FAILED | Operation failed |
int inm_wifi_ap_get_max_speed | ( | inm_connection_h | ap, |
int * | max_speed | ||
) |
Gets the max speed (Mbps).
[in] | ap | The access point handle |
[out] | max_speed | The max speed |
INM_ERROR_NONE | Successful |
INM_ERROR_INVALID_PARAMETER | Invalid parameter |
INM_ERROR_NOT_SUPPORTED | Not supported |
INM_ERROR_OPERATION_FAILED | Operation failed |
int inm_wifi_ap_get_raw_ssid | ( | inm_connection_h | ap, |
char ** | ssid, | ||
int * | ssid_len | ||
) |
Gets raw SSID (Service Set Identifier).
[in] | ap | The access point handle |
[out] | ssid | The raw SSID bytes |
[out] | ssid_len | The raw SSID length |
INM_ERROR_NONE | Successful |
INM_ERROR_OUT_OF_MEMORY | Out of memory |
INM_ERROR_INVALID_PARAMETER | Invalid parameter |
INM_ERROR_NOT_SUPPORTED | Not supported |
INM_ERROR_OPERATION_FAILED | Operation failed |
int inm_wifi_ap_get_rssi | ( | inm_connection_h | ap, |
int * | rssi | ||
) |
Gets the RSSI.
[in] | ap | The access point handle |
[out] | rssi | The RSSI value (in dBm) |
INM_ERROR_NONE | Successful |
INM_ERROR_INVALID_PARAMETER | Invalid parameter |
INM_ERROR_NOT_SUPPORTED | Not supported |
INM_ERROR_OPERATION_FAILED | Operation failed |
int inm_wifi_ap_get_rssi_level | ( | inm_connection_h | ap, |
inm_wifi_rssi_level_e * | rssi_level | ||
) |
Gets the RSSI level.
[in] | ap | The access point handle |
[out] | rssi_level | The RSSI level |
INM_ERROR_NONE | Successful |
INM_ERROR_INVALID_PARAMETER | Invalid parameter |
INM_ERROR_NOT_SUPPORTED | Not supported |
INM_ERROR_OPERATION_FAILED | Operation failed |
int inm_wifi_ap_get_security_type | ( | inm_connection_h | ap, |
inm_wifi_security_type_e * | type | ||
) |
Gets the Wi-Fi security mode.
[in] | ap | The access point handle |
[out] | type | The type of Wi-Fi security |
INM_ERROR_NONE | Successful |
INM_ERROR_INVALID_PARAMETER | Invalid parameter |
INM_ERROR_NOT_SUPPORTED | Not supported |
INM_ERROR_OPERATION_FAILED | Operation failed |
int inm_wifi_ap_is_favorite | ( | inm_connection_h | ap, |
bool * | favorite | ||
) |
Checks whether the access point is favorite or not.
[in] | ap | The access point handle |
[out] | favorite | true if access point is favorite, otherwise false if access point is not favorite |
INM_ERROR_NONE | Successful |
INM_ERROR_INVALID_PARAMETER | Invalid parameter |
INM_ERROR_NOT_SUPPORTED | Not supported |
INM_ERROR_OPERATION_FAILED | Operation failed |
int inm_wifi_ap_is_passphrase_required | ( | inm_connection_h | ap, |
bool * | required | ||
) |
Checks whether the passphrase is required or not.
[in] | ap | The access point handle |
[out] | required | true if passphrase is required, false if passphrase is not required. |
INM_ERROR_NONE | Successful |
INM_ERROR_INVALID_PARAMETER | Invalid parameter |
INM_ERROR_NOT_SUPPORTED | Not supported |
INM_ERROR_OPERATION_FAILED | Operation failed |
int inm_wifi_ap_is_passpoint | ( | inm_connection_h | ap, |
bool * | passpoint | ||
) |
Checks whether the access point is a Passpoint or not.
[in] | ap | The access point handle |
[out] | passpoint | true if access point is a Passpoint, false if access point is not a Passpoint. |
INM_ERROR_NONE | Successful |
INM_ERROR_INVALID_PARAMETER | Invalid parameter |
INM_ERROR_NOT_SUPPORTED | Not supported |
INM_ERROR_OPERATION_FAILED | Operation failed |
int inm_wifi_ap_is_wps_supported | ( | inm_connection_h | ap, |
bool * | supported | ||
) |
Checks whether the WPS (Wi-Fi Protected Setup) is supported or not.
[in] | ap | The access point handle |
[out] | supported | true if WPS is supported, otherwise false is WPS is not supported. |
INM_ERROR_NONE | Successful |
INM_ERROR_INVALID_PARAMETER | Invalid parameter |
INM_ERROR_NOT_SUPPORTED | Not supported |
INM_ERROR_OPERATION_FAILED | Operation failed |