Wifi on Android P and IMX7D

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Wifi on Android P and IMX7D

1,245 Views
nicholash
Contributor I

Hi, I'm trying to use the CYW43455 for Wifi on release 2.3.4 of Android. I have Wifi running on Linux on this board, so I know it's not a hardware problem.

I get this in the kernel.

[    3.354573] brcmfmac: brcmf_fw_alloc_request: using brcm/brcmfmac43455-sdio for chip BCM4345/6
[    3.363535] brcmfmac mmc1:0001:1: Direct firmware load for brcm/brcmfmac43455-sdio.bin failed with error -2
[    3.373406] brcmfmac mmc1:0001:1: Falling back to sysfs fallback for: brcm/brcmfmac43455-sdio.bin
[    5.369783] brcmfmac mmc1:0001:1: Direct firmware load for brcm/brcmfmac43455-sdio.txt failed with error -2
[    5.387806] brcmfmac mmc1:0001:1: Falling back to sysfs fallback for: brcm/brcmfmac43455-sdio.txt
[    5.541052] brcmfmac: brcmf_fw_alloc_request: using brcm/brcmfmac43455-sdio for chip BCM4345/6
[    5.603434] brcmfmac: brcmf_c_preinit_dcmds: Firmware: BCM4345/6 wl0: Mar  3 2019 19:47:25 version 7.45.184 (r712131 CY) FWID 01-b363c0a0

So the driver appears to be loading, and I get wlan0 when I run "ifconfig -a", however running "ifconfig wlan0 up" causes

ifconfig: ioctl 8914: Unknown error 132

When I run

/vendor/bin/hw/wpa_supplicant -O/data/vendor/wifi/wpa/sockets -puse_p2p_group_interface=1 -g@android:wlan0

I get

01-06 00:31:48.576  3595  3595 D wpa_supplicant: wpa_supplicant v2.7-devel-9
01-06 00:31:48.578  3595  3595 D wpa_supplicant: Global control interface '@android:wlan0'
01-06 00:31:48.578  3595  3595 E wpa_supplicant: Failed to open Android control socket 'wlan0'
01-06 00:31:48.578  3595  3595 E wpa_supplicant: Failed to initialize wpa_supplicant

What am I doing wrong? What else do I need to set up to make it work?

Labels (2)
0 Kudos
1 Reply

1,195 Views
jimmychan
NXP TechSupport
NXP TechSupport

Seems this is the permission issue in Android.

For your reference: [quote] Porting WiFi drivers to Android - Shawn X.Y. Bai - 博客园 

Also, you may ask Cypress for the porting guide of their wifi for Android.

0 Kudos