aboutsummaryrefslogtreecommitdiffstats
path: root/net
diff options
context:
space:
mode:
authorJohan Hedberg <johan.hedberg@intel.com>2012-02-22 08:10:59 -0500
committerJohan Hedberg <johan.hedberg@intel.com>2012-02-23 06:06:59 -0500
commit5fc6ebb102fdf6f589242ebfe3a07d112d60c7d5 (patch)
treef8c4854cf6af25501e6aa70cea1a662ad88af6f8 /net
parent6bf0e4699d1dd56f7f8c12cf332ebffaf1c5e83e (diff)
Bluetooth: mgmt: Fix EIR toggling with SSP
This patch fixes setting the EIR properly when the SSP flag has been set when powered off (in such a case there is no pending Set_SSP command). Signed-off-by: Johan Hedberg <johan.hedberg@intel.com> Acked-by: Marcel Holtmann <marcel@holtmann.org>
Diffstat (limited to 'net')
-rw-r--r--net/bluetooth/mgmt.c11
1 files changed, 5 insertions, 6 deletions
diff --git a/net/bluetooth/mgmt.c b/net/bluetooth/mgmt.c
index 9fb44900f7d..bdaadb278ce 100644
--- a/net/bluetooth/mgmt.c
+++ b/net/bluetooth/mgmt.c
@@ -3437,14 +3437,13 @@ int mgmt_ssp_enable_complete(struct hci_dev *hdev, u8 enable, u8 status)
3437 if (changed) 3437 if (changed)
3438 err = new_settings(hdev, match.sk); 3438 err = new_settings(hdev, match.sk);
3439 3439
3440 if (match.sk) { 3440 if (match.sk)
3441 sock_put(match.sk); 3441 sock_put(match.sk);
3442 3442
3443 if (test_bit(HCI_SSP_ENABLED, &hdev->dev_flags)) 3443 if (test_bit(HCI_SSP_ENABLED, &hdev->dev_flags))
3444 update_eir(hdev); 3444 update_eir(hdev);
3445 else 3445 else
3446 clear_eir(hdev); 3446 clear_eir(hdev);
3447 }
3448 3447
3449 return err; 3448 return err;
3450} 3449}