Lines Matching defs:bnep_cb
51 tBNEP_CB bnep_cb;
83 memset(&bnep_cb.l2cap_my_cfg, 0, sizeof(tL2CAP_CFG_INFO));
85 bnep_cb.l2cap_my_cfg.mtu_present = TRUE;
86 bnep_cb.l2cap_my_cfg.mtu = BNEP_MTU_SIZE;
87 bnep_cb.l2cap_my_cfg.flush_to_present = TRUE;
88 bnep_cb.l2cap_my_cfg.flush_to = BNEP_FLUSH_TO;
90 bnep_cb.reg_info.pL2CA_ConnectInd_Cb = bnep_connect_ind;
91 bnep_cb.reg_info.pL2CA_ConnectCfm_Cb = bnep_connect_cfm;
92 bnep_cb.reg_info.pL2CA_ConfigInd_Cb = bnep_config_ind;
93 bnep_cb.reg_info.pL2CA_ConfigCfm_Cb = bnep_config_cfm;
94 bnep_cb.reg_info.pL2CA_DisconnectInd_Cb = bnep_disconnect_ind;
95 bnep_cb.reg_info.pL2CA_DisconnectCfm_Cb = bnep_disconnect_cfm;
96 bnep_cb.reg_info.pL2CA_DataInd_Cb = bnep_data_ind;
97 bnep_cb.reg_info.pL2CA_CongestionStatus_Cb = bnep_congestion_ind;
100 if (!L2CA_Register (BT_PSM_BNEP, &bnep_cb.reg_info))
128 if (!(bnep_cb.profile_registered) || (p_bcb)
145 L2CA_ConfigReq (l2cap_cid, &bnep_cb.l2cap_my_cfg);
184 L2CA_ConfigReq (l2cap_cid, &bnep_cb.l2cap_my_cfg);
196 if (bnep_cb.p_conn_state_cb &&
199 (*bnep_cb.p_conn_state_cb) (bcb->handle, bcb->rem_bda, BNEP_CONN_FAILED, FALSE);
327 if ((p_bcb->con_flags & BNEP_FLAGS_IS_ORIG) && (bnep_cb.p_conn_state_cb))
329 (*bnep_cb.p_conn_state_cb) (p_bcb->handle, p_bcb->rem_bda, BNEP_CONN_FAILED_CFG, FALSE);
368 if (bnep_cb.p_conn_state_cb)
369 (*bnep_cb.p_conn_state_cb)(p_bcb->handle, p_bcb->rem_bda, BNEP_CONN_DISCONNECTED, FALSE);
373 if (((p_bcb->con_flags & BNEP_FLAGS_IS_ORIG) && (bnep_cb.p_conn_state_cb)) ||
375 (*bnep_cb.p_conn_state_cb) (p_bcb->handle, p_bcb->rem_bda, BNEP_CONN_FAILED, FALSE);
421 if(bnep_cb.p_tx_data_flow_cb)
423 bnep_cb.p_tx_data_flow_cb(p_bcb->handle, BNEP_TX_FLOW_OFF);
430 if(bnep_cb.p_tx_data_flow_cb)
432 bnep_cb.p_tx_data_flow_cb(p_bcb->handle, BNEP_TX_FLOW_ON);
642 p_dst_addr = (UINT8 *) bnep_cb.my_bda;
650 if (bnep_cb.p_data_buf_cb)
652 (*bnep_cb.p_data_buf_cb)(p_bcb->handle, p_src_addr, p_dst_addr, protocol, p_buf, fw_ext_present);
654 else if (bnep_cb.p_data_ind_cb)
656 (*bnep_cb.p_data_ind_cb)(p_bcb->handle, p_src_addr, p_dst_addr, protocol, p, rem_len, fw_ext_present);
680 if (!bnep_cb.got_my_bd_addr)
685 btu_start_timer (&bnep_cb.bnep_tle, BTU_TTYPE_BNEP, 2);
717 if ((p_bcb->con_flags & BNEP_FLAGS_IS_ORIG) && (bnep_cb.p_conn_state_cb))
718 (*bnep_cb.p_conn_state_cb) (p_bcb->handle, p_bcb->rem_bda, BNEP_CONN_FAILED, FALSE);
732 if ((p_bcb->con_flags & BNEP_FLAGS_IS_ORIG) && (bnep_cb.p_conn_state_cb))
733 (*bnep_cb.p_conn_state_cb) (p_bcb->handle, p_bcb->rem_bda, BNEP_CONN_FAILED, FALSE);
750 if (bnep_cb.p_conn_state_cb)
751 (*bnep_cb.p_conn_state_cb) (p_bcb->handle, p_bcb->rem_bda, BNEP_SET_FILTER_FAIL, FALSE);
771 if (bnep_cb.p_conn_state_cb)
772 (*bnep_cb.p_conn_state_cb) (p_bcb->handle, p_bcb->rem_bda, BNEP_SET_FILTER_FAIL, FALSE);
810 if (bnep_cb.p_conn_state_cb)
811 (*bnep_cb.p_conn_state_cb) (p_bcb->handle, p_bcb->rem_bda, BNEP_SUCCESS, is_role_change);
832 memcpy (bnep_cb.my_bda, p_bda, BD_ADDR_LEN);
834 bnep_cb.got_my_bd_addr = TRUE;
838 btu_start_timer (&bnep_cb.bnep_tle, BTU_TTYPE_BNEP, 2);