diff options
author | hyunuktak <hyunuk.tak@samsung.com> | 2016-06-22 19:38:56 +0900 |
---|---|---|
committer | hyunuktak <hyunuk.tak@samsung.com> | 2016-06-22 19:39:05 +0900 |
commit | 267b65463cd3fd93a1ed245b527fca14fe469f07 (patch) | |
tree | 153f1a5ecc553869505307462724bbb39b6357db /plugins/loopback.c | |
parent | e0c6508191296071b1f84adc9a9dbb3ac6d530ad (diff) | |
download | connman-267b65463cd3fd93a1ed245b527fca14fe469f07.tar.gz connman-267b65463cd3fd93a1ed245b527fca14fe469f07.tar.bz2 connman-267b65463cd3fd93a1ed245b527fca14fe469f07.zip |
Remove some features and modify service filesubmit/tizen/20160624.012559accepted/tizen/wearable/20160624.064357accepted/tizen/tv/20160624.064037accepted/tizen/mobile/20160624.064052accepted/tizen/ivi/20160624.064339accepted/tizen/common/20160624.132425
Change-Id: Id3697d995e4db5d6f03cdf182825d5f61136e235
Signed-off-by: hyunuktak <hyunuk.tak@samsung.com>
Diffstat (limited to 'plugins/loopback.c')
-rwxr-xr-x | plugins/loopback.c | 31 |
1 files changed, 0 insertions, 31 deletions
diff --git a/plugins/loopback.c b/plugins/loopback.c index cfb33a8e..44100c64 100755 --- a/plugins/loopback.c +++ b/plugins/loopback.c @@ -68,36 +68,6 @@ static int setup_hostname(void) #if defined TIZEN_EXT FILE *fp = NULL; - -#if defined TIZEN_WEARABLE -#define BT_MAC "/csa/bluetooth/.bd_addr" - { - gchar* dev_id = "GearS2"; - char bt_mac[HOST_NAME_MAX + 1]; - char addr[5] = {0, }; - - fp = fopen(BT_MAC, "r"); - if(!fp){ - connman_error("Failed to get current hostname"); - strncpy(system_hostname, dev_id, strlen(dev_id)); - goto host_name_end; - } - - // get the last line's address - while (fgets(bt_mac, HOST_NAME_MAX, fp)) {} - - if (strlen(bt_mac) == 6) { - addr[0] = bt_mac[2]; - addr[1] = bt_mac[3]; - addr[2] = bt_mac[4]; - addr[3] = bt_mac[5]; - g_sprintf(system_hostname, "%s-%s", dev_id, addr); - } else - strncpy(system_hostname, dev_id, strlen(dev_id)); - - fclose(fp); - } -#else #define WIFI_MAC "/opt/etc/.mac.info" { char* rv = 0; @@ -124,7 +94,6 @@ static int setup_hostname(void) g_free(dev_id); fclose(fp); } -#endif host_name_end : #else |