diff options
author | Marcel Holtmann <marcel@holtmann.org> | 2015-03-19 20:22:25 -0400 |
---|---|---|
committer | Johan Hedberg <johan.hedberg@intel.com> | 2015-03-20 08:08:32 -0400 |
commit | dc5d82a9febb28aa9126f9a864eb212317e4ede6 (patch) | |
tree | 49340b7dbc16bd81e3d3df1d4433edb28b7ccdda /net/bluetooth | |
parent | e7844ee599c3eb944c3bd0092d715ca86e76a1f3 (diff) |
Bluetooth: Use HCI_MAX_AD_LENGTH constant instead hardcoded value
Using the HCI_MAX_AD_LENGTH for the max advertising data and max scan
response data length makes more sense than hardcoding the value.
Signed-off-by: Marcel Holtmann <marcel@holtmann.org>
Signed-off-by: Johan Hedberg <johan.hedberg@intel.com>
Diffstat (limited to 'net/bluetooth')
-rw-r--r-- | net/bluetooth/mgmt.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/net/bluetooth/mgmt.c b/net/bluetooth/mgmt.c index cee9bc9735af..8c771e79d67d 100644 --- a/net/bluetooth/mgmt.c +++ b/net/bluetooth/mgmt.c | |||
@@ -6312,8 +6312,8 @@ static int read_adv_features(struct sock *sk, struct hci_dev *hdev, | |||
6312 | } | 6312 | } |
6313 | 6313 | ||
6314 | rp->supported_flags = cpu_to_le32(0); | 6314 | rp->supported_flags = cpu_to_le32(0); |
6315 | rp->max_adv_data_len = 31; | 6315 | rp->max_adv_data_len = HCI_MAX_AD_LENGTH; |
6316 | rp->max_scan_rsp_len = 31; | 6316 | rp->max_scan_rsp_len = HCI_MAX_AD_LENGTH; |
6317 | rp->max_instances = 0; | 6317 | rp->max_instances = 0; |
6318 | rp->num_instances = 0; | 6318 | rp->num_instances = 0; |
6319 | 6319 | ||