fix(nimble): Add change to parse limited discovery correctly

This commit is contained in:
Rahul Tank
2026-09-09 14:06:20 +05:30
committed by Astha Verma
parent d3e5eff797
commit c409049a82
+5 -5
View File
@@ -2750,11 +2750,11 @@ ble_gap_rx_adv_report_sanity_check(const uint8_t *adv_data, uint8_t adv_data_len
return -1;
}
if (ble_gap_master.disc.observer || is_scan_rsp || skip_flags_check) {
/* Observer role is enabled; All adv reports regardless of
* Flags AD Type need to be discovered.
* Also, ignore AD type checks for scan response data and for
* incomplete extended advertising reports.
if ((ble_gap_master.disc.observer && !ble_gap_master.disc.limited) ||
is_scan_rsp || skip_flags_check) {
/* Observation procedure accepts all adv reports regardless of
* Flags AD Type. Limited discovery is stricter and must still
* enforce BLE_HS_ADV_F_DISC_LTD.
*/
return 0;
}