diff options
author | Grzegorz Kolodziejczyk <grzegorz.kolodziejczyk@tieto.com> | 2015-05-14 09:47:10 +0200 |
---|---|---|
committer | Szymon Janc <szymon.janc@tieto.com> | 2015-05-19 16:33:35 +0200 |
commit | c895e5ae5b40bdad2333eb4e025f9d7f8f87902c (patch) | |
tree | 69197681efa189d2295bead365be3928a1ed6b99 /tools/bneptest.c | |
parent | 90012afd113b0411b9a79dbd41dee4bde008d6fc (diff) | |
download | bluez-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.c | 2 |
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; |