mirror of
https://git.kernel.org/pub/scm/bluetooth/bluez.git
synced 2024-11-25 05:04:18 +08:00
mgmt: Add LE public/random info to address types
This commit is contained in:
parent
4c63c025a5
commit
f062b128db
@ -350,10 +350,18 @@ Start Discovery Command
|
||||
Command Parameters: Type (1 Octet)
|
||||
Return Parameters:
|
||||
|
||||
Possible values for the Type parameter:
|
||||
0 BR/EDR
|
||||
1 LE
|
||||
2 BR/EDR/LE (interleaved discovery)
|
||||
Possible values for the Type parameter are a bit-wise or of the
|
||||
following bits:
|
||||
|
||||
1 BR/EDR
|
||||
2 LE Public
|
||||
3 LE Random
|
||||
|
||||
By combining these e.g. the following values are possible:
|
||||
|
||||
1 BR/EDR
|
||||
6 LE (public & random)
|
||||
7 BR/EDR/LE (interleaved discovery)
|
||||
|
||||
|
||||
Stop Discovery Command
|
||||
@ -575,7 +583,8 @@ Event Parameters Address (6 Octets)
|
||||
|
||||
Possible values for the Type parameter:
|
||||
0 BR/EDR
|
||||
1 LE
|
||||
1 LE Public
|
||||
2 LE Random
|
||||
|
||||
|
||||
Device Disconnected Event
|
||||
@ -588,7 +597,8 @@ Event Parameters Address (6 Octets)
|
||||
|
||||
Possible values for the Type parameter:
|
||||
0 BR/EDR
|
||||
1 LE
|
||||
1 LE Public
|
||||
2 LE Random
|
||||
|
||||
|
||||
Connect Failed Event
|
||||
@ -602,7 +612,8 @@ Event Parameters Address (6 Octets)
|
||||
|
||||
Possible values for the Type parameter:
|
||||
0 BR/EDR
|
||||
1 LE
|
||||
1 LE Public
|
||||
2 LE Random
|
||||
|
||||
PIN Code Request Event
|
||||
======================
|
||||
@ -664,7 +675,8 @@ Event Parameters Address (6 Octets)
|
||||
|
||||
Possible values for the Type parameter:
|
||||
0 BR/EDR
|
||||
1 LE
|
||||
1 LE Public
|
||||
2 LE Random
|
||||
|
||||
|
||||
Remote Name Event
|
||||
|
@ -139,8 +139,8 @@ struct mgmt_rp_disconnect {
|
||||
} __packed;
|
||||
|
||||
#define MGMT_ADDR_BREDR 0x00
|
||||
#define MGMT_ADDR_LE 0x01
|
||||
#define MGMT_ADDR_BREDR_LE 0x02
|
||||
#define MGMT_ADDR_LE_PUBLIC 0x01
|
||||
#define MGMT_ADDR_LE_RANDOM 0x02
|
||||
#define MGMT_ADDR_INVALID 0xff
|
||||
|
||||
struct mgmt_addr_info {
|
||||
|
@ -339,11 +339,11 @@ static void type2str(uint8_t type, char *str, size_t len)
|
||||
case MGMT_ADDR_BREDR:
|
||||
strncpy(str, "BR/EDR", len);
|
||||
break;
|
||||
case MGMT_ADDR_LE:
|
||||
strncpy(str, "LE", len);
|
||||
case MGMT_ADDR_LE_PUBLIC
|
||||
strncpy(str, "LE Public", len);
|
||||
break;
|
||||
case MGMT_ADDR_BREDR_LE:
|
||||
strncpy(str, "BR/EDR/LE", len);
|
||||
case MGMT_ADDR_LE_RANDOM:
|
||||
strncpy(str, "LE Random", len);
|
||||
break;
|
||||
default:
|
||||
strncpy(str, "(unknown)", len);
|
||||
|
Loading…
Reference in New Issue
Block a user