diff options
Diffstat (limited to 'bta/pan/bta_pan_main.c')
-rw-r--r-- | bta/pan/bta_pan_main.c | 30 |
1 files changed, 15 insertions, 15 deletions
diff --git a/bta/pan/bta_pan_main.c b/bta/pan/bta_pan_main.c index 34caf61..1ba520b 100644 --- a/bta/pan/bta_pan_main.c +++ b/bta/pan/bta_pan_main.c @@ -152,7 +152,7 @@ tBTA_PAN_CB bta_pan_cb; ** Function bta_pan_scb_alloc ** ** Description Allocate a PAN server control block. -** +** ** ** Returns pointer to the scb, or NULL if none could be allocated. ** @@ -171,7 +171,7 @@ tBTA_PAN_SCB *bta_pan_scb_alloc(void) break; } } - + if (i == BTA_PAN_NUM_CONN) { /* out of scbs */ @@ -186,7 +186,7 @@ tBTA_PAN_SCB *bta_pan_scb_alloc(void) ** Function bta_pan_sm_execute ** ** Description State machine event handling function for PAN -** +** ** ** Returns void ** @@ -226,7 +226,7 @@ static void bta_pan_sm_execute(tBTA_PAN_SCB *p_scb, UINT16 event, tBTA_PAN_DATA ** Function bta_pan_api_enable ** ** Description Handle an API enable event. -** +** ** ** Returns void ** @@ -246,7 +246,7 @@ static void bta_pan_api_enable(tBTA_PAN_DATA *p_data) ** Function bta_pan_api_disable ** ** Description Handle an API disable event. -** +** ** ** Returns void ** @@ -262,7 +262,7 @@ static void bta_pan_api_disable(tBTA_PAN_DATA *p_data) ** Function bta_pan_api_open ** ** Description Handle an API listen event. -** +** ** ** Returns void ** @@ -276,7 +276,7 @@ static void bta_pan_api_open(tBTA_PAN_DATA *p_data) if ((p_scb = bta_pan_scb_alloc()) != NULL) { bta_pan_open(p_scb, p_data); - } + } else { bdcpy(data.bd_addr, p_data->api_open.bd_addr); @@ -290,7 +290,7 @@ static void bta_pan_api_open(tBTA_PAN_DATA *p_data) ** Function bta_pan_scb_dealloc ** ** Description Deallocate a link control block. -** +** ** ** Returns void ** @@ -306,7 +306,7 @@ void bta_pan_scb_dealloc(tBTA_PAN_SCB *p_scb) ** Function bta_pan_scb_to_idx ** ** Description Given a pointer to an scb, return its index. -** +** ** ** Returns Index of scb. ** @@ -324,7 +324,7 @@ UINT8 bta_pan_scb_to_idx(tBTA_PAN_SCB *p_scb) ** Function bta_pan_scb_by_handle ** ** Description Find scb associated with handle. -** +** ** ** Returns Pointer to scb or NULL if not found. ** @@ -343,8 +343,8 @@ tBTA_PAN_SCB *bta_pan_scb_by_handle(UINT16 handle) } - APPL_TRACE_WARNING1("No scb for handle %d", handle); - + APPL_TRACE_WARNING1("No scb for handle %d", handle); + return NULL; } @@ -353,7 +353,7 @@ tBTA_PAN_SCB *bta_pan_scb_by_handle(UINT16 handle) ** Function bta_pan_hdl_event ** ** Description Data gateway main event handling function. -** +** ** ** Returns void ** @@ -385,7 +385,7 @@ BOOLEAN bta_pan_hdl_event(BT_HDR *p_msg) bta_pan_api_open((tBTA_PAN_DATA *) p_msg); break; - + /* events that require buffer not be released */ case BTA_PAN_CI_RX_WRITEBUF_EVT: freebuf = FALSE; @@ -404,6 +404,6 @@ BOOLEAN bta_pan_hdl_event(BT_HDR *p_msg) break; } - return freebuf; + return freebuf; } #endif /* BTA_PAN_INCLUDED */ |