Lines Matching full:we
46 * 1) I think I can guarantee that we dont process things out of order if
100 /* We support one report per event for now */
139 /* Contains list of advertisers that we have heard scan responses from */
285 /* We'll use the same timeout as for RPA rotation */ in ble_ll_scan_refresh_nrpa()
347 * If advertising device is on our resolving list, we use RPA generated in ble_ll_scan_req_pdu_make()
349 * we use NRPA as ScanA as allowed by spec to prevent our device from in ble_ll_scan_req_pdu_make()
387 /* Do we have an address match? Must match address type */ in ble_ll_scan_find_dup_adv()
433 /* We support only one report per event now */ in ble_ll_scan_init_ext_adv_report()
507 * (truncated was sent to the host) and we just need to drop last reference. in ble_ll_scan_end_adv_evt()
508 * Otherwise we should try to send truncated event to the host. in ble_ll_scan_end_adv_evt()
530 /* If scanner was reading aux ptr, we need to clean it up */ in ble_ll_scan_clean_cur_aux_data()
592 /* XXX: for now, if we dont have room, just leave */ in ble_ll_scan_add_dup_adv()
621 * Checks to see if we have received a scan response from this advertiser.
635 /* Do we have an address match? Must match address type */ in ble_ll_scan_have_rxd_scan_rsp()
678 /* XXX: for now, if we dont have room, just leave */ in ble_ll_scan_add_scan_rsp_adv()
825 * NOTE: while we are allowed to send multiple devices in one report, we
850 /* For resolvable we send separate event */ in ble_ll_scan_send_adv_report()
882 * we just add 2 here. in ble_ll_scan_send_adv_report()
918 * Checks the scanner filter policy to determine if we should allow or discard
971 /* If we are using the whitelist, check that first */ in ble_ll_scan_chk_filter_policy()
1038 /* XXX: right now scheduled item is only present if we schedule for aux in ble_ll_scan_start()
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()
1083 /* If we are late here, it is still OK because we keep scanning. 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
1296 /* Only set state if we are currently in a scan window */ in ble_ll_scan_sm_stop()
1401 /* Lets check if we want to switch to other PHY */ in ble_ll_scan_start_next_phy()
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()
1518 /* Check if we should start next phy. If so let's say we are inside in ble_ll_scan_event_proc()
1526 * If we are not in the standby state it means that the scheduled in ble_ll_scan_event_proc()
1527 * scanning event was overlapped in the schedule. In this case all we do in ble_ll_scan_event_proc()
1537 /* Must disable PHY since we will move to a new channel */ in ble_ll_scan_event_proc()
1542 /* PHY is disabled - make sure we do not wait for AUX_CONNECT_RSP */ in ble_ll_scan_event_proc()
1546 /* Must disable PHY since we will move to a new channel */ in ble_ll_scan_event_proc()
1570 * Only bother if we have enough time to receive anything in ble_ll_scan_event_proc()
1597 * We need to wake up before we need to start scanning in order in ble_ll_scan_event_proc()
1598 * to make sure the rfclock is on. If we are close to being on, in ble_ll_scan_event_proc()
1635 * 0: we will not attempt to reply to this frame
1636 * 1: we may send a response to this frame.
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()
1668 * was successful. We do it this way to let the Link Layer do the 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()
1842 /* If we are here that means there is chain advertising. */ in ble_ll_scan_get_aux_data()
1866 /* Only for first ext adv we want to keep primary phy.*/ in ble_ll_scan_get_aux_data()
1880 * b) there is no chaining or chaining has just stopped. In this case we do hava aux_data */ in ble_ll_scan_get_aux_data()
2007 /* In this point of time we don't want to care about aux ptr */ in ble_ll_scan_parse_ext_hdr()
2025 /* In the event we need information on primary and secondary PHY used during in ble_ll_scan_parse_ext_hdr()
2041 * we do miss original event type, which we need for advertising report. in ble_ll_scan_parse_ext_hdr()
2074 /* If address has been provided, we do have it already in aux_data.*/ in ble_ll_scan_get_addr_from_ext_adv()
2224 * The reason we do something different here (as opposed to failed CRC) is in ble_ll_scan_rx_isr_end()
2225 * that the received PDU will not be handed up in this case. So we have in ble_ll_scan_rx_isr_end()
2226 * to restart scanning and handle a failed scan request. Note that we in ble_ll_scan_rx_isr_end()
2227 * return 0 in this case because we dont want the phy disabled. 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()
2393 /* We want to send a request. See if backoff allows us */ in ble_ll_scan_rx_isr_end()
2404 /* XXX: TODO assume we are on correct phy */ in ble_ll_scan_rx_isr_end()
2439 * connection event has ended. It is also called if we receive a packet while
2472 * and we should perform the appropriate actions.
2499 * If we timed out waiting for a response, the scan response pending in ble_ll_scan_wfr_timer_exp()
2552 * We keep one allocated event in aux_data to be able to truncate chain in ble_ll_hci_send_ext_adv_report()
2569 /* XXX what should we do here? send some trimmed event? */ in ble_ll_hci_send_ext_adv_report()
2607 * We will need another event so let's try to allocate one now. If in ble_ll_hci_send_ext_adv_report()
2608 * we cannot do this, need to mark event as truncated. in ble_ll_hci_send_ext_adv_report()
2648 /* If advertising event is completed or failed, we can drop the reference */ in ble_ll_hci_send_ext_adv_report()
2700 /* We dont care about scan requests or connect requests */ in ble_ll_scan_rx_pkt_in()
2741 /* If we are here it means AdvA is identity. Check if initA is RPA */ 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()
2762 * response from an advertiser that we did not send a request to? in ble_ll_scan_rx_pkt_in()
2763 * Do we send an advertising report? Do we add it to list of devices 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()
2769 * to store this advertiser's address so we dont send a request to it. 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()
2775 * we wont for now. in ble_ll_scan_rx_pkt_in()
2782 /* We have received a scan response. Add to list */ in ble_ll_scan_rx_pkt_in()
2828 /* We are here when could not schedule the aux ptr */ in ble_ll_scan_rx_pkt_in()
2833 * below if we failed to schedule for the very first aux packet. in ble_ll_scan_rx_pkt_in()
2836 /* We are here because successfully scheduled for next aux */ in ble_ll_scan_rx_pkt_in()
2842 * for aux packet. However, if we was not able to schedule for first aux packet, in ble_ll_scan_rx_pkt_in()
2862 * make sure we do not send any more events for this chain, just in 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()
2879 /* We are here because we sent SCAN_REQ and wait for SCAN_RSP. in ble_ll_scan_rx_pkt_in()
2880 * We do not drop reference here by purpose, because 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()
2890 * and failed when truncated, but then we need to analyze reason of truncation as it 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()
2919 * pending flag if we received a valid response in ble_ll_scan_rx_pkt_in()
2939 /* If already enabled, we return an error */ in ble_ll_scan_set_scan_params()
3028 /* If already enabled, we return an error */ in ble_ll_set_ext_scan_params()
3106 /* If host requests continuous scan for 2 PHYs, we double scan interval in ble_ll_set_ext_scan_params()
3214 /* we can do that here since value will never change until reset */ in ble_ll_scan_set_enable()
3257 /* if already enable we just need to update parameters */ in ble_ll_scan_set_enable()
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()
3571 /* Make sure we'll generate new NRPA if necessary */ in ble_ll_scan_common_init()
3619 /* Reset duplicate advertisers and those from which we rxd a response */ in ble_ll_scan_reset()