From patchwork Mon Jul 9 10:20:27 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Lorenzo Bianconi X-Patchwork-Id: 10514173 X-Patchwork-Delegate: kvalo@adurom.com Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork.web.codeaurora.org (Postfix) with ESMTP id 994B96032A for ; Mon, 9 Jul 2018 10:20:45 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 848F528915 for ; Mon, 9 Jul 2018 10:20:45 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 7887928A80; Mon, 9 Jul 2018 10:20:45 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-7.9 required=2.0 tests=BAYES_00, MAILING_LIST_MULTI, RCVD_IN_DNSWL_HI autolearn=ham version=3.3.1 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 34C7828915 for ; Mon, 9 Jul 2018 10:20:45 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S932571AbeGIKUn (ORCPT ); Mon, 9 Jul 2018 06:20:43 -0400 Received: from mail-wr1-f66.google.com ([209.85.221.66]:45110 "EHLO mail-wr1-f66.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S932415AbeGIKUm (ORCPT ); Mon, 9 Jul 2018 06:20:42 -0400 Received: by mail-wr1-f66.google.com with SMTP id u7-v6so10376776wrn.12 for ; Mon, 09 Jul 2018 03:20:42 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references; bh=K4b9Shs4wLuP6gSDjC3pXlO7C0UgExiWzvPRrni1m7s=; b=BYnXXetaKOhY6PErHBaqs1cSebvkljISAndT14zqYHguz+x1ESAE4BQvl5NGU6kE3h svZMX/N0HypktBq3dWxDySpnOcPC8agvx/23Zd9TrKlf4hetrggdfi6e2dw5pgPpXfTP GzcN8lErvn8SSFAW16kJDUz78HVfyfOLBOPoR9AEuMzZUHOT/dqyN5I3nHA9vi2QevYi fDUJE5r+uwbOX/BdTgx6SX210m8IHr/NI6ZbC0jRnYhNuOQHarinJF7FSDhj0+eHax7j wFWpw9InPFRd36x9Da9KnHlR/U/Cag14/7N6coY7DxBtDocWcQBaZxH9co2f3bFXybYo yLeA== X-Gm-Message-State: APt69E2Hr6fstbcL5vtUI/gWI2hUbdpxkRpJZLV/p+SVT9u1iiCNFu9y WzbN2dEGSs9x088APmkYdeEa2dxD84c= X-Google-Smtp-Source: AAOMgpcTG10Cs5SNTgWe2Vg6diOPQ01wmo51j+1ySc0XdKMGazDXV0ThDQQ2t3AMNHkUn2WhtvWqBg== X-Received: by 2002:adf:b815:: with SMTP id h21-v6mr14738911wrf.40.1531131641665; Mon, 09 Jul 2018 03:20:41 -0700 (PDT) Received: from localhost.localdomain.com (nat-pool-mxp-t.redhat.com. [149.6.153.186]) by smtp.gmail.com with ESMTPSA id k36-v6sm18764810wrk.93.2018.07.09.03.20.40 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Mon, 09 Jul 2018 03:20:41 -0700 (PDT) From: Lorenzo Bianconi To: kubakici@wp.pl Cc: linux-wireless@vger.kernel.org, dcaratti@redhat.com Subject: [PATCH 2/2] mt7601u: expose 802.11w support Date: Mon, 9 Jul 2018 12:20:27 +0200 Message-Id: X-Mailer: git-send-email 2.17.1 In-Reply-To: References: Sender: linux-wireless-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-wireless@vger.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP From: Davide Caratti Set MFP_CAPABLE bit in hw flag capabilities exported by the driver Signed-off-by: Davide Caratti Signed-off-by: Lorenzo Bianconi --- drivers/net/wireless/mediatek/mt7601u/init.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/net/wireless/mediatek/mt7601u/init.c b/drivers/net/wireless/mediatek/mt7601u/init.c index d3b611aaf061..faea99b7a445 100644 --- a/drivers/net/wireless/mediatek/mt7601u/init.c +++ b/drivers/net/wireless/mediatek/mt7601u/init.c @@ -603,6 +603,7 @@ int mt7601u_register_device(struct mt7601u_dev *dev) ieee80211_hw_set(hw, SUPPORTS_HT_CCK_RATES); ieee80211_hw_set(hw, AMPDU_AGGREGATION); ieee80211_hw_set(hw, SUPPORTS_RC_TABLE); + ieee80211_hw_set(hw, MFP_CAPABLE); hw->max_rates = 1; hw->max_report_rates = 7; hw->max_rate_tries = 1;