Modifed build option based on naming rule 93/84293/2 accepted/tizen/common/20160818.144453 accepted/tizen/ivi/20160818.232014 accepted/tizen/mobile/20160818.232006 accepted/tizen/tv/20160818.232010 accepted/tizen/wearable/20160818.232000 submit/tizen/20160818.053744
authorSeonah Moon <seonah1.moon@samsung.com>
Thu, 18 Aug 2016 02:03:37 +0000 (11:03 +0900)
committerSeonah Moon <seonah1.moon@samsung.com>
Thu, 18 Aug 2016 02:05:57 +0000 (11:05 +0900)
Change-Id: I009ebbb953f4c5275ac62bfe7ab0734c11e7a77b
Signed-off-by: Seonah Moon <seonah1.moon@samsung.com>
CMakeLists.txt
include/mobileap_softap.h
packaging/mobileap-agent.spec
src/mobileap_main.c
src/mobileap_network.c
src/mobileap_notification.c
src/mobileap_softap.c
src/mobileap_wifi.c

index 06bd2f4..8a75e46 100755 (executable)
@@ -47,18 +47,18 @@ IF("${ARCH}" STREQUAL "arm")
        ADD_DEFINITIONS("-DTARGET")
        MESSAGE("add -DTARGET")
 ENDIF("${ARCH}" STREQUAL "arm")
-IF(TIZEN_TV)
-       ADD_DEFINITIONS(-DTIZEN_TV)
-ENDIF(TIZEN_TV)
+IF(TIZEN_PROFILE_TV)
+       ADD_DEFINITIONS(-DTIZEN_PROFILE_TV)
+ENDIF(TIZEN_PROFILE_TV)
 
 ADD_DEFINITIONS("-DPREFIX=\"${CMAKE_INSTALL_PREFIX}\"")
 ADD_DEFINITIONS("-DVENDOR=\"${APP_VENDOR}\"")
 ADD_DEFINITIONS("-DAPPNAME=\"${APP_NAME}\"")
 ADD_DEFINITIONS("-DAPP_DIR=\"${APP_DIR}\"")
 
-IF(TIZEN_WLAN_BOARD_SPRD)
-       ADD_DEFINITIONS(-DTIZEN_WLAN_BOARD_SPRD)
-ENDIF(TIZEN_WLAN_BOARD_SPRD)
+IF(TIZEN_FEATURE_WLAN_BOARD_SPRD)
+       ADD_DEFINITIONS(-DTIZEN_FEATURE_WLAN_BOARD_SPRD)
+ENDIF(TIZEN_FEATURE_WLAN_BOARD_SPRD)
 
 SET(CMAKE_EXE_LINKER_FLAGS "${CMAKE_EXE_LINKER_FLAGS} -Wl,--as-needed -pie")
 
index d36551a..678eccb 100755 (executable)
 #define HOSTAPD_WPS_DEVICE_TYPE     "6-0050F204-1"
 #define HOSTPAD_WPS_CONFIG_METHODS     "label virtual_display virtual_push_button keypad"
 
-#ifndef TIZEN_WLAN_BOARD_SPRD
+#ifndef TIZEN_FEATURE_WLAN_BOARD_SPRD
 #define HOSTAPD_CONF           "interface=%s\n" \
                                "driver=nl80211\n" \
                                "ctrl_interface=%s\n" \
@@ -274,7 +274,7 @@ int _mh_core_enable_port_filtering(int enable);
 int _mh_core_add_port_filtering_rule(int port, const char *protocol, int allow);
 int _mh_core_add_custom_port_filtering_rule(int port1, int port2, const char *protocol, int allow);
 int _mh_core_set_vpn_passthrough_rule(int vpn_type, int enable);
-#ifdef TIZEN_WLAN_BOARD_SPRD
+#ifdef TIZEN_FEATURE_WLAN_BOARD_SPRD
 int _mh_core_push_wps_button(void);
 int _mh_core_set_wps_pin(const char *wps_pin);
 #endif
index 7139118..16a36b8 100644 (file)
@@ -1,6 +1,6 @@
 Name:          mobileap-agent
 Summary:       Mobile AP daemon for setting tethering environments
-Version:       1.0.69
+Version:       1.0.70
 Release:       1
 Group:         System/Network
 License:       Apache-2.0
@@ -49,10 +49,10 @@ export FFLAGS="$FFLAGS -DTIZEN_DEBUG_ENABLE"
 
 %cmake -DCMAKE_BUILD_TYPE="" \
 %if "%{?profile}" == "tv"
-       -DTIZEN_TV=1 \
+       -DTIZEN_PROFILE_TV=1 \
 %endif
 %if "%{?tizen_target_name}" == "TM1"
