X-Git-Url: http://review.tizen.org/git/?a=blobdiff_plain;f=bt-oal%2Foal-adapter-mgr.c;h=6b663016a8d111a05269cb355f95e46509c8d1c2;hb=8343c3041c0440cb5dcd57a612394a3adcb961f9;hp=258a3ea9034f5ac8823c2b5139fb35a1dfbc3c66;hpb=578507ce97a4ea7812ed31c8c735d03f6c461e22;p=platform%2Fcore%2Fconnectivity%2Fbluetooth-frwk.git diff --git a/bt-oal/oal-adapter-mgr.c b/bt-oal/oal-adapter-mgr.c index 258a3ea..6b66301 100644 --- a/bt-oal/oal-adapter-mgr.c +++ b/bt-oal/oal-adapter-mgr.c @@ -1110,10 +1110,15 @@ static void cb_adapter_device_found(int num_properties, bt_property_t *propertie void cb_controller_error_received(uint8_t error_code) { + uint8_t *event_data; + BT_DBG("+"); + event_data = g_new0(uint8_t, 1); + *event_data = error_code; + send_event(OAL_EVENT_CONTROLLER_ERROR_RECEIVED, - &error_code, sizeof(uint8_t)); + (gpointer)event_data, sizeof(uint8_t)); BT_DBG("-"); } \ No newline at end of file