I am running into a recurring issue with attempting to connect to a nRF52840DK advertising using extended advertising from iOS devices.
Connections repeatedly fail to establish (HCI error 0x3E) regardless of how close the devices are.
All testing is being done with a nRF52840DK, NCS v2.7.0 and an in-tree sample:
```
west build -b nrf52840dk/nrf52840 zephyr/samples/bluetooth/extended_adv/advertiser/ -p
```
Essentially, no matter how many times I reboot this device and attempt to connect using nRF Connect for Mobile, it is only on very rare occasions that I get a result other than:
*** Booting nRF Connect SDK v2.7.0-5cb85570ca43 *** *** Using Zephyr OS v3.6.99-100befc70c74 *** Starting Extended Advertising Demo Starting Extended Advertising Connected (err 0x00) Connected state! Initiating disconnect within 5 seconds... Disconnected (reason 0x3E) Connection object available from previous conn. Disconnect is complete! ASSERTION FAIL [0] @ WEST_TOPDIR/zephyr/subsys/bluetooth/host/conn.c:1630 Invalid conn type 0
Running the same sample with the Zephyr controller (CONFIG_BT_LL_SW_SPLIT=y) does not exhibit the issue:
```
west build -b nrf52840dk/nrf52840 zephyr/samples/bluetooth/extended_adv/advertiser/ -p -- -DCONFIG_BT_LL_SW_SPLIT=y
```
Console:
*** Booting nRF Connect SDK v2.7.0-5cb85570ca43 *** *** Using Zephyr OS v3.6.99-100befc70c74 *** Starting Extended Advertising Demo Starting Extended Advertising Connected (err 0x00) Connected state! Initiating disconnect within 5 seconds... Disconnected (reason 0x16) Connection object available from previous conn. Disconnect is complete! Disconnected state! Restarting advertising Starting Extended Advertising Connected (err 0x00) Connected state! Initiating disconnect within 5 seconds... Disconnected (reason 0x16) Connection object available from previous conn. Disconnect is complete! Disconnected state! Restarting advertising
System Information:
iPhone 15,4 (iPhone 15)
iOS 17.5.1
nRF Connect for Mobile 2.7.7