Bugfix/fix event bug in GAP API [backport v3.3] See merge request espressif/esp-idf!9195
esp_bt_gap_start_discovery
esp_bt_gap_cancel_discovery