Lines Matching full:we

49  * 4) How to determine the advertising interval we will actually use. As of
50 * now, we set it to max.
75 * This is the address that we send in directed advertisements (the
76 * INITA field). If we are using Privacy this is a RPA that we need to
77 * generate. We reserve space in the advsm to save time when creating
232 * resolving list. That is why we need to check if the generated address is
262 /* Mark RPA as timed out so we get a new RPA */ in ble_ll_adv_rpa_timeout()
270 * Calculate the first channel that we should advertise upon when we start
295 * Calculate the final channel that we should advertise upon when we start
504 /* We do not create scannable PDUs here - this is handled separately */ in ble_ll_adv_aux_pdu_make()
541 * Trim data here in case we do not have next aux scheduled. This in ble_ll_adv_aux_pdu_make()
675 * we will reply with an adva that was not generated based on the local irk in ble_ll_adv_scan_rsp_legacy_pdu_make()
807 /* We no longer have a current state machine */ in ble_ll_adv_tx_done()
894 /* We switch to RX after connectable or scannable legacy packets. */ in ble_ll_adv_tx_start_cb()
958 * In ADV_EXT_IND we always set only ADI and AUX so the payload length in ble_ll_adv_set_sched()
1145 /* AuxPtr if there are more AdvData remaining that we can fit here */ in ble_ll_adv_aux_calculate()
1185 * Do not schedule next aux if current aux is no longer scheduled since we in ble_ll_adv_aux_schedule_next()
1194 * header as this means we do not need subsequent ADV_CHAIN_IND to be sent. in ble_ll_adv_aux_schedule_next()
1221 * In case duration is set for advertising set we need to check if newly in ble_ll_adv_aux_schedule_next()
1249 /* TODO we could use CSA2 for this in ble_ll_adv_aux_schedule_first()
1304 * We want to schedule auxiliary packet as soon as possible after the end in ble_ll_adv_aux_set_start_time()
1307 * on 1M, but it can vary a bit due to scheduling which we can't really in ble_ll_adv_aux_set_start_time()
1308 * control. Since we round ticks up for both interval and T_MAFS, we still in ble_ll_adv_aux_set_start_time()
1309 * have some margin here. The worst thing that can happen is that we skip in ble_ll_adv_aux_set_start_time()
1334 * For secondary channel we always start by scheduling two consecutive in ble_ll_adv_aux_schedule()
1335 * auxiliary packets at once. Then, after sending one packet we try to in ble_ll_adv_aux_schedule()
1337 * is to make sure we can always calculate AuxPtr to subsequent packet in ble_ll_adv_aux_schedule()
1346 * In case duration is set for advertising set we need to check if at least in ble_ll_adv_aux_schedule()
1347 * 1st aux will fit inside duration. If not, stop advertising now so we do in ble_ll_adv_aux_schedule()
1348 * not start extended advertising event which we cannot finish in time. in ble_ll_adv_aux_schedule()
1425 * Get the filter policy now since we will ignore it if we are doing in ble_ll_adv_set_adv_params()
1490 /* If we dont support privacy some address types wont work */ in ble_ll_adv_set_adv_params()
1540 /* Set to standby if we are no longer advertising */ in ble_ll_adv_sm_stop()
1569 /* If there is an event buf we need to free it */ in ble_ll_adv_sm_stop()
1594 * For high duty directed advertising we need to send connection in ble_ll_adv_sm_stop_timeout()
1616 * For high duty directed advertising we need to send connection in ble_ll_adv_sm_stop_limit_reached()
1637 /* The event start time is when we start transmission of the adv PDU */ in ble_ll_adv_scheduled()
1650 /* Set the time at which we must end directed, high-duty cycle advertising. in ble_ll_adv_scheduled()
1702 /* We expect this to be NULL but if not we wont allocate one... */ in ble_ll_adv_sm_start()
1742 /* Determine the advertising interval we will use */ in ble_ll_adv_sm_start()
1759 * to check if we are currently doing anything. Just makes this simple. in ble_ll_adv_sm_start()
1769 * Schedule advertising. We set the initial schedule start and end in ble_ll_adv_sm_start()
2269 /* If we dont support privacy some address types wont work */ in ble_ll_adv_ext_set_param()
2524 * Should we allow any value for instance ID? in ble_ll_adv_remove()
2612 * 0: request (scan) is for us and we successfully went from rx to tx.
2635 /* See if adva in the request (scan or connect) matches what we sent */ in ble_ll_adv_rx_req()
2643 /* Set device match bit if we are whitelisting */ in ble_ll_adv_rx_req()
2691 /* Set device match bit if we are whitelisting */ in ble_ll_adv_rx_req()
2697 * We set the device match bit to tell the upper layer that we will in ble_ll_adv_rx_req()
2706 /* XXX TODO: assume we do not need to change phy mode */ in ble_ll_adv_rx_req()
2716 * We need to store current rxed packet header temporarily so AuxPtr in ble_ll_adv_rx_req()
2741 * Only accept connect requests from the desired address if we in ble_ll_adv_rx_req()
2818 * Only accept connect requests from the desired address if we in ble_ll_adv_conn_req_rxd()
2840 /* Retain the resolvable private address that we received. */ in ble_ll_adv_conn_req_rxd()
2877 * There are only two pdu types we care about in this state: scan requests
2878 * and connection requests. When we receive a scan request we must determine if
2879 * we need to send a scan response and that needs to be acted on within T_IFS.
2881 * When we receive a connection request, we need to determine if we will allow
2883 * sent so we handle this at the link layer task.
2925 /* We no longer have a current state machine */ in ble_ll_adv_rx_isr_end()
2972 * If we have received a scan request and we are transmitting a response in ble_ll_adv_rx_pkt_in()
2973 * or we have received a valid connect request, dont "end" the advertising in ble_ll_adv_rx_pkt_in()
2974 * event. In the case of a connect request we will stop advertising. In in ble_ll_adv_rx_pkt_in()
2975 * the case of the scan response transmission we will get a transmit in ble_ll_adv_rx_pkt_in()
2998 * Called when a receive PDU has started and we are advertising.
3006 * < 0: A frame we dont want to receive.
3016 /* Assume we will abort the frame */ in ble_ll_adv_rx_isr_start()
3019 /* If we get a scan request we must tell the phy to go from rx to tx */ in ble_ll_adv_rx_isr_start()
3022 /* Only accept scan requests if we are indirect adv or scan adv */ in ble_ll_adv_rx_isr_start()
3036 * If we abort the frame, we need to post the LL task to check if the in ble_ll_adv_rx_isr_start()
3139 * Check if we have ended our advertising event. If our last advertising in ble_ll_adv_done()
3140 * packet was sent on the last channel, it means we are done with this in ble_ll_adv_done()
3152 /* Check if we need to resume scanning */ in ble_ll_adv_done()
3164 * Calculate start time of next advertising event. NOTE: we do not in ble_ll_adv_done()
3173 * The scheduled time better be in the future! If it is not, we will in ble_ll_adv_done()
3174 * just keep advancing until we the time is in the future in ble_ll_adv_done()
3181 * NOTE: we just the same interval that we calculated earlier. in ble_ll_adv_done()
3194 * increment by 1. We can do this because we already checked if we in ble_ll_adv_done()
3204 * We will transmit right away. Set next pdu start time to now in ble_ll_adv_done()
3205 * plus a xcvr start delay just so we dont count late adv starts in ble_ll_adv_done()
3211 /* If we're past aux (unlikely, but can happen), just drop an event */ in ble_ll_adv_done()
3261 /* We need to regenerate our RPA's if we have passed timeout */ in ble_ll_adv_done()
3275 * In the unlikely event we cant reschedule this, just post a done in ble_ll_adv_done()
3276 * event and we will reschedule the next advertising event in ble_ll_adv_done()
3325 /* If we have next AUX scheduled, try to schedule another one */ in ble_ll_adv_sec_done()
3333 /* Check if we need to resume scanning */ in ble_ll_adv_sec_done()