I.MX8M WIFI AP mode enabled, but can't connect

cancel
Showing results for 
Search instead for 
Did you mean: 

I.MX8M WIFI AP mode enabled, but can't connect

1,235 Views
zhanglei2015xx
Contributor II

Dear,

   It seems that i.mx8m wifi ap mode was enabled successfully, but when i use my phone to connect to AP , error occur, see below. Could you please give some suggestion? many thanks.

wifi.png

Labels (1)
Tags (2)
0 Kudos
5 Replies

896 Views
joanxie
NXP TechSupport
NXP TechSupport

what bsp version do you use?4.9.88 or 4.14.98? maybe you can refer to the chapter 4.13.5 Menu Configuration Options and  chapter 4.13.7 Configuring WLAN from User Space of enclosed file

0 Kudos

504 Views
Kasturi_s
Contributor II

Hi,

I am using i.mx8m with BSP version 5.4 and AP mode is enabled successfully, but when i try connecting to AP through mobile it says obtaining IP address and the network is getting saved but i am not able to connect AP mode.

Request you to share the configurations of hostapd.conf or suggest any document where i can follow proper flow.

NOTE: Above mentioned Menu Configuration Options from i.mx reference manual are enabled. 

Thanks and Regards,

kasturi.

0 Kudos

896 Views
kunalkotecha1
Senior Contributor II

Hi zhanglei2015xx,

You need to bridge the interface which is having an IP with the wifi module. I have verified this in i.MX8MQ EVK with the below commands:

1) hostapd -i wlp1s0 /etc/hostapd.conf -B
2) ifconfig wlp1s0 up
3) ifconfig eth0 0.0.0.0
4) ifconfig wlp1s0 0.0.0.0
5) brctl addbr br0
6) brctl addif br0 eth0
7) brctl addif br0 wlp1s0
8) brctl show
9) ifconfig br0 up
10) udhcpc -i br0

Once you run above commands your ethernet and wifi module will be bridged. Then you can turn on the wi-fi in your smartphone and connect it with the i.MX8MQ wifi. I have verified this in L4.9.88-2.0.0_ga.xml kernel.

Regards,

Kunal

0 Kudos

896 Views
zhanglei2015xx
Contributor II

Dear Kunal,

thanks very much for Your reply.

now i can connect with imx8m WIFI ap by Android phone.

but ios Phone could not!

any suggestion?

Thanks & Best Regards!

=================

张磊 Felix Zhang

PMQ Team

世平集团 WPI Group

大联大控股 WPG Holdings

Tel: 86-(0532) 80995180 ext: 68731<tel:8605328099518039868731>

Mob : 86-185-6173-1008<tel:8618561731008>

E-mail: Felix.Zhang@wpi-group.com<mailto:Felix.Zhang@wpi-group.com>

0 Kudos

505 Views
Kasturi_s
Contributor II

Hi,

I am using i.mx8m and AP mode is enabled successfully, but when i try connecting to AP through mobile it says obtaining ip address and the network is getting saved but i am not able to connect AP mode.

Request you to share the configurations of hostapd.conf or suggest any document where i can follow proper flow.

Thanks and Regards,

kasturi.

0 Kudos