pleriche
Posts: 90
Joined: Mon Oct 14, 2013 8:44 am

WiFi disconnection problem

Sun Dec 20, 2015 4:46 pm

Most weeks I take a Pi down to church to use as a midi sequencer. I log on to it from a laptop over WiFi with PuTTy in order to launch and control the sequencer program, and this has mostly been working fine for nearly 2 years.

Nothing I know of has changed recently, but for the last few weeks PuTTy has lost its connection within a few minutes. After that, ping -t to the Pi from the laptop gives continuous timeouts, sometimes interspersed with a short periods of normal responses.

The WiFi router is located exactly where it's always been and has no external aerials to tweak. The WiFi dongle on the Pi is one with an external aerial, and is located and oriented pretty much how it's always been, and is just a few yards from the router the other side of a wall which has never presented a problem before. I've never had any such problems when running the Pi at home.

I'm appending a section of /var/log/messages.This shows a disconnection and reauthentication happening several times. Can anyone suggest what the problem is please? (The time discontinuity in the log is simply when the kernel time gets updated by NTP for the first time after booting.)

Regards - Philip
Dec 6 20:48:30 raspberrypi kernel: [ 23.740727] ieee80211 phy0: rt2x00lib_request_firmware: Info - Loading firmware file 'rt2870.bin'
Dec 6 20:48:30 raspberrypi kernel: [ 23.748657] ieee80211 phy0: rt2x00lib_request_firmware: Info - Firmware detected - version: 0.29
Dec 6 20:48:30 raspberrypi kernel: [ 28.623745] wlan0: authenticate with 98:2c:be:99:cf:11
Dec 6 20:48:30 raspberrypi kernel: [ 28.685013] wlan0: send auth to 98:2c:be:99:cf:11 (try 1/3)
Dec 6 20:48:30 raspberrypi kernel: [ 28.687621] wlan0: authenticated
Dec 6 20:48:30 raspberrypi kernel: [ 28.689101] rt2800usb 1-1.3:1.0 wlan0: disabling HT as WMM/QoS is not supported by the AP
Dec 6 20:48:30 raspberrypi kernel: [ 28.689149] rt2800usb 1-1.3:1.0 wlan0: disabling VHT as WMM/QoS is not supported by the AP
Dec 6 20:48:30 raspberrypi kernel: [ 28.696208] wlan0: associate with 98:2c:be:99:cf:11 (try 1/3)
Dec 6 20:48:30 raspberrypi kernel: [ 28.699168] wlan0: RX AssocResp from 98:2c:be:99:cf:11 (capab=0x431 status=0 aid=4)
Dec 6 20:48:30 raspberrypi kernel: [ 28.710900] wlan0: associated
Dec 6 20:48:30 raspberrypi kernel: [ 28.711228] cfg80211: Calling CRDA to update world regulatory domain
Dec 6 20:48:32 raspberrypi kernel: [ 31.781927] wlan0: deauthenticated from 98:2c:be:99:cf:11 (Reason: 2=PREV_AUTH_NOT_VALID)
Dec 6 20:48:32 raspberrypi kernel: [ 31.869243] cfg80211: Calling CRDA for country: GB
Dec 6 20:48:33 raspberrypi kernel: [ 33.382767] wlan0: authenticate with 98:2c:be:99:cf:11
Dec 6 20:48:34 raspberrypi kernel: [ 33.444008] wlan0: send auth to 98:2c:be:99:cf:11 (try 1/3)
Dec 6 20:48:34 raspberrypi kernel: [ 33.445730] wlan0: authenticated
Dec 6 20:48:34 raspberrypi kernel: [ 33.447321] rt2800usb 1-1.3:1.0 wlan0: disabling HT as WMM/QoS is not supported by the AP
Dec 6 20:48:34 raspberrypi kernel: [ 33.447366] rt2800usb 1-1.3:1.0 wlan0: disabling VHT as WMM/QoS is not supported by the AP
Dec 6 20:48:34 raspberrypi kernel: [ 33.456255] wlan0: associate with 98:2c:be:99:cf:11 (try 1/3)
Dec 6 20:48:34 raspberrypi kernel: [ 33.459232] wlan0: RX AssocResp from 98:2c:be:99:cf:11 (capab=0x431 status=0 aid=4)
Dec 6 20:48:34 raspberrypi kernel: [ 33.470770] wlan0: associated
Dec 6 20:48:34 raspberrypi kernel: [ 33.794004] Adding 102396k swap on /var/swap. Priority:-1 extents:1 across:102396k SSFS
Dec 6 20:48:37 raspberrypi kernel: [ 36.429225] cfg80211: Calling CRDA to update world regulatory domain
Dec 6 20:48:38 raspberrypi kernel: [ 37.933583] wlan0: authenticate with 98:2c:be:99:cf:11
Dec 6 20:48:38 raspberrypi kernel: [ 37.994568] wlan0: send auth to 98:2c:be:99:cf:11 (try 1/3)
Dec 6 20:48:38 raspberrypi kernel: [ 37.997869] wlan0: authenticated
Dec 6 20:48:38 raspberrypi kernel: [ 37.999190] rt2800usb 1-1.3:1.0 wlan0: disabling HT as WMM/QoS is not supported by the AP
Dec 6 20:48:38 raspberrypi kernel: [ 37.999235] rt2800usb 1-1.3:1.0 wlan0: disabling VHT as WMM/QoS is not supported by the AP
Dec 6 20:48:38 raspberrypi kernel: [ 38.007549] wlan0: associate with 98:2c:be:99:cf:11 (try 1/3)
Dec 6 20:48:38 raspberrypi kernel: [ 38.010566] wlan0: RX AssocResp from 98:2c:be:99:cf:11 (capab=0x431 status=0 aid=4)
Dec 6 20:48:38 raspberrypi kernel: [ 38.022827] wlan0: associated
Dec 6 20:48:38 raspberrypi kernel: [ 38.023196] cfg80211: Calling CRDA to update world regulatory domain
Dec 20 10:27:40 raspberrypi wpa_action: creating sendsigs omission pidfile: /run/sendsigs.omit.d/wpasupplicant.wpa_supplicant.wlan0.pid
Dec 20 10:27:40 raspberrypi wpa_action: bssid=98:2c:be:99:cf:11
Dec 20 10:27:40 raspberrypi wpa_action: ssid=BTBusinessHub-572
Dec 20 10:27:40 raspberrypi wpa_action: id=1
Dec 20 10:27:40 raspberrypi wpa_action: id_str=church
Dec 20 10:27:40 raspberrypi wpa_action: mode=station
Dec 20 10:27:40 raspberrypi wpa_action: pairwise_cipher=CCMP
Dec 20 10:27:40 raspberrypi wpa_action: group_cipher=TKIP
Dec 20 10:27:40 raspberrypi wpa_action: key_mgmt=WPA2-PSK
Dec 20 10:27:40 raspberrypi wpa_action: wpa_state=COMPLETED
Dec 20 10:27:40 raspberrypi wpa_action: ip_address=192.168.1.21
Dec 20 10:27:40 raspberrypi wpa_action: address=00:87:40:92:0b:30
Dec 20 10:27:40 raspberrypi wpa_action: WPA_IFACE=wlan0 WPA_ACTION=DISCONNECTED
Dec 20 10:27:40 raspberrypi wpa_action: WPA_ID=1 WPA_ID_STR=church WPA_CTRL_DIR=/var/run/wpa_supplicant
Dec 20 10:27:40 raspberrypi wpa_action: ifdown wlan0
Dec 20 10:27:41 raspberrypi kernel: [ 47.944472] wlan0: deauthenticating from 98:2c:be:99:cf:11 by local choice (Reason: 3=DEAUTH_LEAVING)
Dec 20 10:27:41 raspberrypi kernel: [ 48.042770] cfg80211: Calling CRDA to update world regulatory domain
Dec 20 10:27:42 raspberrypi wpa_action: removing sendsigs omission pidfile: /run/sendsigs.omit.d/wpasupplicant.wpa_supplicant.wlan0.pid
Dec 20 10:27:42 raspberrypi wpa_action: WPA_IFACE=wlan0 WPA_ACTION=CONNECTED
Dec 20 10:27:42 raspberrypi wpa_action: WPA_ID=1 WPA_ID_STR=church WPA_CTRL_DIR=/var/run/wpa_supplicant
Dec 20 10:27:42 raspberrypi wpa_action: ifup wlan0=church
Dec 20 10:27:43 raspberrypi kernel: [ 50.053938] wlan0: authenticate with 98:2c:be:99:cf:11
Dec 20 10:27:44 raspberrypi kernel: [ 50.114658] wlan0: send auth to 98:2c:be:99:cf:11 (try 1/3)
Dec 20 10:27:44 raspberrypi kernel: [ 50.120016] wlan0: authenticated
Dec 20 10:27:44 raspberrypi kernel: [ 50.121038] rt2800usb 1-1.3:1.0 wlan0: disabling HT as WMM/QoS is not supported by the AP
Dec 20 10:27:44 raspberrypi kernel: [ 50.121085] rt2800usb 1-1.3:1.0 wlan0: disabling VHT as WMM/QoS is not supported by the AP
Dec 20 10:27:44 raspberrypi kernel: [ 50.127654] wlan0: associate with 98:2c:be:99:cf:11 (try 1/3)
Dec 20 10:27:44 raspberrypi kernel: [ 50.130659] wlan0: RX AssocResp from 98:2c:be:99:cf:11 (capab=0x431 status=0 aid=4)
Dec 20 10:27:44 raspberrypi kernel: [ 50.143063] wlan0: associated
Dec 20 10:27:44 raspberrypi kernel: [ 50.143437] cfg80211: Calling CRDA to update world regulatory domain
Dec 20 10:27:51 raspberrypi wpa_action: creating sendsigs omission pidfile: /run/sendsigs.omit.d/wpasupplicant.wpa_supplicant.wlan0.pid
Dec 20 10:27:52 raspberrypi wpa_action: bssid=98:2c:be:99:cf:11
Dec 20 10:27:52 raspberrypi wpa_action: ssid=BTBusinessHub-572
Dec 20 10:27:52 raspberrypi wpa_action: id=1
Dec 20 10:27:52 raspberrypi wpa_action: id_str=church
Dec 20 10:27:52 raspberrypi wpa_action: mode=station
Dec 20 10:27:52 raspberrypi wpa_action: pairwise_cipher=CCMP
Dec 20 10:27:52 raspberrypi wpa_action: group_cipher=TKIP
Dec 20 10:27:52 raspberrypi wpa_action: key_mgmt=WPA2-PSK
Dec 20 10:27:52 raspberrypi wpa_action: wpa_state=COMPLETED
Dec 20 10:27:52 raspberrypi wpa_action: ip_address=192.168.1.21
Dec 20 10:27:52 raspberrypi wpa_action: address=00:87:40:92:0b:30
Dec 20 10:27:52 raspberrypi wpa_action: WPA_IFACE=wlan0 WPA_ACTION=DISCONNECTED
Dec 20 10:27:52 raspberrypi wpa_action: WPA_ID=1 WPA_ID_STR=church WPA_CTRL_DIR=/var/run/wpa_supplicant
Dec 20 10:27:52 raspberrypi wpa_action: ifdown wlan0
Dec 20 10:27:52 raspberrypi kernel: [ 58.660869] wlan0: deauthenticating from 98:2c:be:99:cf:11 by local choice (Reason: 3=DEAUTH_LEAVING)
Dec 20 10:27:52 raspberrypi kernel: [ 58.767899] cfg80211: Calling CRDA for country: GB
Dec 20 10:27:52 raspberrypi wpa_action: removing sendsigs omission pidfile: /run/sendsigs.omit.d/wpasupplicant.wpa_supplicant.wlan0.pid
Dec 20 10:27:53 raspberrypi wpa_action: WPA_IFACE=wlan0 WPA_ACTION=CONNECTED
Dec 20 10:27:53 raspberrypi wpa_action: WPA_ID=1 WPA_ID_STR=church WPA_CTRL_DIR=/var/run/wpa_supplicant
Dec 20 10:27:53 raspberrypi wpa_action: ifup wlan0=church
Dec 20 10:27:54 raspberrypi kernel: [ 60.813716] wlan0: authenticate with 98:2c:be:99:cf:11
Dec 20 10:27:54 raspberrypi kernel: [ 60.884551] wlan0: send auth to 98:2c:be:99:cf:11 (try 1/3)
Dec 20 10:27:54 raspberrypi kernel: [ 60.917661] wlan0: send auth to 98:2c:be:99:cf:11 (try 2/3)
Dec 20 10:27:54 raspberrypi kernel: [ 60.952899] wlan0: send auth to 98:2c:be:99:cf:11 (try 3/3)
Dec 20 10:27:54 raspberrypi kernel: [ 60.997473] wlan0: authentication with 98:2c:be:99:cf:11 timed out
Dec 20 10:28:02 raspberrypi wpa_action: creating sendsigs omission pidfile: /run/sendsigs.omit.d/wpasupplicant.wpa_supplicant.wlan0.pid
Dec 20 10:28:03 raspberrypi wpa_action: wpa_state=SCANNING
Dec 20 10:28:03 raspberrypi wpa_action: ip_address=192.168.1.21
Dec 20 10:28:03 raspberrypi wpa_action: address=00:87:40:92:0b:30
Dec 20 10:28:03 raspberrypi wpa_action: WPA_IFACE=wlan0 WPA_ACTION=DISCONNECTED
Dec 20 10:28:03 raspberrypi wpa_action: WPA_ID=1 WPA_ID_STR=church WPA_CTRL_DIR=/var/run/wpa_supplicant
Dec 20 10:28:03 raspberrypi wpa_action: ifdown wlan0
Dec 20 10:28:03 raspberrypi kernel: [ 69.424103] wlan0: authenticate with 98:2c:be:99:cf:11
Dec 20 10:28:03 raspberrypi wpa_action: removing sendsigs omission pidfile: /run/sendsigs.omit.d/wpasupplicant.wpa_supplicant.wlan0.pid
Dec 20 10:28:03 raspberrypi kernel: [ 69.484433] wlan0: send auth to 98:2c:be:99:cf:11 (try 1/3)
Dec 20 10:28:03 raspberrypi kernel: [ 69.486388] wlan0: authenticated
Dec 20 10:28:03 raspberrypi kernel: [ 69.487774] rt2800usb 1-1.3:1.0 wlan0: disabling HT as WMM/QoS is not supported by the AP
Dec 20 10:28:03 raspberrypi kernel: [ 69.487820] rt2800usb 1-1.3:1.0 wlan0: disabling VHT as WMM/QoS is not supported by the AP
Dec 20 10:28:03 raspberrypi kernel: [ 69.496874] wlan0: associate with 98:2c:be:99:cf:11 (try 1/3)
Dec 20 10:28:03 raspberrypi kernel: [ 69.499917] wlan0: RX AssocResp from 98:2c:be:99:cf:11 (capab=0x431 status=0 aid=4)
Dec 20 10:28:03 raspberrypi kernel: [ 69.512211] wlan0: associated
Dec 20 10:28:03 raspberrypi wpa_action: WPA_IFACE=wlan0 WPA_ACTION=CONNECTED
Dec 20 10:28:03 raspberrypi wpa_action: WPA_ID=1 WPA_ID_STR=church WPA_CTRL_DIR=/var/run/wpa_supplicant
Dec 20 10:28:03 raspberrypi wpa_action: ifup wlan0=church
Dec 20 10:28:03 raspberrypi kernel: [ 69.978927] wlan0: deauthenticating from 98:2c:be:99:cf:11 by local choice (Reason: 3=DEAUTH_LEAVING)
Dec 20 10:28:04 raspberrypi kernel: [ 70.066915] cfg80211: Calling CRDA to update world regulatory domain
Dec 20 10:28:04 raspberrypi wpa_action: creating sendsigs omission pidfile: /run/sendsigs.omit.d/wpasupplicant.wpa_supplicant.wlan0.pid
Dec 20 10:28:04 raspberrypi wpa_action: wpa_state=SCANNING
Dec 20 10:28:04 raspberrypi wpa_action: address=00:87:40:92:0b:30
Dec 20 10:28:04 raspberrypi wpa_action: WPA_IFACE=wlan0 WPA_ACTION=DISCONNECTED
Dec 20 10:28:04 raspberrypi wpa_action: WPA_ID=1 WPA_ID_STR=church WPA_CTRL_DIR=/var/run/wpa_supplicant
Dec 20 10:28:04 raspberrypi wpa_action: DISCONNECTED event blocked by hysteresis check
Dec 20 10:28:05 raspberrypi kernel: [ 71.992324] wlan0: authenticate with 98:2c:be:99:cf:11
Dec 20 10:28:06 raspberrypi kernel: [ 72.064739] wlan0: send auth to 98:2c:be:99:cf:11 (try 1/3)
Dec 20 10:28:06 raspberrypi kernel: [ 72.066471] wlan0: authenticated
Dec 20 10:28:06 raspberrypi kernel: [ 72.070349] rt2800usb 1-1.3:1.0 wlan0: disabling HT as WMM/QoS is not supported by the AP
Dec 20 10:28:06 raspberrypi kernel: [ 72.070395] rt2800usb 1-1.3:1.0 wlan0: disabling VHT as WMM/QoS is not supported by the AP
Dec 20 10:28:06 raspberrypi kernel: [ 72.076740] wlan0: associate with 98:2c:be:99:cf:11 (try 1/3)
Dec 20 10:28:06 raspberrypi kernel: [ 72.080176] wlan0: RX AssocResp from 98:2c:be:99:cf:11 (capab=0x431 status=0 aid=4)
Dec 20 10:28:06 raspberrypi kernel: [ 72.092623] wlan0: associated
Dec 20 10:28:06 raspberrypi kernel: [ 72.096145] cfg80211: Calling CRDA to update world regulatory domain
Dec 20 10:28:06 raspberrypi wpa_action: WPA_IFACE=wlan0 WPA_ACTION=CONNECTED
Dec 20 10:28:06 raspberrypi wpa_action: WPA_ID=1 WPA_ID_STR=church WPA_CTRL_DIR=/var/run/wpa_supplicant
Dec 20 10:28:06 raspberrypi wpa_action: CONNECTED event blocked by hysteresis check
Dec 20 10:28:33 raspberrypi kernel: [ 99.450346] cfg80211: Calling CRDA for country: GB
Dec 20 10:28:33 raspberrypi wpa_action: WPA_IFACE=wlan0 WPA_ACTION=DISCONNECTED
Dec 20 10:28:33 raspberrypi wpa_action: WPA_ID=1 WPA_ID_STR=church WPA_CTRL_DIR=/var/run/wpa_supplicant
Dec 20 10:28:33 raspberrypi wpa_action: ifdown wlan0
Dec 20 10:28:33 raspberrypi wpa_action: removing sendsigs omission pidfile: /run/sendsigs.omit.d/wpasupplicant.wpa_supplicant.wlan0.pid
Dec 20 10:28:34 raspberrypi kernel: [ 100.952824] wlan0: authenticate with 98:2c:be:99:cf:11
Dec 20 10:28:34 raspberrypi kernel: [ 101.024380] wlan0: send auth to 98:2c:be:99:cf:11 (try 1/3)
Dec 20 10:28:34 raspberrypi kernel: [ 101.027241] wlan0: authenticated
Dec 20 10:28:34 raspberrypi kernel: [ 101.030488] rt2800usb 1-1.3:1.0 wlan0: disabling HT as WMM/QoS is not supported by the AP
Dec 20 10:28:34 raspberrypi kernel: [ 101.030536] rt2800usb 1-1.3:1.0 wlan0: disabling VHT as WMM/QoS is not supported by the AP
Dec 20 10:28:34 raspberrypi kernel: [ 101.037159] wlan0: associate with 98:2c:be:99:cf:11 (try 1/3)
Dec 20 10:28:34 raspberrypi kernel: [ 101.039352] wlan0: RX AssocResp from 98:2c:be:99:cf:11 (capab=0x431 status=0 aid=4)
Dec 20 10:28:34 raspberrypi kernel: [ 101.052455] wlan0: associated
Dec 20 10:28:35 raspberrypi wpa_action: WPA_IFACE=wlan0 WPA_ACTION=CONNECTED
Dec 20 10:28:35 raspberrypi wpa_action: WPA_ID=1 WPA_ID_STR=church WPA_CTRL_DIR=/var/run/wpa_supplicant
Dec 20 10:28:35 raspberrypi wpa_action: ifup wlan0=church
Dec 20 10:28:41 raspberrypi wpa_action: creating sendsigs omission pidfile: /run/sendsigs.omit.d/wpasupplicant.wpa_supplicant.wlan0.pid
Dec 20 10:28:41 raspberrypi wpa_action: bssid=98:2c:be:99:cf:11
Dec 20 10:28:41 raspberrypi wpa_action: ssid=BTBusinessHub-572
Dec 20 10:28:41 raspberrypi wpa_action: id=1
Dec 20 10:28:41 raspberrypi wpa_action: id_str=church
Dec 20 10:28:41 raspberrypi wpa_action: mode=station
Dec 20 10:28:41 raspberrypi wpa_action: pairwise_cipher=CCMP
Dec 20 10:28:41 raspberrypi wpa_action: group_cipher=TKIP
Dec 20 10:28:41 raspberrypi wpa_action: key_mgmt=WPA2-PSK
Dec 20 10:28:41 raspberrypi wpa_action: wpa_state=COMPLETED
Dec 20 10:28:41 raspberrypi wpa_action: ip_address=192.168.1.21
Dec 20 10:28:41 raspberrypi wpa_action: address=00:87:40:92:0b:30
Dec 20 10:28:57 raspberrypi kernel: [ 123.450964] cfg80211: Calling CRDA to update world regulatory domain
Dec 20 10:28:57 raspberrypi wpa_action: WPA_IFACE=wlan0 WPA_ACTION=DISCONNECTED
Dec 20 10:28:57 raspberrypi wpa_action: WPA_ID=1 WPA_ID_STR=church WPA_CTRL_DIR=/var/run/wpa_supplicant
Dec 20 10:28:57 raspberrypi wpa_action: ifdown wlan0
Dec 20 10:28:58 raspberrypi wpa_action: removing sendsigs omission pidfile: /run/sendsigs.omit.d/wpasupplicant.wpa_supplicant.wlan0.pid
Dec 20 10:29:00 raspberrypi kernel: [ 126.103115] wlan0: authenticate with 98:2c:be:99:cf:11
Dec 20 10:29:00 raspberrypi kernel: [ 126.175552] wlan0: send auth to 98:2c:be:99:cf:11 (try 1/3)
Dec 20 10:29:00 raspberrypi kernel: [ 126.307435] wlan0: send auth to 98:2c:be:99:cf:11 (try 2/3)
Dec 20 10:29:00 raspberrypi kernel: [ 126.309738] wlan0: authenticated
Dec 20 10:29:00 raspberrypi kernel: [ 126.312226] rt2800usb 1-1.3:1.0 wlan0: disabling HT as WMM/QoS is not supported by the AP
Dec 20 10:29:00 raspberrypi kernel: [ 126.312273] rt2800usb 1-1.3:1.0 wlan0: disabling VHT as WMM/QoS is not supported by the AP
Dec 20 10:29:00 raspberrypi kernel: [ 126.317515] wlan0: associate with 98:2c:be:99:cf:11 (try 1/3)
Dec 20 10:29:00 raspberrypi kernel: [ 126.320035] wlan0: RX AssocResp from 98:2c:be:99:cf:11 (capab=0x431 status=0 aid=4)
Dec 20 10:29:00 raspberrypi kernel: [ 126.332948] wlan0: associated
Dec 20 10:29:00 raspberrypi kernel: [ 126.336510] cfg80211: Calling CRDA to update world regulatory domain
Dec 20 10:29:01 raspberrypi wpa_action: WPA_IFACE=wlan0 WPA_ACTION=CONNECTED
Dec 20 10:29:01 raspberrypi wpa_action: WPA_ID=1 WPA_ID_STR=church WPA_CTRL_DIR=/var/run/wpa_supplicant
Dec 20 10:29:01 raspberrypi wpa_action: ifup wlan0=church
Dec 20 10:29:12 raspberrypi wpa_action: creating sendsigs omission pidfile: /run/sendsigs.omit.d/wpasupplicant.wpa_supplicant.wlan0.pid
Dec 20 10:29:12 raspberrypi wpa_action: bssid=98:2c:be:99:cf:11
Dec 20 10:29:12 raspberrypi wpa_action: ssid=BTBusinessHub-572
Dec 20 10:29:12 raspberrypi wpa_action: id=1
Dec 20 10:29:12 raspberrypi wpa_action: id_str=church
Dec 20 10:29:12 raspberrypi wpa_action: mode=station
Dec 20 10:29:12 raspberrypi wpa_action: pairwise_cipher=CCMP
Dec 20 10:29:12 raspberrypi wpa_action: group_cipher=TKIP
Dec 20 10:29:12 raspberrypi wpa_action: key_mgmt=WPA2-PSK
Dec 20 10:29:12 raspberrypi wpa_action: wpa_state=COMPLETED
Dec 20 10:29:12 raspberrypi wpa_action: ip_address=192.168.1.21
Dec 20 10:29:12 raspberrypi wpa_action: address=00:87:40:92:0b:30
Dec 20 10:29:40 raspberrypi kernel: [ 166.401662] cfg80211: Calling CRDA to update world regulatory domain
Dec 20 10:29:40 raspberrypi wpa_action: WPA_IFACE=wlan0 WPA_ACTION=DISCONNECTED
Dec 20 10:29:40 raspberrypi wpa_action: WPA_ID=1 WPA_ID_STR=church WPA_CTRL_DIR=/var/run/wpa_supplicant
Dec 20 10:29:40 raspberrypi wpa_action: ifdown wlan0
Dec 20 10:29:41 raspberrypi wpa_action: removing sendsigs omission pidfile: /run/sendsigs.omit.d/wpasupplicant.wpa_supplicant.wlan0.pid
Dec 20 10:29:55 raspberrypi kernel: [ 181.934397] wlan0: authenticate with 98:2c:be:99:cf:11
Dec 20 10:29:55 raspberrypi kernel: [ 182.007469] wlan0: send auth to 98:2c:be:99:cf:11 (try 1/3)
Dec 20 10:29:55 raspberrypi kernel: [ 182.010347] wlan0: authenticated
Dec 20 10:29:55 raspberrypi kernel: [ 182.012517] rt2800usb 1-1.3:1.0 wlan0: disabling HT as WMM/QoS is not supported by the AP
Dec 20 10:29:55 raspberrypi kernel: [ 182.012563] rt2800usb 1-1.3:1.0 wlan0: disabling VHT as WMM/QoS is not supported by the AP
Dec 20 10:29:55 raspberrypi kernel: [ 182.018330] wlan0: associate with 98:2c:be:99:cf:11 (try 1/3)
Dec 20 10:29:55 raspberrypi kernel: [ 182.020520] wlan0: RX AssocResp from 98:2c:be:99:cf:11 (capab=0x431 status=0 aid=4)
Dec 20 10:29:55 raspberrypi kernel: [ 182.033654] wlan0: associated
Dec 20 10:29:55 raspberrypi kernel: [ 182.037720] cfg80211: Calling CRDA to update world regulatory domain
Dec 20 10:29:58 raspberrypi kernel: [ 184.424189] cfg80211: Calling CRDA for country: GB
Dec 20 10:29:59 raspberrypi kernel: [ 185.937500] wlan0: authenticate with 98:2c:be:99:cf:11
Dec 20 10:29:59 raspberrypi kernel: [ 186.006807] wlan0: send auth to 98:2c:be:99:cf:11 (try 1/3)
Dec 20 10:29:59 raspberrypi kernel: [ 186.045742] wlan0: send auth to 98:2c:be:99:cf:11 (try 2/3)
Dec 20 10:30:00 raspberrypi kernel: [ 186.079851] wlan0: send auth to 98:2c:be:99:cf:11 (try 3/3)
Dec 20 10:30:00 raspberrypi kernel: [ 186.120035] wlan0: authentication with 98:2c:be:99:cf:11 timed out

