-
Bug
-
Resolution: Unresolved
-
Medium
-
SimpleLink CC2640R2 SDK BLE Stack
-
BLESTACK-2706
-
BLE Stack 3.1.0
-
BLE Stack 3.2.x
-
CC26xxR2
Multi Role incorrectly setting gapRole_AdvEnabled when enabling non-connectable adv
Git/Installer Release Version:
simplelink_cc2640r2_sdk_1_40_00_45
Application:
multi_role
Problem Reproducibility:
100%
Problem Description:
On multi.c anytime a GAP_MAKE_DISCOVERABLE_DONE_EVENT is received the gapRole_AdvEnabled flag is set to true even if the advertising is non-connectable. This then prevents us from disabling non-connectable advertising as this checks that connectable advertising must be disabled.
Looks like this flag may not need to be set at that point as it is set correctly before calling gapRole_setEvent(START_ADVERTISING_EVT) for both connectable and non-connectable advertising.
Steps to re-create problem:
Modify multi-role example to use non-connectable advertising (switch GAPROLE_ADVERT_ENABLED -> GAPROLE_ADV_NONCONN_ENABLED) On terminal menu select advertising to attempt to disable advertising. This leads to a bleIncorrectMode return type from GAPRole_SetParameter() and device continues to advertise.
Link to E2E post where this was found:
https://e2e.ti.com/support/wireless_connectivity/bluetooth_low_energy/f/538/t/628711