Lines Matching refs:ad_count
63 uint8_t ad_count; member
633 uint8_t ad_count; in handle_extended_scan_start() local
642 ad_count = net_buf_simple_pull_u8(buf); in handle_extended_scan_start()
643 if (buf->len < ad_count || ad_count == 0 || ad_count > 0x10) { in handle_extended_scan_start()
648 ad = net_buf_simple_pull_mem(buf, ad_count); in handle_extended_scan_start()
649 for (i = 0; i < ad_count; ++i) { in handle_extended_scan_start()
665 ad_count = MIN(ad_count, CONFIG_BT_MESH_RPR_AD_TYPES_MAX); in handle_extended_scan_start()
682 if (prov->uri && get_ad_type(ad, ad_count, BT_DATA_URI)) { in handle_extended_scan_start()
712 bt_hex(ad, ad_count)); in handle_extended_scan_start()
752 memcpy(srv.scan.ad, ad, ad_count); in handle_extended_scan_start()
753 srv.scan.ad_count = ad_count; in handle_extended_scan_start()
1190 if (srv.scan.ad_count == 1 && in adv_handle_ext_scan()
1196 while (srv.scan.ad_count && pull_ad_data(buf, &ad)) { in adv_handle_ext_scan()
1199 ad_entry = get_ad_type(srv.scan.ad, srv.scan.ad_count, ad.type); in adv_handle_ext_scan()
1220 *ad_entry = srv.scan.ad[--srv.scan.ad_count]; in adv_handle_ext_scan()
1234 if (!srv.scan.ad_count) { in adv_handle_ext_scan()