-       -DTIZEN_WLAN_BOARD_SPRD=1 \
+       -DTIZEN_FEATURE_WLAN_BOARD_SPRD=1 \
 %endif
        .
 
index 1781869..87b2bd1 100755 (executable)
@@ -401,7 +401,7 @@ gboolean tethering_push_wps_button(Tethering *obj,
 
        DBG("+");
 
-#ifdef TIZEN_WLAN_BOARD_SPRD
+#ifdef TIZEN_FEATURE_WLAN_BOARD_SPRD
        ret = _mh_core_push_wps_button();
 #else
        ret = MOBILE_AP_ERROR_NOT_PERMITTED;
@@ -419,7 +419,7 @@ gboolean tethering_set_wps_pin(Tethering *obj,
 
        DBG("+");
 
-#ifdef TIZEN_WLAN_BOARD_SPRD
+#ifdef TIZEN_FEATURE_WLAN_BOARD_SPRD
        ret = _mh_core_set_wps_pin(wps_pin);
 #else
        ret = MOBILE_AP_ERROR_NOT_PERMITTED;
index 5e10a22..803d379 100644 (file)
@@ -89,7 +89,7 @@ static mobile_ap_error_code_e __get_conn_error(int conn_error)
                err = MOBILE_AP_ERROR_ALREADY_ENABLED;
                break;
 
-#ifndef TIZEN_TV
+#ifndef TIZEN_PROFILE_TV
        case CONNECTION_ERROR_PERMISSION_DENIED:
                err = MOBILE_AP_ERROR_PERMISSION_DENIED;
                break;
index 3094ec4..e546437 100644 (file)
@@ -27,7 +27,7 @@
 #include <bundle.h>
 #include <bundle_internal.h>
 #include <syspopup_caller.h>
-#ifndef TIZEN_TV
+#ifndef TIZEN_PROFILE_TV
 #include <appsvc.h>
 #endif
 
@@ -316,7 +316,7 @@ int _create_connected_noti(mobile_ap_type_e type, int count)
        b = bundle_create();
        bundle_add(b, "caller", "notification");
 
-#ifndef TIZEN_TV
+#ifndef TIZEN_PROFILE_TV
        appsvc_set_pkgname(b, "ug-setting-mobileap-efl");
 #endif
 
index 870de39..448994a 100755 (executable)
@@ -235,7 +235,7 @@ static int __execute_hostapd(const mobile_ap_type_e type, const char *ssid,
        return MOBILE_AP_ERROR_NONE;
 }
 
-#ifdef TIZEN_WLAN_BOARD_SPRD
+#ifdef TIZEN_FEATURE_WLAN_BOARD_SPRD
 static int __execute_hostapd_wps(const mobile_ap_type_e type, const char *ssid,
                const char *passphrase, const char *mode, int channel, int hide_mode, int mac_filter, int max_sta)
 {
@@ -961,7 +961,7 @@ int _mh_core_enable_softap(const mobile_ap_type_e type, const char *ssid,
                }
 
                if (security != NULL && !strcmp(security, "wps")) {
-#ifdef TIZEN_WLAN_BOARD_SPRD
+#ifdef TIZEN_FEATURE_WLAN_BOARD_SPRD
                        ret_status = __execute_hostapd_wps(type, ssid, key,
                                                                                        mode, channel, hide_mode,
                                                                                        mac_filter, max_sta);
@@ -1064,7 +1064,7 @@ int _mh_core_disable_softap(void)
        return ret_status;
 }
 
-#ifdef TIZEN_WLAN_BOARD_SPRD
+#ifdef TIZEN_FEATURE_WLAN_BOARD_SPRD
 int _mh_core_set_wps_pin(const char *wps_pin)
 {
        int ret = 0;
index 7cca4db..47d867d 100755 (executable)
@@ -1471,7 +1471,7 @@ gboolean softap_set_wps_pin(Softap *obj,
 {
        mobile_ap_error_code_e ret = MOBILE_AP_ERROR_NONE;
 
-#ifdef TIZEN_WLAN_BOARD_SPRD
+#ifdef TIZEN_FEATURE_WLAN_BOARD_SPRD
        ret = _mh_core_set_wps_pin(wps_pin);
 #else
        ret = MOBILE_AP_ERROR_NOT_PERMITTED;
@@ -1486,7 +1486,7 @@ gboolean softap_push_wps_button(Softap *obj, GDBusMethodInvocation *context)
 {
        mobile_ap_error_code_e ret = MOBILE_AP_ERROR_NONE;
 
-#ifdef TIZEN_WLAN_BOARD_SPRD
+#ifdef TIZEN_FEATURE_WLAN_BOARD_SPRD
        ret = _mh_core_push_wps_button();
 #else
        ret = MOBILE_AP_ERROR_NOT_PERMITTED;