mirror of
https://github.com/lwfinger/rtl8188eu.git
synced 2024-11-15 01:19:36 +00:00
rtl8188eu: Fix uninitialized variable in auth seq=2 packet
An unintialized value for a temporary little-endian variable can cause some clients to fail to connect to AP. Reported-by: pepa-cz. Signed-off-by: Larry Finger <Larry.Finger@lwfinger.net>
This commit is contained in:
parent
bae8932732
commit
fca9048241
1 changed files with 2 additions and 3 deletions
|
@ -8176,12 +8176,11 @@ void issue_auth(_adapter *padapter, struct sta_info *psta, unsigned short status
|
|||
/* setting auth algo number */
|
||||
val16 = (u16)psta->authalg;
|
||||
|
||||
if (status != _STATS_SUCCESSFUL_)
|
||||
le_val16 = 0;
|
||||
|
||||
if (val16) {
|
||||
le_val16 = cpu_to_le16(val16);
|
||||
use_shared_key = 1;
|
||||
} else {
|
||||
le_val16 = 0;
|
||||
}
|
||||
|
||||
pframe = rtw_set_fixed_ie(pframe, _AUTH_ALGM_NUM_, (unsigned char *)&le_val16, &(pattrib->pktlen));
|
||||
|
|
Loading…
Reference in a new issue