Handle NET_ERR_ACTIVE_CONNECTION_EXISTS event and correct the unit of data transfer... 2.1b_release accepted/tizen_2.1/20130425.035520 submit/tizen_2.1/20130424.230713
authorJaehyun Kim <jeik01.kim@samsung.com>
Sat, 23 Mar 2013 13:47:37 +0000 (22:47 +0900)
committerJaehyun Kim <jeik01.kim@samsung.com>
Tue, 26 Mar 2013 11:36:33 +0000 (20:36 +0900)
Change-Id: Ia4a59ffe34ad9c81c1de85848d2c20f5e78399ad

debian/changelog
packaging/capi-network-wifi.spec
src/libnetwork.c
src/net_wifi_ap.c

index 02b8591..e272872 100644 (file)
@@ -1,3 +1,11 @@
+capi-network-wifi (0.1.2-17) unstable; urgency=low
+
+  * Handle NET_ERR_ACTIVE_CONNECTION_EXISTS event and correct the unit of data transfer rate
+  * Git: framework/api/wifi
+  * Tag: capi-network-wifi_0.1.2-17
+
+ -- JaeHyun Kim <jeik01.kim@samsung.com>  Fri, 22 Mar 2013 18:30:06 +0900
+
 capi-network-wifi (0.1.2-16) unstable; urgency=low
 
   * Revise wifi_is_activated() to fix performance issue
index 1d10355..1d0df20 100644 (file)
@@ -1,6 +1,6 @@
 Name:       capi-network-wifi
 Summary:    Network Wi-Fi library in TIZEN C API
-Version:    0.1.2_16
+Version:    0.1.2_17
 Release:    1
 Group:      System/Network
 License:    Apache-2.0
index a09e63a..d472339 100755 (executable)
@@ -409,6 +409,9 @@ static void __libnet_evt_cb(net_event_info_t *event_cb, void *user_data)
                        __libnet_state_changed_cb(event_cb->ProfileName, prof_info_p,
                                                        WIFI_CONNECTION_STATE_CONNECTED);
                        return;
+               case NET_ERR_ACTIVE_CONNECTION_EXISTS:
+                       WIFI_LOG(WIFI_INFO, "Connection already existed\n");
+                       return;
                default :
                        WIFI_LOG(WIFI_ERROR, "Connection open failed!\n");
                        break;
index 6d01f9d..cedb9cd 100755 (executable)
@@ -205,7 +205,7 @@ int wifi_ap_get_max_speed(wifi_ap_h ap, int* max_speed)
        }
 
        net_profile_info_t *profile_info = ap;
-       *max_speed = (int)profile_info->ProfileInfo.Wlan.max_rate;
+       *max_speed = (int)profile_info->ProfileInfo.Wlan.max_rate / 1000000;
 
        return WIFI_ERROR_NONE;
 }