From patchwork Thu Jul 17 14:14:27 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Arik Nemtsov X-Patchwork-Id: 4575771 Return-Path: X-Original-To: patchwork-linux-wireless@patchwork.kernel.org Delivered-To: patchwork-parsemail@patchwork2.web.kernel.org Received: from mail.kernel.org (mail.kernel.org [198.145.19.201]) by patchwork2.web.kernel.org (Postfix) with ESMTP id EAAD3C0514 for ; Thu, 17 Jul 2014 14:15:01 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id BE3E02011E for ; Thu, 17 Jul 2014 14:15:00 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id E038D2018E for ; Thu, 17 Jul 2014 14:14:58 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S933907AbaGQOOd (ORCPT ); Thu, 17 Jul 2014 10:14:33 -0400 Received: from mail-wg0-f44.google.com ([74.125.82.44]:60357 "EHLO mail-wg0-f44.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S933778AbaGQOOU (ORCPT ); Thu, 17 Jul 2014 10:14:20 -0400 Received: by mail-wg0-f44.google.com with SMTP id m15so2115601wgh.15 for ; Thu, 17 Jul 2014 07:14:19 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references; bh=fzKHdtCdwRafjrTNCNAOQz9Oqt0v+rYBjiy2l0pwlVg=; b=M2RYGWwIP5IQCqLqxH7lu2Tf3J/cYaDmFFGNG3zM5QR1Puq/A4fSPRXH2qj3WIGGf6 5zaERFJc10uDcDbfO7wMLIBope3r6GWCoJ7befvuJAfeIJfUO1HlVpUAH/tMufR4HKzZ T7i/Cs0OXw42Caqf+x6T/je9wrb8tgdMwqsB5kj/9s+SHIw8/ScTREjJQLZFAyNQ7SNb 8zqdvxL11CaX4x3JHBTiC/tVeH7OLUyfu0LuxpFGNnd2Qxqda0+0D54l9+TtGqeoFBmP 5HmXbwV4JaAClygzhx4L9PSK3bKYkOOLU5qD2aNzk4Us6jAJfMYQ1/B3I4+Rw9W56DZl GIiw== X-Gm-Message-State: ALoCoQkVNPwYGSSL+BDwbof0yrGyWTBE3kyMp5BZLhZuoLq/8lTbUlZdqXLwB2pTqOJ/RGBMtLst X-Received: by 10.180.211.237 with SMTP id nf13mr22775508wic.47.1405606459403; Thu, 17 Jul 2014 07:14:19 -0700 (PDT) Received: from athena.amr.corp.intel.com (46-116-100-31.bb.netvision.net.il. [46.116.100.31]) by mx.google.com with ESMTPSA id ft6sm17691865wic.0.2014.07.17.07.14.17 for (version=TLSv1.2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Thu, 17 Jul 2014 07:14:18 -0700 (PDT) From: Arik Nemtsov To: Cc: Johannes Berg , Arik Nemtsov Subject: [PATCH 11/15] mac80211: set Rx highest rate in ht_cap Date: Thu, 17 Jul 2014 17:14:27 +0300 Message-Id: <1405606471-30128-12-git-send-email-arik@wizery.com> X-Mailer: git-send-email 1.9.1 In-Reply-To: <1405606471-30128-1-git-send-email-arik@wizery.com> References: <1405606471-30128-1-git-send-email-arik@wizery.com> Sender: linux-wireless-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-wireless@vger.kernel.org X-Spam-Status: No, score=-6.9 required=5.0 tests=BAYES_00, RCVD_IN_DNSWL_HI, RP_MATCHES_RCVD, UNPARSEABLE_RELAY autolearn=ham version=3.3.1 X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on mail.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP Set for completeness mostly, currently unused in the code. Signed-off-by: Arik Nemtsov Reviewed-by: Emmanuel Grumbach --- net/mac80211/ht.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/net/mac80211/ht.c b/net/mac80211/ht.c index 568055c..ff630be 100644 --- a/net/mac80211/ht.c +++ b/net/mac80211/ht.c @@ -227,6 +227,9 @@ bool ieee80211_ht_cap_ie_to_sta_ht_cap(struct ieee80211_sub_if_data *sdata, if (own_cap.mcs.rx_mask[32/8] & ht_cap_ie->mcs.rx_mask[32/8] & 1) ht_cap.mcs.rx_mask[32/8] |= 1; + /* set Rx highest rate */ + ht_cap.mcs.rx_highest = ht_cap_ie->mcs.rx_highest; + apply: changed = memcmp(&sta->sta.ht_cap, &ht_cap, sizeof(ht_cap));