Problem with rtl8723bs wifi SDIO on Android

0 72
Edited by tepmehatop at May 23, 2017 05:35

Hello, and have a nice day!
I have Freescale IMX6q sabresd. and Android 4.3 on it.
Trying to connect SDIO wifi rtl8723bs. All configuratoin i do from manual with rtl8723bs.
Compiling the driver as module, then put it system/lib/modules and load by insmod. No warning then i load the module, but wifi is not working.If execute the netcfg or ifconfig, there is no wifi.
One obscure thing: My driver consists only of:
8723bs.ko
Other drivers consist of:


cfg80211.ko
compact.ko


Where to get the cfg80211.ko and compact.ko for my driver? how to compile them?


Here is log:
D/MtpServer( 2941): path: /storage/emulated/0/87238723bs2.ko parent: 0 storageID: 00
010001
I/wpa_supplicant( 3598): Successfully initialized wpa_supplicant
D/MtpService( 2941): updating state; isCurrentUser=true, mMtpLocked=false
D/MtpService( 2941): addStorageLocked 65537 /storage/emulated/0
D/MtpService( 2941): updating state; isCurrentUser=true, mMtpLocked=false
D/MtpService( 2941): starting MTP server in MTP mode
D/MtpService( 2941): addStorageLocked 65537 /storage/emulated/0
D/BluetoothAdapter( 2927): 1102533832: getState() : mService = null. Returning
STATE_OFF

The another problem is, then i trying to compile driver, i got warnings


Building modules, stage 2.MODPOST 1 modulesWARNING: "cfg80211_del_sta" [/home/mark/Android/opt/kernel_imx/drivers/net/wireless/rtl8723bs/8723bs.ko] undefined!WARNING: "cfg80211_mgmt_tx_status" [/home/mark/Android/opt/kernel_imx/drivers/net/wireless/rtl8723bs/8723bs.ko] undefined!WARNING: "wiphy_apply_custom_regulatory" [/home/mark/Android/opt/kernel_imx/drivers/net/wireless/rtl8723bs/8723bs.ko] undefined!WARNING: "ieee80211_frequency_to_channel" [/home/mark/Android/opt/kernel_imx/drivers/net/wireless/rtl8723bs/8723bs.ko] undefined!WARNING: "cfg80211_rx_mgmt" [/home/mark/Android/opt/kernel_imx/drivers/net/wireless/rtl8723bs/8723bs.ko] undefined!WARNING: "cfg80211_new_sta" [/home/mark/Android/opt/kernel_imx/drivers/net/wireless/rtl8723bs/8723bs.ko] undefined!WARNING: "cfg80211_connect_result" [/home/mark/Android/opt/kernel_imx/drivers/net/wireless/rtl8723bs/8723bs.ko] undefined!WARNING: "cfg80211_unlink_bss" [/home/mark/Android/opt/kernel_imx/drivers/net/wireless/rtl8723bs/8723bs.ko] undefined!WARNING: "wiphy_new" [/home/mark/Android/opt/kernel_imx/drivers/net/wireless/rtl8723bs/8723bs.ko] undefined!WARNING: "cfg80211_put_bss" [/home/mark/Android/opt/kernel_imx/drivers/net/wireless/rtl8723bs/8723bs.ko] undefined!WARNING: "cfg80211_roamed" [/home/mark/Android/opt/kernel_imx/drivers/net/wireless/rtl8723bs/8723bs.ko] undefined!WARNING: "cfg80211_scan_done" [/home/mark/Android/opt/kernel_imx/drivers/net/wireless/rtl8723bs/8723bs.ko] undefined!WARNING: "cfg80211_ibss_joined" [/home/mark/Android/opt/kernel_imx/drivers/net/wireless/rtl8723bs/8723bs.ko] undefined!WARNING: "cfg80211_michael_mic_failure" [/home/mark/Android/opt/kernel_imx/drivers/net/wireless/rtl8723bs/8723bs.ko] undefined!WARNING: "cfg80211_disconnected" [/home/mark/Android/opt/kernel_imx/drivers/net/wireless/rtl8723bs/8723bs.ko] undefined!WARNING: "cfg80211_get_bss" [/home/mark/Android/opt/kernel_imx/drivers/net/wireless/rtl8723bs/8723bs.ko] undefined!WARNING: "cfg80211_inform_bss_frame" [/home/mark/Android/opt/kernel_imx/drivers/net/wireless/rtl8723bs/8723bs.ko] undefined!WARNING: "wiphy_free" [/home/mark/Android/opt/kernel_imx/drivers/net/wireless/rtl8723bs/8723bs.ko] undefined!WARNING: "__ieee80211_get_channel" [/home/mark/Android/opt/kernel_imx/drivers/net/wireless/rtl8723bs/8723bs.ko] undefined!WARNING: "cfg80211_ready_on_channel" [/home/mark/Android/opt/kernel_imx/drivers/net/wireless/rtl8723bs/8723bs.ko] undefined!WARNING: "wiphy_unregister" [/home/mark/Android/opt/kernel_imx/drivers/net/wireless/rtl8723bs/8723bs.ko] undefined!WARNING: "cfg80211_remain_on_channel_expired" [/home/mark/Android/opt/kernel_imx/drivers/net/wireless/rtl8723bs/8723bs.ko] undefined!WARNING: "wiphy_register" [/home/mark/Android/opt/kernel_imx/drivers/net/wireless/rtl8723bs/8723bs.ko] undefined!CC /home/mark/Android/opt/kernel_imx/drivers/net/wireless/rtl8723bs/8723bs.mod.oLD [M] /home/mark/Android/opt/kernel_imx/drivers/net/wireless/rtl8723bs/8723bs.ko

