Received: by 2002:a25:ab43:0:0:0:0:0 with SMTP id u61csp8603434ybi; Thu, 6 Jun 2019 15:40:27 -0700 (PDT) X-Google-Smtp-Source: APXvYqz5M9wmlAwfp/9AiDF7meEg7oHoaKzHIKJHf4Cgjw9e13+QVpvlHjYx8HOCs1KJ9loRimoJ X-Received: by 2002:a17:90a:b903:: with SMTP id p3mr2140581pjr.79.1559860827403; Thu, 06 Jun 2019 15:40:27 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1559860827; cv=none; d=google.com; s=arc-20160816; b=qtrP2Cd2Gi+Zp0quSl2azXAO1le7pLWNpbzWhWawMJbTRSG/K2WYOWWmmXgJx/jde4 dTQd9Td6HKm1S/alfYlCxRgFt8snjZjSymEWjjqGXnCrTXvbjqZ1fj4C+s9n2ZGTZohj c6wkNRc6lk7lWpkqE6n/M0/TPRQXaMG0sy/ibjJcCNCdcA05Qe5uAwyAzUrxqtQca3pk kl8Hk6RhpsNgzhgo/cJZrSBKr7LPdJJ3S9IoXJcbVAENVwKYpsHkTKulZ3j0J5TV8sCZ XoT/dVP+CvuOSnkMlssypdhu9Pd+LdA2+ScEFS48wUthLfbEtPe7Wp7hSpu1L4YaS3gT bUkQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding :content-language:in-reply-to:mime-version:user-agent:date :message-id:organization:references:to:from:subject:dkim-signature :dkim-filter; bh=VDI4Oc9MoBNjHJKpiDK5SW9y/5g4l7ud8ZNLAmEnm/Q=; b=g7KDuLPA8ec8WDoa8woDuDBclga3CZljyArWpZo+IxMgdnUOA8iMiCnZ3iZJHLYMbS cd1buwg8ZdZaFyJJ7qurTrzlHADoMEH3GxLKW5hQOpyALQmjuduSRpqbeHP65Y528FQo FO3eDJt7Wbx6m2ySf6qRB7ZlSS2v+HJoB0QW6iuQvRXA+JACa6UYKJHBeTyTAPcZDgsZ qWhNWKPHbvsFAce+a6/Wd7DQKPg2qnz0ad3amA+tnKBJxdS1vN62angk89s+2Uix5A8V oNWEWwEy38PZwnhTrapQdvj1xBgUnIXxlkjcMWku6eiNkPSrFXRa9m55hnaImXh2x44x cPxQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@candelatech.com header.s=default header.b=qAnqpMVs; spf=pass (google.com: best guess record for domain of linux-wireless-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-wireless-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=candelatech.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id x2si272784plo.237.2019.06.06.15.40.12; Thu, 06 Jun 2019 15:40:27 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-wireless-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=@candelatech.com header.s=default header.b=qAnqpMVs; spf=pass (google.com: best guess record for domain of linux-wireless-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-wireless-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=candelatech.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1729010AbfFFWMl (ORCPT + 99 others); Thu, 6 Jun 2019 18:12:41 -0400 Received: from mail2.candelatech.com ([208.74.158.173]:38778 "EHLO mail3.candelatech.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726837AbfFFWMk (ORCPT ); Thu, 6 Jun 2019 18:12:40 -0400 Received: from [192.168.100.195] (50-251-239-81-static.hfc.comcastbusiness.net [50.251.239.81]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by mail3.candelatech.com (Postfix) with ESMTPSA id 0418913C283 for ; Thu, 6 Jun 2019 15:12:39 -0700 (PDT) DKIM-Filter: OpenDKIM Filter v2.11.0 mail3.candelatech.com 0418913C283 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=candelatech.com; s=default; t=1559859160; bh=8QSUWnElWxKMhxnPCYbkDI2DecFkYqoNBA/kWv/icLA=; h=Subject:From:To:References:Date:In-Reply-To:From; b=qAnqpMVsXI9S57yUwARo4rUhOILMq+yRJ5uS13KW9MqOOn81djkIGAeRx12RGkoFh 3tPWmH1V8n//Ig4SYieC/cM6VkL3SfRflkkTAEFGUBUy2EPT3Ss358RdDtpa2ziIxc 3Tit30ybkhvMV/24sV8pV7fFtJ/3cFIVBMsDlSyI= Subject: Re: Help with encrypting PMF management frames From: Ben Greear To: "linux-wireless@vger.kernel.org" References: Organization: Candela Technologies Message-ID: Date: Thu, 6 Jun 2019 15:12:39 -0700 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:60.0) Gecko/20100101 Thunderbird/60.4.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 Sender: linux-wireless-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-wireless@vger.kernel.org On 6/6/19 9:54 AM, Ben Greear wrote: > Hello, > > My variant of ath10k uses the normal 'native-wifi' tx path for management frames. > Internally in the firmware, it seems that the management TID is flagged to expect > raw frames, and I think that is why I see Action frames on-air that are not actually > encrypted but which have some space added to their packet that should be filled in by > the hw-crypt engine. > > Is there a way to get mac80211 to software-crypt just management-tid PMF frames? > > So far, I have not been able to find the correct place in the tx logic of > mac80211... > > Thanks, > Ben > Ok, I found the issue. It seems the ath10k hardware refuses to encrypt management frames unless they are sent in RAW mode (nwifi mgt frames are sent w/out encryption for whatever reason). So, the fix is in the ath10k driver (and just my driver I suppose, stock driver uses a different API for mgt frames that eventually is raw-tx down in the firmware). Thanks, Ben -- Ben Greear Candela Technologies Inc http://www.candelatech.com