Modified to return an exception(E_INVALID_STATE) when you try to connect to a speicif...
[framework/osp/net.git] / src / inc / FNetWifi_WifiSystemAdapter.h
index c8eb38d..730e4f0 100644 (file)
@@ -105,6 +105,16 @@ public:
     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
@@ -164,23 +174,23 @@ public:
      * 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);