bool IsConnected(void) const;
/**
+ * Checks whether the local device is already connected with a specific remote STA.
+ *
+ * @return @c true, if the local device is already connected with a specific remote STA @n
+ * @c false, otherwise
+ * @param[in] pApHandle a handle of access point
+ *
+ */
+ bool IsConnected(wifi_ap_h pApHandle) const;
+
+ /**
* Requests a scan for nearby BSS with both infrastructure and independent mode.
*
* @return An error code
* Called when the connection state is changed.
*
* @param[in] state Connection status
- * @param[in] apHanlder Access point handler
+ * @param[in] pApHandle A handle of access point
* @param[in] pUserData The user data passed from the callback registration function
*/
- static void OnWifiConnectionStateChanged(wifi_connection_state_e state, wifi_ap_h ap, void* pUserData);
+ static void OnWifiConnectionStateChanged(wifi_connection_state_e state, wifi_ap_h pApHandle, void* pUserData);
/**
* Called when each access point is found.
*
- * @param[in] pApHandler Access point
- * @param[in] pUserData The user data passed from the callback registration function
+ * @param[in] pApHandle A handle of access point
+ * @param[in] pUserData The user data passed from the callback registration function
*/
static bool OnWifiEachAccessPointFound(wifi_ap_h pApHandle, void* pUserData);
/**
* Called when each access point is checked.
*
- * @param[in] pApHandle Access point
+ * @param[in] pApHandle A handle of access point
* @param[in] pUserData The user data passed from the callback registration function
*/
static bool OnWifiEachAccessPointChecked(wifi_ap_h pApHandle, void* pUserData);