Change-Id: I8e7af48093446359d684eb1743f140688abfd8b2
Signed-off-by: Hyuk Lee <hyuk0512.lee@samsung.com>
return -1;
}
- /* unblock rfkill */
- ret = __bt_call_systemact_service(BT_SYSTEMACT_RFKILL_UNBLOCK);
- if (ret < 0) {
- BT_ERR("Failed to call systemact service");
- return -1;
- }
-
ret = __execute_command("/usr/etc/bluetooth/bt-stack-up.sh", NULL);
if (ret < 0) {
BT_ERR("Failed to run script");
int _bt_disable_adapter(void)
{
bt_status_t status;
- int ret;
#if 0
bt_le_status_t le_status;
#endif
#endif
}
- /* block rfkill */
- ret = __bt_call_systemact_service(BT_SYSTEMACT_RFKILL_BLOCK);
- if (ret < 0) {
- BT_ERR("Failed to call systemact service");
- return -1;
- }
-
-
return 0;
}
--- /dev/null
+KERNEL=="rfkill", MODE="0664", GROUP="network_fw"
mkdir -p %{buildroot}%{_unitdir}/starter.target.wants
mkdir -p %{buildroot}%{_unitdir}/multi-user.target.wants
+mkdir -p %{buildroot}/%{_prefix}/lib/udev/rules.d
+
+cp packaging/99-bluetooth-rfkill.rules %{buildroot}/%{_prefix}/lib/udev/rules.d/99-bluetooth-rfkill.rules
# extension-emulator
%ifarch %{ix86} x86_64
%{_datadir}/dbus-1/system-services/org.projectx.bt_core.service
%{_bindir}/bt-core
%{_sysconfdir}/dbus-1/system.d/bluetooth-frwk-core.conf
+%{_prefix}/lib/udev/rules.d/99-bluetooth-rfkill.rules
%files test
%manifest %{name}.manifest