Wifi is getting disconnected after some time

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

Wifi is getting disconnected after some time

1,213 Views
yash12345yash
Contributor I

Hi team,

 

I configured access point in imx8m mini board which is having LBEE5ZZ1PJ Murata's Qualcomm based wifi chip. It is using qca9377 driver. Access point is configured correctly as I am able to connect my phone to this AP using password which is mentioned in /etc/hostapd.conf. After few minutes (5 to 7 minutes) my phone is getting disconnected and when trying to reconnect as AP was not down, it is giving authentication error. tried to connect different device as well at that time but same authentication error.

 

Logs of hostapd at time of disconnection is as below : 

[ 352.112379] br0: port 2(wlan0) entered disabled state
wlan0: AP-STA-DISCONNECTED 9c:28:f7:30:7e:1a
wlan0: INTERFACE-DISABLED
wlan0: INTERFACE-ENABLED
wlan0: IEEE 802.11 driver had channel switch: freq=2437, ht=0, vht_ch=0x0, offset=0, width=0 (20 MHz (no HT)), cf1=2437, cf2=0
wlan0: CTRL-EVENT-CHANNEL-SWITCH freq=2437 ht_enabled=0 ch_offset=0 ch_width=20 MHz (no HT) cf1=2437 cf2=0 dfs=0
[ 353.133767] br0: port 2(wlan0) entered blocking state
[ 353.138869] br0: port 2(wlan0) entered forwarding state

 

Steps for configuring AP is as below:

ip link set wlan0 up
iw wlan0 set power_save off
ip addr flush dev wlan0

hostapd /etc/hostapd.conf

brctl addbr br0
brctl addif br0 eth0
ip link set dev br0 address 00:04:9F:06:EA:A2
ip addr flush dev eth0

ip addr add 192.168.0.5/24 dev br0
ip link set dev br0 up

ip link set dev eth0 up
ip link set dev wlan0 up

ip addr flush dev eth0
ip addr flush dev wlan0

udhcpd -f /etc/udhcpd.conf &

 

Regards,

Yash

 

0 Kudos
Reply
3 Replies

903 Views
Udhay_
Contributor III

i am trying the same qca9377 with imx8mm-lppdr4-evk but not able registered. can you pls provide me steps to follow?

 

0 Kudos
Reply

1,199 Views
yash12345yash
Contributor I

Hi team,

I founded root cause of this. wpa_supplicant was running on boot and after stoping it my access point works fine. But, I am surprised how wpa_supplicant affects access point after few minutes.

 

Regards,

Yash

Tags (1)
0 Kudos
Reply

1,189 Views
Dhruvit
NXP TechSupport
NXP TechSupport

Hi @yash12345yash,

 

I hope you are doing well.

This thing happens because of the CSA  - channel switch announcement.


Basically what happens whenever a single chipset's single radio handles hostapd & wpa_supplicant both the utility & if they're both not running on the same channel then whatever channel STA is up on, AP will follow it.

So that's why whenever one tries to bring the AP but if the supplicant is already running on early boot as mentioned then wpa_supplicant can affect AP.

One should stop the wpa_supp service to get started on boot.

 
Thanks & Regards,
Dhruvit Vasavada.
0 Kudos
Reply