Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-0.8 required=3.0 tests=HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS autolearn=no autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 7E50EC433E0 for ; Tue, 26 May 2020 12:44:33 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id 6413B2088E for ; Tue, 26 May 2020 12:44:33 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2389269AbgEZMob (ORCPT ); Tue, 26 May 2020 08:44:31 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:58520 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2389265AbgEZMob (ORCPT ); Tue, 26 May 2020 08:44:31 -0400 Received: from sipsolutions.net (s3.sipsolutions.net [IPv6:2a01:4f8:191:4433::2]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id B9FB4C03E96D for ; Tue, 26 May 2020 05:44:30 -0700 (PDT) Received: by sipsolutions.net with esmtpsa (TLS1.3:ECDHE_SECP256R1__RSA_PSS_RSAE_SHA256__AES_256_GCM:256) (Exim 4.93) (envelope-from ) id 1jdYwU-003QQT-3X; Tue, 26 May 2020 14:44:26 +0200 Message-ID: Subject: Re: [PATCH 1/2] mac80211: enable TKIP when using encapsulation offloading From: Johannes Berg To: Sathishkumar Muruganandam , ath11k@lists.infradead.org Cc: linux-wireless@vger.kernel.org Date: Tue, 26 May 2020 14:44:25 +0200 In-Reply-To: <1587720951-9222-2-git-send-email-murugana@codeaurora.org> (sfid-20200424_113624_468114_4CC488DE) References: <1587720951-9222-1-git-send-email-murugana@codeaurora.org> <1587720951-9222-2-git-send-email-murugana@codeaurora.org> (sfid-20200424_113624_468114_4CC488DE) Content-Type: text/plain; charset="UTF-8" User-Agent: Evolution 3.36.2 (3.36.2-1.fc32) MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Sender: linux-wireless-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-wireless@vger.kernel.org On Fri, 2020-04-24 at 15:05 +0530, Sathishkumar Muruganandam wrote: > TKIP was disabled on encap offload mode since if TKIP MIC error > reporting is not capable by the driver using encap offload mode, > then TKIP countermeasures wont work. > > Enabling back TKIP bring-up in encap offload mode to leave the > control with the driver to disable hw encap when it is not capable > of TKIP MIC error reporting. So how can the driver do TKIP MIC error reporting? I don't think it can. It doesn't have all the necessary information to call cfg80211_michael_mic_failure(), as far as I can tell. I'm not applying this until I see at least the *ability* for drivers to do it. I mean, I don't really want to worry about your driver's correctness, but if you then turn around and realize that you *cannot* actually implement the right behaviour, that's no good either. johannes