Commit Graph

7 Commits

Author SHA1 Message Date
Bastien Nocera d67f530cde Bluetooth: HCI: Remove HCI_AMP support
JIRA: https://issues.redhat.com/browse/RHEL-38459
CVE: CVE-2024-36013

commit 84a4bb6548a29326564f0e659fb8064503ecc1c7
Author: Luiz Augusto von Dentz <luiz.von.dentz@intel.com>
Date:   Mon May 6 18:33:52 2024 -0400

    Bluetooth: HCI: Remove HCI_AMP support

    Since BT_HS has been remove HCI_AMP controllers no longer has any use so
    remove it along with the capability of creating AMP controllers.

    Since we no longer need to differentiate between AMP and Primary
    controllers, as only HCI_PRIMARY is left, this also remove
    hdev->dev_type altogether.

    Fixes: e7b02296fb40 ("Bluetooth: Remove BT_HS")
    Signed-off-by: Luiz Augusto von Dentz <luiz.von.dentz@intel.com>

Signed-off-by: Bastien Nocera <bnocera@redhat.com>
2024-08-19 13:48:20 +02:00
Gopal Tiwari f306775c05 Bluetooth: btrsi: remove superfluous header files from btrsi.c
Bugzilla: http://bugzilla.redhat.com/2066188

commit 0eb10c0c6d610baa10b6d1f98e2beed0e6393589
Author: Mianhan Liu <liumh1@shanghaitech.edu.cn>
Date:   Wed Sep 29 03:59:54 2021 +0800

    Bluetooth: btrsi: remove superfluous header files from btrsi.c

    btrsi.c hasn't use any macro or function declared in net/genetlink.h.
    Thus, these files can be removed from btrsi.c safely without
    affecting the compilation of the ./drivers/bluetooth module

    Signed-off-by: Mianhan Liu <liumh1@shanghaitech.edu.cn>
    Signed-off-by: Marcel Holtmann <marcel@holtmann.org>

Signed-off-by: Gopal Tiwari <gtiwari@redhat.com>
2022-04-27 11:48:56 +05:30
Gopal Tiwari acb72ca6c1 Bluetooth: btrsi: use non-kernel-doc comment for copyright
Bugzilla: http://bugzilla.redhat.com/2066188

commit ee3f96ad3eff61b5f3a48c050af533e0320c43ab
Author: Randy Dunlap <rdunlap@infradead.org>
Date:   Tue Jul 20 19:03:34 2021 -0700

    Bluetooth: btrsi: use non-kernel-doc comment for copyright

    kernel-doc complains about a non-kernel-doc comment that uses "/**"
    to begin the comment, so change it to just "/*".

    drivers/bluetooth/btrsi.c:2: warning: This comment starts with '/**', but isn't a kernel-doc comment. Refer Documentation/doc-guide/kernel-doc.rst
        * Copyright (c) 2017 Redpine Signals Inc.

    Signed-off-by: Randy Dunlap <rdunlap@infradead.org>
    Reported-by: kernel test robot <lkp@intel.com>
    Cc: Aditya Srivastava <yashsri421@gmail.com>
    Cc: Marcel Holtmann <marcel@holtmann.org>
    Cc: Johan Hedberg <johan.hedberg@gmail.com>
    Cc: Luiz Augusto von Dentz <luiz.dentz@gmail.com>
    Cc: linux-bluetooth@vger.kernel.org
    Cc: "David S. Miller" <davem@davemloft.net>
    Cc: Jakub Kicinski <kuba@kernel.org>
    Cc: netdev@vger.kernel.org
    Cc: Prameela Rani Garnepudi <prameela.j04cs@gmail.com>
    Cc: Sanjay Kumar Konduri <sanjay.konduri@redpinesignals.com>
    Cc: Siva Rebbagondla <siva.rebbagondla@redpinesignals.com>
    Cc: Kalle Valo <kvalo@codeaurora.org>
    Signed-off-by: Marcel Holtmann <marcel@holtmann.org>

Signed-off-by: Gopal Tiwari <gtiwari@redhat.com>
2022-04-27 11:48:48 +05:30
Leon Romanovsky 6417f03132 module: remove never implemented MODULE_SUPPORTED_DEVICE
MODULE_SUPPORTED_DEVICE was added in pre-git era and never was
implemented. We can safely remove it, because the kernel has grown
to have many more reliable mechanisms to determine if device is
supported or not.

Signed-off-by: Leon Romanovsky <leonro@nvidia.com>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
2021-03-17 13:16:18 -07:00
Sanjay Kumar Konduri 7cbfd1e2aa Bluetooth: btrsi: fix bt tx timeout issue
observed sometimes data is coming with unaligned address from kernel
BT stack. If unaligned address is passed, some data in payload is
stripped when packet is loading to firmware and this results, BT
connection timeout is happening.

sh# hciconfig hci0 up
Can't init device hci0: hci0 command 0x0c03 tx timeout

Fixed this by moving the data to aligned address.

Signed-off-by: Sanjay Kumar Konduri <sanjay.konduri@redpinesignals.com>
Signed-off-by: Siva Rebbagondla <siva.rebbagondla@redpinesignals.com>
Signed-off-by: Marcel Holtmann <marcel@holtmann.org>
2018-09-27 12:53:40 +02:00
Wei Yongjun f9b95db016 Bluetooth: btrsi: remove unused including <linux/version.h>
Remove including <linux/version.h> that don't need it.

Signed-off-by: Wei Yongjun <weiyongjun1@huawei.com>
Signed-off-by: Marcel Holtmann <marcel@holtmann.org>
2018-04-01 21:43:02 +03:00
Prameela Rani Garnepudi 38aa4da504 Bluetooth: btrsi: add new rsi bluetooth driver
Redpine bluetooth driver is a thin driver which depends on
'rsi_91x' driver for transmitting and receiving packets
to/from device. It creates hci interface when attach() is
called from 'rsi_91x' module.

Signed-off-by: Prameela Rani Garnepudi <prameela.j04cs@gmail.com>
Signed-off-by: Siva Rebbagondla <siva.rebbagondla@redpinesignals.com>
Acked-by: Marcel Holtmann <marcel@holtmann.org>
Reviewed-by: Marcel Holtmann <marcel@holtmann.org>
Signed-off-by: Amitkumar Karwar <amit.karwar@redpinesignals.com>
Signed-off-by: Kalle Valo <kvalo@codeaurora.org>
2018-03-13 18:37:02 +02:00