Commit 1110e52
lib: bluetooth: ble_adv: fix directed advertising set configuration
When configuring the advertisement set for direct advertisement
with sd_ble_gap_adv_set_configure(), NULL must be passed for the
advertising data argument because advertising data is not supported
in this mode. The sd_ble_gap_adv_set_configure() would return
NRF_ERROR_INVALID_PARAM in this case.
When doing directed advertisement, the address of the peer to direct
the advertisement towards needed to be specified in the advertisement
parameters when calling sd_ble_gap_adv_set_configure(). Set the address
in the advertisement parameters to the address supplied by the
application calling the ble_adv_peer_addr_reply() function in response
to the BLE_ADV_EVT_PEER_ADDR_REQUEST event.
Signed-off-by: Andreas Moltumyr <[email protected]>1 parent e6beeee commit 1110e52
File tree
3 files changed
+35
-4
lines changed- doc/nrf-bm/release_notes
- lib/bluetooth/ble_adv
- tests/lib/bluetooth/ble_adv/src
3 files changed
+35
-4
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
148 | 148 | | |
149 | 149 | | |
150 | 150 | | |
151 | | - | |
| 151 | + | |
| 152 | + | |
| 153 | + | |
| 154 | + | |
152 | 155 | | |
153 | 156 | | |
154 | 157 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
337 | 337 | | |
338 | 338 | | |
339 | 339 | | |
| 340 | + | |
| 341 | + | |
340 | 342 | | |
341 | 343 | | |
342 | 344 | | |
| |||
354 | 356 | | |
355 | 357 | | |
356 | 358 | | |
| 359 | + | |
| 360 | + | |
357 | 361 | | |
358 | 362 | | |
359 | 363 | | |
| |||
362 | 366 | | |
363 | 367 | | |
364 | 368 | | |
| 369 | + | |
| 370 | + | |
| 371 | + | |
| 372 | + | |
| 373 | + | |
| 374 | + | |
| 375 | + | |
| 376 | + | |
| 377 | + | |
| 378 | + | |
365 | 379 | | |
366 | 380 | | |
367 | 381 | | |
| |||
436 | 450 | | |
437 | 451 | | |
438 | 452 | | |
439 | | - | |
| 453 | + | |
440 | 454 | | |
441 | 455 | | |
442 | 456 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
18 | 18 | | |
19 | 19 | | |
20 | 20 | | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
21 | 27 | | |
22 | 28 | | |
23 | 29 | | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
24 | 38 | | |
25 | 39 | | |
26 | 40 | | |
| |||
233 | 247 | | |
234 | 248 | | |
235 | 249 | | |
236 | | - | |
| 250 | + | |
237 | 251 | | |
238 | 252 | | |
239 | 253 | | |
240 | | - | |
| 254 | + | |
241 | 255 | | |
242 | 256 | | |
243 | 257 | | |
| |||
0 commit comments