summaryrefslogtreecommitdiff
path: root/tools/bneptest.c
diff options
context:
space:
mode:
authorGrzegorz Kolodziejczyk <grzegorz.kolodziejczyk@tieto.com>2015-05-14 09:47:10 +0200
committerSzymon Janc <szymon.janc@tieto.com>2015-05-19 16:33:35 +0200
commitc895e5ae5b40bdad2333eb4e025f9d7f8f87902c (patch)
tree69197681efa189d2295bead365be3928a1ed6b99 /tools/bneptest.c
parent90012afd113b0411b9a79dbd41dee4bde008d6fc (diff)
downloadbluez-c895e5ae5b40bdad2333eb4e025f9d7f8f87902c.tar.gz
profiles/network: Add support for handling extension hdr in ctrl msg
Support for extension headers is mandatory functionality. This patch add support to it and leave responsibility for processing extension header and sending setup success response to kernel. This patch is necessary to pass PTS bnep test TC_CTRL_BV_19_C.
Diffstat (limited to 'tools/bneptest.c')
-rw-r--r--tools/bneptest.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/tools/bneptest.c b/tools/bneptest.c
index 98ee9b12b..a7d5815f8 100644
--- a/tools/bneptest.c
+++ b/tools/bneptest.c
@@ -327,7 +327,7 @@ static gboolean setup_bnep_cb(GIOChannel *chan, GIOCondition cond,
sk = g_io_channel_unix_get_fd(chan);
/* Reading BNEP_SETUP_CONNECTION_REQUEST_MSG */
- n = read(sk, packet, sizeof(packet));
+ n = recv(sk, packet, sizeof(packet), MSG_PEEK);
if (n < 0) {
error("read(): %s(%d)", strerror(errno), errno);
return FALSE;