rtl8188eu: Replace wrapper for memset

Signed-off-by: Larry Finger <Larry.Finger@lwfinger.net>
This commit is contained in:
Larry Finger 2015-02-19 14:58:09 -06:00
parent 529328fd3d
commit 9b5b5c4e12
32 changed files with 292 additions and 298 deletions

View file

@ -729,7 +729,7 @@ void update_bmc_sta(struct adapter *padapter)
psta->ieee8021x_blocked = 0;
_rtw_memset((void*)&psta->sta_stats, 0, sizeof(struct stainfo_stats));
memset((void*)&psta->sta_stats, 0, sizeof(struct stainfo_stats));
//psta->dot118021XPrivacy = _NO_PRIVACY_;//!!! remove it, because it has been set before this.
@ -891,7 +891,7 @@ void update_sta_info_apmode(struct adapter *padapter, struct sta_info *psta)
//todo: init other variables
_rtw_memset((void*)&psta->sta_stats, 0, sizeof(struct stainfo_stats));
memset((void*)&psta->sta_stats, 0, sizeof(struct stainfo_stats));
//add ratid
@ -1169,7 +1169,7 @@ int rtw_check_beacon_data(struct adapter *padapter, u8 *pbuf, int len)
pbss_network->IELength = len;
_rtw_memset(ie, 0, MAX_IE_SZ);
memset(ie, 0, MAX_IE_SZ);
memcpy(ie, pbuf, pbss_network->IELength);
@ -1195,7 +1195,7 @@ int rtw_check_beacon_data(struct adapter *padapter, u8 *pbuf, int len)
p = rtw_get_ie(ie + _BEACON_IE_OFFSET_, _SSID_IE_, &ie_len, (pbss_network->IELength -_BEACON_IE_OFFSET_));
if(p && ie_len>0)
{
_rtw_memset(&pbss_network->Ssid, 0, sizeof(NDIS_802_11_SSID));
memset(&pbss_network->Ssid, 0, sizeof(NDIS_802_11_SSID));
memcpy(pbss_network->Ssid.Ssid, (p + 2), ie_len);
pbss_network->Ssid.SsidLength = ie_len;
}
@ -1210,7 +1210,7 @@ int rtw_check_beacon_data(struct adapter *padapter, u8 *pbuf, int len)
pbss_network->Configuration.DSConfig = channel;
_rtw_memset(supportRate, 0, NDIS_802_11_LENGTH_RATES_EX);
memset(supportRate, 0, NDIS_802_11_LENGTH_RATES_EX);
// get supported rates
p = rtw_get_ie(ie + _BEACON_IE_OFFSET_, _SUPPORTEDRATES_IE_, &ie_len, (pbss_network->IELength - _BEACON_IE_OFFSET_));
if (p != NULL)
@ -2528,7 +2528,7 @@ void stop_ap_mode(struct adapter *padapter)
//_rtw_spinlock_free(&pmlmepriv->bcn_update_lock);
//reset and init security priv , this can refine with rtw_reset_securitypriv
_rtw_memset((unsigned char *)&padapter->securitypriv, 0, sizeof (struct security_priv));
memset((unsigned char *)&padapter->securitypriv, 0, sizeof (struct security_priv));
padapter->securitypriv.ndisauthtype = Ndis802_11AuthModeOpen;
padapter->securitypriv.ndisencryptstatus = Ndis802_11WEPDisabled;