From: John W. Linville Date: Fri, 27 Sep 2013 17:09:17 +0000 (-0400) Subject: Merge branch 'master' of git://git.kernel.org/pub/scm/linux/kernel/git/linville/wirel... X-Git-Tag: accepted/tizen/common/20141203.182822~1360^2~39^2 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=0a878747e18d4d14c5b772dcddddd86bb4c26f8f;p=platform%2Fkernel%2Flinux-arm64.git Merge branch 'master' of git://git./linux/kernel/git/linville/wireless into for-davem Also fixed-up a badly indented closing brace... Signed-off-by: John W. Linville --- 0a878747e18d4d14c5b772dcddddd86bb4c26f8f diff --cc net/bluetooth/hci_core.c index 634deba,1b66547..fb7356f --- a/net/bluetooth/hci_core.c +++ b/net/bluetooth/hci_core.c @@@ -1566,10 -1570,13 +1570,13 @@@ static int hci_rfkill_set_block(void *d BT_DBG("%p name %s blocked %d", hdev, hdev->name, blocked); - if (!blocked) - return 0; - - hci_dev_do_close(hdev); + if (blocked) { + set_bit(HCI_RFKILLED, &hdev->dev_flags); + if (!test_bit(HCI_SETUP, &hdev->dev_flags)) + hci_dev_do_close(hdev); + } else { + clear_bit(HCI_RFKILLED, &hdev->dev_flags); -} ++ } return 0; }