Wifi ap mode will disconnected after a while

When I set the wifi AP mode, the connection will lost after a while. The VIM3 dmesg report following error:

[ 682.644326] wl_notify_connect_status_ap: connected device 80:32:53:fa:c8:00
[ 682.644757] CFG80211-ERROR) wl_cfg80211_change_station : WLC_SCB_AUTHORIZE sta_flags_mask not set
[ 682.652774] CFG80211-ERROR) wl_cfg80211_get_key : Invalid algo (0x46)
[ 682.659709] CFG80211-ERROR) wl_cfg80211_get_key : Invalid algo (0x46)

So I have to reset the wifi devices with following scripts:

sudo nmcli con del Hostspot

#setup 2.4GHz
sudo nmcli con add type wifi ifname wlan0 con-name Hostspot autoconnect yes ssid khadas_ap
sudo nmcli con modify Hostspot 802-11-wireless.mode ap 802-11-wireless.band bg ipv4.method shared
sudo nmcli con modify Hostspot wifi-sec.key-mgmt wpa-psk
sudo nmcli con modify Hostspot wifi-sec.psk “12345678”
sudo nmcli con modify Hostspot ipv4.addresses 192.168.2.20/24
sudo nmcli con modify Hostspot ipv4.gateway 192.168.2.1
sudo nmcli con up Hostspot

#setup 5Ghz
sudo nmcli con add type wifi ifname wlan0 con-name Hostspot autoconnect yes ssid khadas_ap
sudo nmcli c modify Hostspot 802-11-wireless.mode ap 802-11-wireless.band a 802-11-wireless.channel 149 802-11-wireless.powersave 2 ipv4.method shared
sudo nmcli con modify Hostspot wifi-sec.key-mgmt wpa-psk
sudo nmcli con modify Hostspot wifi-sec.psk “12345678”
sudo nmcli con modify Hostspot ipv4.addresses 192.168.2.20/24
sudo nmcli con modify Hostspot ipv4.gateway 192.168.2.1
sudo nmcli con up Hostspot

does anybody meet this , and help me get rid of this error?

Thanks,

All you need to connect properly to wifi is:

$ sudo nmcli dev wifi connect {your SSID} password {"your password"}

Note: omit the brackets and quotes must be around the password
By default its automatic login and will select best path.

Here are a few more tools to help you debug what is going on

nmcli connection show

nmcli radio wifi


nmcli dev wifi list

nmcli general status

nmcli general permissions

nmcli connection show --active

nmcli device status


nmcli connection show

and if you need more information:

$ man nmcli

If using WIFI STA mode, everything is fine. My problem happens in WIFI AP mode.
So I am not sure what’s wrong with my WIFIAP scripts or some bugs in wifi driver.

Thanks.

What software and OS are you running?

ubuntu20, kernel 4.9.

I will have to try that out later this week and let you know what happens.

Is that the mac of your VIM or the internet gateway router?

Check your subnet ID and host ID and make sure you don’t have any conflicts and the devices are set to the use the same subnet ID.

Also, are you running desktop or server?

Critical applications like the AP should be run on server edition that does not have GUI.

“80:32:53:fa:c8:00” is the MAC of my PC, which is used to connected to the VIM3 AP.
Also there is no conflicts of other devices with the same subnet ID.
In VIM3, it is Desktop version.

Thanks,
Tiger

Foxsquirrel, have you tried this problem?
thanks,
-Tiger

Hi,

No, not yet, sorry.