Commit 2bd3b4fb authored by Jes Sorensen's avatar Jes Sorensen Committed by Greg Kroah-Hartman

staging: rtl8723au: Remove write-only struct security_priv->authenticator_ie

Signed-off-by: default avatarJes Sorensen <Jes.Sorensen@redhat.com>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent d4fc0213
...@@ -464,7 +464,6 @@ int rtw_createbss_cmd23a(struct rtw_adapter *padapter) ...@@ -464,7 +464,6 @@ int rtw_createbss_cmd23a(struct rtw_adapter *padapter)
int rtw_joinbss_cmd23a(struct rtw_adapter *padapter, int rtw_joinbss_cmd23a(struct rtw_adapter *padapter,
struct wlan_network *pnetwork) struct wlan_network *pnetwork)
{ {
u8 *auth;
int res = _SUCCESS; int res = _SUCCESS;
struct wlan_bssid_ex *psecnetwork; struct wlan_bssid_ex *psecnetwork;
struct cmd_obj *pcmd; struct cmd_obj *pcmd;
...@@ -532,18 +531,6 @@ int rtw_joinbss_cmd23a(struct rtw_adapter *padapter, ...@@ -532,18 +531,6 @@ int rtw_joinbss_cmd23a(struct rtw_adapter *padapter,
memcpy(psecnetwork, &pnetwork->network, memcpy(psecnetwork, &pnetwork->network,
get_wlan_bssid_ex_sz(&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; psecnetwork->IELength = 0;
/* Added by Albert 2009/02/18 */ /* Added by Albert 2009/02/18 */
/* If the the driver wants to use the bssid to create the /* If the the driver wants to use the bssid to create the
......
...@@ -145,7 +145,6 @@ struct security_priv { ...@@ -145,7 +145,6 @@ struct security_priv {
u8 assoc_info[600]; u8 assoc_info[600];
u8 szofcapability[256]; /* for wpa2 usage */ u8 szofcapability[256]; /* for wpa2 usage */
u8 oidassociation[512]; /* for wpa/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 */ u8 supplicant_ie[256]; /* store sta security information element */
/* for tkip countermeasure */ /* for tkip countermeasure */
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment