Remove wrapper for memset()

Link: 545d963a9e (diff-16d649c4743131c1aae5f812af5596dae6423bb63eaaf2990b8c89c9a681a913)
This commit is contained in:
Carlos Garcés
2021-10-11 12:07:17 +02:00
parent 76f68bbfcf
commit cf246719f1
58 changed files with 621 additions and 642 deletions

View File

@@ -328,7 +328,7 @@ static u8 *build_wlan_hdr(_adapter *padapter, struct xmit_frame *pmgntframe,
pattr = &pmgntframe->attrib;
update_mgntframe_attrib(padapter, pattr);
_rtw_memset(pmgntframe->buf_addr, 0, WLANHDR_OFFSET + TXDESC_OFFSET);
memset(pmgntframe->buf_addr, 0, WLANHDR_OFFSET + TXDESC_OFFSET);
pframe = (u8 *)(pmgntframe->buf_addr) + TXDESC_OFFSET;
pwlanhdr = (struct rtw_ieee80211_hdr *)pframe;
@@ -455,7 +455,7 @@ int rm_sitesurvey(struct rm_obj *prm)
pch_set = &prm->q.ch_set[0];
_rtw_memset(pch_set, 0,
memset(pch_set, 0,
sizeof(struct rtw_ieee80211_channel) * MAX_OP_CHANNEL_SET_NUM);
if (prm->q.ch_num == 0) {
@@ -474,7 +474,7 @@ int rm_sitesurvey(struct rm_obj *prm)
meas_ch_num = rm_get_ch_set(pch_set, op_class, ch_num);
prm->q.ch_set_ch_amount = meas_ch_num;
_rtw_memset(&parm, 0, sizeof(struct sitesurvey_parm));
memset(&parm, 0, sizeof(struct sitesurvey_parm));
_rtw_memcpy(parm.ch, pch_set,
sizeof(struct rtw_ieee80211_channel) * MAX_OP_CHANNEL_SET_NUM);
@@ -1488,7 +1488,7 @@ static int retrieve_scan_result(struct rm_obj *prm)
MAC_ARG(pbss->MacAddress));
len = 0;
_rtw_memset(tmp_buf, 0, MAX_XMIT_EXTBUF_SZ);
memset(tmp_buf, 0, MAX_XMIT_EXTBUF_SZ);
rm_gen_bcn_rep_ie(prm, tmp_buf, pnetwork, &len);
new_packet:
if (my_len == 0) {