/*
* Open Adaptation Layer (OAL)
*
- * Copyright (c) 2014-2015 Samsung Electronics Co., Ltd.
+ * Copyright (c) 2019 Samsung Electronics Co., Ltd.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
BT_DBG("%d", state);
- if (!event)
+ if (!event) {
+ BT_ERR("event is NULL");
return;
+ }
+
memcpy(event->address.addr, bd_addr->address, BT_ADDRESS_BYTES_NUM);
event->status = OAL_STATUS_SUCCESS;