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: firefly_0821_release~176^2~5211^2~39^2 X-Git-Url: http://demsky.eecs.uci.edu/git/?a=commitdiff_plain;h=0a878747e18d4d14c5b772dcddddd86bb4c26f8f;p=firefly-linux-kernel-4.4.55.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 634debab4d54,1b66547a3ca6..fb7356fcfe51 --- 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; }