From 2807ab23652c3b6e65bd24025fa9cfe9ae6bba4f Mon Sep 17 00:00:00 2001 From: kimocoder Date: Fri, 29 Mar 2019 01:33:48 +0100 Subject: [PATCH] More cleanup around testchip --- core/rtw_mlme_ext.c | 3 ++- core/rtw_recv.c | 3 --- 2 files changed, 2 insertions(+), 4 deletions(-) diff --git a/core/rtw_mlme_ext.c b/core/rtw_mlme_ext.c index 31a6b2a..c6abf49 100644 --- a/core/rtw_mlme_ext.c +++ b/core/rtw_mlme_ext.c @@ -8274,7 +8274,8 @@ void issue_auth(_adapter *padapter, struct sta_info *psta, unsigned short status val16 = cpu_to_le16(val16); use_shared_key = 1; } else { - le_val16 = 0; + val16 = 0; + } pframe = rtw_set_fixed_ie(pframe, _AUTH_ALGM_NUM_, (unsigned char *)&val16, &(pattrib->pktlen)); diff --git a/core/rtw_recv.c b/core/rtw_recv.c index 976149e..bb4f2a2 100644 --- a/core/rtw_recv.c +++ b/core/rtw_recv.c @@ -697,7 +697,6 @@ union recv_frame *decryptor(_adapter *padapter, union recv_frame *precv_frame) } /* ###set the security information in the recv_frame */ -union recv_frame *portctrl(_adapter *adapter, union recv_frame *precv_frame); union recv_frame *portctrl(_adapter *adapter, union recv_frame *precv_frame) { u8 *psta_addr = NULL; @@ -2531,7 +2530,6 @@ static void recvframe_expand_pkt( #endif /* perform defrag */ -union recv_frame *recvframe_defrag(_adapter *adapter, _queue *defrag_q); union recv_frame *recvframe_defrag(_adapter *adapter, _queue *defrag_q) { _list *plist, *phead; @@ -2541,7 +2539,6 @@ union recv_frame *recvframe_defrag(_adapter *adapter, _queue *defrag_q) union recv_frame *prframe, *pnextrframe; _queue *pfree_recv_queue; - curfragnum = 0; pfree_recv_queue = &adapter->recvpriv.free_recv_queue;