Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp1556759imu; Wed, 16 Jan 2019 22:46:02 -0800 (PST) X-Google-Smtp-Source: ALg8bN580559/BXIp0CG+n+CREXqNyDnpH2fNaqhobWYsuJy+EaceQ5lOTLbb6RZz3KmAvp94qUp X-Received: by 2002:a63:c904:: with SMTP id o4mr12260475pgg.331.1547707562836; Wed, 16 Jan 2019 22:46:02 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1547707562; cv=none; d=google.com; s=arc-20160816; b=jooHsp3ph41QXykONrrOk7gQZIB7KF7UhhO8r0iSPCg5mwIh/kOehYVyxh6RwEwVBR rhe5kUQ9TS5bcKrU69c5Oitl6qt8UHep/LX0EYp0F5hHrQh7r7rdkPA4OvHCJLRTlmW2 zcX28R9CbCBgO153wr2o7IGTAUQdV5PyPjxH5fEoKeZPb8cTywe+tLPi424dX9Y6kQaq OVCcVZzUekfYrldHLg9TJQlSvXiIi43rXYYIkqwvGif3p9QM3oJEYI3pvtzs9bc74S0D Z7GG4miocCdOusN3u87xackRk4TbaGYRqgkaOCB91aJFycEVcaOm+UPnJ9VaUZG3fkOP NZ2Q== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:user-agent:message-id :in-reply-to:date:references:subject:cc:to:from:dmarc-filter :dkim-signature:dkim-signature; bh=2+6Pq2JjhI6XACbO6feZ3lvpHYLHddNceq932zBOiSw=; b=JAPgoH0XQErUqIaFN4WyJOFztLI3SgEs0dmxGAAD2C+aZM07f8ZFqc/nI7lqJr5jiF U2hYWnR/VkTG6eUxauc/ts3V8OACnuqDGM3VvQfP4tJ6GmjtlxXVvPeg2R6jb6/EXcgQ b1MsFWFPuVt7hKNnFsQWk+wI1nyCeSyO2OCy3cstxZ/Ag7M/8rWKTMZtnIIu/3slT600 XfgkTs1Ik92d3APd584PZIF+CducJD4JiieH0I9LUfWBAvdgurZPnBJB3jKAFf1g2Yz6 vQi1xy9pOhImPpPlsgD6jI9XdpEwTKHKKeQkUx/qIgJxQcQg9LyvRzpsZLXax2iI8KRZ O1fg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@codeaurora.org header.s=default header.b=Dj9GyEjk; dkim=pass header.i=@codeaurora.org header.s=default header.b=OBqlmXvm; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id 6si848180plc.241.2019.01.16.22.45.47; Wed, 16 Jan 2019 22:46:02 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@codeaurora.org header.s=default header.b=Dj9GyEjk; dkim=pass header.i=@codeaurora.org header.s=default header.b=OBqlmXvm; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727896AbfAPQ3N (ORCPT + 99 others); Wed, 16 Jan 2019 11:29:13 -0500 Received: from smtp.codeaurora.org ([198.145.29.96]:50808 "EHLO smtp.codeaurora.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725320AbfAPQ3N (ORCPT ); Wed, 16 Jan 2019 11:29:13 -0500 Received: by smtp.codeaurora.org (Postfix, from userid 1000) id 32827607DE; Wed, 16 Jan 2019 16:29:12 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=codeaurora.org; s=default; t=1547656152; bh=Mx8xI5Et49VlkQlFAUQZRJGnf3pfMfSnFxGPFlPGgSY=; h=From:To:Cc:Subject:References:Date:In-Reply-To:From; b=Dj9GyEjkq+T5FnY8bFfUTu7MYqmMZa2i14WVNciP0KySTe65/oAVQAamqWZYdVtUM ng7GIZ8CkkeMM/tZS8CLv4UrA1MW5S3OWPE4bXbB/ol8TWO7cTq8UxkS6uat6bW9bV sLInCht5jj2iBlt7q9XNZ6Rmjv39Cob1iuZBt3FM= X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on pdx-caf-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-2.7 required=2.0 tests=ALL_TRUSTED,BAYES_00, DKIM_INVALID,DKIM_SIGNED autolearn=no autolearn_force=no version=3.4.0 Received: from x230.qca.qualcomm.com (88-114-240-156.elisa-laajakaista.fi [88.114.240.156]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) (Authenticated sender: kvalo@smtp.codeaurora.org) by smtp.codeaurora.org (Postfix) with ESMTPSA id EA63A60208; Wed, 16 Jan 2019 16:29:09 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=codeaurora.org; s=default; t=1547656151; bh=Mx8xI5Et49VlkQlFAUQZRJGnf3pfMfSnFxGPFlPGgSY=; h=From:To:Cc:Subject:References:Date:In-Reply-To:From; b=OBqlmXvmfxu3pKeuXdjlUCB+yL1UPJR2V14qtdI3YrflY4KAFM4p9eNq0uH7QWpqm cPZYJEwlAtqaRCRTgND+qi9Tk0abrnUkPZxJZOLRw7LUzOkLkTH+aXQLEChRz06qMl EAjm0i70YbmETuCfoT3rIVeDYjxoA7kDuTmuzdk4= DMARC-Filter: OpenDMARC Filter v1.3.2 smtp.codeaurora.org EA63A60208 Authentication-Results: pdx-caf-mail.web.codeaurora.org; dmarc=none (p=none dis=none) header.from=codeaurora.org Authentication-Results: pdx-caf-mail.web.codeaurora.org; spf=none smtp.mailfrom=kvalo@codeaurora.org From: Kalle Valo To: Stanislaw Gruszka Cc: Bernd Edlinger , Helmut Schaa , "David S. Miller" , "linux-wireless\@vger.kernel.org" , "netdev\@vger.kernel.org" , "linux-kernel\@vger.kernel.org" Subject: Re: [PATCH] rt61pci: Work around a firmware bug with shared keys References: <20190116112129.GC5234@redhat.com> Date: Wed, 16 Jan 2019 18:29:07 +0200 In-Reply-To: <20190116112129.GC5234@redhat.com> (Stanislaw Gruszka's message of "Wed, 16 Jan 2019 12:21:30 +0100") Message-ID: <87imyo4ld8.fsf@codeaurora.org> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.5 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Stanislaw Gruszka writes: > On Tue, Jan 15, 2019 at 02:01:29PM +0000, Bernd Edlinger wrote: >> Apparently the rt2x61 firmware fails temporarily to decode >> broadcast packets if the shared keys are not assigned >> in the "correct" sequence. At the same time unicast >> packets work fine, since they are encrypted with the >> pairwise key. >> >> At least with WPA2 CCMP mode the shared keys are >> set in the following sequence: keyidx=1, 2, 1, 2. >> After a while only keyidx 2 gets decrypted, and >> keyidx 1 is ignored, probably because there is never >> a keyidx 3. >> >> Symptoms are arping -b works for 10 minutes, since >> keyidx=2 is used for broadcast, and then it stops >> working for 10 minutes, because keyidx=1 is used. >> That failure mode repeats forever. >> >> Note, the firmware does not even know which keyidx >> corresponds to which hw_key_idx so the firmware is >> trying to be smarter than the driver, which is bound >> to fail. >> >> As workaround the function rt61pci_config_shared_key >> requests software decryption of the shared keys, >> by returning EOPNOTSUPP. However, pairwise keys are >> still handled by hardware which works just fine. >> >> Signed-off-by: Bernd Edlinger > > Acked-by: Stanislaw Gruszka The prefix should be "rt2x00:", I can change that. -- Kalle Valo