Mat2057 fix

Fixes compiler warnings and completes the definition of  "struct l2cap_conn"