Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S944188AbcJSPFp (ORCPT ); Wed, 19 Oct 2016 11:05:45 -0400 Received: from mail-lf0-f67.google.com ([209.85.215.67]:33904 "EHLO mail-lf0-f67.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S944067AbcJSPF2 (ORCPT ); Wed, 19 Oct 2016 11:05:28 -0400 From: Ivan Safonov To: Greg Kroah-Hartman , Bhaktipriya Shridhar , Andy Shevchenko , Geliang Tang , devel@driverdev.osuosl.org, linux-kernel@vger.kernel.org Cc: insafonov@gmail.com Subject: [PATCH 34/37] staging:r8188eu: remove update_bcn member of mlme_priv structure Date: Wed, 19 Oct 2016 22:08:02 +0700 Message-Id: <1476889685-7367-34-git-send-email-insafonov@gmail.com> X-Mailer: git-send-email 2.7.3 In-Reply-To: <1476889685-7367-1-git-send-email-insafonov@gmail.com> References: <1476889685-7367-1-git-send-email-insafonov@gmail.com> Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 2677 Lines: 77 Value of this member does not used. Signed-off-by: Ivan Safonov --- drivers/staging/rtl8188eu/core/rtw_ap.c | 7 ------- drivers/staging/rtl8188eu/core/rtw_mlme_ext.c | 1 - drivers/staging/rtl8188eu/include/rtw_mlme.h | 1 - 3 files changed, 9 deletions(-) diff --git a/drivers/staging/rtl8188eu/core/rtw_ap.c b/drivers/staging/rtl8188eu/core/rtw_ap.c index fe1ba9e..90b88f3 100644 --- a/drivers/staging/rtl8188eu/core/rtw_ap.c +++ b/drivers/staging/rtl8188eu/core/rtw_ap.c @@ -43,11 +43,9 @@ void free_mlme_ap_info(struct adapter *padapter) { struct sta_info *psta = NULL; struct sta_priv *pstapriv = &padapter->stapriv; - struct mlme_priv *pmlmepriv = &(padapter->mlmepriv); struct mlme_ext_priv *pmlmeext = &padapter->mlmeextpriv; struct mlme_ext_info *pmlmeinfo = &(pmlmeext->mlmext_info); - pmlmepriv->update_bcn = false; pmlmeext->bstart_bss = false; rtw_sta_flush(padapter); @@ -1360,8 +1358,6 @@ void update_beacon(struct adapter *padapter, u8 ie_id, u8 *oui, u8 tx) break; } - pmlmepriv->update_bcn = true; - spin_unlock_bh(&pmlmepriv->bcn_update_lock); if (tx) @@ -1800,8 +1796,6 @@ void start_ap_mode(struct adapter *padapter) struct mlme_ext_priv *pmlmeext = &padapter->mlmeextpriv; struct wlan_acl_pool *pacl_list = &pstapriv->acl_list; - pmlmepriv->update_bcn = false; - pmlmeext->bstart_bss = false; pmlmepriv->num_sta_non_erp = 0; @@ -1848,7 +1842,6 @@ void stop_ap_mode(struct adapter *padapter) struct wlan_acl_pool *pacl_list = &pstapriv->acl_list; struct __queue *pacl_node_q = &pacl_list->acl_node_q; - pmlmepriv->update_bcn = false; pmlmeext->bstart_bss = false; /* reset and init security priv , this can refine with rtw_reset_securitypriv */ diff --git a/drivers/staging/rtl8188eu/core/rtw_mlme_ext.c b/drivers/staging/rtl8188eu/core/rtw_mlme_ext.c index 08bb61d..243e9df 100644 --- a/drivers/staging/rtl8188eu/core/rtw_mlme_ext.c +++ b/drivers/staging/rtl8188eu/core/rtw_mlme_ext.c @@ -439,7 +439,6 @@ static void issue_beacon(struct adapter *padapter, int timeout_ms) _issue_bcn: #if defined(CONFIG_88EU_AP_MODE) - pmlmepriv->update_bcn = false; spin_unlock_bh(&pmlmepriv->bcn_update_lock); #endif /* if defined (CONFIG_88EU_AP_MODE) */ diff --git a/drivers/staging/rtl8188eu/include/rtw_mlme.h b/drivers/staging/rtl8188eu/include/rtw_mlme.h index e1e46ce..47a3f2d 100644 --- a/drivers/staging/rtl8188eu/include/rtw_mlme.h +++ b/drivers/staging/rtl8188eu/include/rtw_mlme.h @@ -375,7 +375,6 @@ struct mlme_priv { u32 wps_assoc_resp_ie_len; spinlock_t bcn_update_lock; - u8 update_bcn; #endif /* if defined (CONFIG_88EU_AP_MODE) */ }; -- 2.7.3