Fix incorrect result type in set_adapter_name

This commit is contained in:
Marcin Kraglak 2013-11-04 10:31:38 +01:00 committed by Johan Hedberg
parent c304a4c963
commit 992f3f669f

View File

@ -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,