staging: rtl8723au: Remove write-only struct security_priv->authenticator_ie
authorJes Sorensen <Jes.Sorensen@redhat.com>
Sat, 21 Jun 2014 14:50:14 +0000 (16:50 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sat, 21 Jun 2014 20:08:37 +0000 (13:08 -0700)
Signed-off-by: Jes Sorensen <Jes.Sorensen@redhat.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/rtl8723au/core/rtw_cmd.c
drivers/staging/rtl8723au/include/rtw_security.h

index 1696cb8b17cb258e1935186626b86cf8219960d0..35f879eaa66587d91cd1692ed7c5594f675bcaa8 100644 (file)
@@ -464,7 +464,6 @@ exit:
 int rtw_joinbss_cmd23a(struct rtw_adapter *padapter,
                       struct wlan_network *pnetwork)
 {
-       u8 *auth;
        int res = _SUCCESS;
        struct wlan_bssid_ex *psecnetwork;
        struct cmd_obj *pcmd;
@@ -532,18 +531,6 @@ int rtw_joinbss_cmd23a(struct rtw_adapter *padapter,
        memcpy(psecnetwork, &pnetwork->network,
               get_wlan_bssid_ex_sz(&pnetwork->network));
 
-       auth = &psecuritypriv->authenticator_ie[0];
-       psecuritypriv->authenticator_ie[0] =
-               (unsigned char)psecnetwork->IELength;
-
-       if ((psecnetwork->IELength-12) < (256-1)) {
-               memcpy(&psecuritypriv->authenticator_ie[1],
-                      &psecnetwork->IEs[12], psecnetwork->IELength - 12);
-       } else {
-               memcpy(&psecuritypriv->authenticator_ie[1],
-                      &psecnetwork->IEs[12], 256 - 1);
-       }
-
        psecnetwork->IELength = 0;
        /*  Added by Albert 2009/02/18 */
        /*  If the the driver wants to use the bssid to create the
index 8b8433365e32d0e6e88306d27b88da7ac23ec3fd..8ed7b2fd6d1398b3111f52d4bf585dccade97b1b 100644 (file)
@@ -145,7 +145,6 @@ struct security_priv {
        u8 assoc_info[600];
        u8 szofcapability[256]; /* for wpa2 usage */
        u8 oidassociation[512]; /* for wpa/wpa2 usage */
-       u8 authenticator_ie[256];  /* store ap security information element */
        u8 supplicant_ie[256];  /* store sta security information element */
 
        /* for tkip countermeasure */