From patchwork Mon Dec 29 02:22:16 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Matthew Emerson X-Patchwork-Id: 5547601 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.29.136]) by patchwork2.web.kernel.org (Postfix) with ESMTP id 0F5F8BF6C3 for ; Mon, 29 Dec 2014 02:22:49 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 3BD272011E for ; Mon, 29 Dec 2014 02:22:48 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 6CDD42011D for ; Mon, 29 Dec 2014 02:22:47 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751827AbaL2CWc (ORCPT ); Sun, 28 Dec 2014 21:22:32 -0500 Received: from mail-qg0-f54.google.com ([209.85.192.54]:39535 "EHLO mail-qg0-f54.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751607AbaL2CWb (ORCPT ); Sun, 28 Dec 2014 21:22:31 -0500 Received: by mail-qg0-f54.google.com with SMTP id l89so9043207qgf.27; Sun, 28 Dec 2014 18:22:30 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=from:to:cc:subject:date:message-id; bh=2zJmY9iXwT8+RoCEFK7MrtE+F1PoQz5y5PrrHozlIk8=; b=HOKp1BkbeiocmhoPQ20lHUEdXtXlsQLJUgvipuFy+DiPT692fgaxNDMaJKIa2ZMyvO urU9dkh47U5ukOE1yDRn+1P5h+9yunxkMy3++FI1MvxKvToG2XM/vLE21Asp28HmltLn nnxQQ3nQAaXhZfakdORPUmkSbQ4J+m6vbZ4gmV/5s+DhqM6AITeaGoWtNCMSsNFj5ma+ slbHeqrzedxeMof6IvL0w+zzraYa0ewfURmUPuoH1+GttimGwOZAJzSm6Fx5hNBQjvb5 gQaJfBf1pJP24SGo/g2Q9iYGWr91VxMMU1aGDp0DLVoA/jETQW1Owf5DEdL5y4EBOuRX Pz0g== X-Received: by 10.224.41.10 with SMTP id m10mr10069472qae.47.1419819750387; Sun, 28 Dec 2014 18:22:30 -0800 (PST) Received: from xylite-gentoo.homenetwork ([73.173.35.50]) by mx.google.com with ESMTPSA id d5sm32552893qai.40.2014.12.28.18.22.29 (version=TLSv1.2 cipher=AES128-GCM-SHA256 bits=128/128); Sun, 28 Dec 2014 18:22:29 -0800 (PST) From: Matthew Emerson To: Larry.Finger@lwfinger.net, Jes.Sorensen@redhat.com, gregkh@linuxfoundation.org Cc: linux-wireless@vger.kernel.org, devel@driverdev.osuosl.org, linux-kernel@vger.kernel.org, Matthew Emerson Subject: [PATCH] staging: rtl8723au: changes stop ap mode to use reset function Date: Sun, 28 Dec 2014 21:22:16 -0500 Message-Id: <1419819736-4861-1-git-send-email-emersonmde@gmail.com> X-Mailer: git-send-email 2.0.5 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.8 required=5.0 tests=BAYES_00, DKIM_ADSP_CUSTOM_MED, DKIM_SIGNED, FREEMAIL_FROM, RCVD_IN_DNSWL_HI, T_DKIM_INVALID, T_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 Changes stop_ap_mode23a() to use rtw_reset_securitypriv23a. This makes the code cleaner and fixes two checkpatch.pl errors, one line over 80 characters, and one spacing issue. Signed-off-by: Matthew Emerson --- drivers/staging/rtl8723au/core/rtw_ap.c | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/drivers/staging/rtl8723au/core/rtw_ap.c b/drivers/staging/rtl8723au/core/rtw_ap.c index e394d12c36b0..510ee212496f 100644 --- a/drivers/staging/rtl8723au/core/rtw_ap.c +++ b/drivers/staging/rtl8723au/core/rtw_ap.c @@ -1870,10 +1870,8 @@ void stop_ap_mode23a(struct rtw_adapter *padapter) pmlmepriv->update_bcn = false; pmlmeext->bstart_bss = false; - /* reset and init security priv , this can refine with rtw_reset_securitypriv23a */ - memset((unsigned char *)&padapter->securitypriv, 0, sizeof (struct security_priv)); - padapter->securitypriv.ndisauthtype = Ndis802_11AuthModeOpen; - padapter->securitypriv.ndisencryptstatus = Ndis802_11WEPDisabled; + /* reset and init security priv */ + rtw_reset_securitypriv23a(padapter); /* for ACL */ spin_lock_bh(&pacl_node_q->lock);