step by step, go to driver folder
make clean
make


Here is my configuratoin of my makefile in driver:


  1. ifeq ($(CONFIG_PLATFORM_FSL_IMX6Q), y)
  2. EXTRA_CFLAGS += -DCONFIG_LITTLE_ENDIAN
  3. EXTRA_CFLAGS += -DRTW_USE_CFG80211_STA_EVENT -DCONFIG_IOCTL_CFG80211
  4. ARCH := arm
  5. CROSS_COMPILE := /home/mark/Android/opt/prebuilts/gcc/linux-x86/arm/arm-eabi-4.7/bin/arm-eabi-
  6. KSRC := /home/mark/Android/opt/kernel_imx
  7. MODULE_NAME := 8723bs
  8. endif
Copy the Code


if i delete or comment the -DCONFIG_IOCTL_CFG80211
the driver compile without any warnings.


I traed 3-5 different drivers drom github, but all they the same problem......


Hope for any tips, help from you
Thank's


Here my configs:

  1. CONFIG_CFG80211=m
  2. CONFIG_MAC80211_MESH=y
  3. CONFIG_MAC80211=y
  4. CONFIG_HOSTAP=y
  5. CONFIG_RTL8723BS=m
Copy the Code



BoardConfig.mk

  1. BOARD_WIFI_VENDOR := realtek
  2. ifeq ($(BOARD_WIFI_VENDOR), realtek)
  3. WPA_SUPPLICANT_VERSION := VER_0_8_X
  4. BOARD_WPA_SUPPLICANT_DRIVER := NL80211
  5. CONFIG_DRIVER_WEXT :=y
  6. BOARD_WPA_SUPPLICANT_DRIVER := WEXT
  7. BOARD_WPA_SUPPLICANT_PRIVATE_LIB := lib_driver_cmd_rtl
  8. BOARD_HOSTAPD_DRIVER:= NL80211
  9. BOARD_HOSTAPD_PRIVATE_LIB := lib_driver_cmd_rtl


  10. BOARD_WLAN_DEVICE := rtl8723bs
  11. #BOARD_WLAN_DEVICE := rtl8192du
  12. #BOARD_WLAN_DEVICE := rtl8192ce
  13. #BOARD_WLAN_DEVICE := rtl8192de
  14. #BOARD_WLAN_DEVICE := rtl8723as
  15. #BOARD_WLAN_DEVICE := rtl8723au
  16. #BOARD_WLAN_DEVICE := rtl8189es
  17. #BOARD_WLAN_DEVICE := rtl8723bs
  18. #BOARD_WLAN_DEVICE := rtl8723bu


  19. WIFI_DRIVER_MODULE_NAME := "8723bs"
  20. WIFI_DRIVER_MODULE_PATH := "/system/lib/modules/8723bs.ko"
  21. WIFI_DRIVER_MODULE_ARG:= "ifname=wlan0 if2name=p2p0"


  22. WIFI_FIRMWARE_LOADER := ""
  23. WIFI_DRIVER_FW_PATH_STA := ""
  24. WIFI_DRIVER_FW_PATH_AP:= ""
  25. WIFI_DRIVER_FW_PATH_P2P := ""
  26. WIFI_DRIVER_FW_PATH_PARAM := ""
  27. endif
