android: rtl8723bu wifi and bt support
Signed-off-by: August <mingxin.android@gmail.com>
This commit is contained in:
parent
4a204587b4
commit
0a0b11e0d7
529 changed files with 436710 additions and 3003 deletions
|
@ -1,2 +1,4 @@
|
|||
#============= bluetooth ==============
|
||||
allow bluetooth vendor_file:file { execute getattr open read };
|
||||
allow bluetooth tmpfs:dir { write };
|
||||
allow bluetooth rtk_bt_device:chr_file rw_file_perms;
|
||||
|
|
|
@ -1,2 +1,3 @@
|
|||
type cedar_device, dev_type;
|
||||
type private_block_device, dev_type;
|
||||
type rtk_bt_device, dev_type;
|
||||
|
|
|
@ -34,6 +34,7 @@
|
|||
/dev/block/zram0 u:object_r:swap_block_device:s0
|
||||
|
||||
# Bluetooth
|
||||
/dev/rtk_btusb u:object_r:rtk_bt_device:s0
|
||||
/dev/ttyS1 u:object_r:hci_attach_dev:s0
|
||||
/sys/class/rfkill/rfkill0/state u:object_r:sysfs_bluetooth_writable:s0
|
||||
|
||||
|
|
|
@ -12,3 +12,17 @@ allow hal_bluetooth_default bluetooth_data_file:file open;
|
|||
allow hal_bluetooth_default bluetooth_data_file:file read;
|
||||
allow hal_bluetooth_default proc:file open;
|
||||
allow hal_bluetooth_default proc:file write;
|
||||
|
||||
# Socket creation under /data/misc/bluedroid.
|
||||
type_transition hal_bluetooth_default bluetooth_data_file:sock_file bluetooth_socket;
|
||||
|
||||
# Allow access to net_admin ioctls
|
||||
allowxperm hal_bluetooth_default self:udp_socket ioctl priv_sock_ioctls;
|
||||
|
||||
allow hal_bluetooth_default bluetooth_data_file:dir create_dir_perms;
|
||||
allow hal_bluetooth_default bluetooth_data_file:file create_file_perms;
|
||||
allow hal_bluetooth_default rtk_bt_device:chr_file rw_file_perms;
|
||||
|
||||
# Socket creation under /data/misc/bluedroid.
|
||||
#allow hal_bluetooth_default bluetooth_socket:sock_file create_file_perms;
|
||||
allow hal_bluetooth_default self:capability net_admin;
|
||||
|
|
|
@ -72,8 +72,8 @@ ifeq ($(BOARD_WIFI_VENDOR), realtek)
|
|||
BOARD_HOSTAPD_PRIVATE_LIB := lib_driver_cmd_rtl
|
||||
include hardware/realtek/wlan/config/config.mk
|
||||
BOARD_WLAN_DEVICE := realtek
|
||||
WIFI_DRIVER_MODULE_NAME := "8723cs"
|
||||
WIFI_DRIVER_MODULE_PATH := "/vendor/modules/8723cs.ko"
|
||||
WIFI_DRIVER_MODULE_NAME := "8723bu"
|
||||
WIFI_DRIVER_MODULE_PATH := "/vendor/modules/8723bu.ko"
|
||||
WIFI_DRIVER_MODULE_ARG := "ifname=wlan0 if2name=p2p0"
|
||||
endif
|
||||
|
||||
|
@ -109,7 +109,7 @@ ifeq ($(BOARD_BLUETOOTH_VENDOR), realtek)
|
|||
BOARD_HAVE_BLUETOOTH := true
|
||||
BOARD_HAVE_BLUETOOTH_RTK := true
|
||||
BOARD_HAVE_BLUETOOTH_RTK_COEX := true
|
||||
BOARD_HAVE_BLUETOOTH_NAME := rtl8723cs
|
||||
BOARD_HAVE_BLUETOOTH_NAME := rtl8723bu
|
||||
BOARD_BLUETOOTH_BDROID_BUILDCFG_INCLUDE_DIR := $(TOP_DIR)device/softwinner/$(basename $(TARGET_DEVICE))/configs/bluetooth/
|
||||
include hardware/realtek/bluetooth/firmware/rtlbtfw_cfg.mk
|
||||
endif
|
||||
|
|
|
@ -1,12 +1,12 @@
|
|||
# RELEASE NAME: 20171107_BT_ANDROID_8.x
|
||||
# Bluetooth Device Name; NULL or comment means "ro.product.model"
|
||||
# Name=Realtek Bluetooth
|
||||
Name=BPI-M64
|
||||
|
||||
# Indicate USB or UART driver bluetooth
|
||||
# For usb device:
|
||||
# BtDeviceNode=/dev/rtk_btusb
|
||||
BtDeviceNode=/dev/rtk_btusb
|
||||
# For uart device:
|
||||
BtDeviceNode=/dev/ttyS1
|
||||
# BtDeviceNode=/dev/ttyS1
|
||||
|
||||
# Device Class
|
||||
DevClassServiceClass=0x1A
|
||||
|
|
|
@ -6,6 +6,6 @@ on boot
|
|||
|
||||
# Bluetooth
|
||||
# UART device
|
||||
chmod 0660 /dev/ttyS1
|
||||
chown bluetooth net_bt_admin /dev/ttyS1
|
||||
chmod 0660 /dev/rtk_btusb
|
||||
chown bluetooth net_bt_admin /dev/rtk_btusb
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue