Commit b874dec2 authored by Samuel Ortiz's avatar Samuel Ortiz
Browse files

NFC: Implement LLCP connection less Tx path

It simply involves getting the client dsap and ssap and calling the UI
frame building and sending routine.
Signed-off-by: default avatarSamuel Ortiz <>
parent 94f418a2
......@@ -608,6 +608,25 @@ static int llcp_sock_sendmsg(struct kiocb *iocb, struct socket *sock,
if (sk->sk_type == SOCK_DGRAM) {
struct sockaddr_nfc_llcp *addr =
(struct sockaddr_nfc_llcp *)msg->msg_name;
if (msg->msg_namelen < sizeof(*addr)) {
pr_err("Invalid socket address length %d\n",
return -EINVAL;
return nfc_llcp_send_ui_frame(llcp_sock, addr->dsap, addr->ssap,
msg, len);
if (sk->sk_state != LLCP_CONNECTED) {
return -ENOTCONN;
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