aboutsummaryrefslogtreecommitdiff
path: root/net/bluetooth/mgmt.c
diff options
context:
space:
mode:
authorGravatar Marcel Holtmann <marcel@holtmann.org> 2014-02-20 11:55:56 -0800
committerGravatar Johan Hedberg <johan.hedberg@intel.com> 2014-02-21 06:20:59 +0200
commit3f959d46a60c20eedf6f228e49d820c5922ec68f (patch)
treeb1e45960308ee0ea484c518acf1056f3a6d0bd89 /net/bluetooth/mgmt.c
parentBluetooth: Fix channel check when binding RFCOMM sock (diff)
downloadlinux-3f959d46a60c20eedf6f228e49d820c5922ec68f.tar.gz
linux-3f959d46a60c20eedf6f228e49d820c5922ec68f.tar.bz2
linux-3f959d46a60c20eedf6f228e49d820c5922ec68f.zip
Bluetooth: Provide option for changing LE advertising channel map
For testing purposes it is useful to provide an option to change the advertising channel map. So add a debugfs option to allow this. Signed-off-by: Marcel Holtmann <marcel@holtmann.org> Signed-off-by: Johan Hedberg <johan.hedberg@intel.com>
Diffstat (limited to 'net/bluetooth/mgmt.c')
-rw-r--r--net/bluetooth/mgmt.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/net/bluetooth/mgmt.c b/net/bluetooth/mgmt.c
index 5f5e388716ec..12fa6399c796 100644
--- a/net/bluetooth/mgmt.c
+++ b/net/bluetooth/mgmt.c
@@ -1374,7 +1374,7 @@ static void enable_advertising(struct hci_request *req)
cp.max_interval = __constant_cpu_to_le16(0x0800);
cp.type = get_adv_type(hdev);
cp.own_address_type = hdev->own_addr_type;
- cp.channel_map = 0x07;
+ cp.channel_map = hdev->le_adv_channel_map;
hci_req_add(req, HCI_OP_LE_SET_ADV_PARAM, sizeof(cp), &cp);