This patch is required to load the plugin library
for 64 bit based Target platform,
Change-Id: I7cda8779d0b5ea8085b93b5a2f32f50ef61328b8
Signed-off-by: Maneesh Jain <maneesh.jain@samsung.com>
#define __WIFI_DIRECT_OEM_H__
#define SUPPL_PLUGIN_PATH "/usr/lib/wifi-direct-plugin-wpasupplicant.so"
+#define SUPPL_PLUGIN_64BIT_PATH "/usr/lib64/wifi-direct-plugin-wpasupplicant.so"
+
#define OEM_MACSTR_LEN 18
#define OEM_MACADDR_LEN 6
Name: wifi-direct-manager
Summary: Wi-Fi Direct manger
-Version: 1.2.85
+Version: 1.2.86
Release: 1
Group: Network & Connectivity/Wireless
License: Apache-2.0
WDS_LOGD("Node name [%s], HW ID [%s]", kernel_info.nodename, kernel_info.machine);
errno = 0;
- handle = dlopen(SUPPL_PLUGIN_PATH, RTLD_NOW);
+
+ if(strncmp(kernel_info.machine, "aarch64", 7) == 0)
+ handle = dlopen(SUPPL_PLUGIN_64BIT_PATH, RTLD_NOW);
+ else
+ handle = dlopen(SUPPL_PLUGIN_PATH, RTLD_NOW);
+
if (!handle) {
WDS_LOGE("Failed to open shared object. [%s]", dlerror());
__WDS_LOG_FUNC_EXIT__;