Bluetooth: L2CAP: Fix bt_l2cap_chan_send
Bluetooth: L2CAP: Fix bt_l2cap_chan_send

The l2cap_chan_le_send_sdu code was not taking into account that
bt_l2cap_send adds its on headers which means buf->len != ret won't
stop once the last remaining segment is sent since it reuses the
original buffer len is not consumed.

Change-Id: I774da976fb4f71127ae30adf1e02d52946fb9592
Signed-off-by: Luiz Augusto von Dentz <8530c5ea66a1bdbc08f98bfcf183c8be901b5990@intel.com>

zephyriot/zephyr,mirzak/zephyr-os,zephyriot/zephyr,runchip/zephyr-cc3220,tidyjiang8/zephyr-doc,holtmann/zephyr,aceofall/zephyr-iotos,runchip/zephyr-cc3200,ldts/zephyr,finikorg/zephyr,sharronliu/zephyr,32bitmicro/zephyr,rsalveti/zephyr,ldts/zephyr,mirzak/zephyr-os,mbolivar/zephyr,sharronliu/zephyr,fbsder/zephyr,fbsder/zephyr,GiulianoFranchetto/zephyr,galak/zephyr,erwango/zephyr,bigdinotech/zephyr,Vudentz/zephyr,erwango/zephyr,jamesonwilliams/zephyr-kernel,rsalveti/zephyr,explora26/zephyr,tidyjiang8/zephyr-doc,Vudentz/zephyr,tidyjiang8/zephyr-doc,zephyriot/zephyr,fractalclone/zephyr-riscv,32bitmicro/zephyr,zephyriot/zephyr,32bitmicro/zephyr,explora26/zephyr,fractalclone/zephyr-riscv,runchip/zephyr-cc3200,ldts/zephyr,nashif/zephyr,mbolivar/zephyr,Vudentz/zephyr,jamesonwilliams/zephyr-kernel,galak/zephyr,zephyrproject-rtos/zephyr,bigdinotech/zephyr,bboozzoo/zephyr,pklazy/zephyr,32bitmicro/zephyr,zephyrproject-rtos/zephyr,runchip/zephyr-cc3220,erwango/zephyr,bigdinotech/zephyr,mbolivar/zephyr,holtmann/zephyr,jamesonwilliams/zephyr-kernel,coldnew/zephyr-project-fork,sharronliu/zephyr,fractalclone/zephyr-riscv,runchip/zephyr-cc3220,rsalveti/zephyr,galak/zephyr,mbolivar/zephyr,kraj/zephyr,kraj/zephyr,jamesonwilliams/zephyr-kernel,zephyrproject-rtos/zephyr,coldnew/zephyr-project-fork,pklazy/zephyr,pklazy/zephyr,kraj/zephyr,holtmann/zephyr,bboozzoo/zephyr,runchip/zephyr-cc3200,bboozzoo/zephyr,pklazy/zephyr,32bitmicro/zephyr,coldnew/zephyr-project-fork,mbolivar/zephyr,punitvara/zephyr,pklazy/zephyr,rsalveti/zephyr,ldts/zephyr,aceofall/zephyr-iotos,coldnew/zephyr-project-fork,mirzak/zephyr-os,runchip/zephyr-cc3200,GiulianoFranchetto/zephyr,ldts/zephyr,tidyjiang8/zephyr-doc,finikorg/zephyr,runchip/zephyr-cc3200,galak/zephyr,finikorg/zephyr,runchip/zephyr-cc3220,explora26/zephyr,punitvara/zephyr,aceofall/zephyr-iotos,kraj/zephyr,mirzak/zephyr-os,bboozzoo/zephyr,erwango/zephyr,tidyjiang8/zephyr-doc,aceofall/zephyr-iotos,punitvara/zephyr,holtmann/zephyr,bigdinotech/zephyr,kraj/zephyr,sharronliu/zephyr,GiulianoFranchetto/zephyr,punitvara/zephyr,galak/zephyr,fractalclone/zephyr-riscv,Vudentz/zephyr,zephyriot/zephyr,erwango/zephyr,zephyrproject-rtos/zephyr,finikorg/zephyr,finikorg/zephyr,fractalclone/zephyr-riscv,explora26/zephyr,fbsder/zephyr,sharronliu/zephyr,Vudentz/zephyr,runchip/zephyr-cc3220,GiulianoFranchetto/zephyr,rsalveti/zephyr,coldnew/zephyr-project-fork,Vudentz/zephyr,holtmann/zephyr,nashif/zephyr,aceofall/zephyr-iotos,zephyrproject-rtos/zephyr,mirzak/zephyr-os,explora26/zephyr,bigdinotech/zephyr,bboozzoo/zephyr,jamesonwilliams/zephyr-kernel,fbsder/zephyr,nashif/zephyr,GiulianoFranchetto/zephyr,punitvara/zephyr,nashif/zephyr,fbsder/zephyr,nashif/zephyr