Hi Peter, > > > /* ---- HCI Ioctl requests structures ---- */ > > > struct hci_dev_stats { > > > + __u32 null_rx; /* # NULL pkts recvd */ > > > __u32 err_rx; > > > __u32 err_tx; > > > __u32 cmd_tx; > > > > you can not do it like this. This will break userspace API/ABI. > > Thanks for the definitive answer, Marcel. > > I suspected as much (which is why I noted in the accompanying cover that > this would be incompatible with previous userspace versions of this > ioctl). > > Is the general plan then to freeze the existing raw HCI interface and > only implement new userspace <-> kernel interfaces on mgmtops? we can extend the existing ioctl, but only in an API/ABI compatible fashion. So adding the null_rx at the end of the struct might work. And we might wanna add null_rx + null_tx to be consistent. The problem part here is that the stats struct is also nested in the info struct. We might get lucky here since it is nested at the end. Regards Marcel -- To unsubscribe from this list: send the line "unsubscribe linux-bluetooth" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html