adapter: Keep track of whether the adapter is rfkill'ed
authorBastien Nocera <hadess@hadess.net>
Thu, 1 Sep 2022 11:07:14 +0000 (13:07 +0200)
committerAyush Garg <ayush.garg@samsung.com>
Mon, 15 May 2023 09:25:54 +0000 (14:55 +0530)
commitbe5341f9599c5b4d8f7670430d1eda0a99a3b72d
tree183dd842352135fb31e3b5e0b3376f59c426bdab
parent6bca66c15b73e396a149985075eade79592fdac9
adapter: Keep track of whether the adapter is rfkill'ed

Instead of only replying to D-Bus requests with an error saying the
adapter is blocked, keep track of the rfkill being enabled or disabled
so we know the rfkill state of the adapter at all times.

Signed-off-by: Manika Shrivastava <manika.sh@samsung.com>
Signed-off-by: Ayush Garg <ayush.garg@samsung.com>
src/adapter.c
src/adapter.h
src/btd.h
src/rfkill.c