20 Nov, 2015
1 commit
-
The new hci_skb_pkt_* wrappers are mainly intented for drivers to
require less knowledge about bt_cb(sbk) handling. So after converting
the core packet handling, convert all drivers.Signed-off-by: Marcel Holtmann
Signed-off-by: Johan Hedberg
21 Oct, 2015
1 commit
-
Provide an early indication about the manufacturer information so that
it can be forwarded into monitor channel.Signed-off-by: Marcel Holtmann
Signed-off-by: Johan Hedberg
17 Jun, 2015
1 commit
-
If h4_recv_buf() return ERR_PTR instead sk_buff pointer, it should be
cleared once PTR_ERR is completed for the further dereference such as
h4_recv(), or h4_close().Signed-off-by: Chan-yeol Park
Signed-off-by: Marcel Holtmann
30 Apr, 2015
2 commits
-
The Atheros support for missing the support for configuration of the
Bluetooth public address. Add support for the vendor specific command.Signed-off-by: Marcel Holtmann
Signed-off-by: Johan Hedberg -
The driver callbacks in the Atheros support were all in a random order
and did not help readability of this driver. So reorder them to make
them aligned with what other Bluetooth UART drivers do. This patch is
not changing any actual code.Signed-off-by: Marcel Holtmann
Signed-off-by: Johan Hedberg
08 Apr, 2015
6 commits
-
Future H:4 based UART drivers require custom packet types and custom
receive functions. To support this, extended the h4_recv_buf function
with a packet definition table.For the default H:4 packets types of ACL data, SCO data and events,
provide helpers to reduce the amount of code duplication.Signed-off-by: Marcel Holtmann
Signed-off-by: Johan Hedberg -
The init function for each HCI UART protocol prints the same on success
and failure. This information is so generic, remove it and let the main
HCI UART handling print it instead.Signed-off-by: Marcel Holtmann
Signed-off-by: Johan Hedberg -
This adds an extra name field to the hci_uart_proto struct that provides
a simple way of adding a string identifier to the protocol.Signed-off-by: Marcel Holtmann
Signed-off-by: Johan Hedberg -
The usage of struct hci_uart_proto should always be const. Change the
function headers and individual protocol drivers.Signed-off-by: Marcel Holtmann
Signed-off-by: Johan Hedberg -
Instead of using hci_recv_stream_fragment, use the local available
h4_recv_buf helper function.To ensure that the function is available select BT_HCIUART_H4.
Signed-off-by: Marcel Holtmann
Signed-off-by: Johan Hedberg -
The TTY layer provides its data pointers as const, but the HCI UART
callbacks expect them as general data pointers. This is of course
wrong and instead of casting them, just fix the individual drivers
to actually take a const data pointer.Signed-off-by: Marcel Holtmann
Signed-off-by: Johan Hedberg
03 Feb, 2015
1 commit
-
tty_set_termios() is an internal helper intended for file scope use.
UART drivers which are capable of driving the RTS pin must
properly handle the tiocmset() method, regardless of termios settings.
A failure to do so is a UART driver bug and should be fixed there.
Do not use this interface to workaround UART driver bugs.Cc: Johan Hedberg
Cc:
Signed-off-by: Peter Hurley
Acked-by: Marcel Holtmann
Signed-off-by: Greg Kroah-Hartman
11 Nov, 2014
1 commit
-
Correct the comments in this driver. Set the CRTSCTS flag means
automatic flow control is enabled.Signed-off-by: Fugang Duan
Signed-off-by: Marcel Holtmann
17 Jul, 2012
1 commit
-
This will let us sort out a whole pile of tty related races. The
alternative would be to keep points and refcount the termios objects.
However
1. They are tiny anyway
2. Many devices don't use the stored copies
3. We can remove a pty special caseSigned-off-by: Alan Cox
Signed-off-by: Greg Kroah-Hartman
13 Feb, 2012
1 commit
-
The uart_proto open() callback is not called in atomic context so we can safely
sleep here. The caller hci_uart_set_proto() in hci_ldisc.c is an ioctl-handler
and therefore can sleep.Signed-off-by: David Herrmann
Acked-by: Marcel Holtmann
Signed-off-by: Johan Hedberg
13 Apr, 2011
1 commit
-
Check the return value of hu->proto->recv() in hci_uart_tty_receive()
the recv() may return error, check it, not add this to statistics.Signed-off-by: Jiejing Zhang
Signed-off-by: Gustavo F. Padovan
18 Feb, 2011
1 commit
-
Was this exploitable - who knows, but it was certainly totally broken
Signed-of-by: Alan Cox
Signed-off-by: Greg Kroah-Hartman
28 Jul, 2010
3 commits
-
sk_buffs have to be freed with kfree_skb() instead of kfree().
Signed-off-by: Dan Carpenter
Acked-by: Gustavo F. Padovan
Signed-off-by: Marcel Holtmann -
Those marks are useful to save space in the binary and in the memory.
Signed-off-by: Gustavo F. Padovan
Signed-off-by: Marcel Holtmann -
.c file shall not have the 'x' permission.
Signed-off-by: Gustavo F. Padovan
Signed-off-by: Marcel Holtmann
22 Jul, 2010
1 commit
-
Implements Atheros AR300x serial HCI protocol.
This protocol extends H4 serial protocol to implement enhanced power
management features supported by Atheros AR300x serial Bluetooth chipsets.Signed-off-by: Suraj Sumangala
Signed-off-by: Marcel Holtmann