aboutsummaryrefslogtreecommitdiffstats
path: root/net/bluetooth/a2mp.c
diff options
context:
space:
mode:
authorMarcel Holtmann <marcel@holtmann.org>2013-10-07 03:58:34 -0400
committerJohan Hedberg <johan.hedberg@intel.com>2013-10-07 04:08:42 -0400
commitcd0a85c22cd39f040ef4cff07a6c249bf1023137 (patch)
treec6c12ad9c16f8f39387378567dd6b3cb0a962f6b /net/bluetooth/a2mp.c
parent93c311a044442db62717ae509e09047f34dc3583 (diff)
Bluetooth: List powered down AMP controllers correctly
Within the AMP discover response, list powered down AMP controllers as powered down. No point in trying to make them look any different. Signed-off-by: Marcel Holtmann <marcel@holtmann.org> Signed-off-by: Johan Hedberg <johan.hedberg@intel.com>
Diffstat (limited to 'net/bluetooth/a2mp.c')
-rw-r--r--net/bluetooth/a2mp.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/net/bluetooth/a2mp.c b/net/bluetooth/a2mp.c
index 9410e272d8b6..b38d07477c20 100644
--- a/net/bluetooth/a2mp.c
+++ b/net/bluetooth/a2mp.c
@@ -89,7 +89,10 @@ static void __a2mp_add_cl(struct amp_mgr *mgr, struct a2mp_cl *cl)
89 if (hdev->dev_type == HCI_AMP) { 89 if (hdev->dev_type == HCI_AMP) {
90 cl[i].id = hdev->id; 90 cl[i].id = hdev->id;
91 cl[i].type = hdev->amp_type; 91 cl[i].type = hdev->amp_type;
92 cl[i].status = hdev->amp_status; 92 if (test_bit(HCI_UP, &hdev->flags))
93 cl[i].status = hdev->amp_status;
94 else
95 cl[i].status = AMP_STATUS_POWERED_DOWN;
93 i++; 96 i++;
94 } 97 }
95 } 98 }