Question
Why does aci_gap_set_discoverable() return Command Disallowed?
Under what circumstances will the BLE controller return Command Disallowed (0x0C)? I am calling aci_gap_set_discoverable() followed by aci_gap_update_adv_data() periodically. I see aci_gap_set_discoverable() return successful the first time that it's called upon startup and also upon receiving HCI_LE_CONNECTION_COMPLETE. It appears to fail at all other times and the advertising packets are not transmitted.
