Commit 85d44978 authored by Szymon Janc's avatar Szymon Janc Committed by Johan Hedberg
Browse files

Bluetooth: shell: Add support for advertising with RPA



This allows to test local privacy feature.

Change-Id: Ib231f9187e353f79fee9237acef0d1ffe9cb2b7d
Signed-off-by: default avatarSzymon Janc <ext.szymon.janc@tieto.com>
parent 68c70788
Loading
Loading
Loading
Loading
+5 −0
Original line number Diff line number Diff line
@@ -571,6 +571,11 @@ static void cmd_advertise(int argc, char *argv[])
		param.addr_type = BT_LE_ADV_ADDR_NRPA;
		scan_rsp = NULL;
		scan_rsp_len = 0;
	} else if (!strcmp(argv[1], "rpa")) {
		param.type = BT_LE_ADV_IND;
		param.addr_type = BT_LE_ADV_ADDR_RPA;
		scan_rsp = sd;
		scan_rsp_len = ARRAY_SIZE(sd);
	} else {
		goto fail;
	}