From 5d8c21616e430d5f026c0437351a360e36d9ac0d Mon Sep 17 00:00:00 2001 From: Jaehyun Kim Date: Sat, 23 Mar 2013 22:47:37 +0900 Subject: [PATCH] Handle NET_ERR_ACTIVE_CONNECTION_EXISTS event and correct the unit of data transfer rate Change-Id: Ia4a59ffe34ad9c81c1de85848d2c20f5e78399ad --- debian/changelog | 8 ++++++++ packaging/capi-network-wifi.spec | 2 +- src/libnetwork.c | 3 +++ src/net_wifi_ap.c | 2 +- 4 files changed, 13 insertions(+), 2 deletions(-) diff --git a/debian/changelog b/debian/changelog index 02b8591..e272872 100644 --- a/debian/changelog +++ b/debian/changelog @@ -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 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 diff --git a/packaging/capi-network-wifi.spec b/packaging/capi-network-wifi.spec index 1d10355..1d0df20 100644 --- a/packaging/capi-network-wifi.spec +++ b/packaging/capi-network-wifi.spec @@ -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 diff --git a/src/libnetwork.c b/src/libnetwork.c index a09e63a..d472339 100755 --- a/src/libnetwork.c +++ b/src/libnetwork.c @@ -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; diff --git a/src/net_wifi_ap.c b/src/net_wifi_ap.c index 6d01f9d..cedb9cd 100755 --- a/src/net_wifi_ap.c +++ b/src/net_wifi_ap.c @@ -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; } -- 2.7.4