Received: by 2002:ac0:aa62:0:0:0:0:0 with SMTP id w31-v6csp2149962ima; Mon, 22 Oct 2018 05:16:28 -0700 (PDT) X-Google-Smtp-Source: ACcGV606147T5XKTYldRjvPEpKLz2rsh4gQp55T3wxXLEuFCZSW1GsxWrsDeM4IpT1VRSSzFkZC2 X-Received: by 2002:a63:26c1:: with SMTP id m184-v6mr20035964pgm.268.1540210587993; Mon, 22 Oct 2018 05:16:27 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1540210587; cv=none; d=google.com; s=arc-20160816; b=lXKdguKD4WOYNyFfX5Hm4aXz9ViM7dJhidtGRHp9oLp3a2T2T8dIuzr8gmnhoc5gkI B0S/ZW10HoK9ImKtP4wm3iN3CViR49ATL2kw5Jpbv/ihfJ0fv3Rr/QlBUg3H4Y3LDnN2 tJeXPm6xGBvX9YUODNBE4GcIzIyfe6byzL71n00aeOvPno49dnP+BXDj32fIE4ORkQP9 KBoQyDNwJWaKvI/RX3mBF1+4kiMhYPXs54TuXXt60ZAbcT+fEreD9i7zvP/Jj1Wi3bYm iVj3u2WROEDbKFuDtKGVaanrDSJfeb6R7DXwFIJivHTqZNdYONU12NHcuV8+yTjha2d2 iT2w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date; bh=Q54hwPtHCw0Fn8y+AAWtGtM0KjgviYVs4HXU/FEdERw=; b=q8kZpsjsI9W7K0mfzC0JDWsz6UvuvFcwLwZ/hP5CK3V7tKaQ4Hx/mNDgW4aZLKX0XL tf0YCCOBpQ/n93mj/Py9N4i7nYWgOZTLqZJmtcLu7vPbbI84NbTIwqFOVy2ZNtA7zvBC TKPVJpAgriTn9VTURRrx16ZrVJuN4q4zrP3w65q8A6q3eu+IATzxR9B9bueo88q4+XP9 0QJIRJiDJcuUDlt4ikEaNuRyZL8oBkuBxhLUfCMvInCoYd+AXKJ2qTavKqZ/9wv+rDfF L8B51tzj4QwulQCXFW4sU1iaPfaeaa1YxWH3TTZYNXYh9iTsV04cXd7cG1ZGXrOH/lyM O7PQ== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id h13-v6si31383796pgp.138.2018.10.22.05.16.12; Mon, 22 Oct 2018 05:16:27 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728891AbeJVUJj (ORCPT + 99 others); Mon, 22 Oct 2018 16:09:39 -0400 Received: from gateway32.websitewelcome.com ([192.185.145.122]:33560 "EHLO gateway32.websitewelcome.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728297AbeJVUJg (ORCPT ); Mon, 22 Oct 2018 16:09:36 -0400 Received: from cm10.websitewelcome.com (cm10.websitewelcome.com [100.42.49.4]) by gateway32.websitewelcome.com (Postfix) with ESMTP id F1FB42534A for ; Mon, 22 Oct 2018 06:51:20 -0500 (CDT) Received: from gator4166.hostgator.com ([108.167.133.22]) by cmsmtp with SMTP id EYjjgCq1FBcCXEYjrgS1r2; Mon, 22 Oct 2018 06:51:20 -0500 X-Authority-Reason: nr=8 Received: from lfbn-1-466-13.w86-245.abo.wanadoo.fr ([86.245.173.13]:41626 helo=embeddedor) by gator4166.hostgator.com with esmtpa (Exim 4.91) (envelope-from ) id 1gEYji-001GtW-3I; Mon, 22 Oct 2018 06:51:06 -0500 Date: Mon, 22 Oct 2018 13:51:03 +0200 From: "Gustavo A. R. Silva" To: linux-kernel@vger.kernel.org Cc: Jes Sorensen , Kalle Valo , linux-wireless@vger.kernel.org, "David S. Miller" , netdev@vger.kernel.org, "Gustavo A. R. Silva" Subject: [PATCH 2/2] rtl8xxxu: Fix missing break in switch Message-ID: References: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.5.24 (2015-08-30) X-AntiAbuse: This header was added to track abuse, please include it with any abuse report X-AntiAbuse: Primary Hostname - gator4166.hostgator.com X-AntiAbuse: Original Domain - vger.kernel.org X-AntiAbuse: Originator/Caller UID/GID - [47 12] / [47 12] X-AntiAbuse: Sender Address Domain - embeddedor.com X-BWhitelist: no X-Source-IP: 86.245.173.13 X-Source-L: No X-Exim-ID: 1gEYji-001GtW-3I X-Source: X-Source-Args: X-Source-Dir: X-Source-Sender: lfbn-1-466-13.w86-245.abo.wanadoo.fr (embeddedor) [86.245.173.13]:41626 X-Source-Auth: gustavo@embeddedor.com X-Email-Count: 13 X-Source-Cap: Z3V6aWRpbmU7Z3V6aWRpbmU7Z2F0b3I0MTY2Lmhvc3RnYXRvci5jb20= X-Local-Domain: yes Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Add missing break statement in order to prevent the code from falling through to the default case. Fixes: 26f1fad29ad9 ("New driver: rtl8xxxu (mac80211)") Signed-off-by: Gustavo A. R. Silva --- drivers/net/wireless/realtek/rtl8xxxu/rtl8xxxu_core.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/net/wireless/realtek/rtl8xxxu/rtl8xxxu_core.c b/drivers/net/wireless/realtek/rtl8xxxu/rtl8xxxu_core.c index c6b0686..2bd4305 100644 --- a/drivers/net/wireless/realtek/rtl8xxxu/rtl8xxxu_core.c +++ b/drivers/net/wireless/realtek/rtl8xxxu/rtl8xxxu_core.c @@ -5692,6 +5692,7 @@ static int rtl8xxxu_set_key(struct ieee80211_hw *hw, enum set_key_cmd cmd, break; case WLAN_CIPHER_SUITE_TKIP: key->flags |= IEEE80211_KEY_FLAG_GENERATE_MMIC; + break; default: return -EOPNOTSUPP; } -- 2.7.4