mirror of
https://git.kernel.org/pub/scm/bluetooth/bluez.git
synced 2025-01-19 19:03:47 +08:00
Fix incorrect result type in set_adapter_name
This commit is contained in:
parent
c304a4c963
commit
992f3f669f
@ -880,7 +880,7 @@ static void set_adapter_name_complete(uint8_t status, uint16_t length,
|
||||
adapter_name_changed(rp->name);
|
||||
}
|
||||
|
||||
static bool set_adapter_name(uint8_t *name, uint16_t len)
|
||||
static uint8_t set_adapter_name(uint8_t *name, uint16_t len)
|
||||
{
|
||||
struct mgmt_cp_set_local_name cp;
|
||||
|
||||
@ -890,11 +890,11 @@ static bool set_adapter_name(uint8_t *name, uint16_t len)
|
||||
if (mgmt_send(adapter->mgmt, MGMT_OP_SET_LOCAL_NAME, adapter->index,
|
||||
sizeof(cp), &cp, set_adapter_name_complete, NULL,
|
||||
NULL) > 0)
|
||||
return true;
|
||||
return HAL_STATUS_SUCCESS;
|
||||
|
||||
error("Failed to set name");
|
||||
|
||||
return false;
|
||||
return HAL_STATUS_FAILED;
|
||||
}
|
||||
|
||||
static void read_info_complete(uint8_t status, uint16_t length, const void *param,
|
||||
|
Loading…
Reference in New Issue
Block a user