Commit 4f8b691c authored by Gustavo F. Padovan's avatar Gustavo F. Padovan

Bluetooth: fix endianness conversion in L2CAP

Last commit added a wrong endianness conversion. Fixing that.
Reported-by: default avatarHarvey Harrison <harvey.harrison@gmail.com>
Signed-off-by: default avatarGustavo F. Padovan <padovan@profusion.mobi>
parent bfaaeb3e
......@@ -2452,11 +2452,11 @@ static void l2cap_add_conf_opt(void **ptr, u8 type, u8 len, unsigned long val)
break;
case 2:
put_unaligned_le16(cpu_to_le16(val), opt->val);
put_unaligned_le16(val, opt->val);
break;
case 4:
put_unaligned_le32(cpu_to_le32(val), opt->val);
put_unaligned_le32(val, opt->val);
break;
default:
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment