1. 07 Jan, 2022 5 commits
    • Dan Carpenter's avatar
      Bluetooth: hci_sock: fix endian bug in hci_sock_setsockopt() · b9f9dbad
      Dan Carpenter authored
      This copies a u16 into the high bits of an int, which works on a big
      endian system but not on a little endian system.
      
      Fixes: 09572fca ("Bluetooth: hci_sock: Add support for BT_{SND,RCV}BUF")
      Signed-off-by: default avatarDan Carpenter <dan.carpenter@oracle.com>
      Signed-off-by: default avatarMarcel Holtmann <marcel@holtmann.org>
      b9f9dbad
    • Dan Carpenter's avatar
      Bluetooth: L2CAP: uninitialized variables in l2cap_sock_setsockopt() · 2b70d4f9
      Dan Carpenter authored
      The "opt" variable is a u32, but on some paths only the top bytes
      were initialized and the others contained random stack data.
      
      Fixes: a7b75c5a ("net: pass a sockptr_t into ->setsockopt")
      Signed-off-by: default avatarDan Carpenter <dan.carpenter@oracle.com>
      Signed-off-by: default avatarMarcel Holtmann <marcel@holtmann.org>
      2b70d4f9
    • Sai Teja Aluvala's avatar
      Bluetooth: btqca: sequential validation · 4fac8a7a
      Sai Teja Aluvala authored
      Added Sequential validation support & patch command config
      Signed-off-by: default avatarSai Teja Aluvala <quic_saluvala@quicinc.com>
      Signed-off-by: default avatarMarcel Holtmann <marcel@holtmann.org>
      4fac8a7a
    • Aaron Ma's avatar
      Bluetooth: btusb: Add support for Foxconn QCA 0xe0d0 · 1cd563eb
      Aaron Ma authored
      Add an ID of Qualcomm Bluetooth SoC WCN6855.
      
      T:  Bus=05 Lev=01 Prnt=01 Port=03 Cnt=02 Dev#=  4 Spd=12   MxCh= 0
      D:  Ver= 1.10 Cls=e0(wlcon) Sub=01 Prot=01 MxPS=64 #Cfgs=  1
      P:  Vendor=0489 ProdID=e0d0 Rev= 0.01
      C:* #Ifs= 2 Cfg#= 1 Atr=e0 MxPwr=100mA
      I:* If#= 0 Alt= 0 #EPs= 3 Cls=e0(wlcon) Sub=01 Prot=01 Driver=btusb
      E:  Ad=81(I) Atr=03(Int.) MxPS=  16 Ivl=1ms
      E:  Ad=82(I) Atr=02(Bulk) MxPS=  64 Ivl=0ms
      E:  Ad=02(O) Atr=02(Bulk) MxPS=  64 Ivl=0ms
      I:  If#= 1 Alt= 0 #EPs= 2 Cls=e0(wlcon) Sub=01 Prot=01 Driver=btusb
      E:  Ad=83(I) Atr=01(Isoc) MxPS=   0 Ivl=1ms
      E:  Ad=03(O) Atr=01(Isoc) MxPS=   0 Ivl=1ms
      I:  If#= 1 Alt= 1 #EPs= 2 Cls=e0(wlcon) Sub=01 Prot=01 Driver=btusb
      E:  Ad=83(I) Atr=01(Isoc) MxPS=   9 Ivl=1ms
      E:  Ad=03(O) Atr=01(Isoc) MxPS=   9 Ivl=1ms
      I:* If#= 1 Alt= 2 #EPs= 2 Cls=e0(wlcon) Sub=01 Prot=01 Driver=btusb
      E:  Ad=83(I) Atr=01(Isoc) MxPS=  17 Ivl=1ms
      E:  Ad=03(O) Atr=01(Isoc) MxPS=  17 Ivl=1ms
      I:  If#= 1 Alt= 3 #EPs= 2 Cls=e0(wlcon) Sub=01 Prot=01 Driver=btusb
      E:  Ad=83(I) Atr=01(Isoc) MxPS=  25 Ivl=1ms
      E:  Ad=03(O) Atr=01(Isoc) MxPS=  25 Ivl=1ms
      I:  If#= 1 Alt= 4 #EPs= 2 Cls=e0(wlcon) Sub=01 Prot=01 Driver=btusb
      E:  Ad=83(I) Atr=01(Isoc) MxPS=  33 Ivl=1ms
      E:  Ad=03(O) Atr=01(Isoc) MxPS=  33 Ivl=1ms
      I:  If#= 1 Alt= 5 #EPs= 2 Cls=e0(wlcon) Sub=01 Prot=01 Driver=btusb
      E:  Ad=83(I) Atr=01(Isoc) MxPS=  49 Ivl=1ms
      E:  Ad=03(O) Atr=01(Isoc) MxPS=  49 Ivl=1ms
      I:  If#= 1 Alt= 6 #EPs= 2 Cls=e0(wlcon) Sub=01 Prot=01 Driver=btusb
      E:  Ad=83(I) Atr=01(Isoc) MxPS=  63 Ivl=1ms
      E:  Ad=03(O) Atr=01(Isoc) MxPS=  63 Ivl=1ms
      I:  If#= 1 Alt= 7 #EPs= 2 Cls=e0(wlcon) Sub=01 Prot=01 Driver=btusb
      E:  Ad=83(I) Atr=01(Isoc) MxPS=  65 Ivl=1ms
      E:  Ad=03(O) Atr=01(Isoc) MxPS=  65 Ivl=1ms
      Signed-off-by: default avatarAaron Ma <aaron.ma@canonical.com>
      Signed-off-by: default avatarMarcel Holtmann <marcel@holtmann.org>
      1cd563eb
    • Tedd Ho-Jeong An's avatar
      Bluetooth: btintel: Fix broken LED quirk for legacy ROM devices · 95655456
      Tedd Ho-Jeong An authored
      This patch fixes the broken LED quirk for Intel legacy ROM devices.
      To fix the LED issue that doesn't turn off immediately, the host sends
      the SW RFKILL command while shutting down the interface and it puts the
      devices in SW RFKILL state.
      
      Once the device is in SW RFKILL state, it can only accept HCI_Reset to
      exit from the SW RFKILL state. This patch checks the quirk for broken
      LED and sends the HCI_Reset before sending the HCI_Intel_Read_Version
      command.
      
      The affected legacy ROM devices are
       - 8087:07dc
       - 8087:0a2a
       - 8087:0aa7
      
      Fixes: ffcba827 ("Bluetooth: btintel: Fix the LED is not turning off immediately")
      Signed-off-by: default avatarTedd Ho-Jeong An <tedd.an@intel.com>
      Signed-off-by: default avatarMarcel Holtmann <marcel@holtmann.org>
      95655456
  2. 06 Jan, 2022 26 commits
  3. 05 Jan, 2022 9 commits