Bluetooth: RFCOMM: Increase dlc stack size to 256

This analyzes the dlc stack using stack_analyze() which is coming
as 188 with BLUETOOTH_DEBUG_LOG off.

dlc stack (real size 320):     unused 68       usage 188 / 256 (73 %)

So increase the stack size to 256.

Change-Id: Ie5d5f267f4f618747551f0bfd0e05ffb47e0bb91
Signed-off-by: Jaganath Kanakkassery <jaganathx.kanakkassery@intel.com>
This commit is contained in:
Jaganath Kanakkassery 2017-01-03 19:24:03 +05:30 committed by Johan Hedberg
commit 51e71ea0fd
2 changed files with 5 additions and 1 deletions

View file

@ -103,7 +103,7 @@ struct bt_rfcomm_dlc {
uint8_t rx_credit;
/* Stack for TX fiber */
BT_STACK(stack, 128);
BT_STACK(stack, 256);
};
struct bt_rfcomm_server {

View file

@ -22,6 +22,7 @@
#include <atomic.h>
#include <misc/byteorder.h>
#include <misc/util.h>
#include <misc/stack.h>
#include <bluetooth/log.h>
#include <bluetooth/hci.h>
@ -244,6 +245,9 @@ static void rfcomm_dlc_destroy(struct bt_rfcomm_dlc *dlc)
dlc->state = BT_RFCOMM_STATE_IDLE;
dlc->session = NULL;
stack_analyze("dlc stack", dlc->stack, sizeof(dlc->stack));
if (dlc->ops && dlc->ops->disconnected) {
dlc->ops->disconnected(dlc);
}