summary |
shortlog |
log |
commit | commitdiff |
tree
raw |
patch |
inline | side by side (from parent 1:
91babcd)
- Issues
Tethering is not turned on.
- Fix description
Cellular connection state should be checked by CONNECTION_CELLULAR_STATE_CONNECTED.
When network is connected, tethering can be turned on.
So funtion name and log are also updated from "available" to "connected".
Change-Id: Ic3066d73ee9d95b88c0c6fa20b3ee46941029285
Name: ug-setting-mobileap-efl
Summary: Tethering UI Gadget Library
Name: ug-setting-mobileap-efl
Summary: Tethering UI Gadget Library
-Version: 0.1.156
-Release: 2
+Version: 0.1.157
+Release: 1
Group: TO_BE/FILLED_IN
License: Flora License Version 1.0
Source0: %{name}-%{version}.tar.gz
Group: TO_BE/FILLED_IN
License: Flora License Version 1.0
Source0: %{name}-%{version}.tar.gz
%{_ugdir}/lib/libug-setting-mobile-ap-ug.so
%changelog
%{_ugdir}/lib/libug-setting-mobile-ap-ug.so
%changelog
+* Mon Nov 12 2012 Seungyoun Ju <sy39.ju@samsung.com> 0.1.157-1
+- Cellular network state is separated to CONNECTION_CELLULAR_STATE_AVAILABLE and CONNECTION_CELLULAR_STATE_CONNECTED
+
* Wed Oct 31 2012 Seungyoun Ju <sy39.ju@samsung.com> 0.1.156-2
- Initial package upload
* Wed Oct 31 2012 Seungyoun Ju <sy39.ju@samsung.com> 0.1.156-2
- Initial package upload
-static bool __is_available_wifi_net(mh_appdata_t *ad)
+static bool __is_connected_wifi_net(mh_appdata_t *ad)
{
connection_wifi_state_e wifi_state;
int ret;
{
connection_wifi_state_e wifi_state;
int ret;
}
if (wifi_state != CONNECTION_WIFI_STATE_CONNECTED) {
}
if (wifi_state != CONNECTION_WIFI_STATE_CONNECTED) {
- ERR("Wi-Fi network is not available\n");
+ ERR("Wi-Fi network is not connected\n");
- DBG("Wi-Fi network is available\n");
+ DBG("Wi-Fi network is connected\n");
-static bool __is_available_ethernet_net(mh_appdata_t *ad)
+static bool __is_connected_ethernet_net(mh_appdata_t *ad)
{
connection_ethernet_state_e ethernet_state;
int ret;
{
connection_ethernet_state_e ethernet_state;
int ret;
}
if (ethernet_state != CONNECTION_ETHERNET_STATE_CONNECTED) {
}
if (ethernet_state != CONNECTION_ETHERNET_STATE_CONNECTED) {
- ERR("Ethernet network is not available\n");
+ ERR("Ethernet network is not connected\n");
- DBG("Ethernet network is available\n");
+ DBG("Ethernet network is connected\n");
-static bool __is_available_cellular_net(mh_appdata_t *ad)
+static bool __is_connected_cellular_net(mh_appdata_t *ad)
{
connection_cellular_state_e cellular_state;
sim_state_e sim_state;
{
connection_cellular_state_e cellular_state;
sim_state_e sim_state;
_prepare_popup(ad, MH_POP_INFORMATION_WO_BUTTON,
_("IDS_MOBILEAP_POP_UNABLE_TO_USE_TETHERING_IN_FLIGHT_MODE_TO_USE_TETHERING_DISABLE_FLIGHT_MODE"));
_create_popup(ad);
_prepare_popup(ad, MH_POP_INFORMATION_WO_BUTTON,
_("IDS_MOBILEAP_POP_UNABLE_TO_USE_TETHERING_IN_FLIGHT_MODE_TO_USE_TETHERING_DISABLE_FLIGHT_MODE"));
_create_popup(ad);
- ERR("Cellular network is not available\n");
+ ERR("Cellular network is not connected\n");
- } else if (cellular_state != CONNECTION_CELLULAR_STATE_AVAILABLE) {
+ } else if (cellular_state != CONNECTION_CELLULAR_STATE_CONNECTED) {
_prepare_popup(ad, MH_POP_INFORMATION,
_("IDS_MOBILEAP_POP_UNABLE_TO_USE_PACKET_DATA_SERVICE_OUT_OF_COVERAGE"));
_create_popup(ad);
_prepare_popup(ad, MH_POP_INFORMATION,
_("IDS_MOBILEAP_POP_UNABLE_TO_USE_PACKET_DATA_SERVICE_OUT_OF_COVERAGE"));
_create_popup(ad);
- ERR("Cellular network is not available\n");
+ ERR("Cellular network is not connected\n");
- DBG("Cellular network is available\n");
+ DBG("Cellular network is connected\n");
}
/* Turn on WiFi hotspot */
}
/* Turn on WiFi hotspot */
- if (!__is_available_ethernet_net(ad) && !__is_available_cellular_net(ad)) {
- ERR("There is no available network\n");
+ if (!__is_connected_ethernet_net(ad) && !__is_connected_cellular_net(ad)) {
+ ERR("There is no connected network\n");
}
/* Turn on Bluetooth tethering */
}
/* Turn on Bluetooth tethering */
- if (!__is_available_ethernet_net(ad) && !__is_available_wifi_net(ad) &&
- !__is_available_cellular_net(ad)) {
- ERR("There is no available network\n");
+ if (!__is_connected_ethernet_net(ad) && !__is_connected_wifi_net(ad) &&
+ !__is_connected_cellular_net(ad)) {
+ ERR("There is no connected network\n");
}
/* Turn on USB tethering */
}
/* Turn on USB tethering */
- if (!__is_available_ethernet_net(ad) && !__is_available_wifi_net(ad) &&
- !__is_available_cellular_net(ad)) {
- ERR("There is no available network\n");
+ if (!__is_connected_ethernet_net(ad) && !__is_connected_wifi_net(ad) &&
+ !__is_connected_cellular_net(ad)) {
+ ERR("There is no connected network\n");