summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJaehyun Kim <jeik01.kim@samsung.com>2013-03-23 22:47:37 +0900
committerJaehyun Kim <jeik01.kim@samsung.com>2013-03-26 20:36:33 +0900
commit5d8c21616e430d5f026c0437351a360e36d9ac0d (patch)
treeae879188df0a05e893eb4ae4cfde1c4c2f012753
parent652940adaa0b1a2f9a306748f708d088815c37ca (diff)
downloadwifi-5d8c21616e430d5f026c0437351a360e36d9ac0d.tar.gz
wifi-5d8c21616e430d5f026c0437351a360e36d9ac0d.tar.bz2
wifi-5d8c21616e430d5f026c0437351a360e36d9ac0d.zip
Handle NET_ERR_ACTIVE_CONNECTION_EXISTS event and correct the unit of data transfer ratesubmit/tizen_2.1/20130424.230713accepted/tizen_2.1/20130425.0355202.1b_release
Change-Id: Ia4a59ffe34ad9c81c1de85848d2c20f5e78399ad
-rw-r--r--debian/changelog8
-rw-r--r--packaging/capi-network-wifi.spec2
-rwxr-xr-xsrc/libnetwork.c3
-rwxr-xr-xsrc/net_wifi_ap.c2
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 <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
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;
}