]> git.baikalelectronics.ru Git - kernel.git/commit
Bluetooth: Provide msg_name callback for L2CAP connectionless channels
authorMarcel Holtmann <marcel@holtmann.org>
Sun, 13 Oct 2013 19:55:29 +0000 (12:55 -0700)
committerJohan Hedberg <johan.hedberg@intel.com>
Sun, 13 Oct 2013 20:13:37 +0000 (23:13 +0300)
commitfc37d87c372436300d79e227764783f081be9c14
treea1bf8bd37518697e3dd7b3be469d0d587f229876
parent9bcadedf4775ea005656c90a2ebeac29049956bd
Bluetooth: Provide msg_name callback for L2CAP connectionless channels

The L2CAP connectionless channels use SOCK_DGRAM and recvmsg() and need
to receive the remote BD_ADDR and PSM information via msg_name from
the recvmsg() system call.

So in case the L2CAP socket is for connectionless channels, provide
a msg_name callback that can update the data. Also store the remote
BD_ADDR and PSM in the skb so it can be extracted later on.

Signed-off-by: Marcel Holtmann <marcel@holtmann.org>
Signed-off-by: Johan Hedberg <johan.hedberg@intel.com>
include/net/bluetooth/bluetooth.h
net/bluetooth/l2cap_core.c
net/bluetooth/l2cap_sock.c