I am using nrf54l15 with NCS v3.1.0 with the following error when i connect it(i worked in NCS v2.9.1 successfully):

for matching ncs 3.1.0 I change this code:

So, I modified the functionality implemented with bt_hci_cmd_create to the code shown in the above image. Now it compiles successfully, but when connecting to the device and trying to reset the transmit power, the errors mentioned earlier occur.
In the previous discussion(devzone.nordicsemi.com/.../ncs-3-1-0-vble-connect-error-at-bt_hci_cmd_send_sync), I provided my workaround, but I didn’t identify the root cause of the issue. Now I tried disabling this config(CONFIG_BT_USER_DATA_LEN_UPDATE)and this code of picture, than the connection works normally. Could you tell me why handling it this way resolves the connection problem?


MY BT configs:
Thank you very much!