From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from us-smtp-1.mimecast.com (us-smtp-delivery-1.mimecast.com [205.139.110.120]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-SHA384 (256/256 bits)) (No client certificate requested) by lists.bufferbloat.net (Postfix) with ESMTPS id E564D3B2A4 for ; Thu, 19 Sep 2019 08:22:52 -0400 (EDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1568895772; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=IwctswRgBDzjQDKiFZhMpOyHVX95Z8fvqsdkOkPRGjY=; b=GnebpjRJiwbpVJsA5Bq2u0e21OH6HMfbS98bfuTy0DEkgCoDqTOBDAkmgob4ac8oTGHWgU FNcbekxZfa7YJ+VcZNjYTyglsTZL6mVwXlYA0LLLSjiyhwxtVCSfzd1i3dxIHuzrjHfSd/ jufWuyqlSSZACtAT3P9ADlr8Lr5zOn4= Received: from mail-ed1-f69.google.com (mail-ed1-f69.google.com [209.85.208.69]) (Using TLS) by relay.mimecast.com with ESMTP id us-mta-238-WDJTo2q6MvuWsPWNLjn2hw-1; Thu, 19 Sep 2019 08:22:50 -0400 Received: by mail-ed1-f69.google.com with SMTP id y66so1834550ede.16 for ; Thu, 19 Sep 2019 05:22:49 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:subject:from:to:cc:date:message-id:in-reply-to :references:user-agent:mime-version:content-transfer-encoding; bh=Oen7CzFZmELv1d4/EePaKSFIocxA1ziuIjtlPtY3KYI=; b=Hr8qRFXX+KdRWhDdClOU5ujmYEHvrhQsYMlDAC9Y4l0BgN9YBmCIkUrKWbNM9WQIVt LCojBR6vy/oBy//EmYZFz+ws+M/buXy2ucrZtNkze1Cs7Vvn+6PIvBnq8GR2aApt3Ytp LLEh2GYBOpqBuZJfjZ+WMPXzNgbWCiFPz1s78CxP0a44PcwZCFZytci5F/a4kvnEC12I 4g4jHfVgUHrGd7tGehVMQQ9QdhZ2qdFeHynH/Zxta/vSVYF03TMa4PSqFOvNWnWnhIk/ dUMVDFhM89x+IuT4xlHsGAMgq/eL4FSD8HCPmc6lw3D60Res82unk7oZzalBY9bHJAk9 QNtQ== X-Gm-Message-State: APjAAAX+24eNSf49dtuG9XkdmhaGTGzEwN80JZ2V25CDroe/CSTwUH85 44rqGAqejDAYBTNOH1/F/zupEc+Q8qfMTLwxfGsZht8jqVuM9jb/iYqrb/vzEdb2Xr239kysGpq 01j9vGhTZYsD/teJoAW6cT8ZJPNtaHsBx7Hc= X-Received: by 2002:aa7:c657:: with SMTP id z23mr13862823edr.234.1568895768893; Thu, 19 Sep 2019 05:22:48 -0700 (PDT) X-Google-Smtp-Source: APXvYqz4Wrq6mkotnQ/ffGvhibRAOH/IoFNreUVCNsD+HOZ36Lv4908di3XQf+c6ZEgDxc1uJSdeYQ== X-Received: by 2002:aa7:c657:: with SMTP id z23mr13862793edr.234.1568895768591; Thu, 19 Sep 2019 05:22:48 -0700 (PDT) Received: from alrua-x1.borgediget.toke.dk ([2a00:7660:6da:443::2]) by smtp.gmail.com with ESMTPSA id y5sm994249ejj.35.2019.09.19.05.22.47 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 19 Sep 2019 05:22:48 -0700 (PDT) Received: by alrua-x1.borgediget.toke.dk (Postfix, from userid 1000) id A8A9E18063F; Thu, 19 Sep 2019 14:22:47 +0200 (CEST) From: =?utf-8?q?Toke_H=C3=B8iland-J=C3=B8rgensen?= To: Johannes Berg Cc: linux-wireless@vger.kernel.org, make-wifi-fast@lists.bufferbloat.net, John Crispin , Lorenzo Bianconi , Felix Fietkau Date: Thu, 19 Sep 2019 14:22:47 +0200 Message-ID: <156889576758.191202.2981673914345691512.stgit@alrua-x1> In-Reply-To: <156889576422.191202.5906619710809654631.stgit@alrua-x1> References: <156889576422.191202.5906619710809654631.stgit@alrua-x1> User-Agent: StGit/0.19-dirty MIME-Version: 1.0 X-MC-Unique: WDJTo2q6MvuWsPWNLjn2hw-1 X-Mimecast-Spam-Score: 0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable Subject: [Make-wifi-fast] [PATCH RFC/RFT 3/4] ath10k: Pass last TX bitrate up to mac80211 X-BeenThere: make-wifi-fast@lists.bufferbloat.net X-Mailman-Version: 2.1.20 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 19 Sep 2019 12:22:53 -0000 From: Toke H=C3=B8iland-J=C3=B8rgensen Use the newly added API to pass the last_tx_bitrate up to mac80211. The multiplication is because ath10k keeps it internally as units of 100kbps, whereas for mac80211 we just use kbps as the variable unit. Signed-off-by: Toke H=C3=B8iland-J=C3=B8rgensen --- drivers/net/wireless/ath/ath10k/htt_rx.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/net/wireless/ath/ath10k/htt_rx.c b/drivers/net/wireles= s/ath/ath10k/htt_rx.c index 83a7fb68fd24..0617341eb70c 100644 --- a/drivers/net/wireless/ath/ath10k/htt_rx.c +++ b/drivers/net/wireless/ath/ath10k/htt_rx.c @@ -3454,6 +3454,7 @@ ath10k_update_per_peer_tx_stats(struct ath10k *ar, =09arsta->txrate.nss =3D txrate.nss; =09arsta->txrate.bw =3D ath10k_bw_to_mac80211_bw(txrate.bw); =09arsta->last_tx_bitrate =3D cfg80211_calculate_bitrate(&arsta->txrate); +=09ieee80211_sta_set_last_tx_bitrate(sta, arsta->last_tx_bitrate * 100); =09if (sgi) =09=09arsta->txrate.flags |=3D RATE_INFO_FLAGS_SHORT_GI; =20