Return-path: Received: from s3.sipsolutions.net ([2a01:4f8:191:4433::2] helo=sipsolutions.net) by bombadil.infradead.org with esmtps (Exim 4.92.3 #3 (Red Hat Linux)) id 1jedqe-0000RG-Dx for ath11k@lists.infradead.org; Fri, 29 May 2020 12:10:53 +0000 Message-ID: Subject: Re: [PATCH 1/2] mac80211: enable TKIP when using encapsulation offloading From: Johannes Berg Date: Fri, 29 May 2020 14:10:47 +0200 In-Reply-To: <7fb606edf1e5c7ab5b1446d637768ee7@codeaurora.org> References: <1587720951-9222-1-git-send-email-murugana@codeaurora.org> <1587720951-9222-2-git-send-email-murugana@codeaurora.org> (sfid-20200424_113624_468114_4CC488DE) <7fb606edf1e5c7ab5b1446d637768ee7@codeaurora.org> MIME-Version: 1.0 List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: "ath11k" Errors-To: ath11k-bounces+kvalo=adurom.com@lists.infradead.org To: Sathishkumar Muruganandam Cc: linux-wireless@vger.kernel.org, ath11k@lists.infradead.org On Fri, 2020-05-29 at 17:38 +0530, Sathishkumar Muruganandam wrote: > > 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. > > Ath11k HW has capability of reporting TKIP MIC error when hw encap is > enabled as well, so TKIP encryption shall be enabled. Maybe so. But it cannot tell wpa_supplicant about MIC errors, and so that cannot do countermeasures, so something isn't right. > Shall we have a ieee80211_hw_flags for the driver to advertise TKIP MIC > error reporting capability when hw encap is enabled ? > TKIP bring-up will be disabled for the drivers which doesn't have the > capability. That would be better, since for TKIP it's actually more tricky and requires more work. But mostly I was thinking that you should make it possible for ath11k to actually report the MIC errors up to userspace. Right now I don't think it can, because it doesn't have the netdev pointer? johannes _______________________________________________ ath11k mailing list ath11k@lists.infradead.org http://lists.infradead.org/mailman/listinfo/ath11k