Received: by 2002:a05:6a10:206:0:0:0:0 with SMTP id 6csp803441pxj; Thu, 27 May 2021 12:01:00 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxMNgxEsNANeAzOHDLt+CdWNJA/GoyT3qGU7moWlCiDDoHmcg26ggzSaur7T4rSuD4gRb1y X-Received: by 2002:a92:1a52:: with SMTP id z18mr4093529ill.41.1622142060452; Thu, 27 May 2021 12:01:00 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1622142060; cv=none; d=google.com; s=arc-20160816; b=ytA5V1GAZy2S2SXhlKBy5d5LWTE1lxM1zYY+yAGLaJK9qc7bWdBqbn9NkRzlYWSkHv 3jxTiInsejfNU/dYALFI5gvdCZ6BFe5x2wXE3LrJL6bfkcqMkprjR0c3oFqr0ZUb5F06 pKzebYyds4O4Zz7cXwg4urcDC+dGE0wFtXLqWoz9SkVPROEJnOJAe8Tq28XIbj1CmexW JE8SaZFE3yCwFkVXozF1/AQs4qQLxyozvjkWnjNJ9jF1LkkdN4PfxHCkAklyi8hzCSfp mY+h9evG5BiAYvciFiy4btwEfH//0OfoHUra76ZaQgXx5l3GQpMsbGF2aWqRgAKXmtJe hO0Q== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:content-language :in-reply-to:mime-version:user-agent:date:message-id:from:references :cc:to:subject:dkim-signature; bh=+E8QvEVlUcPn0+wkeL13KnnBaduvv01SOpA+5jCMOEw=; b=Z1gIw0z3IklVku3SbvE9yfusq1pGxMseWUUDgTfzAv4cyNv+Yi0xW9gcF+7TJjxXqq whIlIfGtw69yhIhwCWQr01XDVlGDuhO0lX16smRtPe7ksHyKnwWlngHXeC7Z3uCWyRku JjDfcmbp8Mc8HJXzwjBPrh3g2f+TrBj/0/GE3ha8rkxrIVigLLWaOD8ee8+1Xuz3tLFa 61r8RoWJ3IxMXOe7yTW5bd2v70JupQF3nU78qbTX9yvp3W+JSqpf8pUtdP3EnXe4UqmJ L3ztaBGNtEDdBj69sezC3/Da8LtQ8FWH51LVLMlKhAUfSu+UG8hDN34IMoKBhx//kbMS 1vDw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@denx.de header.s=phobos-20191101 header.b=FjV+jqOh; spf=pass (google.com: domain of linux-wireless-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-wireless-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id z22si3262413jal.117.2021.05.27.12.00.45; Thu, 27 May 2021 12:01:00 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-wireless-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@denx.de header.s=phobos-20191101 header.b=FjV+jqOh; spf=pass (google.com: domain of linux-wireless-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-wireless-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S236815AbhE0RIm (ORCPT + 99 others); Thu, 27 May 2021 13:08:42 -0400 Received: from phobos.denx.de ([85.214.62.61]:38450 "EHLO phobos.denx.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S235279AbhE0RIl (ORCPT ); Thu, 27 May 2021 13:08:41 -0400 Received: from [IPv6:::1] (p578adb1c.dip0.t-ipconnect.de [87.138.219.28]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits)) (No client certificate requested) (Authenticated sender: marex@denx.de) by phobos.denx.de (Postfix) with ESMTPSA id 91EE182A8D; Thu, 27 May 2021 19:07:05 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=denx.de; s=phobos-20191101; t=1622135226; bh=+E8QvEVlUcPn0+wkeL13KnnBaduvv01SOpA+5jCMOEw=; h=Subject:To:Cc:References:From:Date:In-Reply-To:From; b=FjV+jqOhx0Pg/7AhNTXgVsOOsJyPA2M0DxpFfDDnSJzQ0JSmzjZUnVvRa7uNei+6F Tj8++aprBzx1JQZbpK18SBI6aNi/cUHzGkdiTJepUBKvksHJkh0Zo3P78NWKKkrGzU hDwmcGVoOsd6ocum7G+O4e7aqaRVGIF4V1ngXqKN2Xmr51/UaZ5CJDOtpx4a5dqh8Y 5mTFlgHMK2noy4dqN8AfB5Xy0Ob7a6buVO/LVMpqPXcu6crE5Ji+gCnPthrrwr4gyG gXS5o3zOVPqKTy8PpqeBbG+vB/jvx35uWUQY8By6NrPZEWewsftUs9+qnO/PyWw42s ha4PmuHmSjE2w== Subject: Re: [PATCH] rsi: Fix TX EAPOL packet handling against iwlwifi AP To: Martin Fuzzey , netdev@vger.kernel.org Cc: Angus Ainslie , "David S . Miller" , Jakub Kicinski , Kalle Valo , Lee Jones , Martin Kepplinger , Sebastian Krzyszkowiak , Siva Rebbagondla , linux-wireless@vger.kernel.org References: <20201015111616.429220-1-marex@denx.de> From: Marek Vasut Message-ID: <2550c80c-471b-4723-4061-a488b8b85fd8@denx.de> Date: Thu, 27 May 2021 19:07:05 +0200 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:78.0) Gecko/20100101 Thunderbird/78.10.0 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-US Content-Transfer-Encoding: 7bit X-Virus-Scanned: clamav-milter 0.102.4 at phobos.denx.de X-Virus-Status: Clean Precedence: bulk List-ID: X-Mailing-List: linux-wireless@vger.kernel.org On 5/27/21 6:52 PM, Martin Fuzzey wrote: > Hi Marek, Hi, > I've just run into the same problem (on -5.4) and found your (now > merged) patch The patch should already be part of 5.4.y, no ? > On 15/10/2020 13:16, Marek Vasut wrote: >> In case RSI9116 SDIO WiFi operates in STA mode against Intel 9260 in >> AP mode, >> the association fails. The former is using wpa_supplicant during >> association, >> the later is set up using hostapd: >> >> iwl$ cat hostapd.conf >> interface=wlp1s0 >> ssid=test >> country_code=DE >> hw_mode=g >> channel=1 >> wpa=2 >> wpa_passphrase=test >> wpa_key_mgmt=WPA-PSK >> iwl$ hostapd -d hostapd.conf >> >> rsi$ wpa_supplicant -i wlan0 -c <(wpa_passphrase test test) >> >> The problem is that the TX EAPOL data descriptor >> RSI_DESC_REQUIRE_CFM_TO_HOST >> flag and extended descriptor EAPOL4_CONFIRM frame type are not set in >> case the >> AP is iwlwifi, because in that case the TX EAPOL packet is 2 bytes >> shorter. >> >> The downstream vendor driver has this change in place already [1], >> however >> there is no explanation for it, neither is there any commit history >> from which >> such explanation could be obtained. >> > > I get this using 2 RSI9116 s, for both AP and STA using hostapd. Do I understand it correctly that two RSI9116 did not even work against one another as STA and AP respectively ? Sigh ... > Comparing packet captures in the working and non working (without your > patch) case shows that > the working case has a 802.11 QOS header whereas the non working case > does not, hence the 2 byte difference. > The size of the EAPOL data is the same, it's the previous header that > causes the problem... > > This whole use the message size to determine the messages to ACK seems > very fragile... I'm not surprised, the quality of this driver is low and the documentation is lacking. Thanks for clarifying. Do you think you can write and submit a patch which would fix this in a better way?