disconnect and not reconnect immediately to APs which have the same SSID but different frequency (2.4GHz or 5GHz) and BSSID

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hi there,

I have the following issue:

I am connecting to the corporate network which has APs of both 2.4GHz 
and 5GHz with the same SSID, `purpleline`. When I am connecting to an AP 
is working fine for a while, but after some time I am disconnected. I 
can reconnect again automatically after a long period of time, like half 
a day. If I restart the network manager, `connman`, or `wpa_supplicant` 
connects immediately with no issues.

The hardware used is a Compulab IOT gateway IOT-GATE-iMX7 (WAB), 
`https://www.compulab.com/products/iot-gateways/iot-gate-imx7-nxp-i-mx-7-internet-of-things-gateway/#specs`, 
which uses the TI WiLink 8 WL1837 module for the wifi connection.

A custom made Linux system is used, build with Yocto, which has the 
following characteristics:

* Linux kernel version: 4.19.35
* Kernel module for WiFi: wl18xx
```
# modinfo wl18xx
filename: 
/lib/modules/4.19.35+ge4452f4458e4/kernel/drivers/net/wireless/ti/wl18xx/wl18xx.ko
firmware:       ti-connectivity/wl18xx-fw-4.bin
author:         Luciano Coelho <coelho@xxxxxx>
license:        GPL v2
srcversion:     533BB7E5866E52F63B9ACCB
alias:          platform:wl18xx
depends:
intree:         Y
name:           wl18xx
vermagic:       4.19.35+ge4452f4458e4 SMP preempt mod_unload modversions 
ARMv6 p2v8
parm:           ht_mode:Force HT mode: wide or siso20 (charp)
parm:           board_type:Board type: fpga, hdk (default), evb, com8 or 
dvp (charp)
parm:           checksum:Enable TCP checksum: boolean (defaults to 
false) (bool)
parm:           dc2dc:External DC2DC: u8 (defaults to 0) (int)
parm:           n_antennas_2:Number of installed 2.4GHz antennas: 1 
(default) or 2 (int)
parm:           n_antennas_5:Number of installed 5GHz antennas: 1 
(default) or 2 (int)
parm:           low_band_component:Low band component: u8 (default is 
0x01) (int)
parm:           low_band_component_type:Low band component type: u8 
(default is 0x05 or 0x06 depending on the board_type) (int)
parm:           high_band_component:High band component: u8, (default is 
0x01) (int)
parm:           high_band_component_type:High band component type: u8 
(default is 0x09) (int)
parm:           pwr_limit_reference_11_abg:Power limit reference: u8 
(default is 0xc8) (int)
parm:           num_rx_desc:int
parm:           num_rx_desc_param:Number of Rx descriptors: u8 (default 
is 32)
```
* WiFi firmware version:
```
# strings  /lib/firmware/ti-connectivity/wl18xx-fw-4.bin | grep Rev
FRev 8.9.0.0.79
FRev 8.2.0.0.242
```
* Supplicant: wpa_supplicant v2.9
```
# cat /etc/wpa_supplicant.conf
ctrl_interface=/var/run/wpa_supplicant
ctrl_interface_group=0
update_config=1

network={
         key_mgmt=NONE
}
```
* Network manager: Connman v1.37
```
# cat /etc/connman/main.conf
[General]
SingleConnectedTechnology=false
FallbackTimeservers=
NetworkInterfaceBlacklist=vmnet,vboxnet,virbr,ifb,ve-,vb-,wlanap
AllowHostnameUpdates=false
DefaultAutoConnectTechnologies=cellular,wifi,ethernet
AlwaysConnectedTechnologies=cellular,wifi
PreferredTechnologies=cellular,wifi,ethernet
```

I enabled the debugging options of both the WiFi driver and 
`wpa_supplicant` like following
* `echo 883518 > /sys/module/wlcore/parameters/debug_level`
* `/usr/sbin/wpa_supplicant -u -d`

