Lines Matching refs:local_addr
332 static void btif_fetch_local_bdaddr(bt_bdaddr_t *local_addr)
352 if ((string_to_bdaddr(val, local_addr)) &&
353 (memcmp(local_addr->address, null_bdaddr, BD_ADDR_LEN) != 0))
367 string_to_bdaddr(val, local_addr);
375 valid_bda = btif_fetch_property(PERSIST_BDADDR_PROPERTY, local_addr);
380 valid_bda = btif_fetch_property(FACTORY_BT_ADDR_PROPERTY, local_addr);
389 local_addr->address[0] = 0x22;
390 local_addr->address[1] = 0x22;
391 local_addr->address[2] = (uint8_t) osi_rand();
392 local_addr->address[3] = (uint8_t) osi_rand();
393 local_addr->address[4] = (uint8_t) osi_rand();
394 local_addr->address[5] = (uint8_t) osi_rand();
397 bdaddr_to_string(local_addr, bdstr, sizeof(bdstr));
408 bdaddr_to_string(local_addr, bdstr, sizeof(bdstr));