Repository navigation
Commit 2e84d8d
Bluetooth: Mark controller is down when HCI_AUTO_OFF is set
During the initial setup phase, the controller is powered on and will
be powered off again if it is not used within the auto-off timeout.
Userspace using ioctl does not know about the difference between the
initial setup phase and a controller being present. It is a bad idea
to keep the controller powered by just looking at the device list or
device information. Instead just tell userspace that the controller
is still down.
Signed-off-by: Marcel Holtmann <marcel@holtmann.org>
Signed-off-by: Johan Hedberg <johan.hedberg@intel.com>1 parent 13a779e commit 2e84d8d
1 file changed
Lines changed: 19 additions & 6 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2817 | 2817 | | |
2818 | 2818 | | |
2819 | 2819 | | |
2820 | | - | |
2821 | | - | |
| 2820 | + | |
| 2821 | + | |
| 2822 | + | |
| 2823 | + | |
| 2824 | + | |
| 2825 | + | |
| 2826 | + | |
| 2827 | + | |
2822 | 2828 | | |
2823 | 2829 | | |
2824 | 2830 | | |
2825 | 2831 | | |
2826 | 2832 | | |
2827 | | - | |
| 2833 | + | |
2828 | 2834 | | |
2829 | 2835 | | |
2830 | 2836 | | |
| |||
2844 | 2850 | | |
2845 | 2851 | | |
2846 | 2852 | | |
| 2853 | + | |
2847 | 2854 | | |
2848 | 2855 | | |
2849 | 2856 | | |
| |||
2853 | 2860 | | |
2854 | 2861 | | |
2855 | 2862 | | |
2856 | | - | |
2857 | | - | |
| 2863 | + | |
| 2864 | + | |
| 2865 | + | |
| 2866 | + | |
| 2867 | + | |
| 2868 | + | |
| 2869 | + | |
| 2870 | + | |
2858 | 2871 | | |
2859 | 2872 | | |
2860 | 2873 | | |
2861 | 2874 | | |
2862 | 2875 | | |
2863 | 2876 | | |
2864 | 2877 | | |
2865 | | - | |
| 2878 | + | |
2866 | 2879 | | |
2867 | 2880 | | |
2868 | 2881 | | |
| |||
0 commit comments