|
@@ -416,7 +416,7 @@ static void le_conn_timeout(struct work_struct *work)
|
|
|
* happen with broken hardware or if low duty cycle was used
|
|
|
* (which doesn't have a timeout of its own).
|
|
|
*/
|
|
|
- if (test_bit(HCI_ADVERTISING, &hdev->dev_flags)) {
|
|
|
+ if (conn->role == HCI_ROLE_SLAVE) {
|
|
|
u8 enable = 0x00;
|
|
|
hci_send_cmd(hdev, HCI_OP_LE_SET_ADV_ENABLE, sizeof(enable),
|
|
|
&enable);
|