mirror of
https://github.com/drygdryg/rtl8188eus.git
synced 2025-04-29 02:37:16 +09:00
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.
This commit is contained in:
parent
7eb1cddab5
commit
c7cba7bd00
@ -8999,12 +8999,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_)
|
||||
val16 = 0;
|
||||
|
||||
if (val16) {
|
||||
val16 = cpu_to_le16(val16);
|
||||
use_shared_key = 1;
|
||||
} else {
|
||||
le_val16 = 0;
|
||||
}
|
||||
|
||||
pframe = rtw_set_fixed_ie(pframe, _AUTH_ALGM_NUM_, (unsigned char *)&val16, &(pattrib->pktlen));
|
||||
|
Loading…
x
Reference in New Issue
Block a user