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

« back to all changes in this revision

Viewing changes to net/bluetooth/mgmt.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:
2912
2912
        return err;
2913
2913
}
2914
2914
 
 
2915
int mgmt_set_powered_failed(struct hci_dev *hdev, int err)
 
2916
{
 
2917
        struct pending_cmd *cmd;
 
2918
        u8 status;
 
2919
 
 
2920
        cmd = mgmt_pending_find(MGMT_OP_SET_POWERED, hdev);
 
2921
        if (!cmd)
 
2922
                return -ENOENT;
 
2923
 
 
2924
        if (err == -ERFKILL)
 
2925
                status = MGMT_STATUS_RFKILLED;
 
2926
        else
 
2927
                status = MGMT_STATUS_FAILED;
 
2928
 
 
2929
        err = cmd_status(cmd->sk, hdev->id, MGMT_OP_SET_POWERED, status);
 
2930
 
 
2931
        mgmt_pending_remove(cmd);
 
2932
 
 
2933
        return err;
 
2934
}
 
2935
 
2915
2936
int mgmt_discoverable(struct hci_dev *hdev, u8 discoverable)
2916
2937
{
2917
2938
        struct cmd_lookup match = { NULL, hdev };