Skip to content
Snippets Groups Projects
Commit 53ae7a55 authored by Arian's avatar Arian
Browse files

sm8350-common: bluetooth: Drop default name setup

There is already a fallback to the model name and using that
is perfectly fine.

Change-Id: I7900cc449cd36d327d35f0597eea6427dd710458
parent 07da7474
No related branches found
No related tags found
No related merge requests found
...@@ -23,45 +23,6 @@ ...@@ -23,45 +23,6 @@
#ifndef _BDROID_BUILDCFG_H #ifndef _BDROID_BUILDCFG_H
#define _BDROID_BUILDCFG_H #define _BDROID_BUILDCFG_H
#include <stdint.h>
#include <string.h>
#ifdef __cplusplus
extern "C" {
#endif
int property_get(const char *key, char *value, const char *default_value);
#ifdef __cplusplus
}
#endif
#include "osi/include/osi.h"
typedef struct {
const char *product_device;
const char *product_model;
} device_t;
static const device_t devices[] = {
};
static inline const char *BtmGetDefaultName()
{
char product_device[92];
property_get("ro.product.device", product_device, "");
for (unsigned int i = 0; i < ARRAY_SIZE(devices); i++) {
device_t device = devices[i];
if (strcmp(device.product_device, product_device) == 0) {
return device.product_model;
}
}
// Fallback to ro.product.model
return "";
}
#define BTM_DEF_LOCAL_NAME BtmGetDefaultName()
// Disables read remote device feature // Disables read remote device feature
#define MAX_ACL_CONNECTIONS 16 #define MAX_ACL_CONNECTIONS 16
#define MAX_L2CAP_CHANNELS 32 #define MAX_L2CAP_CHANNELS 32
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment