Received: by 2002:a25:1985:0:0:0:0:0 with SMTP id 127csp920316ybz; Wed, 29 Apr 2020 11:45:04 -0700 (PDT) X-Google-Smtp-Source: APiQypKLzvvMhjusKkApR4tCGrMb+IWbi326i0zbogIoyaHgHQZCJukvYuPJ7vvB1QSqqTfHdZrL X-Received: by 2002:aa7:d892:: with SMTP id u18mr3857172edq.156.1588185904194; Wed, 29 Apr 2020 11:45:04 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1588185904; cv=none; d=google.com; s=arc-20160816; b=Pw+ghpQ40nJPw5a7wC0SquEM23lSQGaAj2GeuuXCRvPEU9lkMSWYcNGyyvlbqlnDvy fAo97j/H8RdCr7qM0YM9vbP3azyjPf8kdD6F0WG12vRo5Uai72sKsZiFFaIM5uaJPef2 n8tq1PGXlbo1QRoI274Yklm2FXwxWpsxxigg+XVfon3cHqvEiFGT64Uty/WdI4WcBIgf wCYi+W2JPG5lHPlnWJH6BT1VZTgFO8qv+xp14wna3Q25Qg+QxirMhis5xZimmZ9gilZH F7VFTxi3dl5ZevrwKREwxv4JfSdB8608CBXygRXlWoW+5+aigJwN5FlrUqYKNHPwQsJQ XINw== 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:mime-version:user-agent:date:message-id:subject :from:cc:to:dkim-signature; bh=RZJHwCxCbQeMsgn1IlnEFNBZsOdeAV4P2O5iQG5bMuA=; b=01bgFPmOBNlHWXs/mlmDuelZKi5EkQ2dbi+meLazTOZ+AzrBQ5hSbnj1JD7YllQWuI EC3y7VwXa3LZpJJ+7aMXlgN2AYDOWmzRzWK8+0mVukZHKZQVKUPOi1DuPt/zJJ/UrYoO 841d8BeYBV6rljtqbEPphHNxcVpeMd+kFaZDRbfBoC8EexF4p5AlTSeCO1vYm5Eid8jg E5JDs57BKmFo14X7w3eYjkizBJ/u54pU6LaDK9NsCfFWReMEzaw1nJA3zrJdNw+paoXa rzKGmg/JK0y5EGbZcRMOwv+tF6QR/JVb7zEtK4a27GjmA5bxCuw5vyeX+RkjUUHcw0uq UFeQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=PhQvfhhT; 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; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id m60si4269863ede.128.2020.04.29.11.44.40; Wed, 29 Apr 2020 11:45:04 -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=pass header.i=@gmail.com header.s=20161025 header.b=PhQvfhhT; 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; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726815AbgD2Sod (ORCPT + 99 others); Wed, 29 Apr 2020 14:44:33 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:45034 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-FAIL-OK-FAIL) by vger.kernel.org with ESMTP id S1726519AbgD2Sod (ORCPT ); Wed, 29 Apr 2020 14:44:33 -0400 Received: from mail-wm1-x344.google.com (mail-wm1-x344.google.com [IPv6:2a00:1450:4864:20::344]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 0A5D7C03C1AE for ; Wed, 29 Apr 2020 11:44:33 -0700 (PDT) Received: by mail-wm1-x344.google.com with SMTP id 188so3187984wmc.2 for ; Wed, 29 Apr 2020 11:44:32 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=to:cc:from:subject:message-id:date:user-agent:mime-version :content-language:content-transfer-encoding; bh=RZJHwCxCbQeMsgn1IlnEFNBZsOdeAV4P2O5iQG5bMuA=; b=PhQvfhhTBuit2cIQdfBfbUwmb2yIAEX01Nl1CF2WtZtE7F6DpcAqHC2JUiADu/IbfB 1WOTJvvvu2srdgC2chlKxfWPRkDQai8wvPZ2j1To64FGhxXlcRXe0Itu8Ey8aWVhk3h4 7pGCkK7NScZQOJlO+I//lZXsLQ2Mkpz2A9PGAXCgXAwAo9b1rFegiNnuskILeKHlYZaR os73e3nPDBzzPR0qZPRjfIa9yG2iorGr1xQJh+dOG5r4oPRvMVKJicy1w0Vn5VCC3uJA 6F5faCGkuMAScXlLXnRciPMrcBCmC7YjcLMEn0M/UwPrAB6FOGn7t0g8XY0r6MvxhwFM Q0WQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:to:cc:from:subject:message-id:date:user-agent :mime-version:content-language:content-transfer-encoding; bh=RZJHwCxCbQeMsgn1IlnEFNBZsOdeAV4P2O5iQG5bMuA=; b=f60D6Ezna9MNYRiKjawo0921RJQ0M/FbMzEDg2Eh/65zAqOWXIw0Y7tIvDpZ6nl9av 6TjmPqWqKs4tiRIwfhGrMnYl/d72Ryn3oIsq9KxkXsmcVkmbdDWuCTtpGRBXPkKs3SfB qg0yEgoG+vmISkwCCUHHM2w3FcquJFuNelMCCwpFttpM2+BNAEykymYuFvOJ6y5SU2Zk l9s32LVogVteaK31KoYVyNk2SuZgCacWzmb94fZpNBV//lFYKJxAlcSJp6WrqLzevTdA DJ5d0ve1cIMc81RoSpV6vcxKBEEBp2L+pZb9iy8WIRONes36aSxwcrYWCG4BTxdCmnv6 GxxA== X-Gm-Message-State: AGi0PubA3XUgraiv7aUe0vudXlQM379DiipExwe+tYW4gBYhsNnB4Rb2 xTr0cSdmzqM5r8dEo4dP0GDhvGMc X-Received: by 2002:a1c:bc05:: with SMTP id m5mr4393934wmf.143.1588185871738; Wed, 29 Apr 2020 11:44:31 -0700 (PDT) Received: from [192.168.43.18] (188.29.164.11.threembb.co.uk. [188.29.164.11]) by smtp.gmail.com with ESMTPSA id p7sm183561wrf.31.2020.04.29.11.44.30 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Wed, 29 Apr 2020 11:44:31 -0700 (PDT) To: Greg Kroah-Hartman Cc: "devel@driverdev.osuosl.org" , linux-wireless@vger.kernel.org, Oscar Carter From: Malcolm Priestley Subject: [PATCH 2/3] staging: vt6656 remove vnt_mac_disable_keyentry calls Message-ID: <844df68d-08e2-7672-524f-42b918e300c1@gmail.com> Date: Wed, 29 Apr 2020 19:44:29 +0100 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:68.0) Gecko/20100101 Thunderbird/68.7.0 MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 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 It is not necessary to disable all the keys mac80211 will have removed any existing keys that were used. Signed-off-by: Malcolm Priestley --- drivers/staging/vt6656/key.c | 10 +--------- 1 file changed, 1 insertion(+), 9 deletions(-) diff --git a/drivers/staging/vt6656/key.c b/drivers/staging/vt6656/key.c index 47338077c033..de54cc3ff95a 100644 --- a/drivers/staging/vt6656/key.c +++ b/drivers/staging/vt6656/key.c @@ -102,22 +102,14 @@ int vnt_set_keys(struct ieee80211_hw *hw, struct ieee80211_sta *sta, struct vnt_private *priv = hw->priv; u8 *mac_addr = NULL; u8 key_dec_mode = 0; - int ret = 0, u; + int ret = 0; if (sta) mac_addr = &sta->addr[0]; switch (key->cipher) { - case 0: - for (u = 0 ; u < MAX_KEY_TABLE; u++) - vnt_mac_disable_keyentry(priv, u); - return ret; - case WLAN_CIPHER_SUITE_WEP40: case WLAN_CIPHER_SUITE_WEP104: - for (u = 0; u < MAX_KEY_TABLE; u++) - vnt_mac_disable_keyentry(priv, u); - vnt_set_keymode(hw, mac_addr, key, VNT_KEY_DEFAULTKEY, KEY_CTL_WEP); -- 2.25.1