File tree Expand file tree Collapse file tree 2 files changed +11
-1
lines changed Expand file tree Collapse file tree 2 files changed +11
-1
lines changed Original file line number Diff line number Diff line change @@ -246,6 +246,15 @@ enum {
246
246
* HCI after resume.
247
247
*/
248
248
HCI_QUIRK_NO_SUSPEND_NOTIFIER ,
249
+
250
+ /*
251
+ * When this quirk is set, LE tx power is not queried on startup
252
+ * and the min/max tx power values default to HCI_TX_POWER_INVALID.
253
+ *
254
+ * This quirk can be set before hci_register_dev is called or
255
+ * during the hdev->setup vendor callback.
256
+ */
257
+ HCI_QUIRK_BROKEN_READ_TRANSMIT_POWER ,
249
258
};
250
259
251
260
/* HCI device flags */
Original file line number Diff line number Diff line change @@ -3300,7 +3300,8 @@ static int hci_le_read_adv_tx_power_sync(struct hci_dev *hdev)
3300
3300
/* Read LE Min/Max Tx Power*/
3301
3301
static int hci_le_read_tx_power_sync (struct hci_dev * hdev )
3302
3302
{
3303
- if (!(hdev -> commands [38 ] & 0x80 ))
3303
+ if (!(hdev -> commands [38 ] & 0x80 ) ||
3304
+ test_bit (HCI_QUIRK_BROKEN_READ_TRANSMIT_POWER , & hdev -> quirks ))
3304
3305
return 0 ;
3305
3306
3306
3307
return __hci_cmd_sync_status (hdev , HCI_OP_LE_READ_TRANSMIT_POWER ,
You can’t perform that action at this time.
0 commit comments