linux-bluetooth.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [BUG] Btattach, ioctl fails to set flags from 32-bit user space to 64-bit
@ 2016-01-20 12:58 Jaap Jan Meijer
  2016-01-21 11:12 ` Marcel Holtmann
  0 siblings, 1 reply; 6+ messages in thread
From: Jaap Jan Meijer @ 2016-01-20 12:58 UTC (permalink / raw)
  To: linux-bluetooth

Hi,

WIth Btattach, ioctl fails to set flags from 32-bit user space to 64-bit
kernel. ioctl fails with ENOTTY.

static int attach_proto(const char *path, unsigned int proto,
unsigned int flags)
{
int fd, dev_id;

fd = open_serial(path);
if (fd < 0)
return -1;

if (ioctl(fd, HCIUARTSETFLAGS, flags) < 0) {
perror("Failed to set flags");
close(fd);
return -1;
}
.....

Kind regards,

J.J.

^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2016-01-25  7:55 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2016-01-20 12:58 [BUG] Btattach, ioctl fails to set flags from 32-bit user space to 64-bit Jaap Jan Meijer
2016-01-21 11:12 ` Marcel Holtmann
2016-01-21 21:38   ` Jaap Jan Meijer
2016-01-22  1:07     ` Marcel Holtmann
2016-01-22 13:38     ` Marcel Holtmann
2016-01-25  7:55       ` Marcel Holtmann

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).