@@ -783,32 +783,6 @@ enum bt_le_adv_opt {
783
783
*/
784
784
BT_LE_ADV_OPT_USE_IDENTITY = BIT (2 ),
785
785
786
- /**
787
- * @deprecated This option will be removed in the near future, see
788
- * https://github.com/zephyrproject-rtos/zephyr/issues/71686
789
- *
790
- * @brief Advertise using GAP device name.
791
- *
792
- * Include the GAP device name automatically when advertising.
793
- * By default the GAP device name is put at the end of the scan
794
- * response data.
795
- * When advertising using @ref BT_LE_ADV_OPT_EXT_ADV and not
796
- * @ref BT_LE_ADV_OPT_SCANNABLE then it will be put at the end of the
797
- * advertising data.
798
- * If the GAP device name does not fit into advertising data it will be
799
- * converted to a shortened name if possible.
800
- * @ref BT_LE_ADV_OPT_FORCE_NAME_IN_AD can be used to force the device
801
- * name to appear in the advertising data of an advert with scan
802
- * response data.
803
- *
804
- * The application can set the device name itself by including the
805
- * following in the advertising data.
806
- * @code
807
- * BT_DATA(BT_DATA_NAME_COMPLETE, name, sizeof(name) - 1)
808
- * @endcode
809
- */
810
- BT_LE_ADV_OPT_USE_NAME = BIT (3 ),
811
-
812
786
/**
813
787
* @brief Low duty cycle directed advertising.
814
788
*
@@ -931,19 +905,6 @@ enum bt_le_adv_opt {
931
905
/** Disable advertising on channel index 39. */
932
906
BT_LE_ADV_OPT_DISABLE_CHAN_39 = BIT (17 ),
933
907
934
- /**
935
- * @deprecated This option will be removed in the near future, see
936
- * https://github.com/zephyrproject-rtos/zephyr/issues/71686
937
- *
938
- * @brief Put GAP device name into advert data
939
- *
940
- * Will place the GAP device name into the advertising data rather than
941
- * the scan response data.
942
- *
943
- * @note Requires @ref BT_LE_ADV_OPT_USE_NAME
944
- */
945
- BT_LE_ADV_OPT_FORCE_NAME_IN_AD = BIT (18 ),
946
-
947
908
/**
948
909
* @brief Advertise using a Non-Resolvable Private Address.
949
910
*
@@ -1271,27 +1232,6 @@ struct bt_le_per_adv_param {
1271
1232
1272
1233
#define BT_LE_ADV_CONN_ONE_TIME BT_LE_ADV_CONN_FAST_2 __DEPRECATED_MACRO
1273
1234
1274
- /**
1275
- * @deprecated This macro will be removed in the near future, see
1276
- * https://github.com/zephyrproject-rtos/zephyr/issues/71686
1277
- */
1278
- #define BT_LE_ADV_CONN_NAME BT_LE_ADV_PARAM(BT_LE_ADV_OPT_CONNECTABLE | \
1279
- BT_LE_ADV_OPT_USE_NAME, \
1280
- BT_GAP_ADV_FAST_INT_MIN_2, \
1281
- BT_GAP_ADV_FAST_INT_MAX_2, NULL) \
1282
- __DEPRECATED_MACRO
1283
-
1284
- /**
1285
- * @deprecated This macro will be removed in the near future, see
1286
- * https://github.com/zephyrproject-rtos/zephyr/issues/71686
1287
- */
1288
- #define BT_LE_ADV_CONN_NAME_AD BT_LE_ADV_PARAM(BT_LE_ADV_OPT_CONNECTABLE | \
1289
- BT_LE_ADV_OPT_USE_NAME | \
1290
- BT_LE_ADV_OPT_FORCE_NAME_IN_AD, \
1291
- BT_GAP_ADV_FAST_INT_MIN_2, \
1292
- BT_GAP_ADV_FAST_INT_MAX_2, NULL) \
1293
- __DEPRECATED_MACRO
1294
-
1295
1235
#define BT_LE_ADV_CONN_DIR_LOW_DUTY (_peer ) \
1296
1236
BT_LE_ADV_PARAM(BT_LE_ADV_OPT_CONN | BT_LE_ADV_OPT_DIR_MODE_LOW_DUTY, \
1297
1237
BT_GAP_ADV_FAST_INT_MIN_2, BT_GAP_ADV_FAST_INT_MAX_2, _peer)
@@ -1300,17 +1240,6 @@ struct bt_le_per_adv_param {
1300
1240
#define BT_LE_ADV_NCONN BT_LE_ADV_PARAM(0, BT_GAP_ADV_FAST_INT_MIN_2, \
1301
1241
BT_GAP_ADV_FAST_INT_MAX_2, NULL)
1302
1242
1303
- /**
1304
- * @deprecated This macro will be removed in the near future, see
1305
- * https://github.com/zephyrproject-rtos/zephyr/issues/71686
1306
- *
1307
- * Non-connectable advertising with @ref BT_LE_ADV_OPT_USE_NAME
1308
- */
1309
- #define BT_LE_ADV_NCONN_NAME BT_LE_ADV_PARAM(BT_LE_ADV_OPT_USE_NAME, \
1310
- BT_GAP_ADV_FAST_INT_MIN_2, \
1311
- BT_GAP_ADV_FAST_INT_MAX_2, NULL) \
1312
- __DEPRECATED_MACRO
1313
-
1314
1243
/** Non-connectable advertising with @ref BT_LE_ADV_OPT_USE_IDENTITY */
1315
1244
#define BT_LE_ADV_NCONN_IDENTITY BT_LE_ADV_PARAM(BT_LE_ADV_OPT_USE_IDENTITY, \
1316
1245
BT_GAP_ADV_FAST_INT_MIN_2, \
@@ -1322,59 +1251,18 @@ struct bt_le_per_adv_param {
1322
1251
BT_LE_ADV_PARAM(BT_LE_ADV_OPT_EXT_ADV | BT_LE_ADV_OPT_CONN, BT_GAP_ADV_FAST_INT_MIN_2, \
1323
1252
BT_GAP_ADV_FAST_INT_MAX_2, NULL)
1324
1253
1325
- /**
1326
- * @deprecated This macro will be removed in the near future, see
1327
- * https://github.com/zephyrproject-rtos/zephyr/issues/71686
1328
- *
1329
- * Connectable extended advertising with @ref BT_LE_ADV_OPT_USE_NAME
1330
- */
1331
- #define BT_LE_EXT_ADV_CONN_NAME BT_LE_ADV_PARAM(BT_LE_ADV_OPT_EXT_ADV | \
1332
- BT_LE_ADV_OPT_CONNECTABLE | \
1333
- BT_LE_ADV_OPT_USE_NAME, \
1334
- BT_GAP_ADV_FAST_INT_MIN_2, \
1335
- BT_GAP_ADV_FAST_INT_MAX_2, \
1336
- NULL) \
1337
- __DEPRECATED_MACRO
1338
-
1339
1254
/** Scannable extended advertising */
1340
1255
#define BT_LE_EXT_ADV_SCAN BT_LE_ADV_PARAM(BT_LE_ADV_OPT_EXT_ADV | \
1341
1256
BT_LE_ADV_OPT_SCANNABLE, \
1342
1257
BT_GAP_ADV_FAST_INT_MIN_2, \
1343
1258
BT_GAP_ADV_FAST_INT_MAX_2, \
1344
1259
NULL)
1345
1260
1346
- /**
1347
- * @deprecated This macro will be removed in the near future, see
1348
- * https://github.com/zephyrproject-rtos/zephyr/issues/71686
1349
- *
1350
- * Scannable extended advertising with @ref BT_LE_ADV_OPT_USE_NAME
1351
- */
1352
- #define BT_LE_EXT_ADV_SCAN_NAME BT_LE_ADV_PARAM(BT_LE_ADV_OPT_EXT_ADV | \
1353
- BT_LE_ADV_OPT_SCANNABLE | \
1354
- BT_LE_ADV_OPT_USE_NAME, \
1355
- BT_GAP_ADV_FAST_INT_MIN_2, \
1356
- BT_GAP_ADV_FAST_INT_MAX_2, \
1357
- NULL) \
1358
- __DEPRECATED_MACRO
1359
-
1360
1261
/** Non-connectable extended advertising with private address */
1361
1262
#define BT_LE_EXT_ADV_NCONN BT_LE_ADV_PARAM(BT_LE_ADV_OPT_EXT_ADV, \
1362
1263
BT_GAP_ADV_FAST_INT_MIN_2, \
1363
1264
BT_GAP_ADV_FAST_INT_MAX_2, NULL)
1364
1265
1365
- /**
1366
- * @deprecated This macro will be removed in the near future, see
1367
- * https://github.com/zephyrproject-rtos/zephyr/issues/71686
1368
- *
1369
- * Non-connectable extended advertising with @ref BT_LE_ADV_OPT_USE_NAME
1370
- */
1371
- #define BT_LE_EXT_ADV_NCONN_NAME BT_LE_ADV_PARAM(BT_LE_ADV_OPT_EXT_ADV | \
1372
- BT_LE_ADV_OPT_USE_NAME, \
1373
- BT_GAP_ADV_FAST_INT_MIN_2, \
1374
- BT_GAP_ADV_FAST_INT_MAX_2, \
1375
- NULL) \
1376
- __DEPRECATED_MACRO
1377
-
1378
1266
/** Non-connectable extended advertising with @ref BT_LE_ADV_OPT_USE_IDENTITY */
1379
1267
#define BT_LE_EXT_ADV_NCONN_IDENTITY \
1380
1268
BT_LE_ADV_PARAM(BT_LE_ADV_OPT_EXT_ADV | \
@@ -1389,20 +1277,6 @@ struct bt_le_per_adv_param {
1389
1277
BT_GAP_ADV_FAST_INT_MAX_2, \
1390
1278
NULL)
1391
1279
1392
- /**
1393
- * @deprecated This macro will be removed in the near future, see
1394
- * https://github.com/zephyrproject-rtos/zephyr/issues/71686
1395
- *
1396
- * Non-connectable extended advertising on coded PHY with
1397
- * @ref BT_LE_ADV_OPT_USE_NAME
1398
- */
1399
- #define BT_LE_EXT_ADV_CODED_NCONN_NAME \
1400
- BT_LE_ADV_PARAM(BT_LE_ADV_OPT_EXT_ADV | BT_LE_ADV_OPT_CODED | \
1401
- BT_LE_ADV_OPT_USE_NAME, \
1402
- BT_GAP_ADV_FAST_INT_MIN_2, \
1403
- BT_GAP_ADV_FAST_INT_MAX_2, NULL) \
1404
- __DEPRECATED_MACRO
1405
-
1406
1280
/** Non-connectable extended advertising on coded PHY with
1407
1281
* @ref BT_LE_ADV_OPT_USE_IDENTITY
1408
1282
*/
@@ -1685,10 +1559,6 @@ int bt_le_ext_adv_set_data(struct bt_le_ext_adv *adv,
1685
1559
* advertiser set is currently advertising. Stop the advertising set before
1686
1560
* calling this function.
1687
1561
*
1688
- * @note When changing the option @ref BT_LE_ADV_OPT_USE_NAME then
1689
- * @ref bt_le_ext_adv_set_data needs to be called in order to update the
1690
- * advertising data and scan response data.
1691
- *
1692
1562
* @param adv Advertising set object.
1693
1563
* @param param Advertising parameters.
1694
1564
*
0 commit comments