Copy the Code

init.xxx.rc


  1. service rtw_suppl_con /system/bin/wpa_supplicant
  2. -ip2p0 -Dnl80211 -c /data/misc/wifi/p2p_supplicant.conf -e/data/misc/wifi/entropy.bin -N
  3. -iwlan0 -Dnl80211 -c/data/misc/wifi/wpa_supplicant.conf
  4. class main
  5. socket wpa_wlan0 dgram 660 wifi wifi
  6. disabled
  7. oneshot


  8. service rtw_suppl /system/bin/wpa_supplicant -iwlan0 -Dnl80211
  9. -c/data/misc/wifi/wpa_supplicant.conf
  10. socket wpa_wlan0 dgram 660 wifi wifi
  11. class main
  12. disabled
  13. oneshot
Copy the Code

Set wifi.interface


  1. PRODUCT_PROPERTY_OVERRIDES +=
  2. wifi.interface=wlan0
Copy the Code

Apply wifi_realtek.c


  1. ifeq ($(BOARD_WIFI_VENDOR), realtek)
  2. LOCAL_SRC_FILES += ../realtek/wlan/libhardware_legacy/wifi/wifi_realtek.c
  3. else
  4. LOCAL_SRC_FILES += wifi/wifi.c
  5. endif
Copy the Code

wpa_supplicant_8


  1. ifeq ($(BOARD_WIFI_VENDOR), realtek)
  2. L_CFLAGS += -DREALTEK_WIFI_VENDOR
  3. L_CFLAGS += -DANDROID_P2P
  4. L_CFLAGS += -DCONFIG_ANDROID_4_2_PERSISTENT_IOT
  5. Endif
Copy the Code

Adding or Selecting Target Platform opt/kernel_imx/drivers/net/wireless/rtl8723bs/makefile


  1. CONFIG_PLATFORM_FSL_IMX6Q = y
  2. CONFIG_PLATFORM_I386_PC = n
  3. CONFIG_PLATFORM_ANDROID_X86 = n
  4. CONFIG_PLATFORM_ARM_S3C2K4 = n
  5. CONFIG_PLATFORM_ARM_PXA2XX = n
  6. CONFIG_PLATFORM_ARM_S3C6K4 = n
  7. CONFIG_PLATFORM_MIPS_RMI
  8. = n
  9. CONFIG_PLATFORM_RTD2880B
  10. = n
  11. CONFIG_PLATFORM_MIPS_AR9132 = n
  12. CONFIG_PLATFORM_MT53XX
  13. = n
  14. CONFIG_PLATFORM_RTK_DMP
  15. = n
Copy the Code

opt/kernel_imx/drivers/net/wireless/Makefile
  1. obj-$(CONFIG_RTL8723AS) += rtl8723as/
Copy the Code

opt/kernel_imx/drivers/net/wireless/Kconfig


  1. source "drivers/net/wireless/rtl8723bs/Kconfig"
Copy the Code
You have to log in before you can reply Login | Sign Up

Points Rules