Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752838AbdLEQMA (ORCPT ); Tue, 5 Dec 2017 11:12:00 -0500 Received: from smtprelay.synopsys.com ([198.182.60.111]:60343 "EHLO smtprelay.synopsys.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752611AbdLEQL6 (ORCPT ); Tue, 5 Dec 2017 11:11:58 -0500 From: Alexey Brodkin To: "amit.karwar@redpinesignals.com" CC: "linux-wireless@vger.kernel.org" , "linux-kernel@vger.kernel.org" , "linux-snps-arc@lists.infradead.org" Subject: rsi_91x: Failed to read status register on failed authentication Thread-Topic: rsi_91x: Failed to read status register on failed authentication Thread-Index: AQHTbePFzO7P4hAmxki3KJ7tjd1hkw== Date: Tue, 5 Dec 2017 16:11:55 +0000 Message-ID: <1512490314.4977.143.camel@synopsys.com> Accept-Language: en-US, ru-RU Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-originating-ip: [10.225.15.95] Content-Type: text/plain; charset="utf-8" Content-ID: MIME-Version: 1.0 Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Transfer-Encoding: 8bit X-MIME-Autoconverted: from base64 to 8bit by nfs id vB5GC5Ae003294 Content-Length: 11530 Lines: 242 Hi Amit, I'm seeing quite a strange behavior of RedPine module. It connects perfectly fine to one of access points but fails to connect to another. Moreover after that failure RSI driver starts to flood me with messages saying: --------------------->8-------------------- rsi_91x: rsi_sdio_check_buffer_status: Failed to read status register --------------------->8-------------------- Below you may find details of my 2 experiments. Note I use vanilla Linux kernel v4.14.4 Any ideas what could be wrong? -Alexey 1. Working scenario ====================================================== # cat /etc/wpa_supplicant.conf  ctrl_interface=/var/run/wpa_supplicant ap_scan=1 network={   ssid="YYY"   psk="zzz" } # iw wlan0 scan BSS 80:19:34:1f:5e:50(on wlan0) -- associated         TSF: 248634601 usec (0d, 00:04:08)         freq: 2412         beacon interval: 100 TUs         capability: ESS Privacy ShortSlotTime (0x0411)         signal: -31.00 dBm         last seen: 0 ms ago         Information elements from Probe Response frame:         SSID: YYY         Supported rates: 1.0* 2.0* 5.5* 11.0* 6.0 9.0 12.0 18.0          DS Parameter set: channel 1         ERP: Barker_Preamble_Mode         Extended supported rates: 24.0 36.0 48.0 54.0          RSN:     * Version: 1                  * Group cipher: CCMP                  * Pairwise ciphers: CCMP                  * Authentication suites: PSK                  * Capabilities: 16-PTKSA-RC 1-GTKSA-RC (0x000c)         HT capabilities:                 Capabilities: 0x1ec                         HT20                         SM Power Save disabled                         RX HT20 SGI                         RX HT40 SGI                         TX STBC                         RX STBC 1-stream                         Max AMSDU length: 3839 bytes                         No DSSS/CCK HT40                 Maximum RX AMPDU length 65535 bytes (exponent: 0x003)                 Minimum RX AMPDU time spacing: 4 usec (0x05)                 HT Max RX data rate: 300 Mbps                 HT TX/RX MCS rate indexes supported: 0-15         HT operation:                  * primary channel: 1                  * secondary channel offset: no secondary                  * STA channel width: 20 MHz                  * RIFS: 0                  * HT protection: no                  * non-GF present: 1                  * OBSS non-GF present: 0                  * dual beacon: 0                  * dual CTS protection: 0                  * STBC beacon: 0                  * L-SIG TXOP Prot: 0                  * PCO active: 0                  * PCO phase: 0         Extended capabilities: Extended Channel Switching, 6         WMM:     * Parameter version 1                  * BE: CW 15-1023, AIFSN 3                  * BK: CW 15-1023, AIFSN 7                  * VI: CW 7-15, AIFSN 2, TXOP 2976 usec                  * VO: CW 3-7, AIFSN 2, TXOP 1472 usec         WPS:     * Version: 1.0                  * Wi-Fi Protected Setup State: 2 (Configured)                  * Response Type: 3 (AP)                  * UUID: 97b29264-d9a5-5551-88f9-62fbdacb7162                  * Manufacturer:                    * Model:                    * Model Number:                    * Serial Number:                    * Primary Device Type: 0-00000000-0                  * Device name:                    * Config methods: Display, Keypad                  * Unknown TLV (0x1049, 6 bytes): 00 37 2a 00 01 20 # ifconfig wlan0 up rsi_91x: ===> Interface UP <=== rsi_91x: rsi_disable_ps: Cannot accept disable PS in PS_NONE state IPv6: ADDRCONF(NETDEV_UP): wlan0: link is not ready # wpa_supplicant -B -i wlan0 -c /etc/wpa_supplicant.conf Successfully initialized wpa_supplicant rfkill: Cannot open RFKILL control device # wlan0: authenticate with 80:19:34:1f:5e:50 wlan0: send auth to 80:19:34:1f:5e:50 (try 1/3) wlan0: authenticated wlan0: associate with 80:19:34:1f:5e:50 (try 1/3) wlan0: RX AssocResp from 80:19:34:1f:5e:50 (capab=0x411 status=0 aid=1) IPv6: ADDRCONF(NETDEV_CHANGE): wlan0: link becomes ready wlan0: associated rsi_91x: rsi_hal_key_config: Cipher 0xfac04 key_type: 1 key_len: 16 rsi_91x: rsi_mac80211_set_key: RSI set_key rsi_91x: rsi_hal_key_config: Cipher 0xfac04 key_type: 2 key_len: 16 rsi_91x: rsi_mac80211_set_key: RSI set_key # udhcpc -i wlan0 udhcpc: started, v1.27.2 udhcpc: sending discover udhcpc: sending select for 10.42.1.137 udhcpc: lease of 10.42.1.137 obtained, lease time 3600 deleting routers adding dns 10.42.1.1 # ifconfig  lo        Link encap:Local Loopback             inet addr:127.0.0.1  Mask:255.0.0.0           inet6 addr: ::1/128 Scope:Host           UP LOOPBACK RUNNING  MTU:65536  Metric:1           RX packets:0 errors:0 dropped:0 overruns:0 frame:0           TX packets:0 errors:0 dropped:0 overruns:0 carrier:0           collisions:0 txqueuelen:1000            RX bytes:0 (0.0 B)  TX bytes:0 (0.0 B) wlan0     Link encap:Ethernet  HWaddr 00:23:A7:65:9B:94             inet addr:10.42.1.137  Bcast:10.42.1.255  Mask:255.255.255.0           inet6 addr: fe80::223:a7ff:fe65:9b94/64 Scope:Link           UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1           RX packets:5 errors:0 dropped:0 overruns:0 frame:0           TX packets:11 errors:0 dropped:0 overruns:0 carrier:0           collisions:0 txqueuelen:1000            RX bytes:1028 (1.0 KiB)  TX bytes:1738 (1.6 KiB) ====================================================== 2. Failing scenario: ====================================================== # cat /etc/wpa_supplicant.conf  ctrl_interface=/var/run/wpa_supplicant ap_scan=1 network={   ssid="XXX"   psk="zzz" } # iw wlan0 scan BSS 6c:3b:6b:7d:a1:46(on wlan0)         TSF: 251623213323 usec (2d, 21:53:43)         freq: 2427         beacon interval: 100 TUs         capability: ESS Privacy ShortSlotTime (0x0411)         signal: -65.00 dBm         last seen: 0 ms ago         Information elements from Probe Response frame:         SSID: XXX         Supported rates: 1.0* 2.0* 5.5* 11.0* 6.0 9.0 12.0 18.0          DS Parameter set: channel 4         ERP:         HT capabilities:                 Capabilities: 0x106e                         HT20/HT40                         SM Power Save disabled                         RX HT20 SGI                         RX HT40 SGI                         No RX STBC                         Max AMSDU length: 3839 bytes                         DSSS/CCK HT40                 Maximum RX AMPDU length 65535 bytes (exponent: 0x003)                 Minimum RX AMPDU time spacing: No restriction (0x00)                 HT RX MCS rate indexes supported: 0-15                 HT TX MCS rate indexes are undefined         RSN:     * Version: 1                  * Group cipher: CCMP                  * Pairwise ciphers: CCMP TKIP                  * Authentication suites: PSK                  * Capabilities: 1-PTKSA-RC 1-GTKSA-RC (0x0000)         Extended supported rates: 24.0 36.0 48.0 54.0          HT operation:                  * primary channel: 4                  * secondary channel offset: above                  * STA channel width: any                  * RIFS: 0                  * HT protection: no                  * non-GF present: 0                  * OBSS non-GF present: 0                  * dual beacon: 0                  * dual CTS protection: 0                  * STBC beacon: 0                  * L-SIG TXOP Prot: 0                  * PCO active: 0                  * PCO phase: 0         WMM:     * Parameter version 1                  * u-APSD                  * BE: CW 15-1023, AIFSN 3                  * BK: CW 15-1023, AIFSN 7                  * VI: CW 7-15, AIFSN 2, TXOP 3008 usec                  * VO: CW 3-7, AIFSN 2, TXOP 1504 usec # ifconfig wlan0 up rsi_91x: ===> Interface UP <=== rsi_91x: rsi_disable_ps: Cannot accept disable PS in PS_NONE state IPv6: ADDRCONF(NETDEV_UP): wlan0: link is not ready # wpa_supplicant -B -i wlan0 -c /etc/wpa_supplicant.conf Successfully initialized wpa_supplicant rfkill: Cannot open RFKILL control device # wlan0: authenticate with 6c:3b:6b:7d:a1:46 wlan0: send auth to 6c:3b:6b:7d:a1:46 (try 1/3) wlan0: send auth to 6c:3b:6b:7d:a1:46 (try 2/3) wlan0: send auth to 6c:3b:6b:7d:a1:46 (try 3/3) rsi_91x: rsi_sdio_write_register_multiple: Synch Cmd53 write failed -16 rsi_91x: rsi_sdio_host_intf_write_pkt: Unable to write onto the card: -16 rsi_91x: rsi_send_mgmt_pkt: Failed to write the packet wlan0: authentication with 6c:3b:6b:7d:a1:46 timed out wlan0: authenticate with 6c:3b:6b:76:e0:ab wlan0: send auth to 6c:3b:6b:76:e0:ab (try 1/3) wlan0: send auth to 6c:3b:6b:76:e0:ab (try 2/3) wlan0: send auth to 6c:3b:6b:76:e0:ab (try 3/3) rsi_91x: rsi_sdio_check_buffer_status: Failed to read status register wlan0: authentication with 6c:3b:6b:76:e0:ab timed out rsi_91x: rsi_sdio_check_buffer_status: Failed to read status register rsi_91x: rsi_sdio_check_buffer_status: Failed to read status register rsi_91x: rsi_sdio_check_buffer_status: Failed to read status register rsi_91x: rsi_sdio_check_buffer_status: Failed to read status register rsi_91x: rsi_sdio_check_buffer_status: Failed to read status register rsi_91x: rsi_sdio_check_buffer_status: Failed to read status register rsi_91x: rsi_sdio_check_buffer_status: Failed to read status register rsi_91x: rsi_sdio_check_buffer_status: Failed to read status register rsi_91x: rsi_sdio_check_buffer_status: Failed to read status register rsi_91x: rsi_sdio_check_buffer_status: Failed to read status register rsi_91x: rsi_sdio_check_buffer_status: Failed to read status register ======================================================