commit | ff714119a6d2e2fc3c2e046d77801afa83a9ace2 | [log] [tgz] |
---|---|---|
author | Johan Hedberg <johan.hedberg@intel.com> | Thu Nov 13 09:46:04 2014 +0200 |
committer | Marcel Holtmann <marcel@holtmann.org> | Thu Nov 13 09:11:37 2014 +0100 |
tree | aeccaf567640d699bd86382307df529b8544e407 | |
parent | 3b2ab39e26c90aac947f120b0e27c5277c660d79 [diff] |
Bluetooth: Fix L2CAP nesting level initialization location There's no reason why all users of L2CAP would need to worry about initializing chan->nesting to L2CAP_NESTING_NORMAL (which is important since 0 is the same as NESTING_SMP). This patch moves the initialization to the common place that's used to create all new channels, i.e. the l2cap_chan_create() function. Signed-off-by: Johan Hedberg <johan.hedberg@intel.com> Signed-off-by: Marcel Holtmann <marcel@holtmann.org>