mirror of
https://github.com/aircrack-ng/rtl8812au.git
synced 2024-11-25 14:44:09 +00:00
Fix uninitialized variable in auth seq=2 packet
This commit is contained in:
parent
9309154d5c
commit
2a9b86973d
@ -8270,13 +8270,11 @@ void issue_auth(_adapter *padapter, struct sta_info *psta, unsigned short status
|
|||||||
/* setting auth algo number */
|
/* setting auth algo number */
|
||||||
val16 = (u16)psta->authalg;
|
val16 = (u16)psta->authalg;
|
||||||
|
|
||||||
if (status != _STATS_SUCCESSFUL_)
|
|
||||||
val16 = 0;
|
|
||||||
|
|
||||||
if (val16) {
|
if (val16) {
|
||||||
val16 = cpu_to_le16(val16);
|
val16 = cpu_to_le16(val16);
|
||||||
use_shared_key = 1;
|
use_shared_key = 1;
|
||||||
}
|
} else {
|
||||||
|
le_val16 = 0;
|
||||||
|
|
||||||
pframe = rtw_set_fixed_ie(pframe, _AUTH_ALGM_NUM_, (unsigned char *)&val16, &(pattrib->pktlen));
|
pframe = rtw_set_fixed_ie(pframe, _AUTH_ALGM_NUM_, (unsigned char *)&val16, &(pattrib->pktlen));
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user