}
#ifdef __TIZEN_PATCH__
- /* Get Le Privacy feature support */
- adapter->le_privacy_enabled = main_opts.le_privacy;
- if (adapter->le_privacy_enabled) {
- /* Get Local IRK */
- str = g_key_file_get_string(key_file,
- "General", "LocalIrk", &gerr);
- if (gerr || !str || strlen(str) != 34) {
- g_error_free(gerr);
- gerr = NULL;
+ /* Get Local IRK */
+ str = g_key_file_get_string(key_file, "General", "LocalIrk", &gerr);
+ if (gerr || !str || strlen(str) != 34) {
+ g_error_free(gerr);
+ gerr = NULL;
+ g_free(adapter->local_irk);
+ adapter->local_irk = NULL;
+ } else {
+ if (adapter->local_irk)
g_free(adapter->local_irk);
- adapter->local_irk = NULL;
- } else {
- if (adapter->local_irk)
- g_free(adapter->local_irk);
- adapter->local_irk = g_malloc0(MGMT_IRK_SIZE);
- str2buf(&str[2], adapter->local_irk, MGMT_IRK_SIZE);
- }
+ adapter->local_irk = g_malloc0(MGMT_IRK_SIZE);
+ str2buf(&str[2], adapter->local_irk, MGMT_IRK_SIZE);
}
#endif