Lines Matching full:scan

47  * I send an event when a scan request is sent. The scan_rsp_pending flag
50 * 2) Interleave sending scan requests to different advertisers? I guess I need
51 * a list of advertisers to which I sent a scan request and have yet to
52 * receive a scan response from? Implement this.
60 #error "Cannot have more than 255 scan response entries!"
122 * Structure used to store advertisers. This is used to limit sending scan
139 /* Contains list of advertisers that we have heard scan responses from */
169 /* In case scan has been disabled or there is other aux ptr in progress in ble_ll_aux_scan_cb()
292 * ble ll scan req pdu make
350 * being tracked when doing an active scan (see Core 5.0, Vol 6, Part B, in ble_ll_scan_req_pdu_make()
367 /* Construct the scan request */ in ble_ll_scan_req_pdu_make()
521 * Do scan machine clean up on PHY disabled
621 * Checks to see if we have received a scan response from this advertiser.
626 * @return int 0: have not received a scan response; 1 otherwise.
921 * NOTE: connect requests and scan requests are not passed here
1039 * scan just make sanity check that we have proper combination of in ble_ll_scan_start()
1050 * Set transmit end callback to NULL in case we transmit a scan request. in ble_ll_scan_start()
1103 /* If there is a still a scan response pending, we have failed! */ in ble_ll_scan_start()
1158 /* Well, in case we missed to schedule scan, lets move to next stan interval. in ble_ll_scan_get_current_scan_win()
1164 /* If we missed scan window, make sure we update scan channel */ in ble_ll_scan_get_current_scan_win()
1172 * Called to determine if we are inside or outside the scan window. If we
1173 * are inside the scan window it means that the device should be receiving
1174 * on the scan channel.
1180 * @return int 0: inside scan window 1: outside scan window
1296 /* Only set state if we are currently in a scan window */ in ble_ll_scan_sm_stop()
1349 /* Reset scan request backoff parameters to default */ in ble_ll_scan_sm_start()
1354 /* Forget filtered advertisers from previous scan. */ in ble_ll_scan_sm_start()
1413 /* Other PHY already wanted to scan. Allow it */ in ble_ll_scan_start_next_phy()
1482 /* Aux scan in progress. Wait */ in ble_ll_scan_event_proc()
1489 /* Make sure the scan window start time and channel are up to date. */ in ble_ll_scan_event_proc()
1493 /* Check if we are in scan window */ in ble_ll_scan_event_proc()
1501 /* In case continous scan lets assume we area always in the window*/ in ble_ll_scan_event_proc()
1505 /* Determine on/off state based on scan window */ in ble_ll_scan_event_proc()
1528 * is post the scan schedule end event. in ble_ll_scan_event_proc()
1624 * ble ll scan rx pdu start
1651 /* If adv ind or scan ind, we may send scan request */ in ble_ll_scan_rx_isr_start()
1665 * If this is the first PDU after we sent the scan response (as in ble_ll_scan_rx_isr_start()
1666 * denoted by the scan rsp pending flag), we set a bit in the ble in ble_ll_scan_rx_isr_start()
1667 * header so the link layer can check to see if the scan request in ble_ll_scan_rx_isr_start()
1669 * work for successful scan requests. If failed, we do the work here. in ble_ll_scan_rx_isr_start()
2040 * Note that in aux chain and aux scan response packets in ble_ll_scan_parse_ext_hdr()
2226 * to restart scanning and handle a failed scan request. Note that we in ble_ll_scan_rx_isr_end()
2331 * lets do a copy of pointers for scan request in ble_ll_scan_rx_isr_end()
2365 /* Should we send a scan request? */ in ble_ll_scan_rx_isr_end()
2379 /* Dont send scan request if we have sent one to this advertiser */ in ble_ll_scan_rx_isr_end()
2385 /* Dont send scan request if we have sent one to this advertiser */ in ble_ll_scan_rx_isr_end()
2390 /* Better not be a scan response pending */ in ble_ll_scan_rx_isr_end()
2410 /* Set "waiting for scan response" flag */ in ble_ll_scan_rx_isr_end()
2414 /* Let's keep the aux ptr as a reference to scan rsp */ in ble_ll_scan_rx_isr_end()
2471 * Scan timer callback; means that the scan window timeout has been reached
2476 * @param arg Pointer to scan state machine.
2499 * If we timed out waiting for a response, the scan response pending in ble_ll_scan_wfr_timer_exp()
2500 * flag should be set. Deal with scan backoff. Put device back into rx. in ble_ll_scan_wfr_timer_exp()
2652 /* Scan response completed successfully */ in ble_ll_hci_send_ext_adv_report()
2697 /* Set scan response check flag */ in ble_ll_scan_rx_pkt_in()
2700 /* We dont care about scan requests or connect requests */ in ble_ll_scan_rx_pkt_in()
2761 * XXX: The BLE spec is a bit unclear here. What if we get a scan in ble_ll_scan_rx_pkt_in()
2764 * that we have heard a scan response from? in ble_ll_scan_rx_pkt_in()
2768 * If this is a scan response in reply to a request we sent we need in ble_ll_scan_rx_pkt_in()
2773 * We could also check the timing of the scan reponse; make sure in ble_ll_scan_rx_pkt_in()
2774 * that it is relatively close to the end of the scan request but in ble_ll_scan_rx_pkt_in()
2782 /* We have received a scan response. Add to list */ in ble_ll_scan_rx_pkt_in()
2785 /* Perform scan request backoff procedure */ in ble_ll_scan_rx_pkt_in()
2861 * Data were trimmed so no need to scan this chain anymore. Also in ble_ll_scan_rx_pkt_in()
2863 * case we managed to scan something before events were processed. in ble_ll_scan_rx_pkt_in()
2887 /* XXX: For now let us consider scan response as succeed in the backoff context, in ble_ll_scan_rx_pkt_in()
2888 * after first scan response packet is received. in ble_ll_scan_rx_pkt_in()
2889 * I guess we should marked it succeed after complete scan response is received, in ble_ll_scan_rx_pkt_in()
2917 * If the scan response check bit is set and we are pending a response, in ble_ll_scan_rx_pkt_in()
2918 * we have failed the scan request (as we would have reset the scan rsp in ble_ll_scan_rx_pkt_in()
2945 /* Get the scan interval and window */ in ble_ll_scan_set_scan_params()
2952 /* Check scan type */ in ble_ll_scan_set_scan_params()
2977 /* Store scan parameters */ in ble_ll_scan_set_scan_params()
2997 /* Check scan type */ in ble_ll_check_scan_params()
3106 /* If host requests continuous scan for 2 PHYs, we double scan interval in ble_ll_set_ext_scan_params()
3107 * and split it for two equal scan windows between 2 PHYs in ble_ll_set_ext_scan_params()
3177 * ble ll scan set enable
3179 * HCI scan set enable command processing function
3281 /* we can store those upfront regardless of start scan result since scan is in ble_ll_scan_set_enable()
3431 /* If host request for continuous scan if 2 PHYs are requested, we split in ble_ll_scan_ext_initiator_start()
3499 * The RPA we used is in connect request or scan request and is the in ble_ll_scan_get_local_rpa()
3552 /* Clear scan parameters in case re-initialized */ in ble_ll_scan_common_init()
3578 /* Initialize extended scan timers */ in ble_ll_scan_common_init()
3586 /* Get a scan request mbuf (packet header) and attach to state machine */ in ble_ll_scan_common_init()
3610 /* stop extended scan timers */ in ble_ll_scan_reset()
3616 /* Free the scan request pdu */ in ble_ll_scan_reset()
3627 /* clear memory pool for AUX scan results */ in ble_ll_scan_reset()
3636 * ble ll scan init