The gateway is connected to the AP with SSID `purpleline` and BSSID 
`58:0a:20:5b:ec:ca`. The configuration file in `connman` looks like the 
following:
```
# cat 
/var/lib/connman/wifi_304511e7f479_707572706c656c696e65_managed_psk/settings
[wifi_304511e7f479_707572706c656c696e65_managed_psk]
Name=purpleline
SSID=707572706c656c696e65
Frequency=5560
Favorite=true
AutoConnect=true
Modified=2019-11-25T11:19:49.091126Z
Passphrase=<PASSWORD>
IPv4.method=dhcp
IPv4.DHCP.LastAddress=10.163.183.9
IPv6.method=auto
IPv6.privacy=disabled
```


The logs when the AP is disconnected are in the attached file 
`disconnect_AP-wl18xx-wpa_supplicant.log`. It is worth noting that after 
it is disconnected, it is probing a scan for `purpleline`

```
Nov 26 04:35:50 bumblebee-259793 wpa_supplicant[546]: nl80211: Scan 
probed for SSID 'purpleline'
```

Although there are SSIDs `purpleline`, it does not connect to any of them

```
Nov 26 04:35:50 bumblebee-259793 wpa_supplicant[546]: wlansta0: BSS: Add 
new id 4780 BSSID 6c:fa:89:55:ce:7a SSID 'purpleline' freq 5700
Nov 26 04:35:50 bumblebee-259793 wpa_supplicant[546]: wlansta0: BSS: Add 
new id 4785 BSSID 58:0a:20:5b:ec:c5 SSID 'purpleline' freq 2412
Nov 26 04:35:50 bumblebee-259793 wpa_supplicant[546]: wlansta0: BSS: Add 
new id 4791 BSSID 20:3a:07:6f:e9:5a SSID 'purpleline' freq 5680
Nov 26 04:35:50 bumblebee-259793 wpa_supplicant[546]: wlansta0: BSS: Add 
new id 4792 BSSID 1c:1d:86:e8:ce:b5 SSID 'purpleline' freq 2412
Nov 26 04:35:50 bumblebee-259793 wpa_supplicant[546]: wlansta0: BSS: Add 
new id 4801 BSSID 20:3a:07:6f:51:fa SSID 'purpleline' freq 5660
Nov 26 04:35:50 bumblebee-259793 wpa_supplicant[546]: wlansta0: BSS: Add 
new id 4809 BSSID 34:a8:4e:e7:4d:da SSID 'purpleline' freq 5500
```

I was keep getting scan messages after was disconnected from the AP 
which are in the log file 
`scans_while_disconnected_AP-wl18xx-wpa_supplicant.log`.


The connection is happening after a long time, almost half day after the 
initial connection. The logs are in this attached file 
`connect_AP-wl18xx-wpa_supplicant.log`. It is worth noting that it is 
connected to an AP with SSID `purpleline`, BSSID `58:0a:20:5b:ec:ca` and 
frequency 5560 as it was when it was connected initially.


I would like to ask the following:
1. The above behavior is a little bit strange because it is very slow to 
connect automatically, but when I restart `connman` or `wpa_supplicant` 
it connects immediately. What might be the cause of this?
2. Is there a configuration in `wpa_supplicant` that I missed, although 
`connman` is 'driving' `wpa_supplicant`?
3. Does the WiFi driver might be responsible for this?


Let me know if you need more information.

Kind regards,

Stavros

Attachment: connect_AP-wl18xx-wpa_supplicant.log.gz
Description: connect_AP-wl18xx-wpa_supplicant.log.gz

Attachment: scans_while_disconnected_AP-wl18xx-wpa_supplicant.log.gz
Description: scans_while_disconnected_AP-wl18xx-wpa_supplicant.log.gz

Attachment: disconnect_AP-wl18xx-wpa_supplicant.log.gz
Description: disconnect_AP-wl18xx-wpa_supplicant.log.gz

_______________________________________________
Hostap mailing list
Hostap@xxxxxxxxxxxxxxxxxxx
http://lists.infradead.org/mailman/listinfo/hostap

[Index of Archives]     [Linux Wireless]     [Linux Kernel]     [ATH6KL]     [Linux Bluetooth]     [Linux Netdev]     [Kernel Newbies]     [IDE]     [Security]     [Git]     [Netfilter]     [Bugtraq]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Linux ATA RAID]     [Samba]     [Device Mapper]

  Powered by Linux