Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

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

Signed-off-by: Jes Sorensen <Jes.Sorensen@redhat.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>

authored by

Jes Sorensen and committed by
Greg Kroah-Hartman
2bd3b4fb d4fc0213

-14
-13
drivers/staging/rtl8723au/core/rtw_cmd.c
··· 464 464 int rtw_joinbss_cmd23a(struct rtw_adapter *padapter, 465 465 struct wlan_network *pnetwork) 466 466 { 467 - u8 *auth; 468 467 int res = _SUCCESS; 469 468 struct wlan_bssid_ex *psecnetwork; 470 469 struct cmd_obj *pcmd; ··· 530 531 531 532 memcpy(psecnetwork, &pnetwork->network, 532 533 get_wlan_bssid_ex_sz(&pnetwork->network)); 533 - 534 - auth = &psecuritypriv->authenticator_ie[0]; 535 - psecuritypriv->authenticator_ie[0] = 536 - (unsigned char)psecnetwork->IELength; 537 - 538 - if ((psecnetwork->IELength-12) < (256-1)) { 539 - memcpy(&psecuritypriv->authenticator_ie[1], 540 - &psecnetwork->IEs[12], psecnetwork->IELength - 12); 541 - } else { 542 - memcpy(&psecuritypriv->authenticator_ie[1], 543 - &psecnetwork->IEs[12], 256 - 1); 544 - } 545 534 546 535 psecnetwork->IELength = 0; 547 536 /* Added by Albert 2009/02/18 */
-1
drivers/staging/rtl8723au/include/rtw_security.h
··· 145 145 u8 assoc_info[600]; 146 146 u8 szofcapability[256]; /* for wpa2 usage */ 147 147 u8 oidassociation[512]; /* for wpa/wpa2 usage */ 148 - u8 authenticator_ie[256]; /* store ap security information element */ 149 148 u8 supplicant_ie[256]; /* store sta security information element */ 150 149 151 150 /* for tkip countermeasure */