spacewave
Posts: 3
Joined: Sun Dec 20, 2015 6:13 am

Re: WiFi disconnection problem

Mon Dec 21, 2015 4:52 am

Is Power Management turned on or off for your wifi dongle on the Pi? (A quick iwconfig should reveal your Power Management configuration.)

pleriche
Posts: 90
Joined: Mon Oct 14, 2013 8:44 am

Re: WiFi disconnection problem

Mon Dec 21, 2015 9:17 am

Power management is off.

User avatar
DougieLawson
Posts: 39165
Joined: Sun Jun 16, 2013 11:19 pm
Location: A small cave in deepest darkest Basingstoke, UK
Contact: Website Twitter

Re: WiFi disconnection problem

Mon Dec 21, 2015 9:45 am

With lots of USB WiFi dongles the power management stuff does not work unless you create a driver config in /etc/modprobe.d

Code: Select all

root@aplus /etc/modprobe.d # cat 8192cu.conf
options 8192cu rtw_power_mgnt=0 rtw_enusbss=0 rtw_ips_mode=1
root@aplus /etc/modprobe.d #
To be able to do that for you we need to know what chipset your dongle is using. Post the results from an lsusb command (that's ell, ess, you, ess, bee).
Note: Any requirement to use a crystal ball or mind reading will result in me ignoring your question.

Criticising any questions is banned on this forum.

Any DMs sent on Twitter will be answered next month.
All non-medical doctors are on my foes list.

linuxdoc
Posts: 1
Joined: Sun Sep 08, 2019 8:12 am
Location: Sunny Sunny Bournemouth
Contact: Website

Re: WiFi disconnection problem

Sun Sep 08, 2019 8:34 am

Hi all,

I know this is an old post, but I was having the same problem on Stretch/Raspbian 9 when using wpa_roam and switching between two 4G access points - it was driving me mad.

After digging around a bit I couldn't find any solutions to the problem on't net so I started tracing what exactly was going on.

The logs seem to indicate wpa_action being a bit too hot on being triggered somewhere, resulting in the yo-yo-ing interface. A look at /etc/wpa_supplicant/action_wpa.sh didn't reveal much, but a peek in /etc/wpa_supplicant/functions.sh revealed where the hysteresis check was defined, and also the likely culprit for the flip-flopping:

## hysteresis checking
# Networking tools such as dhcp clients used with ifupdown can
# synthesize artificial ACTION events, particularly just after a
# DISCONNECTED/CONNECTED events are experienced in quick succession.
# This can lead to infinite event loops, and in extreme cases has the
# potential to cause system instability.

Aha! I'm running dnsmasq and dhclient, so the likely culprit is one of those. I can't be bothered to find out which one, I'm lazy, so instead I just edited one line in functions.sh that changed the hysteresis check from 4 seconds to 10 seconds:

-------------------------------------------------------------------------------------------
wpa_hysteresis_check () {
if [ -f "$WPA_CLI_TIMESTAMP" ]; then
local TIME
local TIMESTAMP
local TIMEWAIT
TIME=$(date +%s)
# current time minus 4 second event buffer
#### CHANGED TO 10s FOR Pi->4G ROAMING CONFIG LOOP BUG
TIMEWAIT=$(($TIME-10))
# get time of last event
TIMESTAMP=$(cat $WPA_CLI_TIMESTAMP)
# compare values, allowing new action to be processed
# only if last action was more than 4 seconds ago
if [ "$TIMEWAIT" -le "$TIMESTAMP" ]; then
wpa_msg log "$WPA_ACTION event blocked by hysteresis check"
return 1
fi
fi

return 0
}
-------------------------------------------------------------------------------------------

And voila - problem solved. Or rather kludged.

Hope this helps.

Return to “Troubleshooting”