Received: by 2002:a25:ef43:0:0:0:0:0 with SMTP id w3csp500183ybm; Fri, 29 May 2020 05:30:38 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxVu8A4zHuJam0CpGy+BK/l8WiOqje4JeQutoKZCtDrufKWUk1/1Yha2QT6S9EWsjqc/+PH X-Received: by 2002:a17:906:81d7:: with SMTP id e23mr7622607ejx.462.1590755438555; Fri, 29 May 2020 05:30:38 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1590755438; cv=none; d=google.com; s=arc-20160816; b=reIh4aJsPhs9dD5HUO0zy4IePCo2gndjsrhTrmLiQh317CYbkiSihkYJrxmczCC875 siZrEkS8rV/YSPfjaMPDP0MIRTZqnW3OMnbZkBJn4wJh/qWqEI9SfudN2bNWlM6DBdSI 47i2Mtd+/fdobYsw66BkL9xTH8mJ/ITuKNd5BUY88koMy5+rYRigmMzLPK2mC/gLi1LW zbE7w1O7I/1Z5garq/C5/5CURu528BFWQSC0hs00fPaXOdHax2dW9QQLRsBJSF+UmdMY bY6kldLMZs62dyswL5+X9MRpAI6yHQ4V8ROg9JIpDqwLes3Em6lb80L31hVXqKcdbmOW lPJA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:message-id:references :in-reply-to:subject:cc:to:from:date:content-transfer-encoding :mime-version:dkim-signature; bh=KSp3CUfantJjjy0gRx40mNlk42o3RuZm0eRjDulAmvw=; b=Qay/5CCTlzYte/q8DONz9oAAu9Nf3ISx7yBw3fakNRXhQxmAkWz2FgTN8JpBrl8PsC QuJ34fE0aikf+If2OTjhM2ERedsNC4n87Irx9kX36N4JWNgb8fAL+nvO02iCr2GrlRsr RfWr3NDmFgYaXVgZu1or17Ns8NWawXN1Snwo0YX2dnXhVpDUNRu3IELbaDpoaAVh+uSe NjAX4+8Qx/Ljb99/n26yAqU5pnqvJxfSS77eXFM3k2Mi8LmYmfip8zvlKrM7uRbsRTDZ BgyNVO7iHj/hhb2nOEDSlOxNY6zoE12H3W1ENDGqfyXK2/1KtOsXnGf6Okn0DKHUHqnQ qDNA== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@mg.codeaurora.org header.s=smtp header.b="I1/KA63S"; 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 z24si5903433eju.76.2020.05.29.05.30.06; Fri, 29 May 2020 05:30:38 -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=fail header.i=@mg.codeaurora.org header.s=smtp header.b="I1/KA63S"; 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 S1726860AbgE2MaA (ORCPT + 99 others); Fri, 29 May 2020 08:30:00 -0400 Received: from m43-7.mailgun.net ([69.72.43.7]:43671 "EHLO m43-7.mailgun.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726161AbgE2M37 (ORCPT ); Fri, 29 May 2020 08:29:59 -0400 DKIM-Signature: a=rsa-sha256; v=1; c=relaxed/relaxed; d=mg.codeaurora.org; q=dns/txt; s=smtp; t=1590755399; h=Message-ID: References: In-Reply-To: Subject: Cc: To: From: Date: Content-Transfer-Encoding: Content-Type: MIME-Version: Sender; bh=KSp3CUfantJjjy0gRx40mNlk42o3RuZm0eRjDulAmvw=; b=I1/KA63STz2Ut4KRkRtVV2/Q2/zEENoZ2W+S4kXNHQDCuL8aLsi14kJ/nBQkgB7ESV7MpH9m xr+PSZCY6IuGL+xyXmb3Un7kZ7E/LG6zHit5AFVDnvtO51Qo9eFP7Qt4ngeqkjfTN9OCKqPi iRExg1QYvmS9B3RXtQXTI6PEjas= X-Mailgun-Sending-Ip: 69.72.43.7 X-Mailgun-Sid: WyI3YTAwOSIsICJsaW51eC13aXJlbGVzc0B2Z2VyLmtlcm5lbC5vcmciLCAiYmU5ZTRhIl0= Received: from smtp.codeaurora.org (ec2-35-166-182-171.us-west-2.compute.amazonaws.com [35.166.182.171]) by smtp-out-n01.prod.us-east-1.postgun.com with SMTP id 5ed10040c0031c71c25eda96 (version=TLS1.2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256); Fri, 29 May 2020 12:29:52 GMT Received: by smtp.codeaurora.org (Postfix, from userid 1001) id 912EFC433CA; Fri, 29 May 2020 12:29:51 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-caf-mail-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-1.0 required=2.0 tests=ALL_TRUSTED autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.codeaurora.org (localhost.localdomain [127.0.0.1]) (using TLSv1 with cipher ECDHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) (Authenticated sender: murugana) by smtp.codeaurora.org (Postfix) with ESMTPSA id 5767EC433C9; Fri, 29 May 2020 12:29:51 +0000 (UTC) MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII; format=flowed Content-Transfer-Encoding: 7bit Date: Fri, 29 May 2020 17:59:51 +0530 From: Sathishkumar Muruganandam To: Johannes Berg Cc: ath11k@lists.infradead.org, linux-wireless@vger.kernel.org Subject: Re: [PATCH 1/2] mac80211: enable TKIP when using encapsulation offloading In-Reply-To: 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> Message-ID: <4bab3197997bb2dd6555ff920c5dd1cb@codeaurora.org> X-Sender: murugana@codeaurora.org User-Agent: Roundcube Webmail/1.3.9 Sender: linux-wireless-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-wireless@vger.kernel.org On 2020-05-29 17:40, Johannes Berg wrote: > 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? > Yes, currently only tx encap support is added and rx decap support is in progress to do TKIP MIC error reporting to userspace via cfg80211_michael_mic_failure(). With NL80211_CMD_MICHAEL_MIC_FAILURE, hostapd will be able to do TKIP counter-measures. Thanks, Sathishkumar