Android: Removed CAInitialize() call from the CA initializer.
authorTim Kourt <tim.a.kourt@intel.com>
Thu, 22 Oct 2015 23:26:16 +0000 (16:26 -0700)
committerJon A. Cruz <jonc@osg.samsung.com>
Sat, 21 Nov 2015 09:12:07 +0000 (09:12 +0000)
The early initialization call has prevented a proper propagation of the
configuration parameters into CA from ocstack.c. Therefore, IPv6 mode
was not available on Android.

Change-Id: Id90a1eb288ef80f08068113da2967e9ba0989483
Signed-off-by: Tim Kourt <tim.a.kourt@intel.com>
Reviewed-on: https://gerrit.iotivity.org/gerrit/3941
Tested-by: jenkins-iotivity <jenkins-iotivity@opendaylight.org>
Reviewed-by: Jon A. Cruz <jonc@osg.samsung.com>
android/android_api/base/jni/JniCaInterface.c

index eb1e07a..0972278 100644 (file)
@@ -50,11 +50,4 @@ Java_org_iotivity_ca_CaInterface_initialize
     LOGI("CaInterface_initialize");
 
     CANativeJNISetContext(env, context);
-
-    CAResult_t res = CAInitialize();
-
-    if (CA_STATUS_OK != res)
-    {
-        LOGE("Could not Initialize");
-    }
 }
\ No newline at end of file