~ubuntu-branches/ubuntu/wily/linux-ti-omap4/wily

« back to all changes in this revision

Viewing changes to net/bluetooth/hci_core.c

  • Committer: Package Import Robot
  • Author(s): Paolo Pisati, Paolo Pisati
  • Date: 2013-07-11 18:35:20 UTC
  • Revision ID: package-import@ubuntu.com-20130711183520-htnf1x4y5r11hndr
Tags: 3.5.0-229.42
* Release Tracking Bug
  - LP: #1199276

[ Paolo Pisati ]

* [Config] CONFIG_ATH9K_LEGACY_RATE_CONTROL is not set

Show diffs side-by-side

added added

removed removed

Lines of Context:
1099
1099
static void hci_power_on(struct work_struct *work)
1100
1100
{
1101
1101
        struct hci_dev *hdev = container_of(work, struct hci_dev, power_on);
 
1102
        int err;
1102
1103
 
1103
1104
        BT_DBG("%s", hdev->name);
1104
1105
 
1105
 
        if (hci_dev_open(hdev->id) < 0)
 
1106
        err = hci_dev_open(hdev->id);
 
1107
        if (err < 0) {
 
1108
                mgmt_set_powered_failed(hdev, err);
1106
1109
                return;
 
1110
        }
1107
1111
 
1108
1112
        if (test_bit(HCI_AUTO_OFF, &hdev->dev_flags))
1109
1113
                schedule_delayed_work(&hdev->power_off,