|
65 | 65 | #define L2CAP_WAIT_UNPARK_TOUT 2 /* 2 seconds */ |
66 | 66 | #define L2CAP_LINK_INFO_RESP_TOUT 2 /* 2 seconds */ |
67 | 67 | #define L2CAP_UPDATE_CONN_PARAM_TOUT 6 /* 6 seconds */ |
68 | | -#define L2CAP_BLE_LINK_CONNECT_TOUT BLE_ESTABLISH_LINK_CONNECTION_TIMEOUT // configed in menuconfig |
| 68 | +#define L2CAP_BLE_LINK_CONNECT_TOUT BLE_ESTABLISH_LINK_CONNECTION_TIMEOUT // configured in menuconfig |
69 | 69 | #define L2CAP_BLE_CONN_PARAM_UPD_TOUT 30 /* 30 seconds */ |
70 | 70 |
|
71 | 71 | /* quick timer uses millisecond unit */ |
|
80 | 80 | ** the Bluetooth specification. |
81 | 81 | */ |
82 | 82 | typedef enum { |
83 | | - CST_CLOSED, /* Channel is in clodes state */ |
| 83 | + CST_CLOSED, /* Channel is in closed state */ |
84 | 84 | CST_ORIG_W4_SEC_COMP, /* Originator waits security clearence */ |
85 | 85 | CST_TERM_W4_SEC_COMP, /* Acceptor waits security clearence */ |
86 | | - CST_W4_L2CAP_CONNECT_RSP, /* Waiting for peer conenct response */ |
| 86 | + CST_W4_L2CAP_CONNECT_RSP, /* Waiting for peer connect response */ |
87 | 87 | CST_W4_L2CA_CONNECT_RSP, /* Waiting for upper layer connect rsp */ |
88 | 88 | CST_CONFIG, /* Negotiating configuration */ |
89 | 89 | CST_OPEN, /* Data transfer state */ |
@@ -208,8 +208,8 @@ typedef struct { |
208 | 208 | UINT32 controller_idle; /* # of times less than 2 packets in controller */ |
209 | 209 | /* when the xmit window was closed */ |
210 | 210 | UINT32 pkts_retransmitted; /* # of packets that were retransmitted */ |
211 | | - UINT32 retrans_touts; /* # of retransmission timouts */ |
212 | | - UINT32 xmit_ack_touts; /* # of xmit ack timouts */ |
| 211 | + UINT32 retrans_touts; /* # of retransmission timeouts */ |
| 212 | + UINT32 xmit_ack_touts; /* # of xmit ack timeouts */ |
213 | 213 |
|
214 | 214 | #define L2CAP_ERTM_STATS_NUM_AVG 10 |
215 | 215 | #define L2CAP_ERTM_STATS_AVG_NUM_SAMPLES 100 |
@@ -386,7 +386,7 @@ typedef struct t_l2c_linkcb { |
386 | 386 |
|
387 | 387 | tL2C_CCB *p_pending_ccb; /* ccb of waiting channel during link disconnect */ |
388 | 388 | TIMER_LIST_ENT info_timer_entry; /* Timer entry for info resp timeout evt */ |
389 | | - TIMER_LIST_ENT upda_con_timer; /* Timer entry for update connection parametr */ |
| 389 | + TIMER_LIST_ENT upda_con_timer; /* Timer entry for update connection parameter */ |
390 | 390 | BD_ADDR remote_bd_addr; /* The BD address of the remote */ |
391 | 391 |
|
392 | 392 | UINT8 link_role; /* Master or slave */ |
@@ -599,7 +599,7 @@ extern BOOLEAN l2cu_start_post_bond_timer (UINT16 handle); |
599 | 599 | extern void l2cu_release_lcb (tL2C_LCB *p_lcb); |
600 | 600 | extern tL2C_LCB *l2cu_find_lcb_by_bd_addr (BD_ADDR p_bd_addr, tBT_TRANSPORT transport); |
601 | 601 | extern tL2C_LCB *l2cu_find_lcb_by_handle (UINT16 handle); |
602 | | -extern uint8_t l2cu_plcb_active_count(void); |
| 602 | +extern uint8_t l2cu_ble_plcb_active_count(void); |
603 | 603 | extern void l2cu_update_lcb_4_bonding (BD_ADDR p_bd_addr, BOOLEAN is_bonding); |
604 | 604 |
|
605 | 605 | extern UINT8 l2cu_get_conn_role (tL2C_LCB *p_this_lcb); |
|
0 commit comments