mirror of
https://github.com/Mange/rtl8192eu-linux-driver
synced 2024-11-25 06:55:05 +00:00
Remove wrapper for memset()
Link: 545d963a9e (diff-16d649c4743131c1aae5f812af5596dae6423bb63eaaf2990b8c89c9a681a913)
This commit is contained in:
parent
76f68bbfcf
commit
cf246719f1
@ -635,8 +635,8 @@ void rtw_efuse_analyze(PADAPTER padapter, u8 Type, u8 Fake)
|
|||||||
EFUSE_GetEfuseDefinition(padapter, efuseType, TYPE_EFUSE_CONTENT_LEN_BANK, (PVOID)&efuse_max, bPseudoTest);
|
EFUSE_GetEfuseDefinition(padapter, efuseType, TYPE_EFUSE_CONTENT_LEN_BANK, (PVOID)&efuse_max, bPseudoTest);
|
||||||
EFUSE_GetEfuseDefinition(padapter, EFUSE_WIFI, TYPE_EFUSE_REAL_CONTENT_LEN, (PVOID)&maprawlen, _FALSE);
|
EFUSE_GetEfuseDefinition(padapter, EFUSE_WIFI, TYPE_EFUSE_REAL_CONTENT_LEN, (PVOID)&maprawlen, _FALSE);
|
||||||
|
|
||||||
_rtw_memset(eFuseWord, 0xff, EFUSE_MAX_SECTION_NUM * (EFUSE_MAX_WORD_UNIT * 2));
|
memset(eFuseWord, 0xff, EFUSE_MAX_SECTION_NUM * (EFUSE_MAX_WORD_UNIT * 2));
|
||||||
_rtw_memset(pEfuseHal->fakeEfuseInitMap, 0xff, EFUSE_MAX_MAP_LEN);
|
memset(pEfuseHal->fakeEfuseInitMap, 0xff, EFUSE_MAX_MAP_LEN);
|
||||||
|
|
||||||
if (IS_HARDWARE_TYPE_8821(padapter))
|
if (IS_HARDWARE_TYPE_8821(padapter))
|
||||||
endBank = 3 - 1;/*EFUSE_MAX_BANK_8821A - 1;*/
|
endBank = 3 - 1;/*EFUSE_MAX_BANK_8821A - 1;*/
|
||||||
@ -688,7 +688,7 @@ void rtw_efuse_analyze(PADAPTER padapter, u8 Type, u8 Fake)
|
|||||||
wden = (efuseHeader & 0x0f);
|
wden = (efuseHeader & 0x0f);
|
||||||
}
|
}
|
||||||
|
|
||||||
_rtw_memset(efuseData, '\0', EFUSE_MAX_WORD_UNIT * 2);
|
memset(efuseData, '\0', EFUSE_MAX_WORD_UNIT * 2);
|
||||||
dataCnt = 0;
|
dataCnt = 0;
|
||||||
|
|
||||||
if (offset < max_section) {
|
if (offset < max_section) {
|
||||||
@ -1161,7 +1161,7 @@ u8 rtw_efuse_map_write(PADAPTER adapter, u16 addr, u16 cnts, u8 *data)
|
|||||||
} else
|
} else
|
||||||
err = rtw_halmac_write_logical_efuse_map(d, efuse, size, NULL, 0);
|
err = rtw_halmac_write_logical_efuse_map(d, efuse, size, NULL, 0);
|
||||||
} else {
|
} else {
|
||||||
_rtw_memset(mask_buf, 0xFF, sizeof(mask_buf));
|
memset(mask_buf, 0xFF, sizeof(mask_buf));
|
||||||
RTW_INFO("Efuse mask off\n");
|
RTW_INFO("Efuse mask off\n");
|
||||||
err = rtw_halmac_write_logical_efuse_map(d, efuse, size, mask_buf, size/16);
|
err = rtw_halmac_write_logical_efuse_map(d, efuse, size, mask_buf, size/16);
|
||||||
}
|
}
|
||||||
@ -1305,8 +1305,8 @@ VOID hal_ReadEFuse_BT_logic_map(
|
|||||||
}
|
}
|
||||||
|
|
||||||
/* 0xff will be efuse default value instead of 0x00. */
|
/* 0xff will be efuse default value instead of 0x00. */
|
||||||
_rtw_memset(efuseTbl, 0xFF, EFUSE_BT_MAP_LEN);
|
memset(efuseTbl, 0xFF, EFUSE_BT_MAP_LEN);
|
||||||
_rtw_memset(phyefuse, 0xFF, EFUSE_BT_REAL_CONTENT_LEN);
|
memset(phyefuse, 0xFF, EFUSE_BT_REAL_CONTENT_LEN);
|
||||||
|
|
||||||
if (rtw_efuse_bt_access(padapter, _FALSE, 0, EFUSE_BT_REAL_CONTENT_LEN, phyefuse))
|
if (rtw_efuse_bt_access(padapter, _FALSE, 0, EFUSE_BT_REAL_CONTENT_LEN, phyefuse))
|
||||||
dump_buf(phyefuse, EFUSE_BT_REAL_BANK_CONTENT_LEN);
|
dump_buf(phyefuse, EFUSE_BT_REAL_BANK_CONTENT_LEN);
|
||||||
@ -1588,7 +1588,7 @@ Hal_EfuseWordEnableDataWrite(
|
|||||||
|
|
||||||
|
|
||||||
/* RTW_INFO("%s: efuse_addr=%#x word_en=%#x\n", __FUNCTION__, efuse_addr, word_en); */
|
/* RTW_INFO("%s: efuse_addr=%#x word_en=%#x\n", __FUNCTION__, efuse_addr, word_en); */
|
||||||
_rtw_memset(tmpdata, 0xFF, PGPKT_DATA_SIZE);
|
memset(tmpdata, 0xFF, PGPKT_DATA_SIZE);
|
||||||
|
|
||||||
if (!(word_en & BIT(0))) {
|
if (!(word_en & BIT(0))) {
|
||||||
tmpaddr = start_addr;
|
tmpaddr = start_addr;
|
||||||
@ -1638,7 +1638,7 @@ hal_EfuseConstructPGPkt(
|
|||||||
u8 *pData,
|
u8 *pData,
|
||||||
PPGPKT_STRUCT pTargetPkt)
|
PPGPKT_STRUCT pTargetPkt)
|
||||||
{
|
{
|
||||||
_rtw_memset(pTargetPkt->data, 0xFF, PGPKT_DATA_SIZE);
|
memset(pTargetPkt->data, 0xFF, PGPKT_DATA_SIZE);
|
||||||
pTargetPkt->offset = offset;
|
pTargetPkt->offset = offset;
|
||||||
pTargetPkt->word_en = word_en;
|
pTargetPkt->word_en = word_en;
|
||||||
efuse_WordEnableDataRead(word_en, pData, pTargetPkt->data);
|
efuse_WordEnableDataRead(word_en, pData, pTargetPkt->data);
|
||||||
@ -2414,7 +2414,7 @@ u8 rtw_efuse_map_write(PADAPTER padapter, u16 addr, u16 cnts, u8 *data)
|
|||||||
return _FAIL;
|
return _FAIL;
|
||||||
}
|
}
|
||||||
|
|
||||||
_rtw_memset(map, 0xFF, mapLen);
|
memset(map, 0xFF, mapLen);
|
||||||
|
|
||||||
ret = rtw_efuse_map_read(padapter, 0, mapLen, map);
|
ret = rtw_efuse_map_read(padapter, 0, mapLen, map);
|
||||||
if (ret == _FAIL)
|
if (ret == _FAIL)
|
||||||
@ -2934,7 +2934,7 @@ void EFUSE_ShadowMapUpdate(
|
|||||||
mapLen = EEPROM_MAX_SIZE;
|
mapLen = EEPROM_MAX_SIZE;
|
||||||
efuse_map = pHalData->efuse_eeprom_data;
|
efuse_map = pHalData->efuse_eeprom_data;
|
||||||
/* efuse default content is 0xFF */
|
/* efuse default content is 0xFF */
|
||||||
_rtw_memset(efuse_map, 0xFF, EEPROM_MAX_SIZE);
|
memset(efuse_map, 0xFF, EEPROM_MAX_SIZE);
|
||||||
|
|
||||||
EFUSE_GetEfuseDefinition(pAdapter, efuseType, TYPE_EFUSE_MAP_LEN, (PVOID)&mapLen, bPseudoTest);
|
EFUSE_GetEfuseDefinition(pAdapter, efuseType, TYPE_EFUSE_MAP_LEN, (PVOID)&mapLen, bPseudoTest);
|
||||||
if (!mapLen) {
|
if (!mapLen) {
|
||||||
@ -2956,7 +2956,7 @@ void EFUSE_ShadowMapUpdate(
|
|||||||
EFUSE_GetEfuseDefinition(pAdapter, efuseType, TYPE_EFUSE_MAP_LEN, (PVOID)&mapLen, bPseudoTest);
|
EFUSE_GetEfuseDefinition(pAdapter, efuseType, TYPE_EFUSE_MAP_LEN, (PVOID)&mapLen, bPseudoTest);
|
||||||
|
|
||||||
if (pHalData->bautoload_fail_flag == _TRUE)
|
if (pHalData->bautoload_fail_flag == _TRUE)
|
||||||
_rtw_memset(pHalData->efuse_eeprom_data, 0xFF, mapLen);
|
memset(pHalData->efuse_eeprom_data, 0xFF, mapLen);
|
||||||
else {
|
else {
|
||||||
#ifdef CONFIG_ADAPTOR_INFO_CACHING_FILE
|
#ifdef CONFIG_ADAPTOR_INFO_CACHING_FILE
|
||||||
if (_SUCCESS != retriveAdaptorInfoFile(pAdapter->registrypriv.adaptor_info_caching_file_path, pHalData->efuse_eeprom_data)) {
|
if (_SUCCESS != retriveAdaptorInfoFile(pAdapter->registrypriv.adaptor_info_caching_file_path, pHalData->efuse_eeprom_data)) {
|
||||||
@ -3161,7 +3161,7 @@ u32 rtw_read_efuse_from_file(const char *path, u8 *buf, int map_size)
|
|||||||
RTW_ERR("%s rtw_vmalloc(%d) fail\n", __func__, map_size);
|
RTW_ERR("%s rtw_vmalloc(%d) fail\n", __func__, map_size);
|
||||||
goto exit;
|
goto exit;
|
||||||
}
|
}
|
||||||
_rtw_memset(map, 0xff, map_size);
|
memset(map, 0xff, map_size);
|
||||||
|
|
||||||
temp[2] = 0; /* end of string '\0' */
|
temp[2] = 0; /* end of string '\0' */
|
||||||
|
|
||||||
|
@ -1512,7 +1512,7 @@ static int rtw_mpm_check_frames(_adapter *adapter, u8 action, const u8 **buf, si
|
|||||||
goto exit;
|
goto exit;
|
||||||
}
|
}
|
||||||
|
|
||||||
_rtw_memset(&mpm_info, 0, sizeof(struct mpm_frame_info));
|
memset(&mpm_info, 0, sizeof(struct mpm_frame_info));
|
||||||
|
|
||||||
if (action == RTW_ACT_SELF_PROTECTED_MESH_CONF) {
|
if (action == RTW_ACT_SELF_PROTECTED_MESH_CONF) {
|
||||||
mpm_info.aid = (u8 *)frame_body + 4;
|
mpm_info.aid = (u8 *)frame_body + 4;
|
||||||
@ -2101,11 +2101,11 @@ int _rtw_mesh_plink_add(_adapter *adapter, const u8 *hwaddr)
|
|||||||
#endif
|
#endif
|
||||||
ent->llid = 0;
|
ent->llid = 0;
|
||||||
ent->plid = 0;
|
ent->plid = 0;
|
||||||
_rtw_memset(ent->chosen_pmk, 0, 16);
|
memset(ent->chosen_pmk, 0, 16);
|
||||||
#ifdef CONFIG_RTW_MESH_AEK
|
#ifdef CONFIG_RTW_MESH_AEK
|
||||||
_rtw_memset(ent->sel_pcs, 0, 4);
|
memset(ent->sel_pcs, 0, 4);
|
||||||
_rtw_memset(ent->l_nonce, 0, 32);
|
memset(ent->l_nonce, 0, 32);
|
||||||
_rtw_memset(ent->p_nonce, 0, 32);
|
memset(ent->p_nonce, 0, 32);
|
||||||
#endif
|
#endif
|
||||||
ent->plink_state = RTW_MESH_PLINK_LISTEN;
|
ent->plink_state = RTW_MESH_PLINK_LISTEN;
|
||||||
#ifndef CONFIG_RTW_MESH_DRIVER_AID
|
#ifndef CONFIG_RTW_MESH_DRIVER_AID
|
||||||
@ -3077,7 +3077,7 @@ void rtw_mesh_init_mesh_info(_adapter *adapter)
|
|||||||
{
|
{
|
||||||
struct rtw_mesh_info *minfo = &adapter->mesh_info;
|
struct rtw_mesh_info *minfo = &adapter->mesh_info;
|
||||||
|
|
||||||
_rtw_memset(minfo, 0, sizeof(struct rtw_mesh_info));
|
memset(minfo, 0, sizeof(struct rtw_mesh_info));
|
||||||
|
|
||||||
rtw_mesh_plink_ctl_init(adapter);
|
rtw_mesh_plink_ctl_init(adapter);
|
||||||
|
|
||||||
@ -3459,7 +3459,7 @@ void rtw_mesh_tx_build_mctrl(_adapter *adapter, struct pkt_attrib *attrib, u8 *b
|
|||||||
{
|
{
|
||||||
struct rtw_ieee80211s_hdr *mctrl = (struct rtw_ieee80211s_hdr *)buf;
|
struct rtw_ieee80211s_hdr *mctrl = (struct rtw_ieee80211s_hdr *)buf;
|
||||||
|
|
||||||
_rtw_memset(mctrl, 0, XATTRIB_GET_MCTRL_LEN(attrib));
|
memset(mctrl, 0, XATTRIB_GET_MCTRL_LEN(attrib));
|
||||||
|
|
||||||
if (attrib->mfwd_ttl
|
if (attrib->mfwd_ttl
|
||||||
#if CONFIG_RTW_MESH_DATA_BMC_TO_UC
|
#if CONFIG_RTW_MESH_DATA_BMC_TO_UC
|
||||||
|
@ -230,7 +230,7 @@ static int rtw_mesh_path_sel_frame_tx(enum rtw_mpath_frame_type mpath_action, u8
|
|||||||
|
|
||||||
pattrib = &pmgntframe->attrib;
|
pattrib = &pmgntframe->attrib;
|
||||||
update_mgntframe_attrib(adapter, pattrib);
|
update_mgntframe_attrib(adapter, pattrib);
|
||||||
_rtw_memset(pmgntframe->buf_addr, 0, WLANHDR_OFFSET + TXDESC_OFFSET);
|
memset(pmgntframe->buf_addr, 0, WLANHDR_OFFSET + TXDESC_OFFSET);
|
||||||
|
|
||||||
pos = (u8 *)(pmgntframe->buf_addr) + TXDESC_OFFSET;
|
pos = (u8 *)(pmgntframe->buf_addr) + TXDESC_OFFSET;
|
||||||
pwlanhdr = (struct rtw_ieee80211_hdr *)pos;
|
pwlanhdr = (struct rtw_ieee80211_hdr *)pos;
|
||||||
@ -344,7 +344,7 @@ int rtw_mesh_path_error_tx(_adapter *adapter,
|
|||||||
|
|
||||||
pattrib = &pmgntframe->attrib;
|
pattrib = &pmgntframe->attrib;
|
||||||
update_mgntframe_attrib(adapter, pattrib);
|
update_mgntframe_attrib(adapter, pattrib);
|
||||||
_rtw_memset(pmgntframe->buf_addr, 0, WLANHDR_OFFSET + TXDESC_OFFSET);
|
memset(pmgntframe->buf_addr, 0, WLANHDR_OFFSET + TXDESC_OFFSET);
|
||||||
|
|
||||||
pos = (u8 *)(pmgntframe->buf_addr) + TXDESC_OFFSET;
|
pos = (u8 *)(pmgntframe->buf_addr) + TXDESC_OFFSET;
|
||||||
pwlanhdr = (struct rtw_ieee80211_hdr *)pos;
|
pwlanhdr = (struct rtw_ieee80211_hdr *)pos;
|
||||||
|
@ -544,7 +544,7 @@ struct rtw_mesh_path *rtw_mesh_path_new(_adapter *adapter,
|
|||||||
return NULL;
|
return NULL;
|
||||||
|
|
||||||
_rtw_memcpy(new_mpath->dst, dst, ETH_ALEN);
|
_rtw_memcpy(new_mpath->dst, dst, ETH_ALEN);
|
||||||
_rtw_memset(new_mpath->rann_snd_addr, 0xFF, ETH_ALEN);
|
memset(new_mpath->rann_snd_addr, 0xFF, ETH_ALEN);
|
||||||
new_mpath->is_root = false;
|
new_mpath->is_root = false;
|
||||||
new_mpath->adapter = adapter;
|
new_mpath->adapter = adapter;
|
||||||
new_mpath->flags = 0;
|
new_mpath->flags = 0;
|
||||||
|
@ -639,7 +639,7 @@ void expire_timeout_chk(_adapter *padapter)
|
|||||||
#endif
|
#endif
|
||||||
char del_asoc_list[NUM_STA];
|
char del_asoc_list[NUM_STA];
|
||||||
|
|
||||||
_rtw_memset(del_asoc_list, NUM_STA, NUM_STA);
|
memset(del_asoc_list, NUM_STA, NUM_STA);
|
||||||
|
|
||||||
#ifdef CONFIG_ACTIVE_KEEP_ALIVE_CHECK
|
#ifdef CONFIG_ACTIVE_KEEP_ALIVE_CHECK
|
||||||
if (pmlmeext->active_keep_alive_check) {
|
if (pmlmeext->active_keep_alive_check) {
|
||||||
@ -990,7 +990,7 @@ void update_bmc_sta(_adapter *padapter)
|
|||||||
|
|
||||||
psta->ieee8021x_blocked = 0;
|
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. */
|
/* psta->dot118021XPrivacy = _NO_PRIVACY_; */ /* !!! remove it, because it has been set before this. */
|
||||||
|
|
||||||
@ -1170,7 +1170,7 @@ void update_sta_info_apmode(_adapter *padapter, struct sta_info *psta)
|
|||||||
|
|
||||||
/* todo: init other variables */
|
/* 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 */
|
/* add ratid */
|
||||||
@ -1933,7 +1933,7 @@ int rtw_check_beacon_data(_adapter *padapter, u8 *pbuf, int len)
|
|||||||
|
|
||||||
pbss_network->IELength = len;
|
pbss_network->IELength = len;
|
||||||
|
|
||||||
_rtw_memset(ie, 0, MAX_IE_SZ);
|
memset(ie, 0, MAX_IE_SZ);
|
||||||
|
|
||||||
_rtw_memcpy(ie, pbuf, pbss_network->IELength);
|
_rtw_memcpy(ie, pbuf, pbss_network->IELength);
|
||||||
|
|
||||||
@ -1966,7 +1966,7 @@ int rtw_check_beacon_data(_adapter *padapter, u8 *pbuf, int len)
|
|||||||
/* SSID */
|
/* SSID */
|
||||||
p = rtw_get_ie(ie + _BEACON_IE_OFFSET_, _SSID_IE_, &ie_len, (pbss_network->IELength - _BEACON_IE_OFFSET_));
|
p = rtw_get_ie(ie + _BEACON_IE_OFFSET_, _SSID_IE_, &ie_len, (pbss_network->IELength - _BEACON_IE_OFFSET_));
|
||||||
if (p && ie_len > 0) {
|
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));
|
||||||
_rtw_memcpy(pbss_network->Ssid.Ssid, (p + 2), ie_len);
|
_rtw_memcpy(pbss_network->Ssid.Ssid, (p + 2), ie_len);
|
||||||
pbss_network->Ssid.SsidLength = ie_len;
|
pbss_network->Ssid.SsidLength = ie_len;
|
||||||
#ifdef CONFIG_P2P
|
#ifdef CONFIG_P2P
|
||||||
@ -1980,7 +1980,7 @@ int rtw_check_beacon_data(_adapter *padapter, u8 *pbuf, int len)
|
|||||||
if (MLME_IS_MESH(padapter)) {
|
if (MLME_IS_MESH(padapter)) {
|
||||||
p = rtw_get_ie(ie + _BEACON_IE_OFFSET_, WLAN_EID_MESH_ID, &ie_len, (pbss_network->IELength - _BEACON_IE_OFFSET_));
|
p = rtw_get_ie(ie + _BEACON_IE_OFFSET_, WLAN_EID_MESH_ID, &ie_len, (pbss_network->IELength - _BEACON_IE_OFFSET_));
|
||||||
if (p && ie_len > 0) {
|
if (p && ie_len > 0) {
|
||||||
_rtw_memset(&pbss_network->mesh_id, 0, sizeof(NDIS_802_11_SSID));
|
memset(&pbss_network->mesh_id, 0, sizeof(NDIS_802_11_SSID));
|
||||||
_rtw_memcpy(pbss_network->mesh_id.Ssid, (p + 2), ie_len);
|
_rtw_memcpy(pbss_network->mesh_id.Ssid, (p + 2), ie_len);
|
||||||
pbss_network->mesh_id.SsidLength = ie_len;
|
pbss_network->mesh_id.SsidLength = ie_len;
|
||||||
}
|
}
|
||||||
@ -1997,7 +1997,7 @@ int rtw_check_beacon_data(_adapter *padapter, u8 *pbuf, int len)
|
|||||||
pbss_network->Configuration.DSConfig = channel;
|
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 */
|
/* get supported rates */
|
||||||
p = rtw_get_ie(ie + _BEACON_IE_OFFSET_, _SUPPORTEDRATES_IE_, &ie_len, (pbss_network->IELength - _BEACON_IE_OFFSET_));
|
p = rtw_get_ie(ie + _BEACON_IE_OFFSET_, _SUPPORTEDRATES_IE_, &ie_len, (pbss_network->IELength - _BEACON_IE_OFFSET_));
|
||||||
if (p != NULL) {
|
if (p != NULL) {
|
||||||
@ -2782,7 +2782,7 @@ static int rtw_ap_set_key(_adapter *padapter, u8 *key, u8 alg, int keyid, u8 set
|
|||||||
goto exit;
|
goto exit;
|
||||||
}
|
}
|
||||||
|
|
||||||
_rtw_memset(psetkeyparm, 0, sizeof(struct setkey_parm));
|
memset(psetkeyparm, 0, sizeof(struct setkey_parm));
|
||||||
|
|
||||||
psetkeyparm->keyid = (u8)keyid;
|
psetkeyparm->keyid = (u8)keyid;
|
||||||
if (is_wep_enc(alg))
|
if (is_wep_enc(alg))
|
||||||
@ -4154,7 +4154,7 @@ void start_ap_mode(_adapter *padapter)
|
|||||||
pmlmepriv->sw_to_20mhz = 0;
|
pmlmepriv->sw_to_20mhz = 0;
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
_rtw_memset(pmlmepriv->ext_capab_ie_data, 0, sizeof(pmlmepriv->ext_capab_ie_data));
|
memset(pmlmepriv->ext_capab_ie_data, 0, sizeof(pmlmepriv->ext_capab_ie_data));
|
||||||
pmlmepriv->ext_capab_ie_len = 0;
|
pmlmepriv->ext_capab_ie_len = 0;
|
||||||
|
|
||||||
#ifdef CONFIG_CONCURRENT_MODE
|
#ifdef CONFIG_CONCURRENT_MODE
|
||||||
@ -4221,7 +4221,7 @@ void stop_ap_mode(_adapter *padapter)
|
|||||||
padapter->netif_up = _FALSE;
|
padapter->netif_up = _FALSE;
|
||||||
|
|
||||||
/* reset and init security priv , this can refine with rtw_reset_securitypriv */
|
/* 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.ndisauthtype = Ndis802_11AuthModeOpen;
|
||||||
padapter->securitypriv.ndisencryptstatus = Ndis802_11WEPDisabled;
|
padapter->securitypriv.ndisencryptstatus = Ndis802_11WEPDisabled;
|
||||||
|
|
||||||
@ -5197,7 +5197,7 @@ u16 rtw_ap_parse_sta_security_ie(_adapter *adapter, struct sta_info *sta, struct
|
|||||||
sta->wpa2_group_cipher = 0;
|
sta->wpa2_group_cipher = 0;
|
||||||
sta->wpa_pairwise_cipher = 0;
|
sta->wpa_pairwise_cipher = 0;
|
||||||
sta->wpa2_pairwise_cipher = 0;
|
sta->wpa2_pairwise_cipher = 0;
|
||||||
_rtw_memset(sta->wpa_ie, 0, sizeof(sta->wpa_ie));
|
memset(sta->wpa_ie, 0, sizeof(sta->wpa_ie));
|
||||||
|
|
||||||
if ((sec->wpa_psk & BIT(1)) && elems->rsn_ie) {
|
if ((sec->wpa_psk & BIT(1)) && elems->rsn_ie) {
|
||||||
wpa_ie = elems->rsn_ie;
|
wpa_ie = elems->rsn_ie;
|
||||||
@ -5422,7 +5422,7 @@ void rtw_ap_parse_sta_ht_ie(_adapter *adapter, struct sta_info *sta, struct rtw_
|
|||||||
goto exit;
|
goto exit;
|
||||||
|
|
||||||
/* save HT capabilities in the sta object */
|
/* save HT capabilities in the sta object */
|
||||||
_rtw_memset(&sta->htpriv.ht_cap, 0, sizeof(struct rtw_ieee80211_ht_cap));
|
memset(&sta->htpriv.ht_cap, 0, sizeof(struct rtw_ieee80211_ht_cap));
|
||||||
if (elems->ht_capabilities && elems->ht_capabilities_len >= sizeof(struct rtw_ieee80211_ht_cap)) {
|
if (elems->ht_capabilities && elems->ht_capabilities_len >= sizeof(struct rtw_ieee80211_ht_cap)) {
|
||||||
sta->flags |= WLAN_STA_HT;
|
sta->flags |= WLAN_STA_HT;
|
||||||
sta->flags |= WLAN_STA_WME;
|
sta->flags |= WLAN_STA_WME;
|
||||||
@ -5449,7 +5449,7 @@ void rtw_ap_parse_sta_vht_ie(_adapter *adapter, struct sta_info *sta, struct rtw
|
|||||||
if (mlme->vhtpriv.vht_option == _FALSE)
|
if (mlme->vhtpriv.vht_option == _FALSE)
|
||||||
goto exit;
|
goto exit;
|
||||||
|
|
||||||
_rtw_memset(&sta->vhtpriv, 0, sizeof(struct vht_priv));
|
memset(&sta->vhtpriv, 0, sizeof(struct vht_priv));
|
||||||
if (elems->vht_capabilities && elems->vht_capabilities_len == VHT_CAP_IE_LEN) {
|
if (elems->vht_capabilities && elems->vht_capabilities_len == VHT_CAP_IE_LEN) {
|
||||||
sta->flags |= WLAN_STA_VHT;
|
sta->flags |= WLAN_STA_VHT;
|
||||||
_rtw_memcpy(sta->vhtpriv.vht_cap, elems->vht_capabilities, VHT_CAP_IE_LEN);
|
_rtw_memcpy(sta->vhtpriv.vht_cap, elems->vht_capabilities, VHT_CAP_IE_LEN);
|
||||||
|
@ -213,7 +213,7 @@ static u8 _send_ht_ndpa_packet(PADAPTER adapter, u8 *ra, enum channel_width bw)
|
|||||||
attrib->rate = (u8)txrate;
|
attrib->rate = (u8)txrate;
|
||||||
attrib->bf_pkt_type = 0;
|
attrib->bf_pkt_type = 0;
|
||||||
|
|
||||||
_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;
|
pframe = (u8 *)(pmgntframe->buf_addr) + TXDESC_OFFSET;
|
||||||
pwlanhdr = (struct rtw_ieee80211_hdr *)pframe;
|
pwlanhdr = (struct rtw_ieee80211_hdr *)pframe;
|
||||||
|
|
||||||
@ -308,7 +308,7 @@ static u8 _send_vht_ndpa_packet(PADAPTER adapter, u8 *ra, u16 aid, enum channel_
|
|||||||
attrib->rate = (u8)txrate;
|
attrib->rate = (u8)txrate;
|
||||||
attrib->bf_pkt_type = 0;
|
attrib->bf_pkt_type = 0;
|
||||||
|
|
||||||
_rtw_memset(pmgntframe->buf_addr, 0, TXDESC_OFFSET + WLANHDR_OFFSET);
|
memset(pmgntframe->buf_addr, 0, TXDESC_OFFSET + WLANHDR_OFFSET);
|
||||||
pframe = pmgntframe->buf_addr + TXDESC_OFFSET;
|
pframe = pmgntframe->buf_addr + TXDESC_OFFSET;
|
||||||
pwlanhdr = (struct rtw_ieee80211_hdr *)pframe;
|
pwlanhdr = (struct rtw_ieee80211_hdr *)pframe;
|
||||||
|
|
||||||
@ -425,7 +425,7 @@ static u8 _send_vht_mu_ndpa_packet(PADAPTER adapter, enum channel_width bw)
|
|||||||
else
|
else
|
||||||
attrib->bf_pkt_type = 0;
|
attrib->bf_pkt_type = 0;
|
||||||
|
|
||||||
_rtw_memset(pmgntframe->buf_addr, 0, TXDESC_OFFSET + WLANHDR_OFFSET);
|
memset(pmgntframe->buf_addr, 0, TXDESC_OFFSET + WLANHDR_OFFSET);
|
||||||
pframe = pmgntframe->buf_addr + TXDESC_OFFSET;
|
pframe = pmgntframe->buf_addr + TXDESC_OFFSET;
|
||||||
pwlanhdr = (struct rtw_ieee80211_hdr *)pframe;
|
pwlanhdr = (struct rtw_ieee80211_hdr *)pframe;
|
||||||
|
|
||||||
@ -517,7 +517,7 @@ static u8 _send_bf_report_poll(PADAPTER adapter, u8 *ra, u8 bFinalPoll)
|
|||||||
else
|
else
|
||||||
attrib->bf_pkt_type = 2;
|
attrib->bf_pkt_type = 2;
|
||||||
|
|
||||||
_rtw_memset(pmgntframe->buf_addr, 0, TXDESC_OFFSET + WLANHDR_OFFSET);
|
memset(pmgntframe->buf_addr, 0, TXDESC_OFFSET + WLANHDR_OFFSET);
|
||||||
pframe = pmgntframe->buf_addr + TXDESC_OFFSET;
|
pframe = pmgntframe->buf_addr + TXDESC_OFFSET;
|
||||||
pwlanhdr = (struct rtw_ieee80211_hdr *)pframe;
|
pwlanhdr = (struct rtw_ieee80211_hdr *)pframe;
|
||||||
|
|
||||||
@ -581,8 +581,8 @@ static void _sounding_update_min_period(PADAPTER adapter, u16 period, u8 leave)
|
|||||||
|
|
||||||
static void _sounding_init(struct sounding_info *sounding)
|
static void _sounding_init(struct sounding_info *sounding)
|
||||||
{
|
{
|
||||||
_rtw_memset(sounding->su_sounding_list, 0xFF, MAX_NUM_BEAMFORMEE_SU);
|
memset(sounding->su_sounding_list, 0xFF, MAX_NUM_BEAMFORMEE_SU);
|
||||||
_rtw_memset(sounding->mu_sounding_list, 0xFF, MAX_NUM_BEAMFORMEE_MU);
|
memset(sounding->mu_sounding_list, 0xFF, MAX_NUM_BEAMFORMEE_MU);
|
||||||
sounding->state = SOUNDING_STATE_NONE;
|
sounding->state = SOUNDING_STATE_NONE;
|
||||||
sounding->su_bfee_curidx = 0xFF;
|
sounding->su_bfee_curidx = 0xFF;
|
||||||
sounding->candidate_mu_bfee_cnt = 0;
|
sounding->candidate_mu_bfee_cnt = 0;
|
||||||
@ -600,8 +600,8 @@ static void _sounding_reset_vars(PADAPTER adapter)
|
|||||||
info = GET_BEAMFORM_INFO(adapter);
|
info = GET_BEAMFORM_INFO(adapter);
|
||||||
sounding = &info->sounding_info;
|
sounding = &info->sounding_info;
|
||||||
|
|
||||||
_rtw_memset(sounding->su_sounding_list, 0xFF, MAX_NUM_BEAMFORMEE_SU);
|
memset(sounding->su_sounding_list, 0xFF, MAX_NUM_BEAMFORMEE_SU);
|
||||||
_rtw_memset(sounding->mu_sounding_list, 0xFF, MAX_NUM_BEAMFORMEE_MU);
|
memset(sounding->mu_sounding_list, 0xFF, MAX_NUM_BEAMFORMEE_MU);
|
||||||
sounding->su_bfee_curidx = 0xFF;
|
sounding->su_bfee_curidx = 0xFF;
|
||||||
sounding->candidate_mu_bfee_cnt = 0;
|
sounding->candidate_mu_bfee_cnt = 0;
|
||||||
|
|
||||||
@ -1054,8 +1054,8 @@ static void _bfer_remove_entry(PADAPTER adapter, struct beamformer_entry *entry)
|
|||||||
|
|
||||||
if (TEST_FLAG(entry->cap, BEAMFORMER_CAP_VHT_MU)) {
|
if (TEST_FLAG(entry->cap, BEAMFORMER_CAP_VHT_MU)) {
|
||||||
info->beamformer_mu_cnt -= 1;
|
info->beamformer_mu_cnt -= 1;
|
||||||
_rtw_memset(entry->gid_valid, 0, 8);
|
memset(entry->gid_valid, 0, 8);
|
||||||
_rtw_memset(entry->user_position, 0, 16);
|
memset(entry->user_position, 0, 16);
|
||||||
} else if (TEST_FLAG(entry->cap, BEAMFORMER_CAP_VHT_SU|BEAMFORMER_CAP_HT_EXPLICIT)) {
|
} else if (TEST_FLAG(entry->cap, BEAMFORMER_CAP_VHT_SU|BEAMFORMER_CAP_HT_EXPLICIT)) {
|
||||||
info->beamformer_su_cnt -= 1;
|
info->beamformer_su_cnt -= 1;
|
||||||
}
|
}
|
||||||
@ -1245,7 +1245,7 @@ static struct beamformee_entry *_bfee_add_entry(PADAPTER adapter,
|
|||||||
RTW_ERR("%s: UNEXPECTED!! info->TargetSUBFee is NULL!", __FUNCTION__);
|
RTW_ERR("%s: UNEXPECTED!! info->TargetSUBFee is NULL!", __FUNCTION__);
|
||||||
}
|
}
|
||||||
info->TargetSUBFee = NULL;
|
info->TargetSUBFee = NULL;
|
||||||
_rtw_memset(&info->TargetCSIInfo, 0, sizeof(struct _RT_CSI_INFO));
|
memset(&info->TargetCSIInfo, 0, sizeof(struct _RT_CSI_INFO));
|
||||||
rtw_bf_cmd(adapter, BEAMFORMING_CTRL_SET_CSI_REPORT, (u8*)&info->TargetCSIInfo, sizeof(struct _RT_CSI_INFO), 0);
|
rtw_bf_cmd(adapter, BEAMFORMING_CTRL_SET_CSI_REPORT, (u8*)&info->TargetCSIInfo, sizeof(struct _RT_CSI_INFO), 0);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@ -1268,7 +1268,7 @@ static struct beamformee_entry *_bfee_add_entry(PADAPTER adapter,
|
|||||||
/* Record the first SU BFee index. We only allow the first SU BFee to be sound */
|
/* Record the first SU BFee index. We only allow the first SU BFee to be sound */
|
||||||
if ((info->beamformee_su_cnt == 1) && (info->beamformee_mu_cnt == 0)) {
|
if ((info->beamformee_su_cnt == 1) && (info->beamformee_mu_cnt == 0)) {
|
||||||
info->TargetSUBFee = bfee;
|
info->TargetSUBFee = bfee;
|
||||||
_rtw_memset(&info->TargetCSIInfo, 0, sizeof(struct _RT_CSI_INFO));
|
memset(&info->TargetCSIInfo, 0, sizeof(struct _RT_CSI_INFO));
|
||||||
bfee->bSuspendSUCap = _FALSE;
|
bfee->bSuspendSUCap = _FALSE;
|
||||||
} else {
|
} else {
|
||||||
bfee->bSuspendSUCap = _TRUE;
|
bfee->bSuspendSUCap = _TRUE;
|
||||||
@ -1308,7 +1308,7 @@ static void _bfee_remove_entry(PADAPTER adapter, struct beamformee_entry *entry)
|
|||||||
if ((info->beamformee_mu_cnt == 0) && (info->beamformee_su_cnt > 0)) {
|
if ((info->beamformee_mu_cnt == 0) && (info->beamformee_su_cnt > 0)) {
|
||||||
idx = _bfee_get_first_su_entry_idx(adapter, NULL);
|
idx = _bfee_get_first_su_entry_idx(adapter, NULL);
|
||||||
info->TargetSUBFee = &info->bfee_entry[idx];
|
info->TargetSUBFee = &info->bfee_entry[idx];
|
||||||
_rtw_memset(&info->TargetCSIInfo, 0, sizeof(struct _RT_CSI_INFO));
|
memset(&info->TargetCSIInfo, 0, sizeof(struct _RT_CSI_INFO));
|
||||||
info->TargetSUBFee->bSuspendSUCap = _FALSE;
|
info->TargetSUBFee->bSuspendSUCap = _FALSE;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@ -1320,7 +1320,7 @@ static void _bfee_remove_entry(PADAPTER adapter, struct beamformee_entry *entry)
|
|||||||
&& (entry == info->TargetSUBFee)) {
|
&& (entry == info->TargetSUBFee)) {
|
||||||
entry->bSuspendSUCap = _TRUE;
|
entry->bSuspendSUCap = _TRUE;
|
||||||
info->TargetSUBFee = NULL;
|
info->TargetSUBFee = NULL;
|
||||||
_rtw_memset(&info->TargetCSIInfo, 0, sizeof(struct _RT_CSI_INFO));
|
memset(&info->TargetCSIInfo, 0, sizeof(struct _RT_CSI_INFO));
|
||||||
rtw_bf_cmd(adapter, BEAMFORMING_CTRL_SET_CSI_REPORT, (u8*)&info->TargetCSIInfo, sizeof(struct _RT_CSI_INFO), 0);
|
rtw_bf_cmd(adapter, BEAMFORMING_CTRL_SET_CSI_REPORT, (u8*)&info->TargetCSIInfo, sizeof(struct _RT_CSI_INFO), 0);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@ -1711,7 +1711,7 @@ u8 rtw_bf_send_vht_gid_mgnt_packet(PADAPTER adapter, u8 *ra, u8 *gid, u8 *positi
|
|||||||
attrib->bwmode = CHANNEL_WIDTH_20;
|
attrib->bwmode = CHANNEL_WIDTH_20;
|
||||||
attrib->subtype = WIFI_ACTION;
|
attrib->subtype = WIFI_ACTION;
|
||||||
|
|
||||||
_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;
|
pframe = (u8 *)pmgntframe->buf_addr + TXDESC_OFFSET;
|
||||||
wlanhdr = (struct rtw_ieee80211_hdr *)pframe;
|
wlanhdr = (struct rtw_ieee80211_hdr *)pframe;
|
||||||
@ -2205,7 +2205,7 @@ BOOLEAN issue_ht_sw_ndpa_packet(PADAPTER Adapter, u8 *ra, enum channel_width bw,
|
|||||||
pattrib->order = 1;
|
pattrib->order = 1;
|
||||||
pattrib->subtype = WIFI_ACTION_NOACK;
|
pattrib->subtype = WIFI_ACTION_NOACK;
|
||||||
|
|
||||||
_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;
|
pframe = (u8 *)(pmgntframe->buf_addr) + TXDESC_OFFSET;
|
||||||
|
|
||||||
@ -2281,7 +2281,7 @@ BOOLEAN issue_ht_ndpa_packet(PADAPTER Adapter, u8 *ra, enum channel_width bw, u8
|
|||||||
pattrib->order = 1;
|
pattrib->order = 1;
|
||||||
pattrib->subtype = WIFI_ACTION_NOACK;
|
pattrib->subtype = WIFI_ACTION_NOACK;
|
||||||
|
|
||||||
_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;
|
pframe = (u8 *)(pmgntframe->buf_addr) + TXDESC_OFFSET;
|
||||||
|
|
||||||
@ -2368,7 +2368,7 @@ BOOLEAN issue_vht_sw_ndpa_packet(PADAPTER Adapter, u8 *ra, u16 aid, enum channel
|
|||||||
pattrib->bwmode = bw;
|
pattrib->bwmode = bw;
|
||||||
pattrib->subtype = WIFI_NDPA;
|
pattrib->subtype = WIFI_NDPA;
|
||||||
|
|
||||||
_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;
|
pframe = (u8 *)(pmgntframe->buf_addr) + TXDESC_OFFSET;
|
||||||
|
|
||||||
@ -2454,7 +2454,7 @@ BOOLEAN issue_vht_ndpa_packet(PADAPTER Adapter, u8 *ra, u16 aid, enum channel_wi
|
|||||||
pattrib->bwmode = bw;
|
pattrib->bwmode = bw;
|
||||||
pattrib->subtype = WIFI_NDPA;
|
pattrib->subtype = WIFI_NDPA;
|
||||||
|
|
||||||
_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;
|
pframe = (u8 *)(pmgntframe->buf_addr) + TXDESC_OFFSET;
|
||||||
|
|
||||||
|
@ -1522,7 +1522,7 @@ mptbt_BtControlProcess(
|
|||||||
/* RTW_INFO("[MPT], parameters(hex):0x%x %d\n",&pBtReq->pParamStart[0], pBtReq->paraLength); */
|
/* RTW_INFO("[MPT], parameters(hex):0x%x %d\n",&pBtReq->pParamStart[0], pBtReq->paraLength); */
|
||||||
}
|
}
|
||||||
|
|
||||||
_rtw_memset((void *)pMptCtx->mptOutBuf, 0, 100);
|
memset((void *)pMptCtx->mptOutBuf, 0, 100);
|
||||||
pMptCtx->mptOutLen = 4; /* length of (BT_RSP_CMD.status+BT_RSP_CMD.paraLength) */
|
pMptCtx->mptOutLen = 4; /* length of (BT_RSP_CMD.status+BT_RSP_CMD.paraLength) */
|
||||||
|
|
||||||
pBtRsp = (PBT_RSP_CMD)pMptCtx->mptOutBuf;
|
pBtRsp = (PBT_RSP_CMD)pMptCtx->mptOutBuf;
|
||||||
|
@ -624,7 +624,7 @@ u8 rtw_btcoex_parse_BT_info_notify_cmd(_adapter *padapter, u8 *pcmd, u16 cmdlen)
|
|||||||
RTW_INFO("%02x:%02x:%02x:%02x:%02x:%02x:%02x:%02x\n"
|
RTW_INFO("%02x:%02x:%02x:%02x:%02x:%02x:%02x:%02x\n"
|
||||||
,pcmd[4],pcmd[5],pcmd[6],pcmd[7],pcmd[8],pcmd[9],pcmd[10],pcmd[11]);*/
|
,pcmd[4],pcmd[5],pcmd[6],pcmd[7],pcmd[8],pcmd[9],pcmd[10],pcmd[11]);*/
|
||||||
|
|
||||||
_rtw_memset(btinfo, 0, BT_INFO_LENGTH);
|
memset(btinfo, 0, BT_INFO_LENGTH);
|
||||||
|
|
||||||
#if 1
|
#if 1
|
||||||
if (BT_INFO_LENGTH != btInfoLen) {
|
if (BT_INFO_LENGTH != btInfoLen) {
|
||||||
@ -1322,7 +1322,7 @@ void rtw_btcoex_recvmsgbysocket(void *data)
|
|||||||
|
|
||||||
/*important: cut the udp header from skb->data! header length is 8 byte*/
|
/*important: cut the udp header from skb->data! header length is 8 byte*/
|
||||||
recv_length = skb->len - 8;
|
recv_length = skb->len - 8;
|
||||||
_rtw_memset(recv_data, 0, sizeof(recv_data));
|
memset(recv_data, 0, sizeof(recv_data));
|
||||||
_rtw_memcpy(recv_data, skb->data + 8, recv_length);
|
_rtw_memcpy(recv_data, skb->data + 8, recv_length);
|
||||||
|
|
||||||
parse_res = rtw_btcoex_parse_recv_data(recv_data, recv_length);
|
parse_res = rtw_btcoex_parse_recv_data(recv_data, recv_length);
|
||||||
@ -1516,12 +1516,12 @@ u8 rtw_btcoex_create_kernel_socket(_adapter *padapter)
|
|||||||
RTW_INFO("Error during creation of socket error:%d\n", kernel_socket_err);
|
RTW_INFO("Error during creation of socket error:%d\n", kernel_socket_err);
|
||||||
status = _FAIL;
|
status = _FAIL;
|
||||||
} else {
|
} else {
|
||||||
_rtw_memset(&(pcoex_info->wifi_sockaddr), 0, sizeof(pcoex_info->wifi_sockaddr));
|
memset(&(pcoex_info->wifi_sockaddr), 0, sizeof(pcoex_info->wifi_sockaddr));
|
||||||
pcoex_info->wifi_sockaddr.sin_family = AF_INET;
|
pcoex_info->wifi_sockaddr.sin_family = AF_INET;
|
||||||
pcoex_info->wifi_sockaddr.sin_port = htons(CONNECT_PORT);
|
pcoex_info->wifi_sockaddr.sin_port = htons(CONNECT_PORT);
|
||||||
pcoex_info->wifi_sockaddr.sin_addr.s_addr = htonl(INADDR_LOOPBACK);
|
pcoex_info->wifi_sockaddr.sin_addr.s_addr = htonl(INADDR_LOOPBACK);
|
||||||
|
|
||||||
_rtw_memset(&(pcoex_info->bt_sockaddr), 0, sizeof(pcoex_info->bt_sockaddr));
|
memset(&(pcoex_info->bt_sockaddr), 0, sizeof(pcoex_info->bt_sockaddr));
|
||||||
pcoex_info->bt_sockaddr.sin_family = AF_INET;
|
pcoex_info->bt_sockaddr.sin_family = AF_INET;
|
||||||
pcoex_info->bt_sockaddr.sin_port = htons(CONNECT_PORT_BT);
|
pcoex_info->bt_sockaddr.sin_port = htons(CONNECT_PORT_BT);
|
||||||
pcoex_info->bt_sockaddr.sin_addr.s_addr = htonl(INADDR_LOOPBACK);
|
pcoex_info->bt_sockaddr.sin_addr.s_addr = htonl(INADDR_LOOPBACK);
|
||||||
@ -1570,7 +1570,7 @@ void rtw_btcoex_init_socket(_adapter *padapter)
|
|||||||
struct bt_coex_info *pcoex_info = &padapter->coex_info;
|
struct bt_coex_info *pcoex_info = &padapter->coex_info;
|
||||||
RTW_INFO("%s\n", __func__);
|
RTW_INFO("%s\n", __func__);
|
||||||
if (_FALSE == pcoex_info->is_exist) {
|
if (_FALSE == pcoex_info->is_exist) {
|
||||||
_rtw_memset(pcoex_info, 0, sizeof(struct bt_coex_info));
|
memset(pcoex_info, 0, sizeof(struct bt_coex_info));
|
||||||
pcoex_info->btcoex_wq = create_workqueue("BTCOEX");
|
pcoex_info->btcoex_wq = create_workqueue("BTCOEX");
|
||||||
INIT_DELAYED_WORK(&pcoex_info->recvmsg_work,
|
INIT_DELAYED_WORK(&pcoex_info->recvmsg_work,
|
||||||
(void *)rtw_btcoex_recvmsgbysocket);
|
(void *)rtw_btcoex_recvmsgbysocket);
|
||||||
|
@ -476,7 +476,7 @@ u8 init_channel_set(_adapter *padapter, u8 ChannelPlan, RT_CHANNEL_INFO *channel
|
|||||||
return chanset_size;
|
return chanset_size;
|
||||||
}
|
}
|
||||||
|
|
||||||
_rtw_memset(channel_set, 0, sizeof(RT_CHANNEL_INFO) * MAX_CHANNEL_NUM);
|
memset(channel_set, 0, sizeof(RT_CHANNEL_INFO) * MAX_CHANNEL_NUM);
|
||||||
|
|
||||||
if (IsSupported24G(regsty->wireless_mode) && hal_chk_band_cap(padapter, BAND_CAP_2G))
|
if (IsSupported24G(regsty->wireless_mode) && hal_chk_band_cap(padapter, BAND_CAP_2G))
|
||||||
b2_4GBand = _TRUE;
|
b2_4GBand = _TRUE;
|
||||||
|
@ -851,7 +851,7 @@ void rtw_init_sitesurvey_parm(_adapter *padapter, struct sitesurvey_parm *pparm)
|
|||||||
struct mlme_priv *pmlmepriv = &padapter->mlmepriv;
|
struct mlme_priv *pmlmepriv = &padapter->mlmepriv;
|
||||||
|
|
||||||
|
|
||||||
_rtw_memset(pparm, 0, sizeof(struct sitesurvey_parm));
|
memset(pparm, 0, sizeof(struct sitesurvey_parm));
|
||||||
pparm->scan_mode = pmlmepriv->scan_mode;
|
pparm->scan_mode = pmlmepriv->scan_mode;
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -1438,7 +1438,7 @@ u8 rtw_joinbss_cmd(_adapter *padapter, struct wlan_network *pnetwork)
|
|||||||
goto exit;
|
goto exit;
|
||||||
}
|
}
|
||||||
|
|
||||||
_rtw_memset(psecnetwork, 0, t_len);
|
memset(psecnetwork, 0, t_len);
|
||||||
|
|
||||||
_rtw_memcpy(psecnetwork, &pnetwork->network, get_WLAN_BSSID_EX_sz(&pnetwork->network));
|
_rtw_memcpy(psecnetwork, &pnetwork->network, get_WLAN_BSSID_EX_sz(&pnetwork->network));
|
||||||
|
|
||||||
|
@ -530,7 +530,7 @@ void dump_adapters_status(void *sel, struct dvobj_priv *dvobj)
|
|||||||
iface = dvobj->padapters[i];
|
iface = dvobj->padapters[i];
|
||||||
if (iface) {
|
if (iface) {
|
||||||
#if (defined(CONFIG_SUPPORT_MULTI_BCN) && defined(CONFIG_FW_HANDLE_TXBCN)) || defined(CONFIG_CLIENT_PORT_CFG)
|
#if (defined(CONFIG_SUPPORT_MULTI_BCN) && defined(CONFIG_FW_HANDLE_TXBCN)) || defined(CONFIG_CLIENT_PORT_CFG)
|
||||||
_rtw_memset(&str_val, '\0', sizeof(str_val));
|
memset(&str_val, '\0', sizeof(str_val));
|
||||||
#endif
|
#endif
|
||||||
#if defined(CONFIG_SUPPORT_MULTI_BCN) && defined(CONFIG_FW_HANDLE_TXBCN)
|
#if defined(CONFIG_SUPPORT_MULTI_BCN) && defined(CONFIG_FW_HANDLE_TXBCN)
|
||||||
if (MLME_IS_AP(iface) || MLME_IS_MESH(iface)) {
|
if (MLME_IS_AP(iface) || MLME_IS_MESH(iface)) {
|
||||||
@ -541,7 +541,7 @@ void dump_adapters_status(void *sel, struct dvobj_priv *dvobj)
|
|||||||
len = snprintf(tmp_str, sizeof(tmp_str), "%s", "ap_id:");
|
len = snprintf(tmp_str, sizeof(tmp_str), "%s", "ap_id:");
|
||||||
strncpy(p, tmp_str, len);
|
strncpy(p, tmp_str, len);
|
||||||
p += len;
|
p += len;
|
||||||
_rtw_memset(&tmp_str, '\0', sizeof(tmp_str));
|
memset(&tmp_str, '\0', sizeof(tmp_str));
|
||||||
#ifdef DBG_HW_PORT
|
#ifdef DBG_HW_PORT
|
||||||
len = snprintf(tmp_str, sizeof(tmp_str), "%d (%d,%d)", iface->vap_id, iface->hw_port, iface->client_port);
|
len = snprintf(tmp_str, sizeof(tmp_str), "%d (%d,%d)", iface->vap_id, iface->hw_port, iface->client_port);
|
||||||
#else
|
#else
|
||||||
@ -559,7 +559,7 @@ void dump_adapters_status(void *sel, struct dvobj_priv *dvobj)
|
|||||||
len = snprintf(tmp_str, sizeof(tmp_str), "%s", "c_pid:");
|
len = snprintf(tmp_str, sizeof(tmp_str), "%s", "c_pid:");
|
||||||
strncpy(p, tmp_str, len);
|
strncpy(p, tmp_str, len);
|
||||||
p += len;
|
p += len;
|
||||||
_rtw_memset(&tmp_str, '\0', sizeof(tmp_str));
|
memset(&tmp_str, '\0', sizeof(tmp_str));
|
||||||
#ifdef DBG_HW_PORT
|
#ifdef DBG_HW_PORT
|
||||||
len = snprintf(tmp_str, sizeof(tmp_str), "%d (%d,%d)", iface->client_port, iface->hw_port, iface->client_port);
|
len = snprintf(tmp_str, sizeof(tmp_str), "%d (%d,%d)", iface->client_port, iface->hw_port, iface->client_port);
|
||||||
#else
|
#else
|
||||||
@ -932,13 +932,13 @@ int proc_get_tx_stat(struct seq_file *m, void *v)
|
|||||||
} else {
|
} else {
|
||||||
//to avoid c2h modify counters
|
//to avoid c2h modify counters
|
||||||
pstapriv_primary->gotc2h = NULL;
|
pstapriv_primary->gotc2h = NULL;
|
||||||
_rtw_memset(pstapriv_primary->c2h_sta_mac, 0, ETH_ALEN);
|
memset(pstapriv_primary->c2h_sta_mac, 0, ETH_ALEN);
|
||||||
pstapriv_primary->c2h_adapter_id = CONFIG_IFACE_NUMBER;
|
pstapriv_primary->c2h_adapter_id = CONFIG_IFACE_NUMBER;
|
||||||
RTW_PRINT_SEL(m, "Warming : Query timeout, operation abort!!\n");
|
RTW_PRINT_SEL(m, "Warming : Query timeout, operation abort!!\n");
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
pstapriv_primary->gotc2h = NULL;
|
pstapriv_primary->gotc2h = NULL;
|
||||||
_rtw_memset(pstapriv_primary->c2h_sta_mac, 0, ETH_ALEN);
|
memset(pstapriv_primary->c2h_sta_mac, 0, ETH_ALEN);
|
||||||
pstapriv_primary->c2h_adapter_id = CONFIG_IFACE_NUMBER;
|
pstapriv_primary->c2h_adapter_id = CONFIG_IFACE_NUMBER;
|
||||||
}
|
}
|
||||||
return 0;
|
return 0;
|
||||||
@ -2273,7 +2273,7 @@ ssize_t proc_set_ps_dbg_info(struct file *file, const char __user *buffer, size_
|
|||||||
int num = sscanf(tmp, "%hhx", &ps_dbg_cmd_id);
|
int num = sscanf(tmp, "%hhx", &ps_dbg_cmd_id);
|
||||||
|
|
||||||
if (num == 1 && ps_dbg_cmd_id == 1) /*Clean all*/
|
if (num == 1 && ps_dbg_cmd_id == 1) /*Clean all*/
|
||||||
_rtw_memset(pdbgpriv, 0, sizeof(struct debug_priv));
|
memset(pdbgpriv, 0, sizeof(struct debug_priv));
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -3924,9 +3924,9 @@ ssize_t proc_set_btcoex_dbg(struct file *file, const char __user *buffer, size_t
|
|||||||
num = sscanf(tmp, "%x %x", module, module + 1);
|
num = sscanf(tmp, "%x %x", module, module + 1);
|
||||||
if (1 == num) {
|
if (1 == num) {
|
||||||
if (0 == module[0])
|
if (0 == module[0])
|
||||||
_rtw_memset(module, 0, sizeof(module));
|
memset(module, 0, sizeof(module));
|
||||||
else
|
else
|
||||||
_rtw_memset(module, 0xFF, sizeof(module));
|
memset(module, 0xFF, sizeof(module));
|
||||||
} else if (2 != num) {
|
} else if (2 != num) {
|
||||||
RTW_INFO(FUNC_ADPT_FMT ": input(\"%s\") format incorrect!\n",
|
RTW_INFO(FUNC_ADPT_FMT ": input(\"%s\") format incorrect!\n",
|
||||||
FUNC_ADPT_ARG(padapter), tmp);
|
FUNC_ADPT_ARG(padapter), tmp);
|
||||||
@ -4552,7 +4552,7 @@ int proc_get_pattern_info(struct seq_file *m, void *v)
|
|||||||
p_str = str_1;
|
p_str = str_1;
|
||||||
max_len = sizeof(str_1);
|
max_len = sizeof(str_1);
|
||||||
for (i = 0 ; i < MAX_WKFM_PATTERN_SIZE / 8 ; i++) {
|
for (i = 0 ; i < MAX_WKFM_PATTERN_SIZE / 8 ; i++) {
|
||||||
_rtw_memset(p_str, 0, max_len);
|
memset(p_str, 0, max_len);
|
||||||
len = 0;
|
len = 0;
|
||||||
for (j = 0 ; j < 8 ; j++) {
|
for (j = 0 ; j < 8 ; j++) {
|
||||||
val8 = pwrpriv->patterns[k].content[i * 8 + j];
|
val8 = pwrpriv->patterns[k].content[i * 8 + j];
|
||||||
@ -4563,7 +4563,7 @@ int proc_get_pattern_info(struct seq_file *m, void *v)
|
|||||||
}
|
}
|
||||||
RTW_PRINT_SEL(m, "\npattern mask:\n");
|
RTW_PRINT_SEL(m, "\npattern mask:\n");
|
||||||
for (i = 0 ; i < MAX_WKFM_SIZE / 8 ; i++) {
|
for (i = 0 ; i < MAX_WKFM_SIZE / 8 ; i++) {
|
||||||
_rtw_memset(p_str, 0, max_len);
|
memset(p_str, 0, max_len);
|
||||||
len = 0;
|
len = 0;
|
||||||
for (j = 0 ; j < 8 ; j++) {
|
for (j = 0 ; j < 8 ; j++) {
|
||||||
val8 = pwrpriv->patterns[k].mask[i * 8 + j];
|
val8 = pwrpriv->patterns[k].mask[i * 8 + j];
|
||||||
@ -6980,7 +6980,7 @@ inline void RTW_BUF_DUMP_SEL(uint _loglevel, void *sel, u8 *_titlestring,
|
|||||||
}
|
}
|
||||||
if (p != &str_out[0]) {
|
if (p != &str_out[0]) {
|
||||||
_RTW_STR_DUMP_SEL(sel, str_out);
|
_RTW_STR_DUMP_SEL(sel, str_out);
|
||||||
_rtw_memset(&str_out, '\0', sizeof(str_out));
|
memset(&str_out, '\0', sizeof(str_out));
|
||||||
}
|
}
|
||||||
|
|
||||||
/*dump buffer*/
|
/*dump buffer*/
|
||||||
@ -7005,7 +7005,7 @@ inline void RTW_BUF_DUMP_SEL(uint _loglevel, void *sel, u8 *_titlestring,
|
|||||||
p += len;
|
p += len;
|
||||||
}
|
}
|
||||||
_RTW_STR_DUMP_SEL(sel, str_out);
|
_RTW_STR_DUMP_SEL(sel, str_out);
|
||||||
_rtw_memset(&str_out, '\0', sizeof(str_out));
|
memset(&str_out, '\0', sizeof(str_out));
|
||||||
}
|
}
|
||||||
|
|
||||||
p = &str_out[0];
|
p = &str_out[0];
|
||||||
|
@ -457,7 +457,7 @@ exit:
|
|||||||
void rtw_set_supported_rate(u8 *SupportedRates, uint mode)
|
void rtw_set_supported_rate(u8 *SupportedRates, uint mode)
|
||||||
{
|
{
|
||||||
|
|
||||||
_rtw_memset(SupportedRates, 0, NDIS_802_11_LENGTH_RATES_EX);
|
memset(SupportedRates, 0, NDIS_802_11_LENGTH_RATES_EX);
|
||||||
|
|
||||||
switch (mode) {
|
switch (mode) {
|
||||||
case WIRELESS_11B:
|
case WIRELESS_11B:
|
||||||
@ -789,7 +789,7 @@ int rtw_rsne_info_parse(const u8 *ie, uint ie_len, struct rsne_info *info)
|
|||||||
const u8 *pos = ie;
|
const u8 *pos = ie;
|
||||||
u16 cnt;
|
u16 cnt;
|
||||||
|
|
||||||
_rtw_memset(info, 0, sizeof(struct rsne_info));
|
memset(info, 0, sizeof(struct rsne_info));
|
||||||
|
|
||||||
if (ie + ie_len < pos + 4)
|
if (ie + ie_len < pos + 4)
|
||||||
goto err;
|
goto err;
|
||||||
@ -1304,7 +1304,7 @@ ParseRes rtw_ieee802_11_parse_elems(u8 *start, uint len,
|
|||||||
u8 *pos = start;
|
u8 *pos = start;
|
||||||
int unknown = 0;
|
int unknown = 0;
|
||||||
|
|
||||||
_rtw_memset(elems, 0, sizeof(*elems));
|
memset(elems, 0, sizeof(*elems));
|
||||||
|
|
||||||
while (left >= 2) {
|
while (left >= 2) {
|
||||||
u8 id, elen;
|
u8 id, elen;
|
||||||
@ -2206,7 +2206,7 @@ uint rtw_del_p2p_ie(u8 *ies, uint ies_len_ori, const char *msg)
|
|||||||
}
|
}
|
||||||
|
|
||||||
_rtw_memmove(target_ie, next_ie, remain_len);
|
_rtw_memmove(target_ie, next_ie, remain_len);
|
||||||
_rtw_memset(target_ie + remain_len, 0, target_ie_len);
|
memset(target_ie + remain_len, 0, target_ie_len);
|
||||||
ies_len -= target_ie_len;
|
ies_len -= target_ie_len;
|
||||||
|
|
||||||
if (DBG_DEL_P2P_IE && msg) {
|
if (DBG_DEL_P2P_IE && msg) {
|
||||||
@ -2247,7 +2247,7 @@ uint rtw_del_p2p_attr(u8 *ie, uint ielen_ori, u8 attr_id)
|
|||||||
}
|
}
|
||||||
|
|
||||||
_rtw_memmove(target_attr, next_attr, remain_len);
|
_rtw_memmove(target_attr, next_attr, remain_len);
|
||||||
_rtw_memset(target_attr + remain_len, 0, target_attr_len);
|
memset(target_attr + remain_len, 0, target_attr_len);
|
||||||
*(ie + 1) -= target_attr_len;
|
*(ie + 1) -= target_attr_len;
|
||||||
ielen -= target_attr_len;
|
ielen -= target_attr_len;
|
||||||
|
|
||||||
@ -2317,7 +2317,7 @@ void rtw_bss_ex_del_p2p_attr(WLAN_BSSID_EX *bss_ex, u8 attr_id)
|
|||||||
u8 *next_ie = ie + ie_len;
|
u8 *next_ie = ie + ie_len;
|
||||||
|
|
||||||
_rtw_memmove(next_ie, next_ie_ori, remain_len);
|
_rtw_memmove(next_ie, next_ie_ori, remain_len);
|
||||||
_rtw_memset(next_ie + remain_len, 0, ie_len_ori - ie_len);
|
memset(next_ie + remain_len, 0, ie_len_ori - ie_len);
|
||||||
bss_ex->IELength -= ie_len_ori - ie_len;
|
bss_ex->IELength -= ie_len_ori - ie_len;
|
||||||
|
|
||||||
ies = next_ie;
|
ies = next_ie;
|
||||||
@ -2533,7 +2533,7 @@ uint rtw_del_wfd_ie(u8 *ies, uint ies_len_ori, const char *msg)
|
|||||||
}
|
}
|
||||||
|
|
||||||
_rtw_memmove(target_ie, next_ie, remain_len);
|
_rtw_memmove(target_ie, next_ie, remain_len);
|
||||||
_rtw_memset(target_ie + remain_len, 0, target_ie_len);
|
memset(target_ie + remain_len, 0, target_ie_len);
|
||||||
ies_len -= target_ie_len;
|
ies_len -= target_ie_len;
|
||||||
|
|
||||||
if (DBG_DEL_WFD_IE && msg) {
|
if (DBG_DEL_WFD_IE && msg) {
|
||||||
@ -2574,7 +2574,7 @@ uint rtw_del_wfd_attr(u8 *ie, uint ielen_ori, u8 attr_id)
|
|||||||
}
|
}
|
||||||
|
|
||||||
_rtw_memmove(target_attr, next_attr, remain_len);
|
_rtw_memmove(target_attr, next_attr, remain_len);
|
||||||
_rtw_memset(target_attr + remain_len, 0, target_attr_len);
|
memset(target_attr + remain_len, 0, target_attr_len);
|
||||||
*(ie + 1) -= target_attr_len;
|
*(ie + 1) -= target_attr_len;
|
||||||
ielen -= target_attr_len;
|
ielen -= target_attr_len;
|
||||||
|
|
||||||
@ -2643,7 +2643,7 @@ void rtw_bss_ex_del_wfd_attr(WLAN_BSSID_EX *bss_ex, u8 attr_id)
|
|||||||
u8 *next_ie = ie + ie_len;
|
u8 *next_ie = ie + ie_len;
|
||||||
|
|
||||||
_rtw_memmove(next_ie, next_ie_ori, remain_len);
|
_rtw_memmove(next_ie, next_ie_ori, remain_len);
|
||||||
_rtw_memset(next_ie + remain_len, 0, ie_len_ori - ie_len);
|
memset(next_ie + remain_len, 0, ie_len_ori - ie_len);
|
||||||
bss_ex->IELength -= ie_len_ori - ie_len;
|
bss_ex->IELength -= ie_len_ori - ie_len;
|
||||||
|
|
||||||
ies = next_ie;
|
ies = next_ie;
|
||||||
|
@ -77,7 +77,7 @@ u8 query_802_11_association_information(_adapter *padapter, PNDIS_802_11_ASSOCIA
|
|||||||
unsigned char i, *auth_ie, *supp_ie;
|
unsigned char i, *auth_ie, *supp_ie;
|
||||||
|
|
||||||
/* NdisZeroMemory(pAssocInfo, sizeof(NDIS_802_11_ASSOCIATION_INFORMATION)); */
|
/* NdisZeroMemory(pAssocInfo, sizeof(NDIS_802_11_ASSOCIATION_INFORMATION)); */
|
||||||
_rtw_memset(pAssocInfo, 0, sizeof(NDIS_802_11_ASSOCIATION_INFORMATION));
|
memset(pAssocInfo, 0, sizeof(NDIS_802_11_ASSOCIATION_INFORMATION));
|
||||||
/* pAssocInfo->Length = sizeof(NDIS_802_11_ASSOCIATION_INFORMATION); */
|
/* pAssocInfo->Length = sizeof(NDIS_802_11_ASSOCIATION_INFORMATION); */
|
||||||
|
|
||||||
/* ------------------------------------------------------ */
|
/* ------------------------------------------------------ */
|
||||||
|
@ -145,7 +145,7 @@ u8 rtw_do_join(_adapter *padapter)
|
|||||||
|
|
||||||
pibss = padapter->registrypriv.dev_network.MacAddress;
|
pibss = padapter->registrypriv.dev_network.MacAddress;
|
||||||
|
|
||||||
_rtw_memset(&pdev_network->Ssid, 0, sizeof(NDIS_802_11_SSID));
|
memset(&pdev_network->Ssid, 0, sizeof(NDIS_802_11_SSID));
|
||||||
_rtw_memcpy(&pdev_network->Ssid, &pmlmepriv->assoc_ssid, sizeof(NDIS_802_11_SSID));
|
_rtw_memcpy(&pdev_network->Ssid, &pmlmepriv->assoc_ssid, sizeof(NDIS_802_11_SSID));
|
||||||
|
|
||||||
rtw_update_registrypriv_dev_network(padapter);
|
rtw_update_registrypriv_dev_network(padapter);
|
||||||
@ -327,7 +327,7 @@ handle_tkip_countermeasure:
|
|||||||
goto release_mlme_lock;
|
goto release_mlme_lock;
|
||||||
}
|
}
|
||||||
|
|
||||||
_rtw_memset(&pmlmepriv->assoc_ssid, 0, sizeof(NDIS_802_11_SSID));
|
memset(&pmlmepriv->assoc_ssid, 0, sizeof(NDIS_802_11_SSID));
|
||||||
_rtw_memcpy(&pmlmepriv->assoc_bssid, bssid, ETH_ALEN);
|
_rtw_memcpy(&pmlmepriv->assoc_bssid, bssid, ETH_ALEN);
|
||||||
pmlmepriv->assoc_by_bssid = _TRUE;
|
pmlmepriv->assoc_by_bssid = _TRUE;
|
||||||
|
|
||||||
@ -488,7 +488,7 @@ handle_tkip_countermeasure:
|
|||||||
if (ssid && ssid_valid)
|
if (ssid && ssid_valid)
|
||||||
_rtw_memcpy(&pmlmepriv->assoc_ssid, ssid, sizeof(NDIS_802_11_SSID));
|
_rtw_memcpy(&pmlmepriv->assoc_ssid, ssid, sizeof(NDIS_802_11_SSID));
|
||||||
else
|
else
|
||||||
_rtw_memset(&pmlmepriv->assoc_ssid, 0, sizeof(NDIS_802_11_SSID));
|
memset(&pmlmepriv->assoc_ssid, 0, sizeof(NDIS_802_11_SSID));
|
||||||
|
|
||||||
if (bssid && bssid_valid) {
|
if (bssid && bssid_valid) {
|
||||||
_rtw_memcpy(&pmlmepriv->assoc_bssid, bssid, ETH_ALEN);
|
_rtw_memcpy(&pmlmepriv->assoc_bssid, bssid, ETH_ALEN);
|
||||||
|
@ -189,7 +189,7 @@ void rtw_mi_status_by_ifbmp(struct dvobj_priv *dvobj, u8 ifbmp, struct mi_state
|
|||||||
_adapter *iface;
|
_adapter *iface;
|
||||||
int i;
|
int i;
|
||||||
|
|
||||||
_rtw_memset(mstate, 0, sizeof(struct mi_state));
|
memset(mstate, 0, sizeof(struct mi_state));
|
||||||
|
|
||||||
for (i = 0; i < dvobj->iface_nums; i++) {
|
for (i = 0; i < dvobj->iface_nums; i++) {
|
||||||
iface = dvobj->padapters[i];
|
iface = dvobj->padapters[i];
|
||||||
@ -949,25 +949,25 @@ static void rtw_dbg_dump_fwstate(_adapter *padapter, sint state)
|
|||||||
u8 buf[32] = {0};
|
u8 buf[32] = {0};
|
||||||
|
|
||||||
if (state & WIFI_FW_NULL_STATE) {
|
if (state & WIFI_FW_NULL_STATE) {
|
||||||
_rtw_memset(buf, 0, 32);
|
memset(buf, 0, 32);
|
||||||
sprintf(buf, "WIFI_FW_NULL_STATE");
|
sprintf(buf, "WIFI_FW_NULL_STATE");
|
||||||
RTW_INFO(FUNC_ADPT_FMT"fwstate-%s\n", FUNC_ADPT_ARG(padapter), buf);
|
RTW_INFO(FUNC_ADPT_FMT"fwstate-%s\n", FUNC_ADPT_ARG(padapter), buf);
|
||||||
}
|
}
|
||||||
|
|
||||||
if (state & _FW_LINKED) {
|
if (state & _FW_LINKED) {
|
||||||
_rtw_memset(buf, 0, 32);
|
memset(buf, 0, 32);
|
||||||
sprintf(buf, "_FW_LINKED");
|
sprintf(buf, "_FW_LINKED");
|
||||||
RTW_INFO(FUNC_ADPT_FMT"fwstate-%s\n", FUNC_ADPT_ARG(padapter), buf);
|
RTW_INFO(FUNC_ADPT_FMT"fwstate-%s\n", FUNC_ADPT_ARG(padapter), buf);
|
||||||
}
|
}
|
||||||
|
|
||||||
if (state & _FW_UNDER_LINKING) {
|
if (state & _FW_UNDER_LINKING) {
|
||||||
_rtw_memset(buf, 0, 32);
|
memset(buf, 0, 32);
|
||||||
sprintf(buf, "_FW_UNDER_LINKING");
|
sprintf(buf, "_FW_UNDER_LINKING");
|
||||||
RTW_INFO(FUNC_ADPT_FMT"fwstate-%s\n", FUNC_ADPT_ARG(padapter), buf);
|
RTW_INFO(FUNC_ADPT_FMT"fwstate-%s\n", FUNC_ADPT_ARG(padapter), buf);
|
||||||
}
|
}
|
||||||
|
|
||||||
if (state & _FW_UNDER_SURVEY) {
|
if (state & _FW_UNDER_SURVEY) {
|
||||||
_rtw_memset(buf, 0, 32);
|
memset(buf, 0, 32);
|
||||||
sprintf(buf, "_FW_UNDER_SURVEY");
|
sprintf(buf, "_FW_UNDER_SURVEY");
|
||||||
RTW_INFO(FUNC_ADPT_FMT"fwstate-%s\n", FUNC_ADPT_ARG(padapter), buf);
|
RTW_INFO(FUNC_ADPT_FMT"fwstate-%s\n", FUNC_ADPT_ARG(padapter), buf);
|
||||||
}
|
}
|
||||||
|
@ -48,7 +48,7 @@ sint _rtw_init_mlme_priv(_adapter *padapter)
|
|||||||
|
|
||||||
|
|
||||||
/* We don't need to memset padapter->XXX to zero, because adapter is allocated by rtw_zvmalloc(). */
|
/* We don't need to memset padapter->XXX to zero, because adapter is allocated by rtw_zvmalloc(). */
|
||||||
/* _rtw_memset((u8 *)pmlmepriv, 0, sizeof(struct mlme_priv)); */
|
/* memset((u8 *)pmlmepriv, 0, sizeof(struct mlme_priv)); */
|
||||||
|
|
||||||
|
|
||||||
/*qos_priv*/
|
/*qos_priv*/
|
||||||
@ -72,7 +72,7 @@ sint _rtw_init_mlme_priv(_adapter *padapter)
|
|||||||
|
|
||||||
set_scanned_network_val(pmlmepriv, 0);
|
set_scanned_network_val(pmlmepriv, 0);
|
||||||
|
|
||||||
_rtw_memset(&pmlmepriv->assoc_ssid, 0, sizeof(NDIS_802_11_SSID));
|
memset(&pmlmepriv->assoc_ssid, 0, sizeof(NDIS_802_11_SSID));
|
||||||
|
|
||||||
if (padapter->registrypriv.max_bss_cnt != 0)
|
if (padapter->registrypriv.max_bss_cnt != 0)
|
||||||
pmlmepriv->max_bss_cnt = padapter->registrypriv.max_bss_cnt;
|
pmlmepriv->max_bss_cnt = padapter->registrypriv.max_bss_cnt;
|
||||||
@ -1346,7 +1346,7 @@ void rtw_surveydone_event_callback(_adapter *adapter, u8 *pbuf)
|
|||||||
_clr_fwstate_(pmlmepriv, _FW_UNDER_SURVEY);
|
_clr_fwstate_(pmlmepriv, _FW_UNDER_SURVEY);
|
||||||
|
|
||||||
|
|
||||||
_rtw_memset(&pdev_network->Ssid, 0, sizeof(NDIS_802_11_SSID));
|
memset(&pdev_network->Ssid, 0, sizeof(NDIS_802_11_SSID));
|
||||||
_rtw_memcpy(&pdev_network->Ssid, &pmlmepriv->assoc_ssid, sizeof(NDIS_802_11_SSID));
|
_rtw_memcpy(&pdev_network->Ssid, &pmlmepriv->assoc_ssid, sizeof(NDIS_802_11_SSID));
|
||||||
|
|
||||||
rtw_update_registrypriv_dev_network(adapter);
|
rtw_update_registrypriv_dev_network(adapter);
|
||||||
@ -1388,7 +1388,7 @@ void rtw_surveydone_event_callback(_adapter *adapter, u8 *pbuf)
|
|||||||
rtw_set_to_roam(adapter, 0);
|
rtw_set_to_roam(adapter, 0);
|
||||||
#ifdef CONFIG_INTEL_WIDI
|
#ifdef CONFIG_INTEL_WIDI
|
||||||
if (adapter->mlmepriv.widi_state == INTEL_WIDI_STATE_ROAMING) {
|
if (adapter->mlmepriv.widi_state == INTEL_WIDI_STATE_ROAMING) {
|
||||||
_rtw_memset(pmlmepriv->sa_ext, 0x00, L2SDTA_SERVICE_VE_LEN);
|
memset(pmlmepriv->sa_ext, 0x00, L2SDTA_SERVICE_VE_LEN);
|
||||||
intel_widi_wk_cmd(adapter, INTEL_WIDI_LISTEN_WK, NULL, 0);
|
intel_widi_wk_cmd(adapter, INTEL_WIDI_LISTEN_WK, NULL, 0);
|
||||||
RTW_INFO("change to widi listen\n");
|
RTW_INFO("change to widi listen\n");
|
||||||
}
|
}
|
||||||
@ -1754,7 +1754,7 @@ void rtw_indicate_connect(_adapter *padapter)
|
|||||||
rtw_set_to_roam(padapter, 0);
|
rtw_set_to_roam(padapter, 0);
|
||||||
#ifdef CONFIG_INTEL_WIDI
|
#ifdef CONFIG_INTEL_WIDI
|
||||||
if (padapter->mlmepriv.widi_state == INTEL_WIDI_STATE_ROAMING) {
|
if (padapter->mlmepriv.widi_state == INTEL_WIDI_STATE_ROAMING) {
|
||||||
_rtw_memset(pmlmepriv->sa_ext, 0x00, L2SDTA_SERVICE_VE_LEN);
|
memset(pmlmepriv->sa_ext, 0x00, L2SDTA_SERVICE_VE_LEN);
|
||||||
intel_widi_wk_cmd(padapter, INTEL_WIDI_LISTEN_WK, NULL, 0);
|
intel_widi_wk_cmd(padapter, INTEL_WIDI_LISTEN_WK, NULL, 0);
|
||||||
RTW_INFO("change to widi listen\n");
|
RTW_INFO("change to widi listen\n");
|
||||||
}
|
}
|
||||||
@ -2048,9 +2048,9 @@ static struct sta_info *rtw_joinbss_update_stainfo(_adapter *padapter, struct wl
|
|||||||
psta->ieee8021x_blocked = _TRUE;
|
psta->ieee8021x_blocked = _TRUE;
|
||||||
psta->dot118021XPrivacy = padapter->securitypriv.dot11PrivacyAlgrthm;
|
psta->dot118021XPrivacy = padapter->securitypriv.dot11PrivacyAlgrthm;
|
||||||
|
|
||||||
_rtw_memset((u8 *)&psta->dot118021x_UncstKey, 0, sizeof(union Keytype));
|
memset((u8 *)&psta->dot118021x_UncstKey, 0, sizeof(union Keytype));
|
||||||
_rtw_memset((u8 *)&psta->dot11tkiprxmickey, 0, sizeof(union Keytype));
|
memset((u8 *)&psta->dot11tkiprxmickey, 0, sizeof(union Keytype));
|
||||||
_rtw_memset((u8 *)&psta->dot11tkiptxmickey, 0, sizeof(union Keytype));
|
memset((u8 *)&psta->dot11tkiptxmickey, 0, sizeof(union Keytype));
|
||||||
}
|
}
|
||||||
|
|
||||||
/* Commented by Albert 2012/07/21 */
|
/* Commented by Albert 2012/07/21 */
|
||||||
@ -2625,7 +2625,7 @@ void rtw_sta_timeout_event_callback(_adapter *adapter, u8 *pbuf)
|
|||||||
#ifdef CONFIG_RTW_80211R
|
#ifdef CONFIG_RTW_80211R
|
||||||
void rtw_ft_info_init(struct ft_roam_info *pft)
|
void rtw_ft_info_init(struct ft_roam_info *pft)
|
||||||
{
|
{
|
||||||
_rtw_memset(pft, 0, sizeof(struct ft_roam_info));
|
memset(pft, 0, sizeof(struct ft_roam_info));
|
||||||
pft->ft_flags = 0
|
pft->ft_flags = 0
|
||||||
| RTW_FT_EN
|
| RTW_FT_EN
|
||||||
| RTW_FT_OTD_EN
|
| RTW_FT_OTD_EN
|
||||||
@ -2680,9 +2680,9 @@ void rtw_ft_update_stainfo(_adapter *padapter, WLAN_BSSID_EX *pnetwork)
|
|||||||
psta->ieee8021x_blocked = _TRUE;
|
psta->ieee8021x_blocked = _TRUE;
|
||||||
psta->dot118021XPrivacy = padapter->securitypriv.dot11PrivacyAlgrthm;
|
psta->dot118021XPrivacy = padapter->securitypriv.dot11PrivacyAlgrthm;
|
||||||
|
|
||||||
_rtw_memset((u8 *)&psta->dot118021x_UncstKey, 0, sizeof(union Keytype));
|
memset((u8 *)&psta->dot118021x_UncstKey, 0, sizeof(union Keytype));
|
||||||
_rtw_memset((u8 *)&psta->dot11tkiprxmickey, 0, sizeof(union Keytype));
|
memset((u8 *)&psta->dot11tkiprxmickey, 0, sizeof(union Keytype));
|
||||||
_rtw_memset((u8 *)&psta->dot11tkiptxmickey, 0, sizeof(union Keytype));
|
memset((u8 *)&psta->dot11tkiptxmickey, 0, sizeof(union Keytype));
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
@ -2698,7 +2698,7 @@ void rtw_ft_reassoc_event_callback(_adapter *padapter, u8 *pbuf)
|
|||||||
struct cfg80211_ft_event_params ft_evt_parms;
|
struct cfg80211_ft_event_params ft_evt_parms;
|
||||||
_irqL irqL;
|
_irqL irqL;
|
||||||
|
|
||||||
_rtw_memset(&ft_evt_parms, 0, sizeof(ft_evt_parms));
|
memset(&ft_evt_parms, 0, sizeof(ft_evt_parms));
|
||||||
rtw_ft_update_stainfo(padapter, pnetwork);
|
rtw_ft_update_stainfo(padapter, pnetwork);
|
||||||
ft_evt_parms.ies_len = pft_roam->ft_event.ies_len;
|
ft_evt_parms.ies_len = pft_roam->ft_event.ies_len;
|
||||||
ft_evt_parms.ies = rtw_zmalloc(ft_evt_parms.ies_len);
|
ft_evt_parms.ies = rtw_zmalloc(ft_evt_parms.ies_len);
|
||||||
@ -2733,9 +2733,9 @@ void rtw_roam_nb_info_init(_adapter *padapter)
|
|||||||
{
|
{
|
||||||
struct roam_nb_info *pnb = &(padapter->mlmepriv.nb_info);
|
struct roam_nb_info *pnb = &(padapter->mlmepriv.nb_info);
|
||||||
|
|
||||||
_rtw_memset(&pnb->nb_rpt, 0, sizeof(pnb->nb_rpt));
|
memset(&pnb->nb_rpt, 0, sizeof(pnb->nb_rpt));
|
||||||
_rtw_memset(&pnb->nb_rpt_ch_list, 0, sizeof(pnb->nb_rpt_ch_list));
|
memset(&pnb->nb_rpt_ch_list, 0, sizeof(pnb->nb_rpt_ch_list));
|
||||||
_rtw_memset(&pnb->roam_target_addr, 0, ETH_ALEN);
|
memset(&pnb->roam_target_addr, 0, ETH_ALEN);
|
||||||
pnb->nb_rpt_valid = _FALSE;
|
pnb->nb_rpt_valid = _FALSE;
|
||||||
pnb->nb_rpt_ch_list_num = 0;
|
pnb->nb_rpt_ch_list_num = 0;
|
||||||
pnb->preference_en = _FALSE;
|
pnb->preference_en = _FALSE;
|
||||||
@ -2968,7 +2968,7 @@ void rtw_stadel_event_callback(_adapter *adapter, u8 *pbuf)
|
|||||||
|
|
||||||
_rtw_memcpy(pdev_network, &tgt_network->network, get_WLAN_BSSID_EX_sz(&tgt_network->network));
|
_rtw_memcpy(pdev_network, &tgt_network->network, get_WLAN_BSSID_EX_sz(&tgt_network->network));
|
||||||
|
|
||||||
_rtw_memset(&pdev_network->Ssid, 0, sizeof(NDIS_802_11_SSID));
|
memset(&pdev_network->Ssid, 0, sizeof(NDIS_802_11_SSID));
|
||||||
_rtw_memcpy(&pdev_network->Ssid, &pmlmepriv->assoc_ssid, sizeof(NDIS_802_11_SSID));
|
_rtw_memcpy(&pdev_network->Ssid, &pmlmepriv->assoc_ssid, sizeof(NDIS_802_11_SSID));
|
||||||
|
|
||||||
rtw_update_registrypriv_dev_network(adapter);
|
rtw_update_registrypriv_dev_network(adapter);
|
||||||
@ -3063,7 +3063,7 @@ void rtw_join_timeout_handler(void *ctx)
|
|||||||
} else {
|
} else {
|
||||||
#ifdef CONFIG_INTEL_WIDI
|
#ifdef CONFIG_INTEL_WIDI
|
||||||
if (adapter->mlmepriv.widi_state == INTEL_WIDI_STATE_ROAMING) {
|
if (adapter->mlmepriv.widi_state == INTEL_WIDI_STATE_ROAMING) {
|
||||||
_rtw_memset(pmlmepriv->sa_ext, 0x00, L2SDTA_SERVICE_VE_LEN);
|
memset(pmlmepriv->sa_ext, 0x00, L2SDTA_SERVICE_VE_LEN);
|
||||||
intel_widi_wk_cmd(adapter, INTEL_WIDI_LISTEN_WK, NULL, 0);
|
intel_widi_wk_cmd(adapter, INTEL_WIDI_LISTEN_WK, NULL, 0);
|
||||||
RTW_INFO("change to widi listen\n");
|
RTW_INFO("change to widi listen\n");
|
||||||
}
|
}
|
||||||
@ -3443,7 +3443,7 @@ static void collect_traffic_statistics(_adapter *padapter)
|
|||||||
{
|
{
|
||||||
struct dvobj_priv *pdvobjpriv = adapter_to_dvobj(padapter);
|
struct dvobj_priv *pdvobjpriv = adapter_to_dvobj(padapter);
|
||||||
|
|
||||||
/*_rtw_memset(&pdvobjpriv->traffic_stat, 0, sizeof(struct rtw_traffic_statistics));*/
|
/*memset(&pdvobjpriv->traffic_stat, 0, sizeof(struct rtw_traffic_statistics));*/
|
||||||
|
|
||||||
/* Tx bytes reset*/
|
/* Tx bytes reset*/
|
||||||
pdvobjpriv->traffic_stat.tx_bytes = 0;
|
pdvobjpriv->traffic_stat.tx_bytes = 0;
|
||||||
@ -3717,7 +3717,7 @@ int rtw_select_roaming_candidate(struct mlme_priv *mlme)
|
|||||||
mlme->roam_network = candidate;
|
mlme->roam_network = candidate;
|
||||||
|
|
||||||
if (_rtw_memcmp(candidate->network.MacAddress, mlme->roam_tgt_addr, ETH_ALEN) == _TRUE)
|
if (_rtw_memcmp(candidate->network.MacAddress, mlme->roam_tgt_addr, ETH_ALEN) == _TRUE)
|
||||||
_rtw_memset(mlme->roam_tgt_addr, 0, ETH_ALEN);
|
memset(mlme->roam_tgt_addr, 0, ETH_ALEN);
|
||||||
}
|
}
|
||||||
|
|
||||||
ret = _SUCCESS;
|
ret = _SUCCESS;
|
||||||
@ -3955,7 +3955,7 @@ sint rtw_set_auth(_adapter *adapter, struct security_priv *psecuritypriv)
|
|||||||
goto exit;
|
goto exit;
|
||||||
}
|
}
|
||||||
|
|
||||||
_rtw_memset(psetauthparm, 0, sizeof(struct setauth_parm));
|
memset(psetauthparm, 0, sizeof(struct setauth_parm));
|
||||||
psetauthparm->mode = (unsigned char)psecuritypriv->dot11AuthAlgrthm;
|
psetauthparm->mode = (unsigned char)psecuritypriv->dot11AuthAlgrthm;
|
||||||
|
|
||||||
pcmd->cmdcode = _SetAuth_CMD_;
|
pcmd->cmdcode = _SetAuth_CMD_;
|
||||||
@ -3992,7 +3992,7 @@ sint rtw_set_key(_adapter *adapter, struct security_priv *psecuritypriv, sint ke
|
|||||||
res = _FAIL;
|
res = _FAIL;
|
||||||
goto exit;
|
goto exit;
|
||||||
}
|
}
|
||||||
_rtw_memset(psetkeyparm, 0, sizeof(struct setkey_parm));
|
memset(psetkeyparm, 0, sizeof(struct setkey_parm));
|
||||||
|
|
||||||
if (psecuritypriv->dot11AuthAlgrthm == dot11AuthAlgrthm_8021X) {
|
if (psecuritypriv->dot11AuthAlgrthm == dot11AuthAlgrthm_8021X) {
|
||||||
psetkeyparm->algorithm = (unsigned char)psecuritypriv->dot118021XGrpPrivacy;
|
psetkeyparm->algorithm = (unsigned char)psecuritypriv->dot118021XGrpPrivacy;
|
||||||
@ -4637,7 +4637,7 @@ unsigned int rtw_restructure_ht_ie(_adapter *padapter, u8 *in_ie, u8 *out_ie, ui
|
|||||||
|
|
||||||
out_len = *pout_len;
|
out_len = *pout_len;
|
||||||
|
|
||||||
_rtw_memset(&ht_capie, 0, sizeof(struct rtw_ieee80211_ht_cap));
|
memset(&ht_capie, 0, sizeof(struct rtw_ieee80211_ht_cap));
|
||||||
|
|
||||||
ht_capie.cap_info = IEEE80211_HT_CAP_DSSSCCK40;
|
ht_capie.cap_info = IEEE80211_HT_CAP_DSSSCCK40;
|
||||||
|
|
||||||
|
File diff suppressed because it is too large
Load Diff
@ -114,7 +114,7 @@ static void _init_mp_priv_(struct mp_priv *pmp_priv)
|
|||||||
{
|
{
|
||||||
WLAN_BSSID_EX *pnetwork;
|
WLAN_BSSID_EX *pnetwork;
|
||||||
|
|
||||||
_rtw_memset(pmp_priv, 0, sizeof(struct mp_priv));
|
memset(pmp_priv, 0, sizeof(struct mp_priv));
|
||||||
|
|
||||||
pmp_priv->mode = MP_OFF;
|
pmp_priv->mode = MP_OFF;
|
||||||
|
|
||||||
@ -275,15 +275,15 @@ static void mp_init_xmit_attrib(struct mp_tx *pmptx, PADAPTER padapter)
|
|||||||
|
|
||||||
/* init xmitframe attribute */
|
/* init xmitframe attribute */
|
||||||
pattrib = &pmptx->attrib;
|
pattrib = &pmptx->attrib;
|
||||||
_rtw_memset(pattrib, 0, sizeof(struct pkt_attrib));
|
memset(pattrib, 0, sizeof(struct pkt_attrib));
|
||||||
_rtw_memset(pmptx->desc, 0, TXDESC_SIZE);
|
memset(pmptx->desc, 0, TXDESC_SIZE);
|
||||||
|
|
||||||
pattrib->ether_type = 0x8712;
|
pattrib->ether_type = 0x8712;
|
||||||
#if 0
|
#if 0
|
||||||
_rtw_memcpy(pattrib->src, adapter_mac_addr(padapter), ETH_ALEN);
|
_rtw_memcpy(pattrib->src, adapter_mac_addr(padapter), ETH_ALEN);
|
||||||
_rtw_memcpy(pattrib->ta, pattrib->src, ETH_ALEN);
|
_rtw_memcpy(pattrib->ta, pattrib->src, ETH_ALEN);
|
||||||
#endif
|
#endif
|
||||||
_rtw_memset(pattrib->dst, 0xFF, ETH_ALEN);
|
memset(pattrib->dst, 0xFF, ETH_ALEN);
|
||||||
|
|
||||||
/* pattrib->dhcp_pkt = 0;
|
/* pattrib->dhcp_pkt = 0;
|
||||||
* pattrib->pktlen = 0; */
|
* pattrib->pktlen = 0; */
|
||||||
@ -831,7 +831,7 @@ void MPT_PwrCtlDM(PADAPTER padapter, u32 bstart)
|
|||||||
{
|
{
|
||||||
struct txpwrtrack_cfg c;
|
struct txpwrtrack_cfg c;
|
||||||
u1Byte chnl = 0 ;
|
u1Byte chnl = 0 ;
|
||||||
_rtw_memset(&c, 0, sizeof(struct txpwrtrack_cfg));
|
memset(&c, 0, sizeof(struct txpwrtrack_cfg));
|
||||||
configure_txpower_track(pDM_Odm, &c);
|
configure_txpower_track(pDM_Odm, &c);
|
||||||
odm_clear_txpowertracking_state(pDM_Odm);
|
odm_clear_txpowertracking_state(pDM_Odm);
|
||||||
if (*c.odm_tx_pwr_track_set_pwr) {
|
if (*c.odm_tx_pwr_track_set_pwr) {
|
||||||
@ -870,7 +870,7 @@ u32 mp_join(PADAPTER padapter, u8 mode)
|
|||||||
WLAN_BSSID_EX *pnetwork = (WLAN_BSSID_EX *)(&(pmlmeinfo->network));
|
WLAN_BSSID_EX *pnetwork = (WLAN_BSSID_EX *)(&(pmlmeinfo->network));
|
||||||
|
|
||||||
/* 1. initialize a new WLAN_BSSID_EX */
|
/* 1. initialize a new WLAN_BSSID_EX */
|
||||||
_rtw_memset(&bssid, 0, sizeof(WLAN_BSSID_EX));
|
memset(&bssid, 0, sizeof(WLAN_BSSID_EX));
|
||||||
RTW_INFO("%s ,pmppriv->network_macaddr=%x %x %x %x %x %x\n", __func__,
|
RTW_INFO("%s ,pmppriv->network_macaddr=%x %x %x %x %x %x\n", __func__,
|
||||||
pmppriv->network_macaddr[0], pmppriv->network_macaddr[1], pmppriv->network_macaddr[2], pmppriv->network_macaddr[3], pmppriv->network_macaddr[4],
|
pmppriv->network_macaddr[0], pmppriv->network_macaddr[1], pmppriv->network_macaddr[2], pmppriv->network_macaddr[3], pmppriv->network_macaddr[4],
|
||||||
pmppriv->network_macaddr[5]);
|
pmppriv->network_macaddr[5]);
|
||||||
@ -1084,7 +1084,7 @@ void mp_stop_test(PADAPTER padapter)
|
|||||||
init_fwstate(pmlmepriv, pmppriv->prev_fw_state);
|
init_fwstate(pmlmepriv, pmppriv->prev_fw_state);
|
||||||
|
|
||||||
/* flush the cur_network */
|
/* flush the cur_network */
|
||||||
_rtw_memset(tgt_network, 0, sizeof(struct wlan_network));
|
memset(tgt_network, 0, sizeof(struct wlan_network));
|
||||||
|
|
||||||
_clr_fwstate_(pmlmepriv, WIFI_MP_STATE);
|
_clr_fwstate_(pmlmepriv, WIFI_MP_STATE);
|
||||||
|
|
||||||
@ -1975,7 +1975,7 @@ void SetPacketTx(PADAPTER padapter)
|
|||||||
pmp_priv->tx.buf = (u8 *)N_BYTE_ALIGMENT((SIZE_PTR)(pmp_priv->tx.pallocated_buf), XMITBUF_ALIGN_SZ);
|
pmp_priv->tx.buf = (u8 *)N_BYTE_ALIGMENT((SIZE_PTR)(pmp_priv->tx.pallocated_buf), XMITBUF_ALIGN_SZ);
|
||||||
ptr = pmp_priv->tx.buf;
|
ptr = pmp_priv->tx.buf;
|
||||||
|
|
||||||
_rtw_memset(pmp_priv->tx.desc, 0, TXDESC_SIZE);
|
memset(pmp_priv->tx.desc, 0, TXDESC_SIZE);
|
||||||
pkt_start = ptr;
|
pkt_start = ptr;
|
||||||
pkt_end = pkt_start + pkt_size;
|
pkt_end = pkt_start + pkt_size;
|
||||||
|
|
||||||
@ -2082,7 +2082,7 @@ void SetPacketTx(PADAPTER padapter)
|
|||||||
|
|
||||||
/* startPlace = (u32)(rtw_random32() % 3450); */
|
/* startPlace = (u32)(rtw_random32() % 3450); */
|
||||||
_rtw_memcpy(ptr, pmp_priv->TXradomBuffer, pkt_end - ptr);
|
_rtw_memcpy(ptr, pmp_priv->TXradomBuffer, pkt_end - ptr);
|
||||||
/* _rtw_memset(ptr, payload, pkt_end - ptr); */
|
/* memset(ptr, payload, pkt_end - ptr); */
|
||||||
rtw_mfree(pmp_priv->TXradomBuffer, 4096);
|
rtw_mfree(pmp_priv->TXradomBuffer, 4096);
|
||||||
|
|
||||||
/* 3 6. start thread */
|
/* 3 6. start thread */
|
||||||
@ -3220,7 +3220,7 @@ void CCK_generator(
|
|||||||
|
|
||||||
CRC16_generator(crc16_out, crc16_in, 32);
|
CRC16_generator(crc16_out, crc16_in, 32);
|
||||||
|
|
||||||
_rtw_memset(pPMacTxInfo->CRC16, 0, 2);
|
memset(pPMacTxInfo->CRC16, 0, 2);
|
||||||
ByteToBit(pPMacTxInfo->CRC16, crc16_out, 2);
|
ByteToBit(pPMacTxInfo->CRC16, crc16_out, 2);
|
||||||
|
|
||||||
}
|
}
|
||||||
@ -3640,7 +3640,7 @@ void L_SIG_generator(
|
|||||||
sig_bi[i] = 0;
|
sig_bi[i] = 0;
|
||||||
|
|
||||||
/* dump_buf(sig_bi,24);*/
|
/* dump_buf(sig_bi,24);*/
|
||||||
_rtw_memset(pPMacTxInfo->LSIG, 0, 3);
|
memset(pPMacTxInfo->LSIG, 0, 3);
|
||||||
ByteToBit(pPMacTxInfo->LSIG, (bool *)sig_bi, 3);
|
ByteToBit(pPMacTxInfo->LSIG, (bool *)sig_bi, 3);
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -3730,7 +3730,7 @@ void HT_SIG_generator(
|
|||||||
for (i = 42; i < 48; i++)
|
for (i = 42; i < 48; i++)
|
||||||
sig_bi[i] = 0;
|
sig_bi[i] = 0;
|
||||||
|
|
||||||
_rtw_memset(pPMacTxInfo->HT_SIG, 0, 6);
|
memset(pPMacTxInfo->HT_SIG, 0, 6);
|
||||||
ByteToBit(pPMacTxInfo->HT_SIG, sig_bi, 6);
|
ByteToBit(pPMacTxInfo->HT_SIG, sig_bi, 6);
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -3750,8 +3750,8 @@ void VHT_SIG_A_generator(
|
|||||||
UINT i;
|
UINT i;
|
||||||
bool sig_bi[48], crc8[8];
|
bool sig_bi[48], crc8[8];
|
||||||
|
|
||||||
_rtw_memset(sig_bi, 0, 48);
|
memset(sig_bi, 0, 48);
|
||||||
_rtw_memset(crc8, 0, 8);
|
memset(crc8, 0, 8);
|
||||||
|
|
||||||
/* BW Setting*/
|
/* BW Setting*/
|
||||||
for (i = 0; i < 2; i++)
|
for (i = 0; i < 2; i++)
|
||||||
@ -3798,7 +3798,7 @@ void VHT_SIG_A_generator(
|
|||||||
for (i = 42; i < 48; i++)
|
for (i = 42; i < 48; i++)
|
||||||
sig_bi[i] = 0;
|
sig_bi[i] = 0;
|
||||||
|
|
||||||
_rtw_memset(pPMacTxInfo->VHT_SIG_A, 0, 6);
|
memset(pPMacTxInfo->VHT_SIG_A, 0, 6);
|
||||||
ByteToBit(pPMacTxInfo->VHT_SIG_A, sig_bi, 6);
|
ByteToBit(pPMacTxInfo->VHT_SIG_A, sig_bi, 6);
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -3814,8 +3814,8 @@ void VHT_SIG_B_generator(
|
|||||||
UINT i, len, res, tail = 6, total_len, crc8_in_len;
|
UINT i, len, res, tail = 6, total_len, crc8_in_len;
|
||||||
UINT sigb_len;
|
UINT sigb_len;
|
||||||
|
|
||||||
_rtw_memset(sig_bi, 0, 32);
|
memset(sig_bi, 0, 32);
|
||||||
_rtw_memset(crc8_bi, 0, 8);
|
memset(crc8_bi, 0, 8);
|
||||||
|
|
||||||
/*Sounding Packet*/
|
/*Sounding Packet*/
|
||||||
if (pPMacTxInfo->NDP_sound == 1) {
|
if (pPMacTxInfo->NDP_sound == 1) {
|
||||||
@ -3867,7 +3867,7 @@ void VHT_SIG_B_generator(
|
|||||||
sig_bi[len + res + i] = 0;
|
sig_bi[len + res + i] = 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
_rtw_memset(pPMacTxInfo->VHT_SIG_B, 0, 4);
|
memset(pPMacTxInfo->VHT_SIG_B, 0, 4);
|
||||||
ByteToBit(pPMacTxInfo->VHT_SIG_B, sig_bi, 4);
|
ByteToBit(pPMacTxInfo->VHT_SIG_B, sig_bi, 4);
|
||||||
|
|
||||||
pPMacTxInfo->VHT_SIG_B_CRC = 0;
|
pPMacTxInfo->VHT_SIG_B_CRC = 0;
|
||||||
@ -3902,7 +3902,7 @@ void VHT_Delimiter_generator(
|
|||||||
for (j = 24; j < 32; j++) /* Delimiter[31:24]: Signature ('4E' in Hex, 78 in Dec)*/
|
for (j = 24; j < 32; j++) /* Delimiter[31:24]: Signature ('4E' in Hex, 78 in Dec)*/
|
||||||
sig_bi[j] = (78 >> (j - 24)) % 2;
|
sig_bi[j] = (78 >> (j - 24)) % 2;
|
||||||
|
|
||||||
_rtw_memset(pPMacTxInfo->VHT_Delimiter, 0, 4);
|
memset(pPMacTxInfo->VHT_Delimiter, 0, 4);
|
||||||
ByteToBit(pPMacTxInfo->VHT_Delimiter, sig_bi, 4);
|
ByteToBit(pPMacTxInfo->VHT_Delimiter, sig_bi, 4);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -163,7 +163,7 @@ static void issue_group_disc_req(struct wifidirect_info *pwdinfo, u8 *da)
|
|||||||
pattrib = &pmgntframe->attrib;
|
pattrib = &pmgntframe->attrib;
|
||||||
update_mgntframe_attrib(padapter, pattrib);
|
update_mgntframe_attrib(padapter, pattrib);
|
||||||
|
|
||||||
_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;
|
pframe = (u8 *)(pmgntframe->buf_addr) + TXDESC_OFFSET;
|
||||||
pwlanhdr = (struct rtw_ieee80211_hdr *)pframe;
|
pwlanhdr = (struct rtw_ieee80211_hdr *)pframe;
|
||||||
@ -223,7 +223,7 @@ static void issue_p2p_devdisc_resp(struct wifidirect_info *pwdinfo, u8 *da, u8 s
|
|||||||
pattrib = &pmgntframe->attrib;
|
pattrib = &pmgntframe->attrib;
|
||||||
update_mgntframe_attrib(padapter, pattrib);
|
update_mgntframe_attrib(padapter, pattrib);
|
||||||
|
|
||||||
_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;
|
pframe = (u8 *)(pmgntframe->buf_addr) + TXDESC_OFFSET;
|
||||||
pwlanhdr = (struct rtw_ieee80211_hdr *)pframe;
|
pwlanhdr = (struct rtw_ieee80211_hdr *)pframe;
|
||||||
@ -300,7 +300,7 @@ static void issue_p2p_provision_resp(struct wifidirect_info *pwdinfo, u8 *raddr,
|
|||||||
pattrib = &pmgntframe->attrib;
|
pattrib = &pmgntframe->attrib;
|
||||||
update_mgntframe_attrib(padapter, pattrib);
|
update_mgntframe_attrib(padapter, pattrib);
|
||||||
|
|
||||||
_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;
|
pframe = (u8 *)(pmgntframe->buf_addr) + TXDESC_OFFSET;
|
||||||
pwlanhdr = (struct rtw_ieee80211_hdr *)pframe;
|
pwlanhdr = (struct rtw_ieee80211_hdr *)pframe;
|
||||||
@ -404,7 +404,7 @@ static void issue_p2p_presence_resp(struct wifidirect_info *pwdinfo, u8 *da, u8
|
|||||||
pattrib = &pmgntframe->attrib;
|
pattrib = &pmgntframe->attrib;
|
||||||
update_mgntframe_attrib(padapter, pattrib);
|
update_mgntframe_attrib(padapter, pattrib);
|
||||||
|
|
||||||
_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;
|
pframe = (u8 *)(pmgntframe->buf_addr) + TXDESC_OFFSET;
|
||||||
pwlanhdr = (struct rtw_ieee80211_hdr *)pframe;
|
pwlanhdr = (struct rtw_ieee80211_hdr *)pframe;
|
||||||
@ -601,7 +601,7 @@ u32 build_beacon_wfd_ie(struct wifidirect_info *pwdinfo, u8 *pbuf)
|
|||||||
if (check_fwstate(pmlmepriv, _FW_LINKED) == _TRUE)
|
if (check_fwstate(pmlmepriv, _FW_LINKED) == _TRUE)
|
||||||
_rtw_memcpy(wfdie + wfdielen, &pmlmepriv->assoc_bssid[0], ETH_ALEN);
|
_rtw_memcpy(wfdie + wfdielen, &pmlmepriv->assoc_bssid[0], ETH_ALEN);
|
||||||
else
|
else
|
||||||
_rtw_memset(wfdie + wfdielen, 0x00, ETH_ALEN);
|
memset(wfdie + wfdielen, 0x00, ETH_ALEN);
|
||||||
|
|
||||||
wfdielen += ETH_ALEN;
|
wfdielen += ETH_ALEN;
|
||||||
|
|
||||||
@ -713,7 +713,7 @@ u32 build_probe_req_wfd_ie(struct wifidirect_info *pwdinfo, u8 *pbuf)
|
|||||||
if (check_fwstate(pmlmepriv, _FW_LINKED) == _TRUE)
|
if (check_fwstate(pmlmepriv, _FW_LINKED) == _TRUE)
|
||||||
_rtw_memcpy(wfdie + wfdielen, &pmlmepriv->assoc_bssid[0], ETH_ALEN);
|
_rtw_memcpy(wfdie + wfdielen, &pmlmepriv->assoc_bssid[0], ETH_ALEN);
|
||||||
else
|
else
|
||||||
_rtw_memset(wfdie + wfdielen, 0x00, ETH_ALEN);
|
memset(wfdie + wfdielen, 0x00, ETH_ALEN);
|
||||||
|
|
||||||
wfdielen += ETH_ALEN;
|
wfdielen += ETH_ALEN;
|
||||||
|
|
||||||
@ -856,7 +856,7 @@ u32 build_probe_resp_wfd_ie(struct wifidirect_info *pwdinfo, u8 *pbuf, u8 tunnel
|
|||||||
if (check_fwstate(pmlmepriv, _FW_LINKED) == _TRUE)
|
if (check_fwstate(pmlmepriv, _FW_LINKED) == _TRUE)
|
||||||
_rtw_memcpy(wfdie + wfdielen, &pmlmepriv->assoc_bssid[0], ETH_ALEN);
|
_rtw_memcpy(wfdie + wfdielen, &pmlmepriv->assoc_bssid[0], ETH_ALEN);
|
||||||
else
|
else
|
||||||
_rtw_memset(wfdie + wfdielen, 0x00, ETH_ALEN);
|
memset(wfdie + wfdielen, 0x00, ETH_ALEN);
|
||||||
|
|
||||||
wfdielen += ETH_ALEN;
|
wfdielen += ETH_ALEN;
|
||||||
|
|
||||||
@ -1010,7 +1010,7 @@ u32 build_assoc_req_wfd_ie(struct wifidirect_info *pwdinfo, u8 *pbuf)
|
|||||||
if (check_fwstate(pmlmepriv, _FW_LINKED) == _TRUE)
|
if (check_fwstate(pmlmepriv, _FW_LINKED) == _TRUE)
|
||||||
_rtw_memcpy(wfdie + wfdielen, &pmlmepriv->assoc_bssid[0], ETH_ALEN);
|
_rtw_memcpy(wfdie + wfdielen, &pmlmepriv->assoc_bssid[0], ETH_ALEN);
|
||||||
else
|
else
|
||||||
_rtw_memset(wfdie + wfdielen, 0x00, ETH_ALEN);
|
memset(wfdie + wfdielen, 0x00, ETH_ALEN);
|
||||||
|
|
||||||
wfdielen += ETH_ALEN;
|
wfdielen += ETH_ALEN;
|
||||||
|
|
||||||
@ -1109,7 +1109,7 @@ u32 build_assoc_resp_wfd_ie(struct wifidirect_info *pwdinfo, u8 *pbuf)
|
|||||||
if (check_fwstate(pmlmepriv, _FW_LINKED) == _TRUE)
|
if (check_fwstate(pmlmepriv, _FW_LINKED) == _TRUE)
|
||||||
_rtw_memcpy(wfdie + wfdielen, &pmlmepriv->assoc_bssid[0], ETH_ALEN);
|
_rtw_memcpy(wfdie + wfdielen, &pmlmepriv->assoc_bssid[0], ETH_ALEN);
|
||||||
else
|
else
|
||||||
_rtw_memset(wfdie + wfdielen, 0x00, ETH_ALEN);
|
memset(wfdie + wfdielen, 0x00, ETH_ALEN);
|
||||||
|
|
||||||
wfdielen += ETH_ALEN;
|
wfdielen += ETH_ALEN;
|
||||||
|
|
||||||
@ -1208,7 +1208,7 @@ u32 build_nego_req_wfd_ie(struct wifidirect_info *pwdinfo, u8 *pbuf)
|
|||||||
if (check_fwstate(pmlmepriv, _FW_LINKED) == _TRUE)
|
if (check_fwstate(pmlmepriv, _FW_LINKED) == _TRUE)
|
||||||
_rtw_memcpy(wfdie + wfdielen, &pmlmepriv->assoc_bssid[0], ETH_ALEN);
|
_rtw_memcpy(wfdie + wfdielen, &pmlmepriv->assoc_bssid[0], ETH_ALEN);
|
||||||
else
|
else
|
||||||
_rtw_memset(wfdie + wfdielen, 0x00, ETH_ALEN);
|
memset(wfdie + wfdielen, 0x00, ETH_ALEN);
|
||||||
|
|
||||||
wfdielen += ETH_ALEN;
|
wfdielen += ETH_ALEN;
|
||||||
|
|
||||||
@ -1307,7 +1307,7 @@ u32 build_nego_resp_wfd_ie(struct wifidirect_info *pwdinfo, u8 *pbuf)
|
|||||||
if (check_fwstate(pmlmepriv, _FW_LINKED) == _TRUE)
|
if (check_fwstate(pmlmepriv, _FW_LINKED) == _TRUE)
|
||||||
_rtw_memcpy(wfdie + wfdielen, &pmlmepriv->assoc_bssid[0], ETH_ALEN);
|
_rtw_memcpy(wfdie + wfdielen, &pmlmepriv->assoc_bssid[0], ETH_ALEN);
|
||||||
else
|
else
|
||||||
_rtw_memset(wfdie + wfdielen, 0x00, ETH_ALEN);
|
memset(wfdie + wfdielen, 0x00, ETH_ALEN);
|
||||||
|
|
||||||
wfdielen += ETH_ALEN;
|
wfdielen += ETH_ALEN;
|
||||||
|
|
||||||
@ -1407,7 +1407,7 @@ u32 build_nego_confirm_wfd_ie(struct wifidirect_info *pwdinfo, u8 *pbuf)
|
|||||||
if (check_fwstate(pmlmepriv, _FW_LINKED) == _TRUE)
|
if (check_fwstate(pmlmepriv, _FW_LINKED) == _TRUE)
|
||||||
_rtw_memcpy(wfdie + wfdielen, &pmlmepriv->assoc_bssid[0], ETH_ALEN);
|
_rtw_memcpy(wfdie + wfdielen, &pmlmepriv->assoc_bssid[0], ETH_ALEN);
|
||||||
else
|
else
|
||||||
_rtw_memset(wfdie + wfdielen, 0x00, ETH_ALEN);
|
memset(wfdie + wfdielen, 0x00, ETH_ALEN);
|
||||||
|
|
||||||
wfdielen += ETH_ALEN;
|
wfdielen += ETH_ALEN;
|
||||||
|
|
||||||
@ -1507,7 +1507,7 @@ u32 build_invitation_req_wfd_ie(struct wifidirect_info *pwdinfo, u8 *pbuf)
|
|||||||
if (check_fwstate(pmlmepriv, _FW_LINKED) == _TRUE)
|
if (check_fwstate(pmlmepriv, _FW_LINKED) == _TRUE)
|
||||||
_rtw_memcpy(wfdie + wfdielen, &pmlmepriv->assoc_bssid[0], ETH_ALEN);
|
_rtw_memcpy(wfdie + wfdielen, &pmlmepriv->assoc_bssid[0], ETH_ALEN);
|
||||||
else
|
else
|
||||||
_rtw_memset(wfdie + wfdielen, 0x00, ETH_ALEN);
|
memset(wfdie + wfdielen, 0x00, ETH_ALEN);
|
||||||
|
|
||||||
wfdielen += ETH_ALEN;
|
wfdielen += ETH_ALEN;
|
||||||
|
|
||||||
@ -1620,7 +1620,7 @@ u32 build_invitation_resp_wfd_ie(struct wifidirect_info *pwdinfo, u8 *pbuf)
|
|||||||
if (check_fwstate(pmlmepriv, _FW_LINKED) == _TRUE)
|
if (check_fwstate(pmlmepriv, _FW_LINKED) == _TRUE)
|
||||||
_rtw_memcpy(wfdie + wfdielen, &pmlmepriv->assoc_bssid[0], ETH_ALEN);
|
_rtw_memcpy(wfdie + wfdielen, &pmlmepriv->assoc_bssid[0], ETH_ALEN);
|
||||||
else
|
else
|
||||||
_rtw_memset(wfdie + wfdielen, 0x00, ETH_ALEN);
|
memset(wfdie + wfdielen, 0x00, ETH_ALEN);
|
||||||
|
|
||||||
wfdielen += ETH_ALEN;
|
wfdielen += ETH_ALEN;
|
||||||
|
|
||||||
@ -1733,7 +1733,7 @@ u32 build_provdisc_req_wfd_ie(struct wifidirect_info *pwdinfo, u8 *pbuf)
|
|||||||
if (check_fwstate(pmlmepriv, _FW_LINKED) == _TRUE)
|
if (check_fwstate(pmlmepriv, _FW_LINKED) == _TRUE)
|
||||||
_rtw_memcpy(wfdie + wfdielen, &pmlmepriv->assoc_bssid[0], ETH_ALEN);
|
_rtw_memcpy(wfdie + wfdielen, &pmlmepriv->assoc_bssid[0], ETH_ALEN);
|
||||||
else
|
else
|
||||||
_rtw_memset(wfdie + wfdielen, 0x00, ETH_ALEN);
|
memset(wfdie + wfdielen, 0x00, ETH_ALEN);
|
||||||
|
|
||||||
wfdielen += ETH_ALEN;
|
wfdielen += ETH_ALEN;
|
||||||
|
|
||||||
@ -1833,7 +1833,7 @@ u32 build_provdisc_resp_wfd_ie(struct wifidirect_info *pwdinfo, u8 *pbuf)
|
|||||||
if (check_fwstate(pmlmepriv, _FW_LINKED) == _TRUE)
|
if (check_fwstate(pmlmepriv, _FW_LINKED) == _TRUE)
|
||||||
_rtw_memcpy(wfdie + wfdielen, &pmlmepriv->assoc_bssid[0], ETH_ALEN);
|
_rtw_memcpy(wfdie + wfdielen, &pmlmepriv->assoc_bssid[0], ETH_ALEN);
|
||||||
else
|
else
|
||||||
_rtw_memset(wfdie + wfdielen, 0x00, ETH_ALEN);
|
memset(wfdie + wfdielen, 0x00, ETH_ALEN);
|
||||||
|
|
||||||
wfdielen += ETH_ALEN;
|
wfdielen += ETH_ALEN;
|
||||||
|
|
||||||
@ -2701,7 +2701,7 @@ u8 process_p2p_group_negotation_req(struct wifidirect_info *pwdinfo, u8 *pframe,
|
|||||||
attr_contentlen = 0;
|
attr_contentlen = 0;
|
||||||
if (rtw_get_p2p_attr_content(p2p_ie, p2p_ielen, P2P_ATTR_INTENDED_IF_ADDR, pwdinfo->p2p_peer_interface_addr, &attr_contentlen)) {
|
if (rtw_get_p2p_attr_content(p2p_ie, p2p_ielen, P2P_ATTR_INTENDED_IF_ADDR, pwdinfo->p2p_peer_interface_addr, &attr_contentlen)) {
|
||||||
if (attr_contentlen != ETH_ALEN)
|
if (attr_contentlen != ETH_ALEN)
|
||||||
_rtw_memset(pwdinfo->p2p_peer_interface_addr, 0x00, ETH_ALEN);
|
memset(pwdinfo->p2p_peer_interface_addr, 0x00, ETH_ALEN);
|
||||||
}
|
}
|
||||||
|
|
||||||
if (rtw_get_p2p_attr_content(p2p_ie, p2p_ielen, P2P_ATTR_CH_LIST, ch_content, &ch_cnt)) {
|
if (rtw_get_p2p_attr_content(p2p_ie, p2p_ielen, P2P_ATTR_CH_LIST, ch_content, &ch_cnt)) {
|
||||||
@ -2844,7 +2844,7 @@ u8 process_p2p_group_negotation_resp(struct wifidirect_info *pwdinfo, u8 *pframe
|
|||||||
attr_contentlen = 0;
|
attr_contentlen = 0;
|
||||||
if (rtw_get_p2p_attr_content(p2p_ie, p2p_ielen, P2P_ATTR_INTENDED_IF_ADDR, pwdinfo->p2p_peer_interface_addr, &attr_contentlen)) {
|
if (rtw_get_p2p_attr_content(p2p_ie, p2p_ielen, P2P_ATTR_INTENDED_IF_ADDR, pwdinfo->p2p_peer_interface_addr, &attr_contentlen)) {
|
||||||
if (attr_contentlen != ETH_ALEN)
|
if (attr_contentlen != ETH_ALEN)
|
||||||
_rtw_memset(pwdinfo->p2p_peer_interface_addr, 0x00, ETH_ALEN);
|
memset(pwdinfo->p2p_peer_interface_addr, 0x00, ETH_ALEN);
|
||||||
}
|
}
|
||||||
|
|
||||||
/* Try to get the peer's intent and tie breaker value. */
|
/* Try to get the peer's intent and tie breaker value. */
|
||||||
@ -2949,7 +2949,7 @@ u8 process_p2p_group_negotation_resp(struct wifidirect_info *pwdinfo, u8 *pframe
|
|||||||
|
|
||||||
/* Try to get the group id information if peer is GO */
|
/* Try to get the group id information if peer is GO */
|
||||||
attr_contentlen = 0;
|
attr_contentlen = 0;
|
||||||
_rtw_memset(groupid, 0x00, 38);
|
memset(groupid, 0x00, 38);
|
||||||
if (rtw_get_p2p_attr_content(p2p_ie, p2p_ielen, P2P_ATTR_GROUP_ID, groupid, &attr_contentlen)) {
|
if (rtw_get_p2p_attr_content(p2p_ie, p2p_ielen, P2P_ATTR_GROUP_ID, groupid, &attr_contentlen)) {
|
||||||
_rtw_memcpy(pwdinfo->groupid_info.go_device_addr, &groupid[0], ETH_ALEN);
|
_rtw_memcpy(pwdinfo->groupid_info.go_device_addr, &groupid[0], ETH_ALEN);
|
||||||
_rtw_memcpy(pwdinfo->groupid_info.ssid, &groupid[6], attr_contentlen - ETH_ALEN);
|
_rtw_memcpy(pwdinfo->groupid_info.ssid, &groupid[6], attr_contentlen - ETH_ALEN);
|
||||||
@ -3030,7 +3030,7 @@ u8 process_p2p_group_negotation_confirm(struct wifidirect_info *pwdinfo, u8 *pfr
|
|||||||
|
|
||||||
/* Try to get the group id information */
|
/* Try to get the group id information */
|
||||||
attr_contentlen = 0;
|
attr_contentlen = 0;
|
||||||
_rtw_memset(groupid, 0x00, 38);
|
memset(groupid, 0x00, 38);
|
||||||
if (rtw_get_p2p_attr_content(p2p_ie, p2p_ielen, P2P_ATTR_GROUP_ID, groupid, &attr_contentlen)) {
|
if (rtw_get_p2p_attr_content(p2p_ie, p2p_ielen, P2P_ATTR_GROUP_ID, groupid, &attr_contentlen)) {
|
||||||
RTW_INFO("[%s] Ssid = %s, ssidlen = %zu\n", __FUNCTION__, &groupid[ETH_ALEN], strlen(&groupid[ETH_ALEN]));
|
RTW_INFO("[%s] Ssid = %s, ssidlen = %zu\n", __FUNCTION__, &groupid[ETH_ALEN], strlen(&groupid[ETH_ALEN]));
|
||||||
_rtw_memcpy(pwdinfo->groupid_info.go_device_addr, &groupid[0], ETH_ALEN);
|
_rtw_memcpy(pwdinfo->groupid_info.go_device_addr, &groupid[0], ETH_ALEN);
|
||||||
@ -3903,7 +3903,7 @@ u8 *dump_p2p_attr_ch_list(u8 *p2p_ie, uint p2p_ielen, u8 *buf, u32 buf_len)
|
|||||||
|
|
||||||
attr_contentlen -= 3;
|
attr_contentlen -= 3;
|
||||||
|
|
||||||
_rtw_memset(ch_list, 0, 40);
|
memset(ch_list, 0, 40);
|
||||||
|
|
||||||
while (attr_contentlen > 0) {
|
while (attr_contentlen > 0) {
|
||||||
num_of_ch = *(pattr_temp + 1);
|
num_of_ch = *(pattr_temp + 1);
|
||||||
@ -4343,7 +4343,7 @@ void rtw_init_cfg80211_wifidirect_info(_adapter *padapter)
|
|||||||
{
|
{
|
||||||
struct cfg80211_wifidirect_info *pcfg80211_wdinfo = &padapter->cfg80211_wdinfo;
|
struct cfg80211_wifidirect_info *pcfg80211_wdinfo = &padapter->cfg80211_wdinfo;
|
||||||
|
|
||||||
_rtw_memset(pcfg80211_wdinfo, 0x00, sizeof(struct cfg80211_wifidirect_info));
|
memset(pcfg80211_wdinfo, 0x00, sizeof(struct cfg80211_wifidirect_info));
|
||||||
|
|
||||||
rtw_init_timer(&pcfg80211_wdinfo->remain_on_ch_timer, padapter, ro_ch_timer_process, padapter);
|
rtw_init_timer(&pcfg80211_wdinfo->remain_on_ch_timer, padapter, ro_ch_timer_process, padapter);
|
||||||
}
|
}
|
||||||
@ -4821,8 +4821,8 @@ int rtw_init_wifi_display_info(_adapter *padapter)
|
|||||||
pwfd_info->wfd_pc = _FALSE;
|
pwfd_info->wfd_pc = _FALSE;
|
||||||
|
|
||||||
/* Used in TDLS */
|
/* Used in TDLS */
|
||||||
_rtw_memset(pwfd_info->ip_address, 0x00, 4);
|
memset(pwfd_info->ip_address, 0x00, 4);
|
||||||
_rtw_memset(pwfd_info->peer_ip_address, 0x00, 4);
|
memset(pwfd_info->peer_ip_address, 0x00, 4);
|
||||||
return res;
|
return res;
|
||||||
|
|
||||||
}
|
}
|
||||||
@ -5109,32 +5109,32 @@ void init_wifidirect_info(_adapter *padapter, enum P2P_ROLE role)
|
|||||||
|
|
||||||
_rtw_memcpy((void *) pwdinfo->p2p_wildcard_ssid, "DIRECT-", 7);
|
_rtw_memcpy((void *) pwdinfo->p2p_wildcard_ssid, "DIRECT-", 7);
|
||||||
|
|
||||||
_rtw_memset(pwdinfo->device_name, 0x00, WPS_MAX_DEVICE_NAME_LEN);
|
memset(pwdinfo->device_name, 0x00, WPS_MAX_DEVICE_NAME_LEN);
|
||||||
pwdinfo->device_name_len = 0;
|
pwdinfo->device_name_len = 0;
|
||||||
|
|
||||||
_rtw_memset(&pwdinfo->invitereq_info, 0x00, sizeof(struct tx_invite_req_info));
|
memset(&pwdinfo->invitereq_info, 0x00, sizeof(struct tx_invite_req_info));
|
||||||
pwdinfo->invitereq_info.token = 3; /* Token used for P2P invitation request frame. */
|
pwdinfo->invitereq_info.token = 3; /* Token used for P2P invitation request frame. */
|
||||||
|
|
||||||
_rtw_memset(&pwdinfo->inviteresp_info, 0x00, sizeof(struct tx_invite_resp_info));
|
memset(&pwdinfo->inviteresp_info, 0x00, sizeof(struct tx_invite_resp_info));
|
||||||
pwdinfo->inviteresp_info.token = 0;
|
pwdinfo->inviteresp_info.token = 0;
|
||||||
|
|
||||||
pwdinfo->profileindex = 0;
|
pwdinfo->profileindex = 0;
|
||||||
_rtw_memset(&pwdinfo->profileinfo[0], 0x00, sizeof(struct profile_info) * P2P_MAX_PERSISTENT_GROUP_NUM);
|
memset(&pwdinfo->profileinfo[0], 0x00, sizeof(struct profile_info) * P2P_MAX_PERSISTENT_GROUP_NUM);
|
||||||
|
|
||||||
rtw_p2p_findphase_ex_set(pwdinfo, P2P_FINDPHASE_EX_NONE);
|
rtw_p2p_findphase_ex_set(pwdinfo, P2P_FINDPHASE_EX_NONE);
|
||||||
|
|
||||||
pwdinfo->listen_dwell = (u8)((rtw_get_current_time() % 3) + 1);
|
pwdinfo->listen_dwell = (u8)((rtw_get_current_time() % 3) + 1);
|
||||||
/* RTW_INFO( "[%s] listen_dwell time is %d00ms\n", __FUNCTION__, pwdinfo->listen_dwell ); */
|
/* RTW_INFO( "[%s] listen_dwell time is %d00ms\n", __FUNCTION__, pwdinfo->listen_dwell ); */
|
||||||
|
|
||||||
_rtw_memset(&pwdinfo->tx_prov_disc_info, 0x00, sizeof(struct tx_provdisc_req_info));
|
memset(&pwdinfo->tx_prov_disc_info, 0x00, sizeof(struct tx_provdisc_req_info));
|
||||||
pwdinfo->tx_prov_disc_info.wps_config_method_request = WPS_CM_NONE;
|
pwdinfo->tx_prov_disc_info.wps_config_method_request = WPS_CM_NONE;
|
||||||
|
|
||||||
_rtw_memset(&pwdinfo->nego_req_info, 0x00, sizeof(struct tx_nego_req_info));
|
memset(&pwdinfo->nego_req_info, 0x00, sizeof(struct tx_nego_req_info));
|
||||||
|
|
||||||
pwdinfo->device_password_id_for_nego = WPS_DPID_PBC;
|
pwdinfo->device_password_id_for_nego = WPS_DPID_PBC;
|
||||||
pwdinfo->negotiation_dialog_token = 1;
|
pwdinfo->negotiation_dialog_token = 1;
|
||||||
|
|
||||||
_rtw_memset(pwdinfo->nego_ssid, 0x00, WLAN_SSID_MAXLEN);
|
memset(pwdinfo->nego_ssid, 0x00, WLAN_SSID_MAXLEN);
|
||||||
pwdinfo->nego_ssidlen = 0;
|
pwdinfo->nego_ssidlen = 0;
|
||||||
|
|
||||||
pwdinfo->ui_got_wps_info = P2P_NO_WPSINFO;
|
pwdinfo->ui_got_wps_info = P2P_NO_WPSINFO;
|
||||||
@ -5145,11 +5145,11 @@ void init_wifidirect_info(_adapter *padapter, enum P2P_ROLE role)
|
|||||||
pwdinfo->supported_wps_cm = WPS_CONFIG_METHOD_DISPLAY | WPS_CONFIG_METHOD_PBC | WPS_CONFIG_METHOD_KEYPAD;
|
pwdinfo->supported_wps_cm = WPS_CONFIG_METHOD_DISPLAY | WPS_CONFIG_METHOD_PBC | WPS_CONFIG_METHOD_KEYPAD;
|
||||||
#endif /* CONFIG_WFD */
|
#endif /* CONFIG_WFD */
|
||||||
pwdinfo->channel_list_attr_len = 0;
|
pwdinfo->channel_list_attr_len = 0;
|
||||||
_rtw_memset(pwdinfo->channel_list_attr, 0x00, 100);
|
memset(pwdinfo->channel_list_attr, 0x00, 100);
|
||||||
|
|
||||||
_rtw_memset(pwdinfo->rx_prov_disc_info.strconfig_method_desc_of_prov_disc_req, 0x00, 4);
|
memset(pwdinfo->rx_prov_disc_info.strconfig_method_desc_of_prov_disc_req, 0x00, 4);
|
||||||
_rtw_memset(pwdinfo->rx_prov_disc_info.strconfig_method_desc_of_prov_disc_req, '0', 3);
|
memset(pwdinfo->rx_prov_disc_info.strconfig_method_desc_of_prov_disc_req, '0', 3);
|
||||||
_rtw_memset(&pwdinfo->groupid_info, 0x00, sizeof(struct group_id_info));
|
memset(&pwdinfo->groupid_info, 0x00, sizeof(struct group_id_info));
|
||||||
#ifdef CONFIG_CONCURRENT_MODE
|
#ifdef CONFIG_CONCURRENT_MODE
|
||||||
#ifdef CONFIG_IOCTL_CFG80211
|
#ifdef CONFIG_IOCTL_CFG80211
|
||||||
pwdinfo->ext_listen_interval = 1000; /* The interval to be available with legacy AP during p2p0-find/scan */
|
pwdinfo->ext_listen_interval = 1000; /* The interval to be available with legacy AP during p2p0-find/scan */
|
||||||
@ -5171,8 +5171,8 @@ void init_wifidirect_info(_adapter *padapter, enum P2P_ROLE role)
|
|||||||
#endif /* CONFIG_IOCTL_CFG80211 */
|
#endif /* CONFIG_IOCTL_CFG80211 */
|
||||||
|
|
||||||
pwdinfo->wfd_tdls_enable = 0;
|
pwdinfo->wfd_tdls_enable = 0;
|
||||||
_rtw_memset(pwdinfo->p2p_peer_interface_addr, 0x00, ETH_ALEN);
|
memset(pwdinfo->p2p_peer_interface_addr, 0x00, ETH_ALEN);
|
||||||
_rtw_memset(pwdinfo->p2p_peer_device_addr, 0x00, ETH_ALEN);
|
memset(pwdinfo->p2p_peer_device_addr, 0x00, ETH_ALEN);
|
||||||
|
|
||||||
pwdinfo->rx_invitereq_info.operation_ch[0] = 0;
|
pwdinfo->rx_invitereq_info.operation_ch[0] = 0;
|
||||||
pwdinfo->rx_invitereq_info.operation_ch[1] = 0; /* Used to indicate the scan end in site survey function */
|
pwdinfo->rx_invitereq_info.operation_ch[1] = 0; /* Used to indicate the scan end in site survey function */
|
||||||
@ -5415,10 +5415,10 @@ int rtw_p2p_enable(_adapter *padapter, enum P2P_ROLE role)
|
|||||||
rtw_p2p_set_state(pwdinfo, P2P_STATE_NONE);
|
rtw_p2p_set_state(pwdinfo, P2P_STATE_NONE);
|
||||||
rtw_p2p_set_pre_state(pwdinfo, P2P_STATE_NONE);
|
rtw_p2p_set_pre_state(pwdinfo, P2P_STATE_NONE);
|
||||||
rtw_p2p_set_role(pwdinfo, P2P_ROLE_DISABLE);
|
rtw_p2p_set_role(pwdinfo, P2P_ROLE_DISABLE);
|
||||||
_rtw_memset(&pwdinfo->rx_prov_disc_info, 0x00, sizeof(struct rx_provdisc_req_info));
|
memset(&pwdinfo->rx_prov_disc_info, 0x00, sizeof(struct rx_provdisc_req_info));
|
||||||
|
|
||||||
/* Remove profiles in wifidirect_info structure. */
|
/* Remove profiles in wifidirect_info structure. */
|
||||||
_rtw_memset(&pwdinfo->profileinfo[0], 0x00, sizeof(struct profile_info) * P2P_MAX_PERSISTENT_GROUP_NUM);
|
memset(&pwdinfo->profileinfo[0], 0x00, sizeof(struct profile_info) * P2P_MAX_PERSISTENT_GROUP_NUM);
|
||||||
pwdinfo->profileindex = 0;
|
pwdinfo->profileindex = 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -2268,7 +2268,7 @@ void rtw_free_pwrctrl_priv(PADAPTER adapter)
|
|||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
|
||||||
/* _rtw_memset((unsigned char *)pwrctrlpriv, 0, sizeof(struct pwrctrl_priv)); */
|
/* memset((unsigned char *)pwrctrlpriv, 0, sizeof(struct pwrctrl_priv)); */
|
||||||
|
|
||||||
|
|
||||||
#ifdef CONFIG_RESUME_IN_WORKQUEUE
|
#ifdef CONFIG_RESUME_IN_WORKQUEUE
|
||||||
|
@ -60,7 +60,7 @@ void _rtw_init_sta_recv_priv(struct sta_recv_priv *psta_recvpriv)
|
|||||||
|
|
||||||
|
|
||||||
|
|
||||||
_rtw_memset((u8 *)psta_recvpriv, 0, sizeof(struct sta_recv_priv));
|
memset((u8 *)psta_recvpriv, 0, sizeof(struct sta_recv_priv));
|
||||||
|
|
||||||
_rtw_spinlock_init(&psta_recvpriv->lock);
|
_rtw_spinlock_init(&psta_recvpriv->lock);
|
||||||
|
|
||||||
@ -81,7 +81,7 @@ sint _rtw_init_recv_priv(struct recv_priv *precvpriv, _adapter *padapter)
|
|||||||
|
|
||||||
|
|
||||||
/* We don't need to memset padapter->XXX to zero, because adapter is allocated by rtw_zvmalloc(). */
|
/* We don't need to memset padapter->XXX to zero, because adapter is allocated by rtw_zvmalloc(). */
|
||||||
/* _rtw_memset((unsigned char *)precvpriv, 0, sizeof (struct recv_priv)); */
|
/* memset((unsigned char *)precvpriv, 0, sizeof (struct recv_priv)); */
|
||||||
|
|
||||||
_rtw_spinlock_init(&precvpriv->lock);
|
_rtw_spinlock_init(&precvpriv->lock);
|
||||||
|
|
||||||
@ -116,7 +116,7 @@ sint _rtw_init_recv_priv(struct recv_priv *precvpriv, _adapter *padapter)
|
|||||||
res = _FAIL;
|
res = _FAIL;
|
||||||
goto exit;
|
goto exit;
|
||||||
}
|
}
|
||||||
/* _rtw_memset(precvpriv->pallocated_frame_buf, 0, NR_RECVFRAME * sizeof(union recv_frame) + RXFRAME_ALIGN_SZ); */
|
/* memset(precvpriv->pallocated_frame_buf, 0, NR_RECVFRAME * sizeof(union recv_frame) + RXFRAME_ALIGN_SZ); */
|
||||||
|
|
||||||
precvpriv->precv_frame_buf = (u8 *)N_BYTE_ALIGMENT((SIZE_PTR)(precvpriv->pallocated_frame_buf), RXFRAME_ALIGN_SZ);
|
precvpriv->precv_frame_buf = (u8 *)N_BYTE_ALIGMENT((SIZE_PTR)(precvpriv->pallocated_frame_buf), RXFRAME_ALIGN_SZ);
|
||||||
/* precvpriv->precv_frame_buf = precvpriv->pallocated_frame_buf + RXFRAME_ALIGN_SZ - */
|
/* precvpriv->precv_frame_buf = precvpriv->pallocated_frame_buf + RXFRAME_ALIGN_SZ - */
|
||||||
|
@ -328,7 +328,7 @@ static u8 *build_wlan_hdr(_adapter *padapter, struct xmit_frame *pmgntframe,
|
|||||||
pattr = &pmgntframe->attrib;
|
pattr = &pmgntframe->attrib;
|
||||||
update_mgntframe_attrib(padapter, pattr);
|
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;
|
pframe = (u8 *)(pmgntframe->buf_addr) + TXDESC_OFFSET;
|
||||||
pwlanhdr = (struct rtw_ieee80211_hdr *)pframe;
|
pwlanhdr = (struct rtw_ieee80211_hdr *)pframe;
|
||||||
@ -455,7 +455,7 @@ int rm_sitesurvey(struct rm_obj *prm)
|
|||||||
|
|
||||||
pch_set = &prm->q.ch_set[0];
|
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);
|
sizeof(struct rtw_ieee80211_channel) * MAX_OP_CHANNEL_SET_NUM);
|
||||||
|
|
||||||
if (prm->q.ch_num == 0) {
|
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);
|
meas_ch_num = rm_get_ch_set(pch_set, op_class, ch_num);
|
||||||
prm->q.ch_set_ch_amount = meas_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,
|
_rtw_memcpy(parm.ch, pch_set,
|
||||||
sizeof(struct rtw_ieee80211_channel) * MAX_OP_CHANNEL_SET_NUM);
|
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));
|
MAC_ARG(pbss->MacAddress));
|
||||||
|
|
||||||
len = 0;
|
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);
|
rm_gen_bcn_rep_ie(prm, tmp_buf, pnetwork, &len);
|
||||||
new_packet:
|
new_packet:
|
||||||
if (my_len == 0) {
|
if (my_len == 0) {
|
||||||
|
@ -245,7 +245,7 @@ struct rm_obj *rm_alloc_rmobj(_adapter *padapter)
|
|||||||
if (prm == NULL)
|
if (prm == NULL)
|
||||||
return NULL;
|
return NULL;
|
||||||
|
|
||||||
_rtw_memset(prm, 0, sizeof(struct rm_obj));
|
memset(prm, 0, sizeof(struct rm_obj));
|
||||||
|
|
||||||
/* alloc timer */
|
/* alloc timer */
|
||||||
if ((prm->pclock = rm_alloc_clock(padapter, prm)) == NULL) {
|
if ((prm->pclock = rm_alloc_clock(padapter, prm)) == NULL) {
|
||||||
|
@ -77,7 +77,7 @@ void init_rtw_rson_data(struct dvobj_priv *dvobj)
|
|||||||
dvobj->rson_data.connectible = RTW_RSON_DENYCONNECT;
|
dvobj->rson_data.connectible = RTW_RSON_DENYCONNECT;
|
||||||
#endif
|
#endif
|
||||||
dvobj->rson_data.loading = 0;
|
dvobj->rson_data.loading = 0;
|
||||||
_rtw_memset(dvobj->rson_data.res, 0xAA, sizeof(dvobj->rson_data.res));
|
memset(dvobj->rson_data.res, 0xAA, sizeof(dvobj->rson_data.res));
|
||||||
}
|
}
|
||||||
|
|
||||||
void rtw_rson_get_property_str(_adapter *padapter, char *rson_data_str)
|
void rtw_rson_get_property_str(_adapter *padapter, char *rson_data_str)
|
||||||
@ -396,7 +396,7 @@ void rtw_rson_show_survey_info(struct seq_file *m, _list *plist, _list *phead)
|
|||||||
if (!pnetwork)
|
if (!pnetwork)
|
||||||
break;
|
break;
|
||||||
|
|
||||||
_rtw_memset(&rson_data, 0, sizeof(rson_data));
|
memset(&rson_data, 0, sizeof(rson_data));
|
||||||
rson_score = 0;
|
rson_score = 0;
|
||||||
if (rtw_get_rson_struct(&(pnetwork->network), &rson_data) == _TRUE)
|
if (rtw_get_rson_struct(&(pnetwork->network), &rson_data) == _TRUE)
|
||||||
rson_score = rtw_cal_rson_score(&rson_data, pnetwork->network.Rssi);
|
rson_score = rtw_cal_rson_score(&rson_data, pnetwork->network.Rssi);
|
||||||
@ -432,7 +432,7 @@ u8 rtw_rson_ap_check_sta(_adapter *padapter, u8 *pframe, uint pkt_len, unsigned
|
|||||||
u8 *p;
|
u8 *p;
|
||||||
|
|
||||||
#ifndef CONFIG_RTW_REPEATER_SON_ROOT
|
#ifndef CONFIG_RTW_REPEATER_SON_ROOT
|
||||||
_rtw_memset(&rson_target, 0, sizeof(rson_target));
|
memset(&rson_target, 0, sizeof(rson_target));
|
||||||
for (p = pframe + WLAN_HDR_A3_LEN + ie_offset; ; p += (len + 2)) {
|
for (p = pframe + WLAN_HDR_A3_LEN + ie_offset; ; p += (len + 2)) {
|
||||||
p = rtw_get_ie(p, _VENDOR_SPECIFIC_IE_, &len, pkt_len - WLAN_HDR_A3_LEN - ie_offset);
|
p = rtw_get_ie(p, _VENDOR_SPECIFIC_IE_, &len, pkt_len - WLAN_HDR_A3_LEN - ie_offset);
|
||||||
|
|
||||||
@ -550,7 +550,7 @@ void rtw_rson_scan_cmd_hdl(_adapter *padapter, int op)
|
|||||||
rtw_set_to_roam(padapter, 0);
|
rtw_set_to_roam(padapter, 0);
|
||||||
#ifdef CONFIG_INTEL_WIDI
|
#ifdef CONFIG_INTEL_WIDI
|
||||||
if (padapter->mlmepriv.widi_state == INTEL_WIDI_STATE_ROAMING) {
|
if (padapter->mlmepriv.widi_state == INTEL_WIDI_STATE_ROAMING) {
|
||||||
_rtw_memset(pmlmepriv->sa_ext, 0x00, L2SDTA_SERVICE_VE_LEN);
|
memset(pmlmepriv->sa_ext, 0x00, L2SDTA_SERVICE_VE_LEN);
|
||||||
intel_widi_wk_cmd(padapter, INTEL_WIDI_LISTEN_WK, NULL, 0);
|
intel_widi_wk_cmd(padapter, INTEL_WIDI_LISTEN_WK, NULL, 0);
|
||||||
RTW_INFO("change to widi listen\n");
|
RTW_INFO("change to widi listen\n");
|
||||||
}
|
}
|
||||||
|
@ -1369,13 +1369,13 @@ static sint aes_cipher(u8 *key, uint hdrlen,
|
|||||||
frsubtype = frsubtype >> 4;
|
frsubtype = frsubtype >> 4;
|
||||||
|
|
||||||
|
|
||||||
_rtw_memset((void *)mic_iv, 0, 16);
|
memset((void *)mic_iv, 0, 16);
|
||||||
_rtw_memset((void *)mic_header1, 0, 16);
|
memset((void *)mic_header1, 0, 16);
|
||||||
_rtw_memset((void *)mic_header2, 0, 16);
|
memset((void *)mic_header2, 0, 16);
|
||||||
_rtw_memset((void *)ctr_preload, 0, 16);
|
memset((void *)ctr_preload, 0, 16);
|
||||||
_rtw_memset((void *)chain_buffer, 0, 16);
|
memset((void *)chain_buffer, 0, 16);
|
||||||
_rtw_memset((void *)aes_out, 0, 16);
|
memset((void *)aes_out, 0, 16);
|
||||||
_rtw_memset((void *)padded_buffer, 0, 16);
|
memset((void *)padded_buffer, 0, 16);
|
||||||
|
|
||||||
if ((hdrlen == WLAN_HDR_A3_LEN) || (hdrlen == WLAN_HDR_A3_QOS_LEN))
|
if ((hdrlen == WLAN_HDR_A3_LEN) || (hdrlen == WLAN_HDR_A3_QOS_LEN))
|
||||||
a4_exists = 0;
|
a4_exists = 0;
|
||||||
@ -1675,13 +1675,13 @@ static sint aes_decipher(u8 *key, uint hdrlen,
|
|||||||
frsubtype = frsubtype >> 4;
|
frsubtype = frsubtype >> 4;
|
||||||
|
|
||||||
|
|
||||||
_rtw_memset((void *)mic_iv, 0, 16);
|
memset((void *)mic_iv, 0, 16);
|
||||||
_rtw_memset((void *)mic_header1, 0, 16);
|
memset((void *)mic_header1, 0, 16);
|
||||||
_rtw_memset((void *)mic_header2, 0, 16);
|
memset((void *)mic_header2, 0, 16);
|
||||||
_rtw_memset((void *)ctr_preload, 0, 16);
|
memset((void *)ctr_preload, 0, 16);
|
||||||
_rtw_memset((void *)chain_buffer, 0, 16);
|
memset((void *)chain_buffer, 0, 16);
|
||||||
_rtw_memset((void *)aes_out, 0, 16);
|
memset((void *)aes_out, 0, 16);
|
||||||
_rtw_memset((void *)padded_buffer, 0, 16);
|
memset((void *)padded_buffer, 0, 16);
|
||||||
|
|
||||||
/* start to decrypt the payload */
|
/* start to decrypt the payload */
|
||||||
|
|
||||||
@ -2082,7 +2082,7 @@ u32 rtw_BIP_verify(_adapter *padapter, u8 *whdr_pos, sint flen
|
|||||||
mme = BIP_AAD + ori_len - 18;
|
mme = BIP_AAD + ori_len - 18;
|
||||||
|
|
||||||
/* clear the MIC field of MME to zero */
|
/* clear the MIC field of MME to zero */
|
||||||
_rtw_memset(mme + 10, 0, 8);
|
memset(mme + 10, 0, 8);
|
||||||
|
|
||||||
/* conscruct AAD, copy frame control field */
|
/* conscruct AAD, copy frame control field */
|
||||||
_rtw_memcpy(BIP_AAD, &pwlanhdr->frame_ctl, 2);
|
_rtw_memcpy(BIP_AAD, &pwlanhdr->frame_ctl, 2);
|
||||||
@ -2377,7 +2377,7 @@ static void hmac_sha256_vector(u8 *key, size_t key_len, size_t num_elem,
|
|||||||
* and text is the data being protected */
|
* and text is the data being protected */
|
||||||
|
|
||||||
/* start out by storing key in ipad */
|
/* start out by storing key in ipad */
|
||||||
_rtw_memset(k_pad, 0, sizeof(k_pad));
|
memset(k_pad, 0, sizeof(k_pad));
|
||||||
_rtw_memcpy(k_pad, key, key_len);
|
_rtw_memcpy(k_pad, key, key_len);
|
||||||
/* XOR key with ipad values */
|
/* XOR key with ipad values */
|
||||||
for (i = 0; i < 64; i++)
|
for (i = 0; i < 64; i++)
|
||||||
@ -2392,7 +2392,7 @@ static void hmac_sha256_vector(u8 *key, size_t key_len, size_t num_elem,
|
|||||||
}
|
}
|
||||||
sha256_vector(1 + num_elem, _addr, _len, mac);
|
sha256_vector(1 + num_elem, _addr, _len, mac);
|
||||||
|
|
||||||
_rtw_memset(k_pad, 0, sizeof(k_pad));
|
memset(k_pad, 0, sizeof(k_pad));
|
||||||
_rtw_memcpy(k_pad, key, key_len);
|
_rtw_memcpy(k_pad, key, key_len);
|
||||||
/* XOR key with opad values */
|
/* XOR key with opad values */
|
||||||
for (i = 0; i < 64; i++)
|
for (i = 0; i < 64; i++)
|
||||||
@ -2760,7 +2760,7 @@ static void gf_mulx(u8 *pad)
|
|||||||
|
|
||||||
static void aes_encrypt_deinit(void *ctx)
|
static void aes_encrypt_deinit(void *ctx)
|
||||||
{
|
{
|
||||||
_rtw_memset(ctx, 0, AES_PRIV_SIZE);
|
memset(ctx, 0, AES_PRIV_SIZE);
|
||||||
rtw_mfree(ctx, AES_PRIV_SIZE);
|
rtw_mfree(ctx, AES_PRIV_SIZE);
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -2789,7 +2789,7 @@ static int omac1_aes_128_vector(const u8 *key, size_t num_elem,
|
|||||||
ctx = aes_encrypt_init(key, 16);
|
ctx = aes_encrypt_init(key, 16);
|
||||||
if (ctx == NULL)
|
if (ctx == NULL)
|
||||||
return -1;
|
return -1;
|
||||||
_rtw_memset(cbc, 0, AES_BLOCK_SIZE);
|
memset(cbc, 0, AES_BLOCK_SIZE);
|
||||||
|
|
||||||
total_len = 0;
|
total_len = 0;
|
||||||
for (e = 0; e < num_elem; e++)
|
for (e = 0; e < num_elem; e++)
|
||||||
@ -2814,7 +2814,7 @@ static int omac1_aes_128_vector(const u8 *key, size_t num_elem,
|
|||||||
left -= AES_BLOCK_SIZE;
|
left -= AES_BLOCK_SIZE;
|
||||||
}
|
}
|
||||||
|
|
||||||
_rtw_memset(pad, 0, AES_BLOCK_SIZE);
|
memset(pad, 0, AES_BLOCK_SIZE);
|
||||||
aes_128_encrypt(ctx, pad, pad);
|
aes_128_encrypt(ctx, pad, pad);
|
||||||
gf_mulx(pad);
|
gf_mulx(pad);
|
||||||
|
|
||||||
@ -2859,7 +2859,7 @@ int omac1_aes_128(const u8 *key, const u8 *data, size_t data_len, u8 *mac)
|
|||||||
|
|
||||||
#ifdef CONFIG_RTW_MESH_AEK
|
#ifdef CONFIG_RTW_MESH_AEK
|
||||||
/* for AES-SIV */
|
/* for AES-SIV */
|
||||||
#define os_memset _rtw_memset
|
#define os_memset memset
|
||||||
#define os_memcpy _rtw_memcpy
|
#define os_memcpy _rtw_memcpy
|
||||||
#define os_malloc rtw_malloc
|
#define os_malloc rtw_malloc
|
||||||
#define bin_clear_free(bin, len) \
|
#define bin_clear_free(bin, len) \
|
||||||
@ -3181,7 +3181,7 @@ int wpa_tdls_ftie_mic(u8 *kck, u8 trans_seq,
|
|||||||
/* 7) FTIE, with the MIC field of the FTIE set to 0 */
|
/* 7) FTIE, with the MIC field of the FTIE set to 0 */
|
||||||
_rtw_memcpy(pos, ftie, 2 + ftie[1]);
|
_rtw_memcpy(pos, ftie, 2 + ftie[1]);
|
||||||
_ftie = (struct wpa_tdls_ftie *) pos;
|
_ftie = (struct wpa_tdls_ftie *) pos;
|
||||||
_rtw_memset(_ftie->mic, 0, TDLS_MIC_LEN);
|
memset(_ftie->mic, 0, TDLS_MIC_LEN);
|
||||||
pos += 2 + ftie[1];
|
pos += 2 + ftie[1];
|
||||||
|
|
||||||
ret = omac1_aes_128(kck, buf, pos - buf, mic);
|
ret = omac1_aes_128(kck, buf, pos - buf, mic);
|
||||||
@ -3230,7 +3230,7 @@ int wpa_tdls_teardown_ftie_mic(u8 *kck, u8 *lnkid, u16 reason,
|
|||||||
/* 5) FTIE, with the MIC field of the FTIE set to 0 */
|
/* 5) FTIE, with the MIC field of the FTIE set to 0 */
|
||||||
_rtw_memcpy(pos, ftie, 2 + ftie[1]);
|
_rtw_memcpy(pos, ftie, 2 + ftie[1]);
|
||||||
_ftie = (struct wpa_tdls_ftie *) pos;
|
_ftie = (struct wpa_tdls_ftie *) pos;
|
||||||
_rtw_memset(_ftie->mic, 0, TDLS_MIC_LEN);
|
memset(_ftie->mic, 0, TDLS_MIC_LEN);
|
||||||
pos += 2 + ftie[1];
|
pos += 2 + ftie[1];
|
||||||
|
|
||||||
ret = omac1_aes_128(kck, buf, pos - buf, mic);
|
ret = omac1_aes_128(kck, buf, pos - buf, mic);
|
||||||
@ -3280,7 +3280,7 @@ int tdls_verify_mic(u8 *kck, u8 trans_seq,
|
|||||||
_rtw_memcpy(pos, ftie, 2 + *(ftie + 1));
|
_rtw_memcpy(pos, ftie, 2 + *(ftie + 1));
|
||||||
pos += 2;
|
pos += 2;
|
||||||
tmp_ftie = (u8 *)(pos + 2);
|
tmp_ftie = (u8 *)(pos + 2);
|
||||||
_rtw_memset(tmp_ftie, 0, 16);
|
memset(tmp_ftie, 0, 16);
|
||||||
pos += *(ftie + 1);
|
pos += *(ftie + 1);
|
||||||
|
|
||||||
ret = omac1_aes_128(kck, buf, pos - buf, mic);
|
ret = omac1_aes_128(kck, buf, pos - buf, mic);
|
||||||
|
@ -37,7 +37,7 @@ struct st_register test_st_reg = {
|
|||||||
|
|
||||||
inline void rtw_st_ctl_init(struct st_ctl_t *st_ctl)
|
inline void rtw_st_ctl_init(struct st_ctl_t *st_ctl)
|
||||||
{
|
{
|
||||||
_rtw_memset(st_ctl->reg, 0 , sizeof(struct st_register) * SESSION_TRACKER_REG_ID_NUM);
|
memset(st_ctl->reg, 0 , sizeof(struct st_register) * SESSION_TRACKER_REG_ID_NUM);
|
||||||
_rtw_init_queue(&st_ctl->tracker_q);
|
_rtw_init_queue(&st_ctl->tracker_q);
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -200,7 +200,7 @@ void dump_st_ctl(void *sel, struct st_ctl_t *st_ctl)
|
|||||||
void _rtw_init_stainfo(struct sta_info *psta);
|
void _rtw_init_stainfo(struct sta_info *psta);
|
||||||
void _rtw_init_stainfo(struct sta_info *psta)
|
void _rtw_init_stainfo(struct sta_info *psta)
|
||||||
{
|
{
|
||||||
_rtw_memset((u8 *)psta, 0, sizeof(struct sta_info));
|
memset((u8 *)psta, 0, sizeof(struct sta_info));
|
||||||
|
|
||||||
_rtw_spinlock_init(&psta->lock);
|
_rtw_spinlock_init(&psta->lock);
|
||||||
_rtw_init_listhead(&psta->list);
|
_rtw_init_listhead(&psta->list);
|
||||||
@ -300,7 +300,7 @@ u32 _rtw_init_sta_priv(struct sta_priv *pstapriv)
|
|||||||
pstapriv->expire_to = 60;/* 60*2 = 120 sec = 2 min, expire after no any traffic. */
|
pstapriv->expire_to = 60;/* 60*2 = 120 sec = 2 min, expire after no any traffic. */
|
||||||
#endif
|
#endif
|
||||||
#ifdef CONFIG_ATMEL_RC_PATCH
|
#ifdef CONFIG_ATMEL_RC_PATCH
|
||||||
_rtw_memset(pstapriv->atmel_rc_pattern, 0, ETH_ALEN);
|
memset(pstapriv->atmel_rc_pattern, 0, ETH_ALEN);
|
||||||
#endif
|
#endif
|
||||||
pstapriv->max_num_sta = NUM_STA;
|
pstapriv->max_num_sta = NUM_STA;
|
||||||
|
|
||||||
@ -506,7 +506,7 @@ struct sta_info *rtw_alloc_stainfo(struct sta_priv *pstapriv, const u8 *hwaddr)
|
|||||||
for (i = 0; i < 16; i++) {
|
for (i = 0; i < 16; i++) {
|
||||||
_rtw_memcpy(&psta->sta_recvpriv.rxcache.tid_rxseq[i], &wRxSeqInitialValue, 2);
|
_rtw_memcpy(&psta->sta_recvpriv.rxcache.tid_rxseq[i], &wRxSeqInitialValue, 2);
|
||||||
_rtw_memcpy(&psta->sta_recvpriv.bmc_tid_rxseq[i], &wRxSeqInitialValue, 2);
|
_rtw_memcpy(&psta->sta_recvpriv.bmc_tid_rxseq[i], &wRxSeqInitialValue, 2);
|
||||||
_rtw_memset(&psta->sta_recvpriv.rxcache.iv[i], 0, sizeof(psta->sta_recvpriv.rxcache.iv[i]));
|
memset(&psta->sta_recvpriv.rxcache.iv[i], 0, sizeof(psta->sta_recvpriv.rxcache.iv[i]));
|
||||||
}
|
}
|
||||||
|
|
||||||
rtw_init_timer(&psta->addba_retry_timer, psta->padapter, addba_timer_hdl, psta);
|
rtw_init_timer(&psta->addba_retry_timer, psta->padapter, addba_timer_hdl, psta);
|
||||||
@ -548,7 +548,7 @@ struct sta_info *rtw_alloc_stainfo(struct sta_priv *pstapriv, const u8 *hwaddr)
|
|||||||
#endif
|
#endif
|
||||||
/* init for the sequence number of received management frame */
|
/* init for the sequence number of received management frame */
|
||||||
psta->RxMgmtFrameSeqNum = 0xffff;
|
psta->RxMgmtFrameSeqNum = 0xffff;
|
||||||
_rtw_memset(&psta->sta_stats, 0, sizeof(struct stainfo_stats));
|
memset(&psta->sta_stats, 0, sizeof(struct stainfo_stats));
|
||||||
|
|
||||||
rtw_alloc_macid(pstapriv->padapter, psta);
|
rtw_alloc_macid(pstapriv->padapter, psta);
|
||||||
|
|
||||||
@ -1221,7 +1221,7 @@ void rtw_pre_link_sta_ctl_reset(struct sta_priv *stapriv)
|
|||||||
|
|
||||||
u8 addrs[RTW_PRE_LINK_STA_NUM][ETH_ALEN];
|
u8 addrs[RTW_PRE_LINK_STA_NUM][ETH_ALEN];
|
||||||
|
|
||||||
_rtw_memset(addrs, 0, RTW_PRE_LINK_STA_NUM * ETH_ALEN);
|
memset(addrs, 0, RTW_PRE_LINK_STA_NUM * ETH_ALEN);
|
||||||
|
|
||||||
_enter_critical_bh(&(pre_link_sta_ctl->lock), &irqL);
|
_enter_critical_bh(&(pre_link_sta_ctl->lock), &irqL);
|
||||||
for (i = 0; i < RTW_PRE_LINK_STA_NUM; i++) {
|
for (i = 0; i < RTW_PRE_LINK_STA_NUM; i++) {
|
||||||
|
@ -89,7 +89,7 @@ int rtw_init_tdls_info(_adapter *padapter)
|
|||||||
void rtw_free_tdls_info(struct tdls_info *ptdlsinfo)
|
void rtw_free_tdls_info(struct tdls_info *ptdlsinfo)
|
||||||
{
|
{
|
||||||
|
|
||||||
_rtw_memset(ptdlsinfo, 0, sizeof(struct tdls_info));
|
memset(ptdlsinfo, 0, sizeof(struct tdls_info));
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -104,7 +104,7 @@ void rtw_free_all_tdls_sta(_adapter *padapter, u8 enqueue_cmd)
|
|||||||
struct sta_info *ptdls_sta[NUM_STA];
|
struct sta_info *ptdls_sta[NUM_STA];
|
||||||
u8 empty_hwaddr[ETH_ALEN] = { 0x00 };
|
u8 empty_hwaddr[ETH_ALEN] = { 0x00 };
|
||||||
|
|
||||||
_rtw_memset(ptdls_sta, 0x00, sizeof(ptdls_sta));
|
memset(ptdls_sta, 0x00, sizeof(ptdls_sta));
|
||||||
|
|
||||||
_enter_critical_bh(&pstapriv->sta_hash_lock, &irqL);
|
_enter_critical_bh(&pstapriv->sta_hash_lock, &irqL);
|
||||||
for (index = 0; index < NUM_STA; index++) {
|
for (index = 0; index < NUM_STA; index++) {
|
||||||
@ -302,7 +302,7 @@ int _issue_nulldata_to_TDLS_peer_STA(_adapter *padapter, unsigned char *da, unsi
|
|||||||
pattrib->mdata = 0;
|
pattrib->mdata = 0;
|
||||||
pattrib->retry_ctrl = _FALSE;
|
pattrib->retry_ctrl = _FALSE;
|
||||||
|
|
||||||
_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;
|
pframe = (u8 *)(pmgntframe->buf_addr) + TXDESC_OFFSET;
|
||||||
pwlanhdr = (struct rtw_ieee80211_hdr *)pframe;
|
pwlanhdr = (struct rtw_ieee80211_hdr *)pframe;
|
||||||
@ -425,7 +425,7 @@ void rtw_tdls_process_ht_cap(_adapter *padapter, struct sta_info *ptdls_sta, u8
|
|||||||
u8 cur_ldpc_cap = 0, cur_stbc_cap = 0, cur_beamform_cap = 0;
|
u8 cur_ldpc_cap = 0, cur_stbc_cap = 0, cur_beamform_cap = 0;
|
||||||
|
|
||||||
/* Save HT capabilities in the sta object */
|
/* Save HT capabilities in the sta object */
|
||||||
_rtw_memset(&ptdls_sta->htpriv.ht_cap, 0, sizeof(struct rtw_ieee80211_ht_cap));
|
memset(&ptdls_sta->htpriv.ht_cap, 0, sizeof(struct rtw_ieee80211_ht_cap));
|
||||||
if (data && Length >= sizeof(struct rtw_ieee80211_ht_cap)) {
|
if (data && Length >= sizeof(struct rtw_ieee80211_ht_cap)) {
|
||||||
ptdls_sta->flags |= WLAN_STA_HT;
|
ptdls_sta->flags |= WLAN_STA_HT;
|
||||||
ptdls_sta->flags |= WLAN_STA_WME;
|
ptdls_sta->flags |= WLAN_STA_WME;
|
||||||
@ -537,7 +537,7 @@ void rtw_tdls_process_vht_cap(_adapter *padapter, struct sta_info *ptdls_sta, u8
|
|||||||
u16 cur_beamform_cap = 0;
|
u16 cur_beamform_cap = 0;
|
||||||
u8 *pcap_mcs;
|
u8 *pcap_mcs;
|
||||||
|
|
||||||
_rtw_memset(&ptdls_sta->vhtpriv, 0, sizeof(struct vht_priv));
|
memset(&ptdls_sta->vhtpriv, 0, sizeof(struct vht_priv));
|
||||||
if (data && Length == 12) {
|
if (data && Length == 12) {
|
||||||
ptdls_sta->flags |= WLAN_STA_VHT;
|
ptdls_sta->flags |= WLAN_STA_VHT;
|
||||||
|
|
||||||
@ -1128,7 +1128,7 @@ int issue_tunneled_probe_req(_adapter *padapter)
|
|||||||
|
|
||||||
RTW_INFO("[%s]\n", __FUNCTION__);
|
RTW_INFO("[%s]\n", __FUNCTION__);
|
||||||
|
|
||||||
_rtw_memset(&txmgmt, 0x00, sizeof(struct tdls_txmgmt));
|
memset(&txmgmt, 0x00, sizeof(struct tdls_txmgmt));
|
||||||
txmgmt.action_code = TUNNELED_PROBE_REQ;
|
txmgmt.action_code = TUNNELED_PROBE_REQ;
|
||||||
|
|
||||||
pmgntframe = alloc_mgtxmitframe(pxmitpriv);
|
pmgntframe = alloc_mgtxmitframe(pxmitpriv);
|
||||||
@ -1170,7 +1170,7 @@ int issue_tunneled_probe_rsp(_adapter *padapter, union recv_frame *precv_frame)
|
|||||||
|
|
||||||
RTW_INFO("[%s]\n", __FUNCTION__);
|
RTW_INFO("[%s]\n", __FUNCTION__);
|
||||||
|
|
||||||
_rtw_memset(&txmgmt, 0x00, sizeof(struct tdls_txmgmt));
|
memset(&txmgmt, 0x00, sizeof(struct tdls_txmgmt));
|
||||||
txmgmt.action_code = TUNNELED_PROBE_RSP;
|
txmgmt.action_code = TUNNELED_PROBE_RSP;
|
||||||
|
|
||||||
pmgntframe = alloc_mgtxmitframe(pxmitpriv);
|
pmgntframe = alloc_mgtxmitframe(pxmitpriv);
|
||||||
@ -1520,7 +1520,7 @@ int issue_tdls_dis_rsp(_adapter *padapter, struct tdls_txmgmt *ptxmgmt, u8 priva
|
|||||||
pattrib = &pmgntframe->attrib;
|
pattrib = &pmgntframe->attrib;
|
||||||
update_mgntframe_attrib(padapter, pattrib);
|
update_mgntframe_attrib(padapter, pattrib);
|
||||||
|
|
||||||
_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;
|
pframe = (u8 *)(pmgntframe->buf_addr) + TXDESC_OFFSET;
|
||||||
pwlanhdr = (struct rtw_ieee80211_hdr *)pframe;
|
pwlanhdr = (struct rtw_ieee80211_hdr *)pframe;
|
||||||
@ -1609,7 +1609,7 @@ int issue_tdls_peer_traffic_indication(_adapter *padapter, struct sta_info *ptdl
|
|||||||
|
|
||||||
RTW_INFO("[TDLS] %s\n", __FUNCTION__);
|
RTW_INFO("[TDLS] %s\n", __FUNCTION__);
|
||||||
|
|
||||||
_rtw_memset(&txmgmt, 0x00, sizeof(struct tdls_txmgmt));
|
memset(&txmgmt, 0x00, sizeof(struct tdls_txmgmt));
|
||||||
txmgmt.action_code = TDLS_PEER_TRAFFIC_INDICATION;
|
txmgmt.action_code = TDLS_PEER_TRAFFIC_INDICATION;
|
||||||
|
|
||||||
pmgntframe = alloc_mgtxmitframe(pxmitpriv);
|
pmgntframe = alloc_mgtxmitframe(pxmitpriv);
|
||||||
@ -1662,7 +1662,7 @@ int issue_tdls_ch_switch_req(_adapter *padapter, struct sta_info *ptdls_sta)
|
|||||||
goto exit;
|
goto exit;
|
||||||
}
|
}
|
||||||
|
|
||||||
_rtw_memset(&txmgmt, 0x00, sizeof(struct tdls_txmgmt));
|
memset(&txmgmt, 0x00, sizeof(struct tdls_txmgmt));
|
||||||
txmgmt.action_code = TDLS_CHANNEL_SWITCH_REQUEST;
|
txmgmt.action_code = TDLS_CHANNEL_SWITCH_REQUEST;
|
||||||
|
|
||||||
pmgntframe = alloc_mgtxmitframe(pxmitpriv);
|
pmgntframe = alloc_mgtxmitframe(pxmitpriv);
|
||||||
@ -1767,7 +1767,7 @@ int On_TDLS_Dis_Rsp(_adapter *padapter, union recv_frame *precv_frame)
|
|||||||
if (psta)
|
if (psta)
|
||||||
rssi = psta->cmn.rssi_stat.rssi;
|
rssi = psta->cmn.rssi_stat.rssi;
|
||||||
|
|
||||||
_rtw_memset(&txmgmt, 0x00, sizeof(struct tdls_txmgmt));
|
memset(&txmgmt, 0x00, sizeof(struct tdls_txmgmt));
|
||||||
/* WFDTDLS: for sigma test, not to setup direct link automatically */
|
/* WFDTDLS: for sigma test, not to setup direct link automatically */
|
||||||
ptdlsinfo->dev_discovered = _TRUE;
|
ptdlsinfo->dev_discovered = _TRUE;
|
||||||
|
|
||||||
@ -1847,7 +1847,7 @@ sint On_TDLS_Setup_Req(_adapter *padapter, union recv_frame *precv_frame, struct
|
|||||||
if (rtw_tdls_is_setup_allowed(padapter) == _FALSE)
|
if (rtw_tdls_is_setup_allowed(padapter) == _FALSE)
|
||||||
goto exit;
|
goto exit;
|
||||||
|
|
||||||
_rtw_memset(&txmgmt, 0x00, sizeof(struct tdls_txmgmt));
|
memset(&txmgmt, 0x00, sizeof(struct tdls_txmgmt));
|
||||||
psa = get_sa(ptr);
|
psa = get_sa(ptr);
|
||||||
|
|
||||||
if (ptdlsinfo->sta_maximum == _TRUE) {
|
if (ptdlsinfo->sta_maximum == _TRUE) {
|
||||||
@ -2063,7 +2063,7 @@ int On_TDLS_Setup_Rsp(_adapter *padapter, union recv_frame *precv_frame, struct
|
|||||||
int ret = _SUCCESS;
|
int ret = _SUCCESS;
|
||||||
u32 timeout_interval = TDLS_TPK_RESEND_COUNT;
|
u32 timeout_interval = TDLS_TPK_RESEND_COUNT;
|
||||||
|
|
||||||
_rtw_memset(&txmgmt, 0x00, sizeof(struct tdls_txmgmt));
|
memset(&txmgmt, 0x00, sizeof(struct tdls_txmgmt));
|
||||||
psa = get_sa(ptr);
|
psa = get_sa(ptr);
|
||||||
|
|
||||||
ptr += prx_pkt_attrib->hdrlen + prx_pkt_attrib->iv_len + LLC_HEADER_SIZE + ETH_TYPE_LEN + PAYLOAD_TYPE_LEN;
|
ptr += prx_pkt_attrib->hdrlen + prx_pkt_attrib->iv_len + LLC_HEADER_SIZE + ETH_TYPE_LEN + PAYLOAD_TYPE_LEN;
|
||||||
@ -2352,7 +2352,7 @@ int On_TDLS_Dis_Req(_adapter *padapter, union recv_frame *precv_frame)
|
|||||||
if (rtw_tdls_is_driver_setup(padapter) == _FALSE)
|
if (rtw_tdls_is_driver_setup(padapter) == _FALSE)
|
||||||
goto exit;
|
goto exit;
|
||||||
|
|
||||||
_rtw_memset(&txmgmt, 0x00, sizeof(struct tdls_txmgmt));
|
memset(&txmgmt, 0x00, sizeof(struct tdls_txmgmt));
|
||||||
ptr += prx_pkt_attrib->hdrlen + prx_pkt_attrib->iv_len + LLC_HEADER_SIZE + ETH_TYPE_LEN + PAYLOAD_TYPE_LEN;
|
ptr += prx_pkt_attrib->hdrlen + prx_pkt_attrib->iv_len + LLC_HEADER_SIZE + ETH_TYPE_LEN + PAYLOAD_TYPE_LEN;
|
||||||
txmgmt.dialog_token = *(ptr + 2);
|
txmgmt.dialog_token = *(ptr + 2);
|
||||||
_rtw_memcpy(&txmgmt.peer, precv_frame->u.hdr.attrib.src, ETH_ALEN);
|
_rtw_memcpy(&txmgmt.peer, precv_frame->u.hdr.attrib.src, ETH_ALEN);
|
||||||
@ -2437,7 +2437,7 @@ int On_TDLS_Peer_Traffic_Indication(_adapter *padapter, union recv_frame *precv_
|
|||||||
struct tdls_txmgmt txmgmt;
|
struct tdls_txmgmt txmgmt;
|
||||||
|
|
||||||
ptr += pattrib->hdrlen + pattrib->iv_len + LLC_HEADER_SIZE + ETH_TYPE_LEN + PAYLOAD_TYPE_LEN;
|
ptr += pattrib->hdrlen + pattrib->iv_len + LLC_HEADER_SIZE + ETH_TYPE_LEN + PAYLOAD_TYPE_LEN;
|
||||||
_rtw_memset(&txmgmt, 0x00, sizeof(struct tdls_txmgmt));
|
memset(&txmgmt, 0x00, sizeof(struct tdls_txmgmt));
|
||||||
|
|
||||||
txmgmt.dialog_token = *(ptr + 2);
|
txmgmt.dialog_token = *(ptr + 2);
|
||||||
issue_tdls_peer_traffic_rsp(padapter, ptdls_sta, &txmgmt);
|
issue_tdls_peer_traffic_rsp(padapter, ptdls_sta, &txmgmt);
|
||||||
@ -2771,7 +2771,7 @@ void wfd_ie_tdls(_adapter *padapter, u8 *pframe, u32 *pktlen)
|
|||||||
if (check_fwstate(pmlmepriv, _FW_LINKED) == _TRUE)
|
if (check_fwstate(pmlmepriv, _FW_LINKED) == _TRUE)
|
||||||
_rtw_memcpy(wfdie + wfdielen, &pmlmepriv->assoc_bssid[0], ETH_ALEN);
|
_rtw_memcpy(wfdie + wfdielen, &pmlmepriv->assoc_bssid[0], ETH_ALEN);
|
||||||
else
|
else
|
||||||
_rtw_memset(wfdie + wfdielen, 0x00, ETH_ALEN);
|
memset(wfdie + wfdielen, 0x00, ETH_ALEN);
|
||||||
|
|
||||||
/* Local IP Address ATTR */
|
/* Local IP Address ATTR */
|
||||||
wfdie[wfdielen++] = WFD_ATTR_LOCAL_IP_ADDR;
|
wfdie[wfdielen++] = WFD_ATTR_LOCAL_IP_ADDR;
|
||||||
@ -3289,7 +3289,7 @@ void _tdls_tpk_timer_hdl(void *FunctionContext)
|
|||||||
struct sta_info *ptdls_sta = (struct sta_info *)FunctionContext;
|
struct sta_info *ptdls_sta = (struct sta_info *)FunctionContext;
|
||||||
struct tdls_txmgmt txmgmt;
|
struct tdls_txmgmt txmgmt;
|
||||||
|
|
||||||
_rtw_memset(&txmgmt, 0x00, sizeof(struct tdls_txmgmt));
|
memset(&txmgmt, 0x00, sizeof(struct tdls_txmgmt));
|
||||||
ptdls_sta->TPK_count++;
|
ptdls_sta->TPK_count++;
|
||||||
/* TPK_timer expired in a second */
|
/* TPK_timer expired in a second */
|
||||||
/* Retry timer should set at least 301 sec. */
|
/* Retry timer should set at least 301 sec. */
|
||||||
@ -3355,7 +3355,7 @@ void _tdls_handshake_timer_hdl(void *FunctionContext)
|
|||||||
_adapter *padapter = NULL;
|
_adapter *padapter = NULL;
|
||||||
struct tdls_txmgmt txmgmt;
|
struct tdls_txmgmt txmgmt;
|
||||||
|
|
||||||
_rtw_memset(&txmgmt, 0x00, sizeof(struct tdls_txmgmt));
|
memset(&txmgmt, 0x00, sizeof(struct tdls_txmgmt));
|
||||||
_rtw_memcpy(txmgmt.peer, ptdls_sta->cmn.mac_addr, ETH_ALEN);
|
_rtw_memcpy(txmgmt.peer, ptdls_sta->cmn.mac_addr, ETH_ALEN);
|
||||||
txmgmt.status_code = _RSON_TDLS_TEAR_UN_RSN_;
|
txmgmt.status_code = _RSON_TDLS_TEAR_UN_RSN_;
|
||||||
|
|
||||||
@ -3376,7 +3376,7 @@ void _tdls_pti_timer_hdl(void *FunctionContext)
|
|||||||
_adapter *padapter = NULL;
|
_adapter *padapter = NULL;
|
||||||
struct tdls_txmgmt txmgmt;
|
struct tdls_txmgmt txmgmt;
|
||||||
|
|
||||||
_rtw_memset(&txmgmt, 0x00, sizeof(struct tdls_txmgmt));
|
memset(&txmgmt, 0x00, sizeof(struct tdls_txmgmt));
|
||||||
_rtw_memcpy(txmgmt.peer, ptdls_sta->cmn.mac_addr, ETH_ALEN);
|
_rtw_memcpy(txmgmt.peer, ptdls_sta->cmn.mac_addr, ETH_ALEN);
|
||||||
txmgmt.status_code = _RSON_TDLS_TEAR_TOOFAR_;
|
txmgmt.status_code = _RSON_TDLS_TEAR_TOOFAR_;
|
||||||
|
|
||||||
@ -3433,7 +3433,7 @@ void rtw_tdls_teardown_pre_hdl(_adapter *padapter, struct sta_info *psta)
|
|||||||
|
|
||||||
if (ptdlsinfo->sta_cnt < MAX_ALLOWED_TDLS_STA_NUM) {
|
if (ptdlsinfo->sta_cnt < MAX_ALLOWED_TDLS_STA_NUM) {
|
||||||
ptdlsinfo->sta_maximum = _FALSE;
|
ptdlsinfo->sta_maximum = _FALSE;
|
||||||
_rtw_memset(&ptdlsinfo->ss_record, 0x00, sizeof(struct tdls_ss_record));
|
memset(&ptdlsinfo->ss_record, 0x00, sizeof(struct tdls_ss_record));
|
||||||
}
|
}
|
||||||
|
|
||||||
if (ptdlsinfo->sta_cnt == 0)
|
if (ptdlsinfo->sta_cnt == 0)
|
||||||
|
@ -741,7 +741,7 @@ u32 rtw_build_vht_operation_ie(_adapter *padapter, u8 *pbuf, u8 channel)
|
|||||||
u32 len = 0;
|
u32 len = 0;
|
||||||
u8 operation[5];
|
u8 operation[5];
|
||||||
|
|
||||||
_rtw_memset(operation, 0, 5);
|
memset(operation, 0, 5);
|
||||||
|
|
||||||
bw_mode = REGSTY_BW_5G(pregistrypriv); /* TODO: control op bw with other info */
|
bw_mode = REGSTY_BW_5G(pregistrypriv); /* TODO: control op bw with other info */
|
||||||
|
|
||||||
@ -805,7 +805,7 @@ u32 rtw_build_vht_cap_ie(_adapter *padapter, u8 *pbuf)
|
|||||||
struct mlme_ext_info *pmlmeinfo = &(pmlmeext->mlmext_info);
|
struct mlme_ext_info *pmlmeinfo = &(pmlmeext->mlmext_info);
|
||||||
|
|
||||||
pcap = pvhtpriv->vht_cap;
|
pcap = pvhtpriv->vht_cap;
|
||||||
_rtw_memset(pcap, 0, 32);
|
memset(pcap, 0, 32);
|
||||||
|
|
||||||
/* B0 B1 Maximum MPDU Length */
|
/* B0 B1 Maximum MPDU Length */
|
||||||
rtw_hal_get_def_var(padapter, HAL_DEF_RX_PACKET_OFFSET, &rx_packet_offset);
|
rtw_hal_get_def_var(padapter, HAL_DEF_RX_PACKET_OFFSET, &rx_packet_offset);
|
||||||
|
@ -201,7 +201,7 @@ u8 WapiGetEntryForCamClear(_adapter *padapter, u8 *pPeerMac, u8 keyid, u8 IsMsk)
|
|||||||
&& pWapiInfo->wapiCamEntry[i].type == IsMsk) {
|
&& pWapiInfo->wapiCamEntry[i].type == IsMsk) {
|
||||||
pWapiInfo->wapiCamEntry[i].IsUsed = 0;
|
pWapiInfo->wapiCamEntry[i].IsUsed = 0;
|
||||||
pWapiInfo->wapiCamEntry[i].keyidx = 2;
|
pWapiInfo->wapiCamEntry[i].keyidx = 2;
|
||||||
_rtw_memset(pWapiInfo->wapiCamEntry[i].PeerMacAddr, 0, ETH_ALEN);
|
memset(pWapiInfo->wapiCamEntry[i].PeerMacAddr, 0, ETH_ALEN);
|
||||||
|
|
||||||
WAPI_TRACE(WAPI_API, "<========== %s\n", __FUNCTION__);
|
WAPI_TRACE(WAPI_API, "<========== %s\n", __FUNCTION__);
|
||||||
return pWapiInfo->wapiCamEntry[i].entry_idx;
|
return pWapiInfo->wapiCamEntry[i].entry_idx;
|
||||||
@ -244,7 +244,7 @@ WapiResetAllCamEntry(_adapter *padapter)
|
|||||||
pWapiInfo = &padapter->wapiInfo;
|
pWapiInfo = &padapter->wapiInfo;
|
||||||
|
|
||||||
for (i = 0; i < WAPI_CAM_ENTRY_NUM; i++) {
|
for (i = 0; i < WAPI_CAM_ENTRY_NUM; i++) {
|
||||||
_rtw_memset(pWapiInfo->wapiCamEntry[i].PeerMacAddr, 0, ETH_ALEN);
|
memset(pWapiInfo->wapiCamEntry[i].PeerMacAddr, 0, ETH_ALEN);
|
||||||
pWapiInfo->wapiCamEntry[i].IsUsed = 0;
|
pWapiInfo->wapiCamEntry[i].IsUsed = 0;
|
||||||
pWapiInfo->wapiCamEntry[i].keyidx = 2; /* invalid */
|
pWapiInfo->wapiCamEntry[i].keyidx = 2; /* invalid */
|
||||||
pWapiInfo->wapiCamEntry[i].entry_idx = 4 + i * 2;
|
pWapiInfo->wapiCamEntry[i].entry_idx = 4 + i * 2;
|
||||||
@ -687,7 +687,7 @@ void rtw_wapi_return_one_sta_info(_adapter *padapter, u8 *MacAddr)
|
|||||||
while (!list_empty(&(pWapiInfo->wapiBKIDStoreList))) {
|
while (!list_empty(&(pWapiInfo->wapiBKIDStoreList))) {
|
||||||
pWapiBkid = (PRT_WAPI_BKID)list_entry(pWapiInfo->wapiBKIDStoreList.next, RT_WAPI_BKID, list);
|
pWapiBkid = (PRT_WAPI_BKID)list_entry(pWapiInfo->wapiBKIDStoreList.next, RT_WAPI_BKID, list);
|
||||||
list_del_init(&pWapiBkid->list);
|
list_del_init(&pWapiBkid->list);
|
||||||
_rtw_memset(pWapiBkid->bkid, 0, 16);
|
memset(pWapiBkid->bkid, 0, 16);
|
||||||
list_add_tail(&pWapiBkid->list, &pWapiInfo->wapiBKIDIdleList);
|
list_add_tail(&pWapiBkid->list, &pWapiInfo->wapiBKIDIdleList);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@ -732,7 +732,7 @@ void rtw_wapi_return_one_sta_info(_adapter *padapter, u8 *MacAddr)
|
|||||||
if (_rtw_memcmp(pWapiStaInfo->PeerMacAddr, MacAddr, ETH_ALEN) == _TRUE) {
|
if (_rtw_memcmp(pWapiStaInfo->PeerMacAddr, MacAddr, ETH_ALEN) == _TRUE) {
|
||||||
pWapiStaInfo->bAuthenticateInProgress = false;
|
pWapiStaInfo->bAuthenticateInProgress = false;
|
||||||
pWapiStaInfo->bSetkeyOk = false;
|
pWapiStaInfo->bSetkeyOk = false;
|
||||||
_rtw_memset(pWapiStaInfo->PeerMacAddr, 0, ETH_ALEN);
|
memset(pWapiStaInfo->PeerMacAddr, 0, ETH_ALEN);
|
||||||
list_del_init(&pWapiStaInfo->list);
|
list_del_init(&pWapiStaInfo->list);
|
||||||
list_add_tail(&pWapiStaInfo->list, &pWapiInfo->wapiSTAIdleList);
|
list_add_tail(&pWapiStaInfo->list, &pWapiInfo->wapiSTAIdleList);
|
||||||
break;
|
break;
|
||||||
@ -1163,7 +1163,7 @@ void rtw_wapi_get_iv(_adapter *padapter, u8 *pRA, u8 *IV)
|
|||||||
} else {
|
} else {
|
||||||
if (list_empty(&pWapiInfo->wapiSTAUsedList)) {
|
if (list_empty(&pWapiInfo->wapiSTAUsedList)) {
|
||||||
WAPI_TRACE(WAPI_RX, "rtw_wapi_get_iv: list is empty\n");
|
WAPI_TRACE(WAPI_RX, "rtw_wapi_get_iv: list is empty\n");
|
||||||
_rtw_memset(IV, 10, 18);
|
memset(IV, 10, 18);
|
||||||
return;
|
return;
|
||||||
} else {
|
} else {
|
||||||
list_for_each_entry(pWapiSta, &pWapiInfo->wapiSTAUsedList, list) {
|
list_for_each_entry(pWapiSta, &pWapiInfo->wapiSTAUsedList, list) {
|
||||||
|
@ -336,7 +336,7 @@ void get_rate_set(_adapter *padapter, unsigned char *pbssrate, int *bssrate_len)
|
|||||||
{
|
{
|
||||||
unsigned char supportedrates[NumRates];
|
unsigned char supportedrates[NumRates];
|
||||||
|
|
||||||
_rtw_memset(supportedrates, 0, NumRates);
|
memset(supportedrates, 0, NumRates);
|
||||||
*bssrate_len = ratetbl2rateset(padapter, supportedrates);
|
*bssrate_len = ratetbl2rateset(padapter, supportedrates);
|
||||||
_rtw_memcpy(pbssrate, supportedrates, *bssrate_len);
|
_rtw_memcpy(pbssrate, supportedrates, *bssrate_len);
|
||||||
}
|
}
|
||||||
@ -757,7 +757,7 @@ void invalidate_cam_all(_adapter *padapter)
|
|||||||
|
|
||||||
_enter_critical_bh(&cam_ctl->lock, &irqL);
|
_enter_critical_bh(&cam_ctl->lock, &irqL);
|
||||||
rtw_sec_cam_map_clr_all(&cam_ctl->used);
|
rtw_sec_cam_map_clr_all(&cam_ctl->used);
|
||||||
_rtw_memset(dvobj->cam_cache, 0, sizeof(struct sec_cam_ent) * SEC_CAM_ENT_NUM_SW_LIMIT);
|
memset(dvobj->cam_cache, 0, sizeof(struct sec_cam_ent) * SEC_CAM_ENT_NUM_SW_LIMIT);
|
||||||
_exit_critical_bh(&cam_ctl->lock, &irqL);
|
_exit_critical_bh(&cam_ctl->lock, &irqL);
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -821,7 +821,7 @@ void clear_cam_cache(_adapter *adapter, u8 id)
|
|||||||
|
|
||||||
_enter_critical_bh(&cam_ctl->lock, &irqL);
|
_enter_critical_bh(&cam_ctl->lock, &irqL);
|
||||||
|
|
||||||
_rtw_memset(&(dvobj->cam_cache[id]), 0, sizeof(struct sec_cam_ent));
|
memset(&(dvobj->cam_cache[id]), 0, sizeof(struct sec_cam_ent));
|
||||||
|
|
||||||
_exit_critical_bh(&cam_ctl->lock, &irqL);
|
_exit_critical_bh(&cam_ctl->lock, &irqL);
|
||||||
}
|
}
|
||||||
@ -2462,7 +2462,7 @@ int rtw_get_bcn_keys(ADAPTER *Adapter, u8 *pframe, u32 packet_len,
|
|||||||
unsigned char *pos;
|
unsigned char *pos;
|
||||||
struct rtw_ieee802_11_elems elems;
|
struct rtw_ieee802_11_elems elems;
|
||||||
|
|
||||||
_rtw_memset(recv_beacon, 0, sizeof(*recv_beacon));
|
memset(recv_beacon, 0, sizeof(*recv_beacon));
|
||||||
|
|
||||||
/* checking capabilities */
|
/* checking capabilities */
|
||||||
capability = le16_to_cpu(*(unsigned short *)(pframe + WLAN_HDR_A3_LEN + 10));
|
capability = le16_to_cpu(*(unsigned short *)(pframe + WLAN_HDR_A3_LEN + 10));
|
||||||
@ -3068,7 +3068,7 @@ void update_tx_basic_rate(_adapter *padapter, u8 wirelessmode)
|
|||||||
return;
|
return;
|
||||||
#endif /* CONFIG_INTEL_WIDI */
|
#endif /* CONFIG_INTEL_WIDI */
|
||||||
|
|
||||||
_rtw_memset(supported_rates, 0, NDIS_802_11_LENGTH_RATES_EX);
|
memset(supported_rates, 0, NDIS_802_11_LENGTH_RATES_EX);
|
||||||
|
|
||||||
/* clear B mod if current channel is in 5G band, avoid tx cck rate in 5G band. */
|
/* clear B mod if current channel is in 5G band, avoid tx cck rate in 5G band. */
|
||||||
if (pmlmeext->cur_channel > 14)
|
if (pmlmeext->cur_channel > 14)
|
||||||
@ -4187,7 +4187,7 @@ unsigned int setup_beacon_frame(_adapter *padapter, unsigned char *beacon_frame)
|
|||||||
WLAN_BSSID_EX *cur_network = &(pmlmeinfo->network);
|
WLAN_BSSID_EX *cur_network = &(pmlmeinfo->network);
|
||||||
u8 bc_addr[] = {0xff, 0xff, 0xff, 0xff, 0xff, 0xff};
|
u8 bc_addr[] = {0xff, 0xff, 0xff, 0xff, 0xff, 0xff};
|
||||||
|
|
||||||
_rtw_memset(beacon_frame, 0, 256);
|
memset(beacon_frame, 0, 256);
|
||||||
|
|
||||||
pframe = beacon_frame + TXDESC_SIZE;
|
pframe = beacon_frame + TXDESC_SIZE;
|
||||||
|
|
||||||
@ -4408,8 +4408,8 @@ void rtw_wow_pattern_sw_reset(_adapter *adapter)
|
|||||||
pwrctrlpriv->wowlan_pattern_idx = 0;
|
pwrctrlpriv->wowlan_pattern_idx = 0;
|
||||||
|
|
||||||
for (i = 0 ; i < MAX_WKFM_CAM_NUM; i++) {
|
for (i = 0 ; i < MAX_WKFM_CAM_NUM; i++) {
|
||||||
_rtw_memset(pwrctrlpriv->patterns[i].content, '\0', sizeof(pwrctrlpriv->patterns[i].content));
|
memset(pwrctrlpriv->patterns[i].content, '\0', sizeof(pwrctrlpriv->patterns[i].content));
|
||||||
_rtw_memset(pwrctrlpriv->patterns[i].mask, '\0', sizeof(pwrctrlpriv->patterns[i].mask));
|
memset(pwrctrlpriv->patterns[i].mask, '\0', sizeof(pwrctrlpriv->patterns[i].mask));
|
||||||
pwrctrlpriv->patterns[i].len = 0;
|
pwrctrlpriv->patterns[i].len = 0;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@ -4436,9 +4436,9 @@ u8 rtw_set_default_pattern(_adapter *adapter)
|
|||||||
return 0;
|
return 0;
|
||||||
|
|
||||||
for (index = 0 ; index < DEFAULT_PATTERN_NUM ; index++) {
|
for (index = 0 ; index < DEFAULT_PATTERN_NUM ; index++) {
|
||||||
_rtw_memset(pwrpriv->patterns[index].content, 0,
|
memset(pwrpriv->patterns[index].content, 0,
|
||||||
sizeof(pwrpriv->patterns[index].content));
|
sizeof(pwrpriv->patterns[index].content));
|
||||||
_rtw_memset(pwrpriv->patterns[index].mask, 0,
|
memset(pwrpriv->patterns[index].mask, 0,
|
||||||
sizeof(pwrpriv->patterns[index].mask));
|
sizeof(pwrpriv->patterns[index].mask));
|
||||||
pwrpriv->patterns[index].len = 0;
|
pwrpriv->patterns[index].len = 0;
|
||||||
}
|
}
|
||||||
@ -4457,7 +4457,7 @@ u8 rtw_set_default_pattern(_adapter *adapter)
|
|||||||
|
|
||||||
/* TCP */
|
/* TCP */
|
||||||
target += (PROTOCOL_OFFSET - ETH_TYPE_OFFSET);
|
target += (PROTOCOL_OFFSET - ETH_TYPE_OFFSET);
|
||||||
_rtw_memset(target, 0x06, 1);
|
memset(target, 0x06, 1);
|
||||||
|
|
||||||
target += (IP_OFFSET - PROTOCOL_OFFSET);
|
target += (IP_OFFSET - PROTOCOL_OFFSET);
|
||||||
|
|
||||||
@ -4480,7 +4480,7 @@ u8 rtw_set_default_pattern(_adapter *adapter)
|
|||||||
|
|
||||||
/* ICMP */
|
/* ICMP */
|
||||||
target += (PROTOCOL_OFFSET - ETH_TYPE_OFFSET);
|
target += (PROTOCOL_OFFSET - ETH_TYPE_OFFSET);
|
||||||
_rtw_memset(target, 0x01, 1);
|
memset(target, 0x01, 1);
|
||||||
|
|
||||||
target += (IP_OFFSET - PROTOCOL_OFFSET);
|
target += (IP_OFFSET - PROTOCOL_OFFSET);
|
||||||
_rtw_memcpy(target, pmlmeinfo->ip_addr,
|
_rtw_memcpy(target, pmlmeinfo->ip_addr,
|
||||||
@ -4504,7 +4504,7 @@ u8 rtw_set_default_pattern(_adapter *adapter)
|
|||||||
/* ICMPv6 */
|
/* ICMPv6 */
|
||||||
target += (IPv6_PROTOCOL_OFFSET -
|
target += (IPv6_PROTOCOL_OFFSET -
|
||||||
ETH_TYPE_OFFSET);
|
ETH_TYPE_OFFSET);
|
||||||
_rtw_memset(target, 0x3a, 1);
|
memset(target, 0x3a, 1);
|
||||||
|
|
||||||
target += (IPv6_OFFSET - IPv6_PROTOCOL_OFFSET);
|
target += (IPv6_OFFSET - IPv6_PROTOCOL_OFFSET);
|
||||||
_rtw_memcpy(target, pmlmeinfo->ip6_addr,
|
_rtw_memcpy(target, pmlmeinfo->ip6_addr,
|
||||||
@ -4527,7 +4527,7 @@ u8 rtw_set_default_pattern(_adapter *adapter)
|
|||||||
|
|
||||||
/* UDP */
|
/* UDP */
|
||||||
target += (PROTOCOL_OFFSET - ETH_TYPE_OFFSET);
|
target += (PROTOCOL_OFFSET - ETH_TYPE_OFFSET);
|
||||||
_rtw_memset(target, 0x11, 1);
|
memset(target, 0x11, 1);
|
||||||
|
|
||||||
target += (IP_OFFSET - PROTOCOL_OFFSET);
|
target += (IP_OFFSET - PROTOCOL_OFFSET);
|
||||||
_rtw_memcpy(target, &multicast_ip,
|
_rtw_memcpy(target, &multicast_ip,
|
||||||
@ -4560,7 +4560,7 @@ void rtw_dump_priv_pattern(_adapter *adapter, u8 idx)
|
|||||||
p_str = str_1;
|
p_str = str_1;
|
||||||
max_len = sizeof(str_1);
|
max_len = sizeof(str_1);
|
||||||
for (i = 0 ; i < MAX_WKFM_PATTERN_SIZE / 8 ; i++) {
|
for (i = 0 ; i < MAX_WKFM_PATTERN_SIZE / 8 ; i++) {
|
||||||
_rtw_memset(p_str, 0, max_len);
|
memset(p_str, 0, max_len);
|
||||||
len = 0;
|
len = 0;
|
||||||
for (j = 0 ; j < 8 ; j++) {
|
for (j = 0 ; j < 8 ; j++) {
|
||||||
val8 = pwrctl->patterns[idx].content[i * 8 + j];
|
val8 = pwrctl->patterns[idx].content[i * 8 + j];
|
||||||
@ -4572,7 +4572,7 @@ void rtw_dump_priv_pattern(_adapter *adapter, u8 idx)
|
|||||||
|
|
||||||
RTW_INFO(">>>priv_pattern_mask:\n");
|
RTW_INFO(">>>priv_pattern_mask:\n");
|
||||||
for (i = 0 ; i < MAX_WKFM_SIZE / 8 ; i++) {
|
for (i = 0 ; i < MAX_WKFM_SIZE / 8 ; i++) {
|
||||||
_rtw_memset(p_str, 0, max_len);
|
memset(p_str, 0, max_len);
|
||||||
len = 0;
|
len = 0;
|
||||||
for (j = 0 ; j < 8 ; j++) {
|
for (j = 0 ; j < 8 ; j++) {
|
||||||
val8 = pwrctl->patterns[idx].mask[i * 8 + j];
|
val8 = pwrctl->patterns[idx].mask[i * 8 + j];
|
||||||
@ -4600,7 +4600,7 @@ void rtw_get_sec_iv(PADAPTER padapter, u8 *pcur_dot11txpn, u8 *StaAddr)
|
|||||||
struct sta_info *psta;
|
struct sta_info *psta;
|
||||||
struct security_priv *psecpriv = &padapter->securitypriv;
|
struct security_priv *psecpriv = &padapter->securitypriv;
|
||||||
|
|
||||||
_rtw_memset(pcur_dot11txpn, 0, 8);
|
memset(pcur_dot11txpn, 0, 8);
|
||||||
if (NULL == StaAddr)
|
if (NULL == StaAddr)
|
||||||
return;
|
return;
|
||||||
psta = rtw_get_stainfo(&padapter->stapriv, StaAddr);
|
psta = rtw_get_stainfo(&padapter->stapriv, StaAddr);
|
||||||
|
@ -37,7 +37,7 @@ void _rtw_init_sta_xmit_priv(struct sta_xmit_priv *psta_xmitpriv)
|
|||||||
{
|
{
|
||||||
|
|
||||||
|
|
||||||
_rtw_memset((unsigned char *)psta_xmitpriv, 0, sizeof(struct sta_xmit_priv));
|
memset((unsigned char *)psta_xmitpriv, 0, sizeof(struct sta_xmit_priv));
|
||||||
|
|
||||||
_rtw_spinlock_init(&psta_xmitpriv->lock);
|
_rtw_spinlock_init(&psta_xmitpriv->lock);
|
||||||
|
|
||||||
@ -72,7 +72,7 @@ s32 _rtw_init_xmit_priv(struct xmit_priv *pxmitpriv, _adapter *padapter)
|
|||||||
|
|
||||||
|
|
||||||
/* We don't need to memset padapter->XXX to zero, because adapter is allocated by rtw_zvmalloc(). */
|
/* We don't need to memset padapter->XXX to zero, because adapter is allocated by rtw_zvmalloc(). */
|
||||||
/* _rtw_memset((unsigned char *)pxmitpriv, 0, sizeof(struct xmit_priv)); */
|
/* memset((unsigned char *)pxmitpriv, 0, sizeof(struct xmit_priv)); */
|
||||||
|
|
||||||
_rtw_spinlock_init(&pxmitpriv->lock);
|
_rtw_spinlock_init(&pxmitpriv->lock);
|
||||||
_rtw_spinlock_init(&pxmitpriv->lock_sctx);
|
_rtw_spinlock_init(&pxmitpriv->lock_sctx);
|
||||||
@ -969,8 +969,8 @@ static s32 update_attrib_sec_info(_adapter *padapter, struct pkt_attrib *pattrib
|
|||||||
struct security_priv *psecuritypriv = &padapter->securitypriv;
|
struct security_priv *psecuritypriv = &padapter->securitypriv;
|
||||||
sint bmcast = IS_MCAST(pattrib->ra);
|
sint bmcast = IS_MCAST(pattrib->ra);
|
||||||
|
|
||||||
_rtw_memset(pattrib->dot118021x_UncstKey.skey, 0, 16);
|
memset(pattrib->dot118021x_UncstKey.skey, 0, 16);
|
||||||
_rtw_memset(pattrib->dot11tkiptxmickey.skey, 0, 16);
|
memset(pattrib->dot11tkiptxmickey.skey, 0, 16);
|
||||||
pattrib->mac_id = psta->cmn.mac_id;
|
pattrib->mac_id = psta->cmn.mac_id;
|
||||||
|
|
||||||
if (psta->ieee8021x_blocked == _TRUE) {
|
if (psta->ieee8021x_blocked == _TRUE) {
|
||||||
@ -1766,7 +1766,7 @@ s32 rtw_make_wlanhdr(_adapter *padapter , u8 *hdr, struct pkt_attrib *pattrib)
|
|||||||
}
|
}
|
||||||
*/
|
*/
|
||||||
|
|
||||||
_rtw_memset(hdr, 0, WLANHDR_OFFSET);
|
memset(hdr, 0, WLANHDR_OFFSET);
|
||||||
|
|
||||||
set_frame_sub_type(fctrl, pattrib->subtype);
|
set_frame_sub_type(fctrl, pattrib->subtype);
|
||||||
|
|
||||||
@ -2081,7 +2081,7 @@ s32 rtw_make_tdls_wlanhdr(_adapter *padapter , u8 *hdr, struct pkt_attrib *pattr
|
|||||||
u16 *fctrl = &pwlanhdr->frame_ctl;
|
u16 *fctrl = &pwlanhdr->frame_ctl;
|
||||||
|
|
||||||
|
|
||||||
_rtw_memset(hdr, 0, WLANHDR_OFFSET);
|
memset(hdr, 0, WLANHDR_OFFSET);
|
||||||
|
|
||||||
set_frame_sub_type(fctrl, pattrib->subtype);
|
set_frame_sub_type(fctrl, pattrib->subtype);
|
||||||
|
|
||||||
@ -2474,7 +2474,7 @@ s32 rtw_xmitframe_coalesce_amsdu(_adapter *padapter, struct xmit_frame *pxmitfra
|
|||||||
if(padding == 4)
|
if(padding == 4)
|
||||||
padding = 0;
|
padding = 0;
|
||||||
|
|
||||||
//_rtw_memset(pframe,0xaa, padding);
|
//memset(pframe,0xaa, padding);
|
||||||
pframe += padding;
|
pframe += padding;
|
||||||
|
|
||||||
pattrib->last_txcmdsz += ETH_HLEN + XATTRIB_GET_MCTRL_LEN(pattrib_queue) + llc_sz + mem_sz + padding ;
|
pattrib->last_txcmdsz += ETH_HLEN + XATTRIB_GET_MCTRL_LEN(pattrib_queue) + llc_sz + mem_sz + padding ;
|
||||||
@ -2889,7 +2889,7 @@ s32 rtw_mgmt_xmitframe_coalesce(_adapter *padapter, _pkt *pkt, struct xmit_frame
|
|||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
_rtw_memset(MME, 0, _MME_IE_LENGTH_);
|
memset(MME, 0, _MME_IE_LENGTH_);
|
||||||
|
|
||||||
MGMT_body = pframe + sizeof(struct rtw_ieee80211_hdr_3addr);
|
MGMT_body = pframe + sizeof(struct rtw_ieee80211_hdr_3addr);
|
||||||
pframe += pattrib->pktlen;
|
pframe += pattrib->pktlen;
|
||||||
@ -3257,7 +3257,7 @@ struct xmit_frame *__rtw_alloc_cmdxmitframe(struct xmit_priv *pxmitpriv,
|
|||||||
pcmdframe->buf_addr = pxmitbuf->pbuf;
|
pcmdframe->buf_addr = pxmitbuf->pbuf;
|
||||||
|
|
||||||
/* initial memory to zero */
|
/* initial memory to zero */
|
||||||
_rtw_memset(pcmdframe->buf_addr, 0, MAX_CMDBUF_SZ);
|
memset(pcmdframe->buf_addr, 0, MAX_CMDBUF_SZ);
|
||||||
|
|
||||||
pxmitbuf->priv_data = pcmdframe;
|
pxmitbuf->priv_data = pcmdframe;
|
||||||
|
|
||||||
@ -3458,7 +3458,7 @@ void rtw_init_xmitframe(struct xmit_frame *pxframe)
|
|||||||
pxframe->buf_addr = NULL;
|
pxframe->buf_addr = NULL;
|
||||||
pxframe->pxmitbuf = NULL;
|
pxframe->pxmitbuf = NULL;
|
||||||
|
|
||||||
_rtw_memset(&pxframe->attrib, 0, sizeof(struct pkt_attrib));
|
memset(&pxframe->attrib, 0, sizeof(struct pkt_attrib));
|
||||||
/* pxframe->attrib.psta = NULL; */
|
/* pxframe->attrib.psta = NULL; */
|
||||||
|
|
||||||
pxframe->frame_tag = DATA_FRAMETAG;
|
pxframe->frame_tag = DATA_FRAMETAG;
|
||||||
@ -4422,7 +4422,7 @@ s32 rtw_monitor_xmit_entry(struct sk_buff *skb, struct net_device *ndev)
|
|||||||
goto fail;
|
goto fail;
|
||||||
}
|
}
|
||||||
|
|
||||||
_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;
|
pframe = (u8 *)(pmgntframe->buf_addr) + TXDESC_OFFSET;
|
||||||
// _rtw_memcpy(pframe, (void *)checking, len);
|
// _rtw_memcpy(pframe, (void *)checking, len);
|
||||||
_rtw_pktfile_read(&pktfile, pframe, len);
|
_rtw_pktfile_read(&pktfile, pframe, len);
|
||||||
@ -5749,7 +5749,7 @@ void rtw_tx_desc_backup_reset(void)
|
|||||||
|
|
||||||
for (i = 0; i < HW_QUEUE_ENTRY; i++) {
|
for (i = 0; i < HW_QUEUE_ENTRY; i++) {
|
||||||
for (j = 0; j < TX_BAK_FRMAE_CNT; j++)
|
for (j = 0; j < TX_BAK_FRMAE_CNT; j++)
|
||||||
_rtw_memset(&tx_backup[i][j], 0, sizeof(struct rtw_tx_desc_backup));
|
memset(&tx_backup[i][j], 0, sizeof(struct rtw_tx_desc_backup));
|
||||||
|
|
||||||
backup_idx[i] = 0;
|
backup_idx[i] = 0;
|
||||||
}
|
}
|
||||||
|
@ -220,7 +220,7 @@ static void DBG_BT_INFO_INIT(PBTCDBGINFO pinfo, u8 *pbuf, u32 size)
|
|||||||
if (NULL == pinfo)
|
if (NULL == pinfo)
|
||||||
return;
|
return;
|
||||||
|
|
||||||
_rtw_memset(pinfo, 0, sizeof(BTCDBGINFO));
|
memset(pinfo, 0, sizeof(BTCDBGINFO));
|
||||||
|
|
||||||
if (pbuf && size) {
|
if (pbuf && size) {
|
||||||
pinfo->info = pbuf;
|
pinfo->info = pbuf;
|
||||||
@ -2842,7 +2842,7 @@ u8 EXhalbtcoutsrc_InitlizeVariables(void *padapter)
|
|||||||
_rtw_init_sema(&GLBtcBtMpRptSema, 0);
|
_rtw_init_sema(&GLBtcBtMpRptSema, 0);
|
||||||
GLBtcBtMpRptSeq = 0;
|
GLBtcBtMpRptSeq = 0;
|
||||||
GLBtcBtMpRptStatus = 0;
|
GLBtcBtMpRptStatus = 0;
|
||||||
_rtw_memset(GLBtcBtMpRptRsp, 0, C2H_MAX_SIZE);
|
memset(GLBtcBtMpRptRsp, 0, C2H_MAX_SIZE);
|
||||||
GLBtcBtMpRptRspSize = 0;
|
GLBtcBtMpRptRspSize = 0;
|
||||||
GLBtcBtMpRptWait = _FALSE;
|
GLBtcBtMpRptWait = _FALSE;
|
||||||
GLBtcBtMpRptWiFiOK = _FALSE;
|
GLBtcBtMpRptWiFiOK = _FALSE;
|
||||||
@ -4985,7 +4985,7 @@ u8 hal_btcoex_Initialize(PADAPTER padapter)
|
|||||||
HAL_DATA_TYPE *pHalData = GET_HAL_DATA(padapter);
|
HAL_DATA_TYPE *pHalData = GET_HAL_DATA(padapter);
|
||||||
u8 ret;
|
u8 ret;
|
||||||
|
|
||||||
_rtw_memset(&GLBtCoexist, 0, sizeof(GLBtCoexist));
|
memset(&GLBtCoexist, 0, sizeof(GLBtCoexist));
|
||||||
|
|
||||||
ret = EXhalbtcoutsrc_InitlizeVariables((void *)padapter);
|
ret = EXhalbtcoutsrc_InitlizeVariables((void *)padapter);
|
||||||
|
|
||||||
@ -5566,7 +5566,7 @@ hal_btcoex_ParseAntIsolationConfigFile(
|
|||||||
RTW_INFO("Fail to parse parameters , format error!\n");
|
RTW_INFO("Fail to parse parameters , format error!\n");
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
_rtw_memset((PVOID)param_value_string , 0 , 10);
|
memset((PVOID)param_value_string , 0 , 10);
|
||||||
if (!ParseQualifiedString(szLine , &i , param_value_string , '"' , '"')) {
|
if (!ParseQualifiedString(szLine , &i , param_value_string , '"' , '"')) {
|
||||||
RTW_INFO("Fail to parse parameters\n");
|
RTW_INFO("Fail to parse parameters\n");
|
||||||
return _FAIL;
|
return _FAIL;
|
||||||
@ -5616,7 +5616,7 @@ hal_btcoex_AntIsolationConfig_ParaFile(
|
|||||||
HAL_DATA_TYPE *pHalData = GET_HAL_DATA(Adapter);
|
HAL_DATA_TYPE *pHalData = GET_HAL_DATA(Adapter);
|
||||||
int rlen = 0 , rtStatus = _FAIL;
|
int rlen = 0 , rtStatus = _FAIL;
|
||||||
|
|
||||||
_rtw_memset(pHalData->para_file_buf , 0 , MAX_PARA_FILE_BUF_LEN);
|
memset(pHalData->para_file_buf , 0 , MAX_PARA_FILE_BUF_LEN);
|
||||||
|
|
||||||
rtw_get_phy_file_path(Adapter, pFileName);
|
rtw_get_phy_file_path(Adapter, pFileName);
|
||||||
if (rtw_is_file_readable(rtw_phy_para_file_path) == _TRUE) {
|
if (rtw_is_file_readable(rtw_phy_para_file_path) == _TRUE) {
|
||||||
|
@ -191,7 +191,7 @@ void hal_btcoex_wifionly_initlizevariables(PADAPTER padapter)
|
|||||||
struct wifi_only_haldata *pwifionly_haldata = &pwifionlycfg->haldata_info;
|
struct wifi_only_haldata *pwifionly_haldata = &pwifionlycfg->haldata_info;
|
||||||
HAL_DATA_TYPE *pHalData = GET_HAL_DATA(padapter);
|
HAL_DATA_TYPE *pHalData = GET_HAL_DATA(padapter);
|
||||||
|
|
||||||
_rtw_memset(&GLBtCoexistWifiOnly, 0, sizeof(GLBtCoexistWifiOnly));
|
memset(&GLBtCoexistWifiOnly, 0, sizeof(GLBtCoexistWifiOnly));
|
||||||
|
|
||||||
pwifionlycfg->Adapter = padapter;
|
pwifionlycfg->Adapter = padapter;
|
||||||
|
|
||||||
|
@ -80,7 +80,7 @@ void rtw_hal_read_sta_dk_key(_adapter *adapter, u8 key_id)
|
|||||||
_irqL irqL;
|
_irqL irqL;
|
||||||
u8 get_key[16];
|
u8 get_key[16];
|
||||||
|
|
||||||
_rtw_memset(get_key, 0, sizeof(get_key));
|
memset(get_key, 0, sizeof(get_key));
|
||||||
|
|
||||||
if (key_id > 4) {
|
if (key_id > 4) {
|
||||||
RTW_INFO("%s [ERROR] gtk_keyindex:%d invalid\n", __func__, key_id);
|
RTW_INFO("%s [ERROR] gtk_keyindex:%d invalid\n", __func__, key_id);
|
||||||
@ -1189,7 +1189,7 @@ void rtw_hal_hw_port_enable(_adapter *adapter)
|
|||||||
struct dvobj_priv *dvobj = adapter_to_dvobj(adapter);
|
struct dvobj_priv *dvobj = adapter_to_dvobj(adapter);
|
||||||
struct rtw_halmac_bcn_ctrl bcn_ctrl;
|
struct rtw_halmac_bcn_ctrl bcn_ctrl;
|
||||||
|
|
||||||
_rtw_memset(&bcn_ctrl, 0, sizeof(struct rtw_halmac_bcn_ctrl));
|
memset(&bcn_ctrl, 0, sizeof(struct rtw_halmac_bcn_ctrl));
|
||||||
bcn_ctrl.enable_bcn = 1;
|
bcn_ctrl.enable_bcn = 1;
|
||||||
bcn_ctrl.rx_bssid_fit = 1;
|
bcn_ctrl.rx_bssid_fit = 1;
|
||||||
bcn_ctrl.rxbcn_rpt = 1;
|
bcn_ctrl.rxbcn_rpt = 1;
|
||||||
@ -1284,7 +1284,7 @@ s32 c2h_evt_read_88xx(_adapter *adapter, u8 *buf)
|
|||||||
goto clear_evt; /* Not a valid value */
|
goto clear_evt; /* Not a valid value */
|
||||||
}
|
}
|
||||||
|
|
||||||
_rtw_memset(buf, 0, C2H_REG_LEN);
|
memset(buf, 0, C2H_REG_LEN);
|
||||||
|
|
||||||
/* Read ID, LEN, SEQ */
|
/* Read ID, LEN, SEQ */
|
||||||
SET_C2H_ID_88XX(buf, rtw_read8(adapter, REG_C2HEVT_MSG_NORMAL));
|
SET_C2H_ID_88XX(buf, rtw_read8(adapter, REG_C2HEVT_MSG_NORMAL));
|
||||||
@ -2490,7 +2490,7 @@ void rtw_mbid_cam_init(struct dvobj_priv *dvobj)
|
|||||||
_rtw_spinlock_init(&mbid_cam_ctl->lock);
|
_rtw_spinlock_init(&mbid_cam_ctl->lock);
|
||||||
mbid_cam_ctl->bitmap = 0;
|
mbid_cam_ctl->bitmap = 0;
|
||||||
atomic_set(&mbid_cam_ctl->mbid_entry_num, 0);
|
atomic_set(&mbid_cam_ctl->mbid_entry_num, 0);
|
||||||
_rtw_memset(&dvobj->mbid_cam_cache, 0, sizeof(dvobj->mbid_cam_cache));
|
memset(&dvobj->mbid_cam_cache, 0, sizeof(dvobj->mbid_cam_cache));
|
||||||
}
|
}
|
||||||
|
|
||||||
void rtw_mbid_cam_deinit(struct dvobj_priv *dvobj)
|
void rtw_mbid_cam_deinit(struct dvobj_priv *dvobj)
|
||||||
@ -2507,7 +2507,7 @@ void rtw_mbid_cam_reset(_adapter *adapter)
|
|||||||
|
|
||||||
_enter_critical_bh(&mbid_cam_ctl->lock, &irqL);
|
_enter_critical_bh(&mbid_cam_ctl->lock, &irqL);
|
||||||
mbid_cam_ctl->bitmap = 0;
|
mbid_cam_ctl->bitmap = 0;
|
||||||
_rtw_memset(&dvobj->mbid_cam_cache, 0, sizeof(dvobj->mbid_cam_cache));
|
memset(&dvobj->mbid_cam_cache, 0, sizeof(dvobj->mbid_cam_cache));
|
||||||
_exit_critical_bh(&mbid_cam_ctl->lock, &irqL);
|
_exit_critical_bh(&mbid_cam_ctl->lock, &irqL);
|
||||||
|
|
||||||
atomic_set(&mbid_cam_ctl->mbid_entry_num, 0);
|
atomic_set(&mbid_cam_ctl->mbid_entry_num, 0);
|
||||||
@ -2613,7 +2613,7 @@ static inline void mbid_cam_cache_init(_adapter *adapter, struct mbid_cam_cache
|
|||||||
static inline void mbid_cam_cache_clr(struct mbid_cam_cache *pmbid_cam)
|
static inline void mbid_cam_cache_clr(struct mbid_cam_cache *pmbid_cam)
|
||||||
{
|
{
|
||||||
if (pmbid_cam) {
|
if (pmbid_cam) {
|
||||||
_rtw_memset(pmbid_cam->mac_addr, 0, ETH_ALEN);
|
memset(pmbid_cam->mac_addr, 0, ETH_ALEN);
|
||||||
pmbid_cam->iface_id = CONFIG_IFACE_NUMBER;
|
pmbid_cam->iface_id = CONFIG_IFACE_NUMBER;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@ -2818,7 +2818,7 @@ int rtw_mbid_cam_dump(void *sel, const char *fun_name, _adapter *adapter)
|
|||||||
/*_enter_critical_bh(&mbid_cam_ctl->lock, &irqL);*/
|
/*_enter_critical_bh(&mbid_cam_ctl->lock, &irqL);*/
|
||||||
for (i = 0; i < TOTAL_MBID_CAM_NUM; i++) {
|
for (i = 0; i < TOTAL_MBID_CAM_NUM; i++) {
|
||||||
RTW_PRINT_SEL(sel, "CAM_ID = %d\t", i);
|
RTW_PRINT_SEL(sel, "CAM_ID = %d\t", i);
|
||||||
_rtw_memset(mac_addr, 0, ETH_ALEN);
|
memset(mac_addr, 0, ETH_ALEN);
|
||||||
read_mbssid_cam(adapter, i, mac_addr);
|
read_mbssid_cam(adapter, i, mac_addr);
|
||||||
_RTW_PRINT_SEL(sel, "MAC Addr:"MAC_FMT"\n", MAC_ARG(mac_addr));
|
_RTW_PRINT_SEL(sel, "MAC Addr:"MAC_FMT"\n", MAC_ARG(mac_addr));
|
||||||
}
|
}
|
||||||
@ -3242,7 +3242,7 @@ static void rtw_hal_get_macaddr_port(_adapter *adapter, u8 *mac_addr)
|
|||||||
if (mac_addr == NULL)
|
if (mac_addr == NULL)
|
||||||
return;
|
return;
|
||||||
|
|
||||||
_rtw_memset(mac_addr, 0, ETH_ALEN);
|
memset(mac_addr, 0, ETH_ALEN);
|
||||||
#ifdef RTW_HALMAC
|
#ifdef RTW_HALMAC
|
||||||
rtw_halmac_get_mac_address(adapter_to_dvobj(adapter), adapter->hw_port, mac_addr);
|
rtw_halmac_get_mac_address(adapter_to_dvobj(adapter), adapter->hw_port, mac_addr);
|
||||||
#else /* !RTW_HALMAC */
|
#else /* !RTW_HALMAC */
|
||||||
@ -4174,7 +4174,7 @@ void rtw_set_p2p_ps_offload_cmd(_adapter *adapter, u8 p2p_ps_state)
|
|||||||
u8 i;
|
u8 i;
|
||||||
u8 hw_port = rtw_hal_get_port(adapter);
|
u8 hw_port = rtw_hal_get_port(adapter);
|
||||||
|
|
||||||
_rtw_memset(&p2p_ps_para, 0, sizeof(HAL_P2P_PS_PARA));
|
memset(&p2p_ps_para, 0, sizeof(HAL_P2P_PS_PARA));
|
||||||
_rtw_memcpy((&p2p_ps_para) , &hal->p2p_ps_offload , sizeof(hal->p2p_ps_offload));
|
_rtw_memcpy((&p2p_ps_para) , &hal->p2p_ps_offload , sizeof(hal->p2p_ps_offload));
|
||||||
|
|
||||||
(&p2p_ps_para)->p2p_port_id = hw_port;
|
(&p2p_ps_para)->p2p_port_id = hw_port;
|
||||||
@ -4193,7 +4193,7 @@ void rtw_set_p2p_ps_offload_cmd(_adapter *adapter, u8 p2p_ps_state)
|
|||||||
switch (p2p_ps_state) {
|
switch (p2p_ps_state) {
|
||||||
case P2P_PS_DISABLE:
|
case P2P_PS_DISABLE:
|
||||||
RTW_INFO("P2P_PS_DISABLE\n");
|
RTW_INFO("P2P_PS_DISABLE\n");
|
||||||
_rtw_memset(&p2p_ps_para , 0, sizeof(HAL_P2P_PS_PARA));
|
memset(&p2p_ps_para , 0, sizeof(HAL_P2P_PS_PARA));
|
||||||
break;
|
break;
|
||||||
|
|
||||||
case P2P_PS_ENABLE:
|
case P2P_PS_ENABLE:
|
||||||
@ -4570,7 +4570,7 @@ void rtw_hal_set_FwAoacRsvdPage_cmd(PADAPTER padapter, PRSVDPAGE_LOC rsvdpageloc
|
|||||||
u1H2CAoacRsvdPageParm);
|
u1H2CAoacRsvdPageParm);
|
||||||
|
|
||||||
RTW_INFO("AOAC Report=%d\n", rsvdpageloc->LocAOACReport);
|
RTW_INFO("AOAC Report=%d\n", rsvdpageloc->LocAOACReport);
|
||||||
_rtw_memset(&u1H2CAoacRsvdPageParm, 0, sizeof(u1H2CAoacRsvdPageParm));
|
memset(&u1H2CAoacRsvdPageParm, 0, sizeof(u1H2CAoacRsvdPageParm));
|
||||||
SET_H2CCMD_AOAC_RSVDPAGE_LOC_AOAC_REPORT(u1H2CAoacRsvdPageParm,
|
SET_H2CCMD_AOAC_RSVDPAGE_LOC_AOAC_REPORT(u1H2CAoacRsvdPageParm,
|
||||||
rsvdpageloc->LocAOACReport);
|
rsvdpageloc->LocAOACReport);
|
||||||
ret = rtw_hal_fill_h2c_cmd(padapter,
|
ret = rtw_hal_fill_h2c_cmd(padapter,
|
||||||
@ -4584,7 +4584,7 @@ void rtw_hal_set_FwAoacRsvdPage_cmd(PADAPTER padapter, PRSVDPAGE_LOC rsvdpageloc
|
|||||||
|
|
||||||
if (!pwrpriv->wowlan_in_resume) {
|
if (!pwrpriv->wowlan_in_resume) {
|
||||||
RTW_INFO("NLO_INFO=%d\n", rsvdpageloc->LocPNOInfo);
|
RTW_INFO("NLO_INFO=%d\n", rsvdpageloc->LocPNOInfo);
|
||||||
_rtw_memset(&u1H2CAoacRsvdPageParm, 0,
|
memset(&u1H2CAoacRsvdPageParm, 0,
|
||||||
sizeof(u1H2CAoacRsvdPageParm));
|
sizeof(u1H2CAoacRsvdPageParm));
|
||||||
SET_H2CCMD_AOAC_RSVDPAGE_LOC_NLO_INFO(u1H2CAoacRsvdPageParm,
|
SET_H2CCMD_AOAC_RSVDPAGE_LOC_NLO_INFO(u1H2CAoacRsvdPageParm,
|
||||||
rsvdpageloc->LocPNOInfo);
|
rsvdpageloc->LocPNOInfo);
|
||||||
@ -5055,7 +5055,7 @@ static void rtw_hal_update_gtk_offload_info(_adapter *adapter)
|
|||||||
if (!MLME_IS_STA(adapter))
|
if (!MLME_IS_STA(adapter))
|
||||||
return;
|
return;
|
||||||
|
|
||||||
_rtw_memset(get_key, 0, sizeof(get_key));
|
memset(get_key, 0, sizeof(get_key));
|
||||||
_rtw_memcpy(&replay_count,
|
_rtw_memcpy(&replay_count,
|
||||||
paoac_rpt->replay_counter_eapol_key, 8);
|
paoac_rpt->replay_counter_eapol_key, 8);
|
||||||
|
|
||||||
@ -5209,7 +5209,7 @@ static void rtw_hal_get_aoac_rpt(_adapter *adapter)
|
|||||||
goto _exit;
|
goto _exit;
|
||||||
}
|
}
|
||||||
|
|
||||||
_rtw_memset(paoac_rpt, 0, sizeof(struct aoac_report));
|
memset(paoac_rpt, 0, sizeof(struct aoac_report));
|
||||||
_rtw_memcpy(paoac_rpt, buffer, sizeof(struct aoac_report));
|
_rtw_memcpy(paoac_rpt, buffer, sizeof(struct aoac_report));
|
||||||
|
|
||||||
for (i = 0 ; i < 4 ; i++) {
|
for (i = 0 ; i < 4 ; i++) {
|
||||||
@ -5280,7 +5280,7 @@ static void rtw_hal_update_sw_security_info(_adapter *adapter)
|
|||||||
psecpriv->ndisauthtype == Ndis802_11AuthModeWPA2PSK)
|
psecpriv->ndisauthtype == Ndis802_11AuthModeWPA2PSK)
|
||||||
rtw_hal_update_gtk_offload_info(adapter);
|
rtw_hal_update_gtk_offload_info(adapter);
|
||||||
#else
|
#else
|
||||||
_rtw_memset(psecpriv->iv_seq, 0, sz);
|
memset(psecpriv->iv_seq, 0, sz);
|
||||||
#endif
|
#endif
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -5801,7 +5801,7 @@ static void rtw_hal_set_ap_rsvdpage_loc_cmd(PADAPTER padapter,
|
|||||||
|
|
||||||
msleep(10);
|
msleep(10);
|
||||||
|
|
||||||
_rtw_memset(&rsvdparm, 0, sizeof(rsvdparm));
|
memset(&rsvdparm, 0, sizeof(rsvdparm));
|
||||||
|
|
||||||
SET_H2CCMD_AP_WOWLAN_RSVDPAGE_LOC_ProbeRsp(rsvdparm,
|
SET_H2CCMD_AP_WOWLAN_RSVDPAGE_LOC_ProbeRsp(rsvdparm,
|
||||||
rsvdpageloc->LocProbeRsp + header);
|
rsvdpageloc->LocProbeRsp + header);
|
||||||
@ -5981,7 +5981,7 @@ static int update_hidden_ssid(u8 *ies, u32 ies_len, u8 hidden_ssid_mode)
|
|||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
case 2:
|
case 2:
|
||||||
_rtw_memset(&ssid_ie[2], 0, ssid_len_ori);
|
memset(&ssid_ie[2], 0, ssid_len_ori);
|
||||||
break;
|
break;
|
||||||
default:
|
default:
|
||||||
break;
|
break;
|
||||||
@ -6307,7 +6307,7 @@ static void rtw_hal_construct_P2PProbeRsp(_adapter *padapter, u8 *pframe, u32 *p
|
|||||||
*(fctrl) = 0;
|
*(fctrl) = 0;
|
||||||
|
|
||||||
/* DA filled by FW */
|
/* DA filled by FW */
|
||||||
_rtw_memset(pwlanhdr->addr1, 0, ETH_ALEN);
|
memset(pwlanhdr->addr1, 0, ETH_ALEN);
|
||||||
_rtw_memcpy(pwlanhdr->addr2, mac, ETH_ALEN);
|
_rtw_memcpy(pwlanhdr->addr2, mac, ETH_ALEN);
|
||||||
|
|
||||||
/* Use the device address for BSSID field. */
|
/* Use the device address for BSSID field. */
|
||||||
@ -6455,7 +6455,7 @@ static void rtw_hal_construct_P2PProbeRsp(_adapter *padapter, u8 *pframe, u32 *p
|
|||||||
|
|
||||||
/* Value: */
|
/* Value: */
|
||||||
if (pwdinfo->external_uuid == 0) {
|
if (pwdinfo->external_uuid == 0) {
|
||||||
_rtw_memset(wpsie + wpsielen, 0x0, 16);
|
memset(wpsie + wpsielen, 0x0, 16);
|
||||||
_rtw_memcpy(wpsie + wpsielen, mac, ETH_ALEN);
|
_rtw_memcpy(wpsie + wpsielen, mac, ETH_ALEN);
|
||||||
} else
|
} else
|
||||||
_rtw_memcpy(wpsie + wpsielen, pwdinfo->uuid, 0x10);
|
_rtw_memcpy(wpsie + wpsielen, pwdinfo->uuid, 0x10);
|
||||||
@ -6632,7 +6632,7 @@ static void rtw_hal_construct_P2PNegoRsp(_adapter *padapter, u8 *pframe, u32 *pL
|
|||||||
*(fctrl) = 0;
|
*(fctrl) = 0;
|
||||||
|
|
||||||
/* RA, filled by FW */
|
/* RA, filled by FW */
|
||||||
_rtw_memset(pwlanhdr->addr1, 0, ETH_ALEN);
|
memset(pwlanhdr->addr1, 0, ETH_ALEN);
|
||||||
_rtw_memcpy(pwlanhdr->addr2, adapter_mac_addr(padapter), ETH_ALEN);
|
_rtw_memcpy(pwlanhdr->addr2, adapter_mac_addr(padapter), ETH_ALEN);
|
||||||
_rtw_memcpy(pwlanhdr->addr3, adapter_mac_addr(padapter), ETH_ALEN);
|
_rtw_memcpy(pwlanhdr->addr3, adapter_mac_addr(padapter), ETH_ALEN);
|
||||||
|
|
||||||
@ -6650,7 +6650,7 @@ static void rtw_hal_construct_P2PNegoRsp(_adapter *padapter, u8 *pframe, u32 *pL
|
|||||||
/* dialog token, filled by FW */
|
/* dialog token, filled by FW */
|
||||||
pframe = rtw_set_fixed_ie(pframe, 1, &(dialogToken), &(pktlen));
|
pframe = rtw_set_fixed_ie(pframe, 1, &(dialogToken), &(pktlen));
|
||||||
|
|
||||||
_rtw_memset(wpsie, 0x00, 255);
|
memset(wpsie, 0x00, 255);
|
||||||
wpsielen = 0;
|
wpsielen = 0;
|
||||||
|
|
||||||
/* WPS Section */
|
/* WPS Section */
|
||||||
@ -7031,11 +7031,11 @@ static void rtw_hal_construct_P2PInviteRsp(_adapter *padapter, u8 *pframe, u32 *
|
|||||||
*(fctrl) = 0;
|
*(fctrl) = 0;
|
||||||
|
|
||||||
/* RA fill by FW */
|
/* RA fill by FW */
|
||||||
_rtw_memset(pwlanhdr->addr1, 0, ETH_ALEN);
|
memset(pwlanhdr->addr1, 0, ETH_ALEN);
|
||||||
_rtw_memcpy(pwlanhdr->addr2, adapter_mac_addr(padapter), ETH_ALEN);
|
_rtw_memcpy(pwlanhdr->addr2, adapter_mac_addr(padapter), ETH_ALEN);
|
||||||
|
|
||||||
/* BSSID fill by FW */
|
/* BSSID fill by FW */
|
||||||
_rtw_memset(pwlanhdr->addr3, 0, ETH_ALEN);
|
memset(pwlanhdr->addr3, 0, ETH_ALEN);
|
||||||
|
|
||||||
SetSeqNum(pwlanhdr, 0);
|
SetSeqNum(pwlanhdr, 0);
|
||||||
set_frame_sub_type(pframe, WIFI_ACTION);
|
set_frame_sub_type(pframe, WIFI_ACTION);
|
||||||
@ -7276,7 +7276,7 @@ static void rtw_hal_construct_P2PProvisionDisRsp(_adapter *padapter, u8 *pframe,
|
|||||||
*(fctrl) = 0;
|
*(fctrl) = 0;
|
||||||
|
|
||||||
/* RA filled by FW */
|
/* RA filled by FW */
|
||||||
_rtw_memset(pwlanhdr->addr1, 0, ETH_ALEN);
|
memset(pwlanhdr->addr1, 0, ETH_ALEN);
|
||||||
_rtw_memcpy(pwlanhdr->addr2, adapter_mac_addr(padapter), ETH_ALEN);
|
_rtw_memcpy(pwlanhdr->addr2, adapter_mac_addr(padapter), ETH_ALEN);
|
||||||
_rtw_memcpy(pwlanhdr->addr3, adapter_mac_addr(padapter), ETH_ALEN);
|
_rtw_memcpy(pwlanhdr->addr3, adapter_mac_addr(padapter), ETH_ALEN);
|
||||||
|
|
||||||
@ -7387,7 +7387,7 @@ u8 rtw_hal_set_p2p_wowlan_offload_cmd(_adapter *adapter)
|
|||||||
struct hal_ops *pHalFunc = &adapter->hal_func;
|
struct hal_ops *pHalFunc = &adapter->hal_func;
|
||||||
u8 ret = _FAIL;
|
u8 ret = _FAIL;
|
||||||
|
|
||||||
_rtw_memset(p2p_wowlan_offload, 0 , sizeof(struct P2P_WoWlan_Offload_t));
|
memset(p2p_wowlan_offload, 0 , sizeof(struct P2P_WoWlan_Offload_t));
|
||||||
RTW_INFO("%s\n", __func__);
|
RTW_INFO("%s\n", __func__);
|
||||||
switch (pwdinfo->role) {
|
switch (pwdinfo->role) {
|
||||||
case P2P_ROLE_DEVICE:
|
case P2P_ROLE_DEVICE:
|
||||||
@ -7834,7 +7834,7 @@ static void rtw_hal_construct_ARPRsp(
|
|||||||
}
|
}
|
||||||
|
|
||||||
if (EncryptionHeadOverhead > 0) {
|
if (EncryptionHeadOverhead > 0) {
|
||||||
_rtw_memset(&(pframe[*pLength]), 0, EncryptionHeadOverhead);
|
memset(&(pframe[*pLength]), 0, EncryptionHeadOverhead);
|
||||||
*pLength += EncryptionHeadOverhead;
|
*pLength += EncryptionHeadOverhead;
|
||||||
/* SET_80211_HDR_WEP(pARPRspPkt, 1); */ /* Suggested by CCW. */
|
/* SET_80211_HDR_WEP(pARPRspPkt, 1); */ /* Suggested by CCW. */
|
||||||
SetPrivacy(fctrl);
|
SetPrivacy(fctrl);
|
||||||
@ -7962,7 +7962,7 @@ static void rtw_hal_construct_na_message(_adapter *padapter,
|
|||||||
}
|
}
|
||||||
|
|
||||||
if (EncryptionHeadOverhead > 0) {
|
if (EncryptionHeadOverhead > 0) {
|
||||||
_rtw_memset(&(pframe[*pLength]), 0, EncryptionHeadOverhead);
|
memset(&(pframe[*pLength]), 0, EncryptionHeadOverhead);
|
||||||
*pLength += EncryptionHeadOverhead;
|
*pLength += EncryptionHeadOverhead;
|
||||||
/* SET_80211_HDR_WEP(pARPRspPkt, 1); */ /* Suggested by CCW. */
|
/* SET_80211_HDR_WEP(pARPRspPkt, 1); */ /* Suggested by CCW. */
|
||||||
SetPrivacy(fctrl);
|
SetPrivacy(fctrl);
|
||||||
@ -7995,7 +7995,7 @@ static void rtw_hal_construct_na_message(_adapter *padapter,
|
|||||||
p_na_msg += val8;
|
p_na_msg += val8;
|
||||||
|
|
||||||
/* 3 . SA : 16 bytes , DA : 16 bytes ( Fw will filled ) */
|
/* 3 . SA : 16 bytes , DA : 16 bytes ( Fw will filled ) */
|
||||||
_rtw_memset(&(p_na_msg[*pLength]), 0, 32);
|
memset(&(p_na_msg[*pLength]), 0, 32);
|
||||||
*pLength += 32;
|
*pLength += 32;
|
||||||
p_na_msg += 32;
|
p_na_msg += 32;
|
||||||
|
|
||||||
@ -8011,7 +8011,7 @@ static void rtw_hal_construct_na_message(_adapter *padapter,
|
|||||||
p_na_msg += val8;
|
p_na_msg += val8;
|
||||||
|
|
||||||
/* TA: 16 bytes*/
|
/* TA: 16 bytes*/
|
||||||
_rtw_memset(&(p_na_msg[*pLength]), 0, 16);
|
memset(&(p_na_msg[*pLength]), 0, 16);
|
||||||
*pLength += 16;
|
*pLength += 16;
|
||||||
p_na_msg += 16;
|
p_na_msg += 16;
|
||||||
|
|
||||||
@ -8021,7 +8021,7 @@ static void rtw_hal_construct_na_message(_adapter *padapter,
|
|||||||
*pLength += 2;
|
*pLength += 2;
|
||||||
p_na_msg += 2;
|
p_na_msg += 2;
|
||||||
|
|
||||||
_rtw_memset(&(p_na_msg[*pLength]), 0, 6);
|
memset(&(p_na_msg[*pLength]), 0, 6);
|
||||||
*pLength += 6;
|
*pLength += 6;
|
||||||
p_na_msg += 6;
|
p_na_msg += 6;
|
||||||
|
|
||||||
@ -8051,8 +8051,8 @@ static void rtw_hal_construct_ndp_info(_adapter *padapter,
|
|||||||
pmlmeext = &padapter->mlmeextpriv;
|
pmlmeext = &padapter->mlmeextpriv;
|
||||||
pmlmeinfo = &pmlmeext->mlmext_info;
|
pmlmeinfo = &pmlmeext->mlmext_info;
|
||||||
|
|
||||||
_rtw_memset(pframe, 0, len);
|
memset(pframe, 0, len);
|
||||||
_rtw_memset(&ndp_info, 0, len);
|
memset(&ndp_info, 0, len);
|
||||||
|
|
||||||
ndp_info.enable = 1;
|
ndp_info.enable = 1;
|
||||||
ndp_info.check_remote_ip = 0;
|
ndp_info.check_remote_ip = 0;
|
||||||
@ -8319,7 +8319,7 @@ static void rtw_hal_construct_GTKRsp(
|
|||||||
}
|
}
|
||||||
|
|
||||||
if (EncryptionHeadOverhead > 0) {
|
if (EncryptionHeadOverhead > 0) {
|
||||||
_rtw_memset(&(pframe[*pLength]), 0, EncryptionHeadOverhead);
|
memset(&(pframe[*pLength]), 0, EncryptionHeadOverhead);
|
||||||
*pLength += EncryptionHeadOverhead;
|
*pLength += EncryptionHeadOverhead;
|
||||||
/* SET_80211_HDR_WEP(pGTKRspPkt, 1); */ /* Suggested by CCW. */
|
/* SET_80211_HDR_WEP(pGTKRspPkt, 1); */ /* Suggested by CCW. */
|
||||||
/* GTK's privacy bit is done by FW */
|
/* GTK's privacy bit is done by FW */
|
||||||
@ -8346,7 +8346,7 @@ static void rtw_hal_construct_GTKRsp(
|
|||||||
*pLength += 11;
|
*pLength += 11;
|
||||||
pGTKRspPkt += 11;
|
pGTKRspPkt += 11;
|
||||||
/* GTK frame body after LLC, part 2 */
|
/* GTK frame body after LLC, part 2 */
|
||||||
_rtw_memset(&(pframe[*pLength]), 0, 88);
|
memset(&(pframe[*pLength]), 0, 88);
|
||||||
*pLength += 88;
|
*pLength += 88;
|
||||||
pGTKRspPkt += 88;
|
pGTKRspPkt += 88;
|
||||||
|
|
||||||
@ -8391,7 +8391,7 @@ static void rtw_hal_construct_remote_control_info(_adapter *adapter,
|
|||||||
*pLength += sz;
|
*pLength += sz;
|
||||||
pframe += sz;
|
pframe += sz;
|
||||||
|
|
||||||
_rtw_memset(&cur_dot11rxiv, 0, sz);
|
memset(&cur_dot11rxiv, 0, sz);
|
||||||
|
|
||||||
if (psecuritypriv->ndisauthtype == Ndis802_11AuthModeWPA2PSK) {
|
if (psecuritypriv->ndisauthtype == Ndis802_11AuthModeWPA2PSK) {
|
||||||
id = psecuritypriv->dot118021XGrpKeyid;
|
id = psecuritypriv->dot118021XGrpKeyid;
|
||||||
@ -8414,7 +8414,7 @@ static void rtw_hal_construct_remote_control_info(_adapter *adapter,
|
|||||||
for (i = 0 ; i < total ; i ++) {
|
for (i = 0 ; i < total ; i ++) {
|
||||||
ccmp_hdr =
|
ccmp_hdr =
|
||||||
le64_to_cpu(*(u64*)psecuritypriv->iv_seq[i]);
|
le64_to_cpu(*(u64*)psecuritypriv->iv_seq[i]);
|
||||||
_rtw_memset(&cur_dot11rxiv, 0, sz);
|
memset(&cur_dot11rxiv, 0, sz);
|
||||||
if (ccmp_hdr != 0) {
|
if (ccmp_hdr != 0) {
|
||||||
tmp_key = i;
|
tmp_key = i;
|
||||||
ccmp_hdr = PN_2_CCMPH(ccmp_hdr, tmp_key);
|
ccmp_hdr = PN_2_CCMPH(ccmp_hdr, tmp_key);
|
||||||
@ -8538,8 +8538,8 @@ void rtw_hal_set_wow_fw_rsvd_page(_adapter *adapter, u8 *pframe, u16 index,
|
|||||||
/* if the ap staion info. exists, get the kek, kck from staion info. */
|
/* if the ap staion info. exists, get the kek, kck from staion info. */
|
||||||
psta = rtw_get_stainfo(pstapriv, get_bssid(pmlmepriv));
|
psta = rtw_get_stainfo(pstapriv, get_bssid(pmlmepriv));
|
||||||
if (psta == NULL) {
|
if (psta == NULL) {
|
||||||
_rtw_memset(kek, 0, RTW_KEK_LEN);
|
memset(kek, 0, RTW_KEK_LEN);
|
||||||
_rtw_memset(kck, 0, RTW_KCK_LEN);
|
memset(kck, 0, RTW_KCK_LEN);
|
||||||
RTW_INFO("%s, KEK, KCK download rsvd page all zero\n",
|
RTW_INFO("%s, KEK, KCK download rsvd page all zero\n",
|
||||||
__func__);
|
__func__);
|
||||||
} else {
|
} else {
|
||||||
@ -8841,7 +8841,7 @@ static u8 rtw_hal_wow_pattern_generate(_adapter *adapter, u8 idx, struct rtl_wow
|
|||||||
mask = pwrctl->patterns[idx].mask;
|
mask = pwrctl->patterns[idx].mask;
|
||||||
|
|
||||||
_rtw_memcpy(mac_addr, adapter_mac_addr(adapter), ETH_ALEN);
|
_rtw_memcpy(mac_addr, adapter_mac_addr(adapter), ETH_ALEN);
|
||||||
_rtw_memset(pwow_pattern, 0, sizeof(struct rtl_wow_pattern));
|
memset(pwow_pattern, 0, sizeof(struct rtl_wow_pattern));
|
||||||
|
|
||||||
mask_len = DIV_ROUND_UP(len, 8);
|
mask_len = DIV_ROUND_UP(len, 8);
|
||||||
|
|
||||||
@ -9149,7 +9149,7 @@ void rtw_clean_pattern(_adapter *adapter)
|
|||||||
struct rtl_wow_pattern zero_pattern;
|
struct rtl_wow_pattern zero_pattern;
|
||||||
int i = 0;
|
int i = 0;
|
||||||
|
|
||||||
_rtw_memset(&zero_pattern, 0, sizeof(struct rtl_wow_pattern));
|
memset(&zero_pattern, 0, sizeof(struct rtl_wow_pattern));
|
||||||
|
|
||||||
zero_pattern.type = PATTERN_INVALID;
|
zero_pattern.type = PATTERN_INVALID;
|
||||||
|
|
||||||
@ -9184,7 +9184,7 @@ static int rtw_hal_set_pattern(_adapter *adapter, u8 *pattern,
|
|||||||
pmlmeext = &adapter->mlmeextpriv;
|
pmlmeext = &adapter->mlmeextpriv;
|
||||||
pmlmeinfo = &pmlmeext->mlmext_info;
|
pmlmeinfo = &pmlmeext->mlmext_info;
|
||||||
_rtw_memcpy(mac_addr, adapter_mac_addr(adapter), ETH_ALEN);
|
_rtw_memcpy(mac_addr, adapter_mac_addr(adapter), ETH_ALEN);
|
||||||
_rtw_memset(&wow_pattern, 0, sizeof(struct rtl_wow_pattern));
|
memset(&wow_pattern, 0, sizeof(struct rtl_wow_pattern));
|
||||||
|
|
||||||
mask_len = DIV_ROUND_UP(len, 8);
|
mask_len = DIV_ROUND_UP(len, 8);
|
||||||
|
|
||||||
@ -9353,7 +9353,7 @@ void rtw_wow_pattern_read_cam_ent(_adapter *adapter, u8 id, struct rtl_wow_patt
|
|||||||
int i;
|
int i;
|
||||||
u32 rdata;
|
u32 rdata;
|
||||||
|
|
||||||
_rtw_memset(context, 0, sizeof(struct rtl_wow_pattern));
|
memset(context, 0, sizeof(struct rtl_wow_pattern));
|
||||||
|
|
||||||
for (i = 4; i >= 0; i--) {
|
for (i = 4; i >= 0; i--) {
|
||||||
rdata = _rtw_wow_pattern_read_cam(adapter, (id << 3) | i);
|
rdata = _rtw_wow_pattern_read_cam(adapter, (id << 3) | i);
|
||||||
@ -10376,7 +10376,7 @@ static void _rtw_hal_set_fw_rsvd_page(_adapter *adapter, bool finished, u8 *page
|
|||||||
ReservedPagePacket = pcmdframe->buf_addr;
|
ReservedPagePacket = pcmdframe->buf_addr;
|
||||||
}
|
}
|
||||||
|
|
||||||
_rtw_memset(&RsvdPageLoc, 0, sizeof(RSVDPAGE_LOC));
|
memset(&RsvdPageLoc, 0, sizeof(RSVDPAGE_LOC));
|
||||||
|
|
||||||
BufIndex = TxDescOffset;
|
BufIndex = TxDescOffset;
|
||||||
|
|
||||||
@ -12873,7 +12873,7 @@ bypass_hw_pg:
|
|||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
_rtw_memset(hal_data->EEPROMMACAddr, 0, ETH_ALEN);
|
memset(hal_data->EEPROMMACAddr, 0, ETH_ALEN);
|
||||||
ret = _FAIL;
|
ret = _FAIL;
|
||||||
|
|
||||||
exit:
|
exit:
|
||||||
@ -13669,7 +13669,7 @@ void rtw_dump_rx_counters(_adapter *padapter)
|
|||||||
struct dbg_rx_counter rx_counter;
|
struct dbg_rx_counter rx_counter;
|
||||||
|
|
||||||
if (padapter->dump_rx_cnt_mode & DUMP_DRV_RX_COUNTER) {
|
if (padapter->dump_rx_cnt_mode & DUMP_DRV_RX_COUNTER) {
|
||||||
_rtw_memset(&rx_counter, 0, sizeof(struct dbg_rx_counter));
|
memset(&rx_counter, 0, sizeof(struct dbg_rx_counter));
|
||||||
rtw_dump_drv_rx_counters(padapter, &rx_counter);
|
rtw_dump_drv_rx_counters(padapter, &rx_counter);
|
||||||
RTW_INFO("Drv Received packet OK:%d CRC error:%d Drop Packets: %d\n",
|
RTW_INFO("Drv Received packet OK:%d CRC error:%d Drop Packets: %d\n",
|
||||||
rx_counter.rx_pkt_ok, rx_counter.rx_pkt_crc_error, rx_counter.rx_pkt_drop);
|
rx_counter.rx_pkt_ok, rx_counter.rx_pkt_crc_error, rx_counter.rx_pkt_drop);
|
||||||
@ -13677,7 +13677,7 @@ void rtw_dump_rx_counters(_adapter *padapter)
|
|||||||
}
|
}
|
||||||
|
|
||||||
if (padapter->dump_rx_cnt_mode & DUMP_MAC_RX_COUNTER) {
|
if (padapter->dump_rx_cnt_mode & DUMP_MAC_RX_COUNTER) {
|
||||||
_rtw_memset(&rx_counter, 0, sizeof(struct dbg_rx_counter));
|
memset(&rx_counter, 0, sizeof(struct dbg_rx_counter));
|
||||||
rtw_dump_mac_rx_counters(padapter, &rx_counter);
|
rtw_dump_mac_rx_counters(padapter, &rx_counter);
|
||||||
RTW_INFO("Mac Received packet OK:%d CRC error:%d FA Counter: %d Drop Packets: %d\n",
|
RTW_INFO("Mac Received packet OK:%d CRC error:%d FA Counter: %d Drop Packets: %d\n",
|
||||||
rx_counter.rx_pkt_ok, rx_counter.rx_pkt_crc_error,
|
rx_counter.rx_pkt_ok, rx_counter.rx_pkt_crc_error,
|
||||||
@ -13687,7 +13687,7 @@ void rtw_dump_rx_counters(_adapter *padapter)
|
|||||||
}
|
}
|
||||||
|
|
||||||
if (padapter->dump_rx_cnt_mode & DUMP_PHY_RX_COUNTER) {
|
if (padapter->dump_rx_cnt_mode & DUMP_PHY_RX_COUNTER) {
|
||||||
_rtw_memset(&rx_counter, 0, sizeof(struct dbg_rx_counter));
|
memset(&rx_counter, 0, sizeof(struct dbg_rx_counter));
|
||||||
rtw_dump_phy_rx_counters(padapter, &rx_counter);
|
rtw_dump_phy_rx_counters(padapter, &rx_counter);
|
||||||
/* RTW_INFO("%s: OFDM_FA =%d\n", __FUNCTION__, rx_counter.rx_ofdm_fa); */
|
/* RTW_INFO("%s: OFDM_FA =%d\n", __FUNCTION__, rx_counter.rx_ofdm_fa); */
|
||||||
/* RTW_INFO("%s: CCK_FA =%d\n", __FUNCTION__, rx_counter.rx_cck_fa); */
|
/* RTW_INFO("%s: CCK_FA =%d\n", __FUNCTION__, rx_counter.rx_cck_fa); */
|
||||||
@ -14619,7 +14619,7 @@ u8 * rtw_hal_set_8812a_vendor_ie(_adapter *padapter , u8 *pframe ,uint *frlen )
|
|||||||
if( !IS_HARDWARE_TYPE_8812(padapter) )
|
if( !IS_HARDWARE_TYPE_8812(padapter) )
|
||||||
return pframe;
|
return pframe;
|
||||||
|
|
||||||
_rtw_memset(vendor_info,0,vender_len);
|
memset(vendor_info,0,vender_len);
|
||||||
_rtw_memcpy(vendor_info, REALTEK_OUI, 3);
|
_rtw_memcpy(vendor_info, REALTEK_OUI, 3);
|
||||||
vendor_info[4] =2;
|
vendor_info[4] =2;
|
||||||
if(pHalData->version_id.CUTVersion > B_CUT_VERSION )
|
if(pHalData->version_id.CUTVersion > B_CUT_VERSION )
|
||||||
|
@ -542,7 +542,7 @@ static inline void hal_init_pg_txpwr_info_2g(_adapter *adapter, TxPowerInfo24G *
|
|||||||
if (pwr_info == NULL)
|
if (pwr_info == NULL)
|
||||||
return;
|
return;
|
||||||
|
|
||||||
_rtw_memset(pwr_info, 0, sizeof(TxPowerInfo24G));
|
memset(pwr_info, 0, sizeof(TxPowerInfo24G));
|
||||||
|
|
||||||
/* init with invalid value */
|
/* init with invalid value */
|
||||||
for (path = 0; path < MAX_RF_PATH; path++) {
|
for (path = 0; path < MAX_RF_PATH; path++) {
|
||||||
@ -580,7 +580,7 @@ static inline void hal_init_pg_txpwr_info_5g(_adapter *adapter, TxPowerInfo5G *p
|
|||||||
if (pwr_info == NULL)
|
if (pwr_info == NULL)
|
||||||
return;
|
return;
|
||||||
|
|
||||||
_rtw_memset(pwr_info, 0, sizeof(TxPowerInfo5G));
|
memset(pwr_info, 0, sizeof(TxPowerInfo5G));
|
||||||
|
|
||||||
/* init with invalid value */
|
/* init with invalid value */
|
||||||
for (path = 0; path < MAX_RF_PATH; path++) {
|
for (path = 0; path < MAX_RF_PATH; path++) {
|
||||||
@ -3417,7 +3417,7 @@ void phy_txpwr_limit_bandwidth_chk(_adapter *adapter)
|
|||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|
||||||
_rtw_memset(cch_by_bw, 0, 3);
|
memset(cch_by_bw, 0, 3);
|
||||||
cch_by_bw[bw] = cch;
|
cch_by_bw[bw] = cch;
|
||||||
offset_by_bw = 0x01;
|
offset_by_bw = 0x01;
|
||||||
|
|
||||||
@ -4084,7 +4084,7 @@ phy_ConfigMACWithParaFile(
|
|||||||
if (!(Adapter->registrypriv.load_phy_file & LOAD_MAC_PARA_FILE))
|
if (!(Adapter->registrypriv.load_phy_file & LOAD_MAC_PARA_FILE))
|
||||||
return rtStatus;
|
return rtStatus;
|
||||||
|
|
||||||
_rtw_memset(pHalData->para_file_buf, 0, MAX_PARA_FILE_BUF_LEN);
|
memset(pHalData->para_file_buf, 0, MAX_PARA_FILE_BUF_LEN);
|
||||||
|
|
||||||
if ((pHalData->mac_reg_len == 0) && (pHalData->mac_reg == NULL)) {
|
if ((pHalData->mac_reg_len == 0) && (pHalData->mac_reg == NULL)) {
|
||||||
rtw_get_phy_file_path(Adapter, pFileName);
|
rtw_get_phy_file_path(Adapter, pFileName);
|
||||||
@ -4163,7 +4163,7 @@ phy_ConfigBBWithParaFile(
|
|||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|
||||||
_rtw_memset(pHalData->para_file_buf, 0, MAX_PARA_FILE_BUF_LEN);
|
memset(pHalData->para_file_buf, 0, MAX_PARA_FILE_BUF_LEN);
|
||||||
|
|
||||||
if ((pBufLen != NULL) && (*pBufLen == 0) && (pBuf == NULL)) {
|
if ((pBufLen != NULL) && (*pBufLen == 0) && (pBuf == NULL)) {
|
||||||
rtw_get_phy_file_path(Adapter, pFileName);
|
rtw_get_phy_file_path(Adapter, pFileName);
|
||||||
@ -4469,7 +4469,7 @@ phy_ConfigBBWithPgParaFile(
|
|||||||
if (!(Adapter->registrypriv.load_phy_file & LOAD_BB_PG_PARA_FILE))
|
if (!(Adapter->registrypriv.load_phy_file & LOAD_BB_PG_PARA_FILE))
|
||||||
return rtStatus;
|
return rtStatus;
|
||||||
|
|
||||||
_rtw_memset(pHalData->para_file_buf, 0, MAX_PARA_FILE_BUF_LEN);
|
memset(pHalData->para_file_buf, 0, MAX_PARA_FILE_BUF_LEN);
|
||||||
|
|
||||||
if (pHalData->bb_phy_reg_pg == NULL) {
|
if (pHalData->bb_phy_reg_pg == NULL) {
|
||||||
rtw_get_phy_file_path(Adapter, pFileName);
|
rtw_get_phy_file_path(Adapter, pFileName);
|
||||||
@ -4518,7 +4518,7 @@ phy_ConfigBBWithMpParaFile(
|
|||||||
if (!(Adapter->registrypriv.load_phy_file & LOAD_BB_MP_PARA_FILE))
|
if (!(Adapter->registrypriv.load_phy_file & LOAD_BB_MP_PARA_FILE))
|
||||||
return rtStatus;
|
return rtStatus;
|
||||||
|
|
||||||
_rtw_memset(pHalData->para_file_buf, 0, MAX_PARA_FILE_BUF_LEN);
|
memset(pHalData->para_file_buf, 0, MAX_PARA_FILE_BUF_LEN);
|
||||||
|
|
||||||
if ((pHalData->bb_phy_reg_mp_len == 0) && (pHalData->bb_phy_reg_mp == NULL)) {
|
if ((pHalData->bb_phy_reg_mp_len == 0) && (pHalData->bb_phy_reg_mp == NULL)) {
|
||||||
rtw_get_phy_file_path(Adapter, pFileName);
|
rtw_get_phy_file_path(Adapter, pFileName);
|
||||||
@ -4622,7 +4622,7 @@ PHY_ConfigRFWithParaFile(
|
|||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|
||||||
_rtw_memset(pHalData->para_file_buf, 0, MAX_PARA_FILE_BUF_LEN);
|
memset(pHalData->para_file_buf, 0, MAX_PARA_FILE_BUF_LEN);
|
||||||
|
|
||||||
if ((pBufLen != NULL) && (*pBufLen == 0) && (pBuf == NULL)) {
|
if ((pBufLen != NULL) && (*pBufLen == 0) && (pBuf == NULL)) {
|
||||||
rtw_get_phy_file_path(Adapter, pFileName);
|
rtw_get_phy_file_path(Adapter, pFileName);
|
||||||
@ -4821,7 +4821,7 @@ PHY_ConfigRFWithTxPwrTrackParaFile(
|
|||||||
if (!(Adapter->registrypriv.load_phy_file & LOAD_RF_TXPWR_TRACK_PARA_FILE))
|
if (!(Adapter->registrypriv.load_phy_file & LOAD_RF_TXPWR_TRACK_PARA_FILE))
|
||||||
return rtStatus;
|
return rtStatus;
|
||||||
|
|
||||||
_rtw_memset(pHalData->para_file_buf, 0, MAX_PARA_FILE_BUF_LEN);
|
memset(pHalData->para_file_buf, 0, MAX_PARA_FILE_BUF_LEN);
|
||||||
|
|
||||||
if ((pHalData->rf_tx_pwr_track_len == 0) && (pHalData->rf_tx_pwr_track == NULL)) {
|
if ((pHalData->rf_tx_pwr_track_len == 0) && (pHalData->rf_tx_pwr_track == NULL)) {
|
||||||
rtw_get_phy_file_path(Adapter, pFileName);
|
rtw_get_phy_file_path(Adapter, pFileName);
|
||||||
@ -5076,10 +5076,10 @@ phy_ParsePowerLimitTableFile(
|
|||||||
szLine[--i] = ' '; /* return the space in front of the regulation info */
|
szLine[--i] = ' '; /* return the space in front of the regulation info */
|
||||||
|
|
||||||
/* Parse the label of the table */
|
/* Parse the label of the table */
|
||||||
_rtw_memset((PVOID) band, 0, 10);
|
memset((PVOID) band, 0, 10);
|
||||||
_rtw_memset((PVOID) bandwidth, 0, 10);
|
memset((PVOID) bandwidth, 0, 10);
|
||||||
_rtw_memset((PVOID) ntx, 0, 10);
|
memset((PVOID) ntx, 0, 10);
|
||||||
_rtw_memset((PVOID) rateSection, 0, 10);
|
memset((PVOID) rateSection, 0, 10);
|
||||||
if (!ParseQualifiedString(szLine, &i, band, ' ', ',')) {
|
if (!ParseQualifiedString(szLine, &i, band, ' ', ',')) {
|
||||||
RTW_ERR("Fail to parse band!\n");
|
RTW_ERR("Fail to parse band!\n");
|
||||||
goto exit;
|
goto exit;
|
||||||
@ -5124,7 +5124,7 @@ phy_ParsePowerLimitTableFile(
|
|||||||
while (szLine[i] == ' ' || szLine[i] == '\t')
|
while (szLine[i] == ' ' || szLine[i] == '\t')
|
||||||
++i;
|
++i;
|
||||||
|
|
||||||
_rtw_memset((PVOID) colNumBuf, 0, 10);
|
memset((PVOID) colNumBuf, 0, 10);
|
||||||
if (!ParseQualifiedString(szLine, &i, colNumBuf, '#', '#')) {
|
if (!ParseQualifiedString(szLine, &i, colNumBuf, '#', '#')) {
|
||||||
RTW_ERR("Fail to parse column number!\n");
|
RTW_ERR("Fail to parse column number!\n");
|
||||||
goto exit;
|
goto exit;
|
||||||
@ -5229,7 +5229,7 @@ phy_ParsePowerLimitTableFile(
|
|||||||
++i;
|
++i;
|
||||||
|
|
||||||
/* load the power limit value */
|
/* load the power limit value */
|
||||||
_rtw_memset((PVOID) powerLimit, 0, 10);
|
memset((PVOID) powerLimit, 0, 10);
|
||||||
|
|
||||||
if (szLine[i] == 'W' && szLine[i + 1] == 'W') {
|
if (szLine[i] == 'W' && szLine[i + 1] == 'W') {
|
||||||
/*
|
/*
|
||||||
@ -5320,7 +5320,7 @@ PHY_ConfigRFWithPowerLimitTableParaFile(
|
|||||||
if (!(Adapter->registrypriv.load_phy_file & LOAD_RF_TXPWR_LMT_PARA_FILE))
|
if (!(Adapter->registrypriv.load_phy_file & LOAD_RF_TXPWR_LMT_PARA_FILE))
|
||||||
return rtStatus;
|
return rtStatus;
|
||||||
|
|
||||||
_rtw_memset(pHalData->para_file_buf, 0, MAX_PARA_FILE_BUF_LEN);
|
memset(pHalData->para_file_buf, 0, MAX_PARA_FILE_BUF_LEN);
|
||||||
|
|
||||||
if (pHalData->rf_tx_pwr_lmt == NULL) {
|
if (pHalData->rf_tx_pwr_lmt == NULL) {
|
||||||
rtw_get_phy_file_path(Adapter, pFileName);
|
rtw_get_phy_file_path(Adapter, pFileName);
|
||||||
|
@ -32,7 +32,7 @@ static void _rtw_bss_nums_count(_adapter *adapter, u8 *pbss_nums)
|
|||||||
RTW_ERR("%s pbss_nums is null pointer\n", __func__);
|
RTW_ERR("%s pbss_nums is null pointer\n", __func__);
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
_rtw_memset(pbss_nums, 0, MAX_CHANNEL_NUM);
|
memset(pbss_nums, 0, MAX_CHANNEL_NUM);
|
||||||
|
|
||||||
_enter_critical_bh(&(pmlmepriv->scanned_queue.lock), &irqL);
|
_enter_critical_bh(&(pmlmepriv->scanned_queue.lock), &irqL);
|
||||||
phead = get_list_head(queue);
|
phead = get_list_head(queue);
|
||||||
@ -94,7 +94,7 @@ void rtw_acs_reset(_adapter *adapter)
|
|||||||
HAL_DATA_TYPE *hal_data = GET_HAL_DATA(adapter);
|
HAL_DATA_TYPE *hal_data = GET_HAL_DATA(adapter);
|
||||||
struct auto_chan_sel *pacs = &hal_data->acs;
|
struct auto_chan_sel *pacs = &hal_data->acs;
|
||||||
|
|
||||||
_rtw_memset(pacs, 0, sizeof(struct auto_chan_sel));
|
memset(pacs, 0, sizeof(struct auto_chan_sel));
|
||||||
#ifdef CONFIG_RTW_ACS_DBG
|
#ifdef CONFIG_RTW_ACS_DBG
|
||||||
rtw_acs_adv_reset(adapter);
|
rtw_acs_adv_reset(adapter);
|
||||||
#endif /*CONFIG_RTW_ACS_DBG*/
|
#endif /*CONFIG_RTW_ACS_DBG*/
|
||||||
|
@ -402,7 +402,7 @@ static u8 _halmac_memcpy(void *p, void *dest, void *src, u32 size)
|
|||||||
|
|
||||||
static u8 _halmac_memset(void *p, void *addr, u8 value, u32 size)
|
static u8 _halmac_memset(void *p, void *addr, u8 value, u32 size)
|
||||||
{
|
{
|
||||||
_rtw_memset(addr, value, size);
|
memset(addr, value, size);
|
||||||
return RTW_HALMAC_SUCCESS;
|
return RTW_HALMAC_SUCCESS;
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -1064,7 +1064,7 @@ static int init_write_rsvd_page_size(struct dvobj_priv *d)
|
|||||||
mac = dvobj_to_halmac(d);
|
mac = dvobj_to_halmac(d);
|
||||||
api = HALMAC_GET_API(mac);
|
api = HALMAC_GET_API(mac);
|
||||||
|
|
||||||
_rtw_memset(&ofld_info, 0, sizeof(ofld_info));
|
memset(&ofld_info, 0, sizeof(ofld_info));
|
||||||
ofld_info.halmac_malloc_max_sz = 0xFFFFFFFF;
|
ofld_info.halmac_malloc_max_sz = 0xFFFFFFFF;
|
||||||
ofld_info.rsvd_pg_drv_buf_max_sz = size;
|
ofld_info.rsvd_pg_drv_buf_max_sz = size;
|
||||||
status = api->halmac_ofld_func_cfg(mac, &ofld_info);
|
status = api->halmac_ofld_func_cfg(mac, &ofld_info);
|
||||||
@ -1218,7 +1218,7 @@ int rtw_halmac_init_adapter(struct dvobj_priv *d, struct halmac_platform_api *pf
|
|||||||
init_write_rsvd_page_size(d);
|
init_write_rsvd_page_size(d);
|
||||||
|
|
||||||
#ifdef CONFIG_SDIO_HCI
|
#ifdef CONFIG_SDIO_HCI
|
||||||
_rtw_memset(&info, 0, sizeof(info));
|
memset(&info, 0, sizeof(info));
|
||||||
info.spec_ver = _sdio_ver_drv2halmac(d);
|
info.spec_ver = _sdio_ver_drv2halmac(d);
|
||||||
/* Convert clock speed unit to MHz from Hz */
|
/* Convert clock speed unit to MHz from Hz */
|
||||||
info.clock_speed = RTW_DIV_ROUND_UP(rtw_sdio_get_clock(d), 1000000);
|
info.clock_speed = RTW_DIV_ROUND_UP(rtw_sdio_get_clock(d), 1000000);
|
||||||
@ -1794,7 +1794,7 @@ int rtw_halmac_get_mac_address(struct dvobj_priv *d, enum _hw_port hwport, u8 *a
|
|||||||
halmac = dvobj_to_halmac(d);
|
halmac = dvobj_to_halmac(d);
|
||||||
api = HALMAC_GET_API(halmac);
|
api = HALMAC_GET_API(halmac);
|
||||||
port = _hw_port_drv2halmac(hwport);
|
port = _hw_port_drv2halmac(hwport);
|
||||||
_rtw_memset(&hwa, 0, sizeof(hwa));
|
memset(&hwa, 0, sizeof(hwa));
|
||||||
|
|
||||||
status = api->halmac_get_mac_addr(halmac, port, &hwa);
|
status = api->halmac_get_mac_addr(halmac, port, &hwa);
|
||||||
if (status != HALMAC_RET_SUCCESS)
|
if (status != HALMAC_RET_SUCCESS)
|
||||||
@ -1916,7 +1916,7 @@ int rtw_halmac_get_bcn_ctrl(struct dvobj_priv *d, enum _hw_port hwport,
|
|||||||
halmac = dvobj_to_halmac(d);
|
halmac = dvobj_to_halmac(d);
|
||||||
api = HALMAC_GET_API(halmac);
|
api = HALMAC_GET_API(halmac);
|
||||||
port = _hw_port_drv2halmac(hwport);
|
port = _hw_port_drv2halmac(hwport);
|
||||||
_rtw_memset(&ctrl, 0, sizeof(ctrl));
|
memset(&ctrl, 0, sizeof(ctrl));
|
||||||
|
|
||||||
status = api->halmac_rw_bcn_ctrl(halmac, port, 0, &ctrl);
|
status = api->halmac_rw_bcn_ctrl(halmac, port, 0, &ctrl);
|
||||||
if (status != HALMAC_RET_SUCCESS)
|
if (status != HALMAC_RET_SUCCESS)
|
||||||
@ -2019,7 +2019,7 @@ int rtw_halmac_set_mac_address(struct dvobj_priv *d, enum _hw_port hwport, u8 *a
|
|||||||
api = HALMAC_GET_API(halmac);
|
api = HALMAC_GET_API(halmac);
|
||||||
|
|
||||||
port = _hw_port_drv2halmac(hwport);
|
port = _hw_port_drv2halmac(hwport);
|
||||||
_rtw_memset(&hwa, 0, sizeof(hwa));
|
memset(&hwa, 0, sizeof(hwa));
|
||||||
_rtw_memcpy(hwa.addr, addr, 6);
|
_rtw_memcpy(hwa.addr, addr, 6);
|
||||||
|
|
||||||
status = api->halmac_cfg_mac_addr(halmac, port, &hwa);
|
status = api->halmac_cfg_mac_addr(halmac, port, &hwa);
|
||||||
@ -2055,7 +2055,7 @@ int rtw_halmac_set_bssid(struct dvobj_priv *d, enum _hw_port hwport, u8 *addr)
|
|||||||
api = HALMAC_GET_API(halmac);
|
api = HALMAC_GET_API(halmac);
|
||||||
port = _hw_port_drv2halmac(hwport);
|
port = _hw_port_drv2halmac(hwport);
|
||||||
|
|
||||||
_rtw_memset(&hwa, 0, sizeof(hwa));
|
memset(&hwa, 0, sizeof(hwa));
|
||||||
_rtw_memcpy(hwa.addr, addr, 6);
|
_rtw_memcpy(hwa.addr, addr, 6);
|
||||||
status = api->halmac_cfg_bssid(halmac, port, &hwa);
|
status = api->halmac_cfg_bssid(halmac, port, &hwa);
|
||||||
if (status != HALMAC_RET_SUCCESS)
|
if (status != HALMAC_RET_SUCCESS)
|
||||||
@ -2089,7 +2089,7 @@ int rtw_halmac_set_tx_address(struct dvobj_priv *d, enum _hw_port hwport, u8 *ad
|
|||||||
halmac = dvobj_to_halmac(d);
|
halmac = dvobj_to_halmac(d);
|
||||||
api = HALMAC_GET_API(halmac);
|
api = HALMAC_GET_API(halmac);
|
||||||
port = _hw_port_drv2halmac(hwport);
|
port = _hw_port_drv2halmac(hwport);
|
||||||
_rtw_memset(&hwa, 0, sizeof(hwa));
|
memset(&hwa, 0, sizeof(hwa));
|
||||||
_rtw_memcpy(hwa.addr, addr, 6);
|
_rtw_memcpy(hwa.addr, addr, 6);
|
||||||
|
|
||||||
status = api->halmac_cfg_transmitter_addr(halmac, port, &hwa);
|
status = api->halmac_cfg_transmitter_addr(halmac, port, &hwa);
|
||||||
@ -2224,7 +2224,7 @@ int rtw_halmac_set_bcn_ctrl(struct dvobj_priv *d, enum _hw_port hwport,
|
|||||||
halmac = dvobj_to_halmac(d);
|
halmac = dvobj_to_halmac(d);
|
||||||
api = HALMAC_GET_API(halmac);
|
api = HALMAC_GET_API(halmac);
|
||||||
port = _hw_port_drv2halmac(hwport);
|
port = _hw_port_drv2halmac(hwport);
|
||||||
_rtw_memset(&ctrl, 0, sizeof(ctrl));
|
memset(&ctrl, 0, sizeof(ctrl));
|
||||||
_beacon_ctrl_drv2halmac(bcn_ctrl, &ctrl);
|
_beacon_ctrl_drv2halmac(bcn_ctrl, &ctrl);
|
||||||
|
|
||||||
status = api->halmac_rw_bcn_ctrl(halmac, port, 1, &ctrl);
|
status = api->halmac_rw_bcn_ctrl(halmac, port, 1, &ctrl);
|
||||||
@ -2947,7 +2947,7 @@ static int _send_general_info(struct dvobj_priv *d)
|
|||||||
return -1;
|
return -1;
|
||||||
api = HALMAC_GET_API(halmac);
|
api = HALMAC_GET_API(halmac);
|
||||||
|
|
||||||
_rtw_memset(&info, 0, sizeof(info));
|
memset(&info, 0, sizeof(info));
|
||||||
info.rfe_type = (u8)hal->rfe_type;
|
info.rfe_type = (u8)hal->rfe_type;
|
||||||
rtw_hal_get_rf_path(d, &rf, &txpath, &rxpath);
|
rtw_hal_get_rf_path(d, &rf, &txpath, &rxpath);
|
||||||
info.rf_type = _rf_type_drv2halmac(rf);
|
info.rf_type = _rf_type_drv2halmac(rf);
|
||||||
@ -4455,7 +4455,7 @@ int rtw_halmac_rx_agg_switch(struct dvobj_priv *d, u8 enable)
|
|||||||
hal = GET_HAL_DATA(adapter);
|
hal = GET_HAL_DATA(adapter);
|
||||||
halmac = dvobj_to_halmac(d);
|
halmac = dvobj_to_halmac(d);
|
||||||
api = HALMAC_GET_API(halmac);
|
api = HALMAC_GET_API(halmac);
|
||||||
_rtw_memset((void *)&rxaggcfg, 0, sizeof(rxaggcfg));
|
memset((void *)&rxaggcfg, 0, sizeof(rxaggcfg));
|
||||||
rxaggcfg.mode = HALMAC_RX_AGG_MODE_NONE;
|
rxaggcfg.mode = HALMAC_RX_AGG_MODE_NONE;
|
||||||
/*
|
/*
|
||||||
* Always enable size limit to avoid rx size exceed
|
* Always enable size limit to avoid rx size exceed
|
||||||
@ -4658,7 +4658,7 @@ static int _phy_parameter_drv2halmac(struct rtw_phy_parameter *para, struct halm
|
|||||||
if (!para || !info)
|
if (!para || !info)
|
||||||
return -1;
|
return -1;
|
||||||
|
|
||||||
_rtw_memset(info, 0, sizeof(*info));
|
memset(info, 0, sizeof(*info));
|
||||||
|
|
||||||
switch (para->cmd) {
|
switch (para->cmd) {
|
||||||
case 0:
|
case 0:
|
||||||
@ -5012,9 +5012,9 @@ static int _halmac_scanoffload(struct dvobj_priv *d, u32 enable, u8 nlo,
|
|||||||
nlo?"PNO/NLO":"Normal");
|
nlo?"PNO/NLO":"Normal");
|
||||||
|
|
||||||
if (enable) {
|
if (enable) {
|
||||||
_rtw_memset(probereq, 0, sizeof(probereq));
|
memset(probereq, 0, sizeof(probereq));
|
||||||
|
|
||||||
_rtw_memset(&pnossid, 0, sizeof(pnossid));
|
memset(&pnossid, 0, sizeof(pnossid));
|
||||||
if (ssid) {
|
if (ssid) {
|
||||||
if (ssid_len > sizeof(pnossid.SSID)) {
|
if (ssid_len > sizeof(pnossid.SSID)) {
|
||||||
RTW_ERR("%s: SSID length(%d) is too long(>%d)!!\n",
|
RTW_ERR("%s: SSID length(%d) is too long(>%d)!!\n",
|
||||||
@ -5054,7 +5054,7 @@ static int _halmac_scanoffload(struct dvobj_priv *d, u32 enable, u8 nlo,
|
|||||||
api->halmac_clear_ch_info(mac);
|
api->halmac_clear_ch_info(mac);
|
||||||
|
|
||||||
for (i = 0; i < rfctl->max_chan_nums && ch_set[i].ChannelNum != 0; i++) {
|
for (i = 0; i < rfctl->max_chan_nums && ch_set[i].ChannelNum != 0; i++) {
|
||||||
_rtw_memset(&ch_info, 0, sizeof(ch_info));
|
memset(&ch_info, 0, sizeof(ch_info));
|
||||||
ch_info.extra_info = 0;
|
ch_info.extra_info = 0;
|
||||||
ch_info.channel = ch_set[i].ChannelNum;
|
ch_info.channel = ch_set[i].ChannelNum;
|
||||||
ch_info.bw = HALMAC_BW_20;
|
ch_info.bw = HALMAC_BW_20;
|
||||||
@ -5070,7 +5070,7 @@ static int _halmac_scanoffload(struct dvobj_priv *d, u32 enable, u8 nlo,
|
|||||||
}
|
}
|
||||||
|
|
||||||
/* set channel switch option */
|
/* set channel switch option */
|
||||||
_rtw_memset(&cs_option, 0, sizeof(cs_option));
|
memset(&cs_option, 0, sizeof(cs_option));
|
||||||
cs_option.dest_bw = HALMAC_BW_20;
|
cs_option.dest_bw = HALMAC_BW_20;
|
||||||
cs_option.periodic_option = HALMAC_CS_PERIODIC_2_PHASE;
|
cs_option.periodic_option = HALMAC_CS_PERIODIC_2_PHASE;
|
||||||
cs_option.dest_pri_ch_idx = HALMAC_CH_IDX_UNDEFINE;
|
cs_option.dest_pri_ch_idx = HALMAC_CH_IDX_UNDEFINE;
|
||||||
@ -5114,7 +5114,7 @@ static int _halmac_scanoffload(struct dvobj_priv *d, u32 enable, u8 nlo,
|
|||||||
} else {
|
} else {
|
||||||
api->halmac_clear_ch_info(mac);
|
api->halmac_clear_ch_info(mac);
|
||||||
|
|
||||||
_rtw_memset(&cs_option, 0, sizeof(cs_option));
|
memset(&cs_option, 0, sizeof(cs_option));
|
||||||
cs_option.switch_en = 0;
|
cs_option.switch_en = 0;
|
||||||
|
|
||||||
if (!nlo) {
|
if (!nlo) {
|
||||||
@ -5189,8 +5189,8 @@ int rtw_halmac_query_tx_page_num(struct dvobj_priv *d)
|
|||||||
hmpriv = &d->hmpriv;
|
hmpriv = &d->hmpriv;
|
||||||
halmac = dvobj_to_halmac(d);
|
halmac = dvobj_to_halmac(d);
|
||||||
api = HALMAC_GET_API(halmac);
|
api = HALMAC_GET_API(halmac);
|
||||||
_rtw_memset((void *)&rqpn, 0, sizeof(rqpn));
|
memset((void *)&rqpn, 0, sizeof(rqpn));
|
||||||
_rtw_memset((void *)&fifosize, 0, sizeof(fifosize));
|
memset((void *)&fifosize, 0, sizeof(fifosize));
|
||||||
|
|
||||||
status = api->halmac_get_hw_value(halmac, HALMAC_HW_RQPN_MAPPING, &rqpn);
|
status = api->halmac_get_hw_value(halmac, HALMAC_HW_RQPN_MAPPING, &rqpn);
|
||||||
if (status != HALMAC_RET_SUCCESS)
|
if (status != HALMAC_RET_SUCCESS)
|
||||||
@ -5428,7 +5428,7 @@ int rtw_halmac_bf_add_mu_bfer(struct dvobj_priv *d, u16 paid, u16 csi_para,
|
|||||||
mac = dvobj_to_halmac(d);
|
mac = dvobj_to_halmac(d);
|
||||||
api = HALMAC_GET_API(mac);
|
api = HALMAC_GET_API(mac);
|
||||||
|
|
||||||
_rtw_memset(¶m, 0, sizeof(param));
|
memset(¶m, 0, sizeof(param));
|
||||||
param.paid = paid;
|
param.paid = paid;
|
||||||
param.csi_para = csi_para;
|
param.csi_para = csi_para;
|
||||||
param.my_aid = my_aid;
|
param.my_aid = my_aid;
|
||||||
@ -5529,7 +5529,7 @@ int rtw_halmac_bf_cfg_mu_mimo(struct dvobj_priv *d, enum halmac_snd_role role,
|
|||||||
mac = dvobj_to_halmac(d);
|
mac = dvobj_to_halmac(d);
|
||||||
api = HALMAC_GET_API(mac);
|
api = HALMAC_GET_API(mac);
|
||||||
|
|
||||||
_rtw_memset(¶m, 0, sizeof(param));
|
memset(¶m, 0, sizeof(param));
|
||||||
|
|
||||||
param.role = role;
|
param.role = role;
|
||||||
param.grouping_bitmap = grouping_bitmap;
|
param.grouping_bitmap = grouping_bitmap;
|
||||||
|
@ -533,7 +533,7 @@ int usb_writeN(struct intf_hdl *pintfhdl, u32 addr, u32 length, u8 *pdata)
|
|||||||
|
|
||||||
void usb_set_intf_ops(_adapter *padapter, struct _io_ops *pops)
|
void usb_set_intf_ops(_adapter *padapter, struct _io_ops *pops)
|
||||||
{
|
{
|
||||||
_rtw_memset((u8 *)pops, 0, sizeof(struct _io_ops));
|
memset((u8 *)pops, 0, sizeof(struct _io_ops));
|
||||||
|
|
||||||
pops->_read8 = &usb_read8;
|
pops->_read8 = &usb_read8;
|
||||||
pops->_read16 = &usb_read16;
|
pops->_read16 = &usb_read16;
|
||||||
|
@ -249,7 +249,7 @@ void rtw_hal_power_off(_adapter *padapter)
|
|||||||
{
|
{
|
||||||
struct macid_ctl_t *macid_ctl = &padapter->dvobj->macid_ctl;
|
struct macid_ctl_t *macid_ctl = &padapter->dvobj->macid_ctl;
|
||||||
|
|
||||||
_rtw_memset(macid_ctl->h2c_msr, 0, MACID_NUM_SW_LIMIT);
|
memset(macid_ctl->h2c_msr, 0, MACID_NUM_SW_LIMIT);
|
||||||
|
|
||||||
#ifdef CONFIG_BT_COEXIST
|
#ifdef CONFIG_BT_COEXIST
|
||||||
rtw_btcoex_PowerOffSetting(padapter);
|
rtw_btcoex_PowerOffSetting(padapter);
|
||||||
|
@ -1174,7 +1174,7 @@ u8 rtw_hal_dl_mcc_fw_rsvd_page(_adapter *adapter, u8 *pframe, u16 *index,
|
|||||||
rtw_hal_mcc_upadate_chnl_bw(iface, ch, bw_offset, bw, _TRUE);
|
rtw_hal_mcc_upadate_chnl_bw(iface, ch, bw_offset, bw, _TRUE);
|
||||||
|
|
||||||
start = &pframe[*index - tx_desc];
|
start = &pframe[*index - tx_desc];
|
||||||
_rtw_memset(start, 0, page_size);
|
memset(start, 0, page_size);
|
||||||
pmccobjpriv->mcc_pwr_idx_rsvd_page[i] = *total_page_num;
|
pmccobjpriv->mcc_pwr_idx_rsvd_page[i] = *total_page_num;
|
||||||
RTW_INFO(ADPT_FMT" order:%d, pwr_idx_rsvd_page location[%d]: %d\n",
|
RTW_INFO(ADPT_FMT" order:%d, pwr_idx_rsvd_page location[%d]: %d\n",
|
||||||
ADPT_ARG(iface), mccadapriv->order,
|
ADPT_ARG(iface), mccadapriv->order,
|
||||||
@ -1609,7 +1609,7 @@ static void rtw_hal_set_mcc_IQK_offload_cmd(PADAPTER padapter)
|
|||||||
|
|
||||||
for (rf_path_idx = 0; rf_path_idx < total_rf_path; rf_path_idx ++) {
|
for (rf_path_idx = 0; rf_path_idx < total_rf_path; rf_path_idx ++) {
|
||||||
|
|
||||||
_rtw_memset(cmd, 0, H2C_MCC_IQK_PARAM_LEN);
|
memset(cmd, 0, H2C_MCC_IQK_PARAM_LEN);
|
||||||
TX_X = pmccadapriv->mcc_iqk_arr[rf_path_idx].TX_X & 0x7ff;/* [10:0] */
|
TX_X = pmccadapriv->mcc_iqk_arr[rf_path_idx].TX_X & 0x7ff;/* [10:0] */
|
||||||
TX_Y = pmccadapriv->mcc_iqk_arr[rf_path_idx].TX_Y & 0x7ff;/* [10:0] */
|
TX_Y = pmccadapriv->mcc_iqk_arr[rf_path_idx].TX_Y & 0x7ff;/* [10:0] */
|
||||||
RX_X = pmccadapriv->mcc_iqk_arr[rf_path_idx].RX_X & 0x3ff;/* [9:0] */
|
RX_X = pmccadapriv->mcc_iqk_arr[rf_path_idx].RX_X & 0x3ff;/* [9:0] */
|
||||||
|
@ -424,7 +424,7 @@ void odm_memory_set(struct dm_struct *dm, void *pbuf, s8 value, u32 length)
|
|||||||
#elif (DM_ODM_SUPPORT_TYPE & ODM_CE) && defined(DM_ODM_CE_MAC80211_V2)
|
#elif (DM_ODM_SUPPORT_TYPE & ODM_CE) && defined(DM_ODM_CE_MAC80211_V2)
|
||||||
memset(pbuf, value, length);
|
memset(pbuf, value, length);
|
||||||
#elif (DM_ODM_SUPPORT_TYPE & ODM_CE)
|
#elif (DM_ODM_SUPPORT_TYPE & ODM_CE)
|
||||||
_rtw_memset(pbuf, value, length);
|
memset(pbuf, value, length);
|
||||||
#elif (DM_ODM_SUPPORT_TYPE & ODM_WIN)
|
#elif (DM_ODM_SUPPORT_TYPE & ODM_WIN)
|
||||||
PlatformFillMemory(pbuf, length, value);
|
PlatformFillMemory(pbuf, length, value);
|
||||||
#elif (DM_ODM_SUPPORT_TYPE & ODM_IOT)
|
#elif (DM_ODM_SUPPORT_TYPE & ODM_IOT)
|
||||||
|
@ -1044,7 +1044,7 @@ send_fw_ht_ndpa_packet(
|
|||||||
pattrib->order = 1;
|
pattrib->order = 1;
|
||||||
pattrib->subtype = WIFI_ACTION_NOACK;
|
pattrib->subtype = WIFI_ACTION_NOACK;
|
||||||
|
|
||||||
_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;
|
pframe = (u8 *)(pmgntframe->buf_addr) + TXDESC_OFFSET;
|
||||||
|
|
||||||
@ -1130,7 +1130,7 @@ send_sw_ht_ndpa_packet(
|
|||||||
pattrib->order = 1;
|
pattrib->order = 1;
|
||||||
pattrib->subtype = WIFI_ACTION_NOACK;
|
pattrib->subtype = WIFI_ACTION_NOACK;
|
||||||
|
|
||||||
_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;
|
pframe = (u8 *)(pmgntframe->buf_addr) + TXDESC_OFFSET;
|
||||||
|
|
||||||
@ -1220,7 +1220,7 @@ send_fw_vht_ndpa_packet(
|
|||||||
pattrib->bwmode = BW;
|
pattrib->bwmode = BW;
|
||||||
pattrib->subtype = WIFI_NDPA;
|
pattrib->subtype = WIFI_NDPA;
|
||||||
|
|
||||||
_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;
|
pframe = (u8 *)(pmgntframe->buf_addr) + TXDESC_OFFSET;
|
||||||
|
|
||||||
@ -1321,7 +1321,7 @@ send_sw_vht_ndpa_packet(
|
|||||||
pattrib->bwmode = BW;
|
pattrib->bwmode = BW;
|
||||||
pattrib->subtype = WIFI_NDPA;
|
pattrib->subtype = WIFI_NDPA;
|
||||||
|
|
||||||
_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;
|
pframe = (u8 *)(pmgntframe->buf_addr) + TXDESC_OFFSET;
|
||||||
|
|
||||||
|
@ -441,7 +441,7 @@ void rtl8192e_set_p2p_ps_offload_cmd(_adapter *padapter, u8 p2p_ps_state)
|
|||||||
switch (p2p_ps_state) {
|
switch (p2p_ps_state) {
|
||||||
case P2P_PS_DISABLE:
|
case P2P_PS_DISABLE:
|
||||||
RTW_INFO("P2P_PS_DISABLE\n");
|
RTW_INFO("P2P_PS_DISABLE\n");
|
||||||
_rtw_memset(p2p_ps_offload, 0, 1);
|
memset(p2p_ps_offload, 0, 1);
|
||||||
break;
|
break;
|
||||||
case P2P_PS_ENABLE:
|
case P2P_PS_ENABLE:
|
||||||
RTW_INFO("P2P_PS_ENABLE\n");
|
RTW_INFO("P2P_PS_ENABLE\n");
|
||||||
|
@ -1219,7 +1219,7 @@ static bool efuse_read_phymap(
|
|||||||
/* */
|
/* */
|
||||||
/* Refresh efuse init map as all 0xFF. */
|
/* Refresh efuse init map as all 0xFF. */
|
||||||
/* */
|
/* */
|
||||||
_rtw_memset(pbuf, 0xFF, limit);
|
memset(pbuf, 0xFF, limit);
|
||||||
|
|
||||||
|
|
||||||
/* */
|
/* */
|
||||||
@ -1638,7 +1638,7 @@ Hal_EfuseWordEnableDataWrite8192E(IN PADAPTER pAdapter,
|
|||||||
u8 badworden = 0x0F;
|
u8 badworden = 0x0F;
|
||||||
u8 tmpdata[8];
|
u8 tmpdata[8];
|
||||||
|
|
||||||
_rtw_memset((PVOID)tmpdata, 0xff, PGPKT_DATA_SIZE);
|
memset((PVOID)tmpdata, 0xff, PGPKT_DATA_SIZE);
|
||||||
|
|
||||||
if (!(word_en & BIT0)) {
|
if (!(word_en & BIT0)) {
|
||||||
tmpaddr = start_addr;
|
tmpaddr = start_addr;
|
||||||
@ -1801,8 +1801,8 @@ hal_EfusePgPacketRead_8192E(
|
|||||||
if (offset > EFUSE_MAX_SECTION_8192E)
|
if (offset > EFUSE_MAX_SECTION_8192E)
|
||||||
return _FALSE;
|
return _FALSE;
|
||||||
|
|
||||||
_rtw_memset((PVOID)data, 0xff, sizeof(u8) * PGPKT_DATA_SIZE);
|
memset((PVOID)data, 0xff, sizeof(u8) * PGPKT_DATA_SIZE);
|
||||||
_rtw_memset((PVOID)tmpdata, 0xff, sizeof(u8) * PGPKT_DATA_SIZE);
|
memset((PVOID)tmpdata, 0xff, sizeof(u8) * PGPKT_DATA_SIZE);
|
||||||
|
|
||||||
|
|
||||||
/* */
|
/* */
|
||||||
@ -1936,7 +1936,7 @@ hal_EfusePgPacketWrite_8192E(IN PADAPTER pAdapter,
|
|||||||
|
|
||||||
/* RTW_INFO("hal_EfusePgPacketWrite_8812A target offset 0x%x word_en 0x%x\n", target_pkt.offset, target_pkt.word_en); */
|
/* RTW_INFO("hal_EfusePgPacketWrite_8812A target offset 0x%x word_en 0x%x\n", target_pkt.offset, target_pkt.word_en); */
|
||||||
|
|
||||||
_rtw_memset((PVOID)target_pkt.data, 0xFF, sizeof(u8) * 8);
|
memset((PVOID)target_pkt.data, 0xFF, sizeof(u8) * 8);
|
||||||
|
|
||||||
efuse_WordEnableDataRead(word_en, data, target_pkt.data);
|
efuse_WordEnableDataRead(word_en, data, target_pkt.data);
|
||||||
target_word_cnts = Efuse_CalculateWordCnts(target_pkt.word_en);
|
target_word_cnts = Efuse_CalculateWordCnts(target_pkt.word_en);
|
||||||
@ -2179,7 +2179,7 @@ hal_EfusePgPacketWrite_8192E(IN PADAPTER pAdapter,
|
|||||||
}
|
}
|
||||||
|
|
||||||
/* ************ s1-2-A :cover the exist data ******************* */
|
/* ************ s1-2-A :cover the exist data ******************* */
|
||||||
_rtw_memset(originaldata, 0xff, sizeof(u8) * 8);
|
memset(originaldata, 0xff, sizeof(u8) * 8);
|
||||||
|
|
||||||
if (Efuse_PgPacketRead(pAdapter, tmp_pkt.offset, originaldata, bPseudoTest)) {
|
if (Efuse_PgPacketRead(pAdapter, tmp_pkt.offset, originaldata, bPseudoTest)) {
|
||||||
/* check if data exist */
|
/* check if data exist */
|
||||||
@ -2281,7 +2281,7 @@ efuse_PgPacketConstruct(
|
|||||||
IN OUT PPGPKT_STRUCT pTargetPkt
|
IN OUT PPGPKT_STRUCT pTargetPkt
|
||||||
)
|
)
|
||||||
{
|
{
|
||||||
_rtw_memset((PVOID)pTargetPkt->data, 0xFF, sizeof(u8) * 8);
|
memset((PVOID)pTargetPkt->data, 0xFF, sizeof(u8) * 8);
|
||||||
pTargetPkt->offset = offset;
|
pTargetPkt->offset = offset;
|
||||||
pTargetPkt->word_en = word_en;
|
pTargetPkt->word_en = word_en;
|
||||||
efuse_WordEnableDataRead(word_en, pData, pTargetPkt->data);
|
efuse_WordEnableDataRead(word_en, pData, pTargetPkt->data);
|
||||||
@ -2585,7 +2585,7 @@ hal_EfuseFixHeaderProcess(
|
|||||||
u16 efuse_addr = *pAddr;
|
u16 efuse_addr = *pAddr;
|
||||||
u32 PgWriteSuccess = 0;
|
u32 PgWriteSuccess = 0;
|
||||||
|
|
||||||
_rtw_memset((PVOID)originaldata, 0xff, 8);
|
memset((PVOID)originaldata, 0xff, 8);
|
||||||
|
|
||||||
if (Efuse_PgPacketRead(pAdapter, pFixPkt->offset, originaldata, bPseudoTest)) {
|
if (Efuse_PgPacketRead(pAdapter, pFixPkt->offset, originaldata, bPseudoTest)) {
|
||||||
/* check if data exist */
|
/* check if data exist */
|
||||||
@ -4761,9 +4761,9 @@ void rtl8192e_init_default_value(_adapter *padapter)
|
|||||||
#endif
|
#endif
|
||||||
pHalData->EfuseHal.fakeEfuseBank = 0;
|
pHalData->EfuseHal.fakeEfuseBank = 0;
|
||||||
pHalData->EfuseHal.fakeEfuseUsedBytes = 0;
|
pHalData->EfuseHal.fakeEfuseUsedBytes = 0;
|
||||||
_rtw_memset(pHalData->EfuseHal.fakeEfuseContent, 0xFF, EFUSE_MAX_HW_SIZE);
|
memset(pHalData->EfuseHal.fakeEfuseContent, 0xFF, EFUSE_MAX_HW_SIZE);
|
||||||
_rtw_memset(pHalData->EfuseHal.fakeEfuseInitMap, 0xFF, EFUSE_MAX_MAP_LEN);
|
memset(pHalData->EfuseHal.fakeEfuseInitMap, 0xFF, EFUSE_MAX_MAP_LEN);
|
||||||
_rtw_memset(pHalData->EfuseHal.fakeEfuseModifiedMap, 0xFF, EFUSE_MAX_MAP_LEN);
|
memset(pHalData->EfuseHal.fakeEfuseModifiedMap, 0xFF, EFUSE_MAX_MAP_LEN);
|
||||||
}
|
}
|
||||||
|
|
||||||
#ifdef CONFIG_BT_COEXIST
|
#ifdef CONFIG_BT_COEXIST
|
||||||
|
@ -21,7 +21,7 @@ void rtl8192e_query_rx_desc_status(union recv_frame *precvframe, u8 *pdesc)
|
|||||||
{
|
{
|
||||||
struct rx_pkt_attrib *pattrib = &precvframe->u.hdr.attrib;
|
struct rx_pkt_attrib *pattrib = &precvframe->u.hdr.attrib;
|
||||||
|
|
||||||
_rtw_memset(pattrib, 0, sizeof(struct rx_pkt_attrib));
|
memset(pattrib, 0, sizeof(struct rx_pkt_attrib));
|
||||||
|
|
||||||
/* Offset 0 */
|
/* Offset 0 */
|
||||||
pattrib->pkt_len = (u16)GET_RX_STATUS_DESC_PKT_LEN_92E(pdesc);/* (le32_to_cpu(pdesc->rxdw0)&0x00003fff) */
|
pattrib->pkt_len = (u16)GET_RX_STATUS_DESC_PKT_LEN_92E(pdesc);/* (le32_to_cpu(pdesc->rxdw0)&0x00003fff) */
|
||||||
|
@ -104,7 +104,7 @@ InsertEMContent_8192E(
|
|||||||
u4Byte dwtmp = 0;
|
u4Byte dwtmp = 0;
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
_rtw_memset(VirtualAddress, 0, EARLY_MODE_INFO_SIZE);
|
memset(VirtualAddress, 0, EARLY_MODE_INFO_SIZE);
|
||||||
if (pEMInfo->EMPktNum == 0)
|
if (pEMInfo->EMPktNum == 0)
|
||||||
return;
|
return;
|
||||||
|
|
||||||
@ -210,7 +210,7 @@ void UpdateEarlyModeInfo8192E(struct xmit_priv *pxmitpriv, struct xmit_buf *pxmi
|
|||||||
offset = pxmitpriv->agg_pkt[index].offset;
|
offset = pxmitpriv->agg_pkt[index].offset;
|
||||||
pktlen = pxmitpriv->agg_pkt[index].pkt_len;
|
pktlen = pxmitpriv->agg_pkt[index].pkt_len;
|
||||||
|
|
||||||
_rtw_memset(&eminfo, 0, sizeof(struct EMInfo));
|
memset(&eminfo, 0, sizeof(struct EMInfo));
|
||||||
if (pframe->agg_num > EARLY_MODE_MAX_PKT_NUM) {
|
if (pframe->agg_num > EARLY_MODE_MAX_PKT_NUM) {
|
||||||
if (node_num_0 > EARLY_MODE_MAX_PKT_NUM) {
|
if (node_num_0 > EARLY_MODE_MAX_PKT_NUM) {
|
||||||
eminfo.EMPktNum = EARLY_MODE_MAX_PKT_NUM;
|
eminfo.EMPktNum = EARLY_MODE_MAX_PKT_NUM;
|
||||||
@ -243,7 +243,7 @@ void UpdateEarlyModeInfo8192E(struct xmit_priv *pxmitpriv, struct xmit_buf *pxmi
|
|||||||
|
|
||||||
|
|
||||||
}
|
}
|
||||||
_rtw_memset(pxmitpriv->agg_pkt, 0, sizeof(struct agg_pkt_info) * MAX_AGG_PKT_NUM);
|
memset(pxmitpriv->agg_pkt, 0, sizeof(struct agg_pkt_info) * MAX_AGG_PKT_NUM);
|
||||||
|
|
||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
@ -476,7 +476,7 @@ void rtl8192e_fill_fake_txdesc(
|
|||||||
struct xmit_priv *pxmitpriv = &padapter->xmitpriv;
|
struct xmit_priv *pxmitpriv = &padapter->xmitpriv;
|
||||||
|
|
||||||
/* Clear all status */
|
/* Clear all status */
|
||||||
_rtw_memset(pDesc, 0, TXDESC_SIZE);
|
memset(pDesc, 0, TXDESC_SIZE);
|
||||||
|
|
||||||
SET_TX_DESC_OFFSET_92E(pDesc, (TXDESC_SIZE + OFFSET_SZ));
|
SET_TX_DESC_OFFSET_92E(pDesc, (TXDESC_SIZE + OFFSET_SZ));
|
||||||
|
|
||||||
|
@ -71,7 +71,7 @@ static s32 update_txdesc(struct xmit_frame *pxmitframe, u8 *pmem, s32 sz , u8 ba
|
|||||||
}
|
}
|
||||||
#endif /* CONFIG_USE_USB_BUFFER_ALLOC_TX */
|
#endif /* CONFIG_USE_USB_BUFFER_ALLOC_TX */
|
||||||
|
|
||||||
_rtw_memset(ptxdesc, 0, TXDESC_SIZE);
|
memset(ptxdesc, 0, TXDESC_SIZE);
|
||||||
|
|
||||||
/* 4 offset 0 */
|
/* 4 offset 0 */
|
||||||
|
|
||||||
@ -955,7 +955,7 @@ s32 rtl8192eu_hostap_mgnt_xmit_entry(_adapter *padapter, _pkt *pkt)
|
|||||||
|
|
||||||
/* ----- fill tx desc ----- */
|
/* ----- fill tx desc ----- */
|
||||||
ptxdesc = (struct tx_desc *)pxmitbuf;
|
ptxdesc = (struct tx_desc *)pxmitbuf;
|
||||||
_rtw_memset(ptxdesc, 0, sizeof(*ptxdesc));
|
memset(ptxdesc, 0, sizeof(*ptxdesc));
|
||||||
|
|
||||||
/* offset 0 */
|
/* offset 0 */
|
||||||
ptxdesc->txdw0 |= cpu_to_le32(len & 0x0000ffff);
|
ptxdesc->txdw0 |= cpu_to_le32(len & 0x0000ffff);
|
||||||
|
@ -1721,10 +1721,10 @@ static int cfg80211_rtw_add_key(struct wiphy *wiphy, struct net_device *ndev
|
|||||||
if (param == NULL)
|
if (param == NULL)
|
||||||
return -1;
|
return -1;
|
||||||
|
|
||||||
_rtw_memset(param, 0, param_len);
|
memset(param, 0, param_len);
|
||||||
|
|
||||||
param->cmd = IEEE_CMD_SET_ENCRYPTION;
|
param->cmd = IEEE_CMD_SET_ENCRYPTION;
|
||||||
_rtw_memset(param->sta_addr, 0xff, ETH_ALEN);
|
memset(param->sta_addr, 0xff, ETH_ALEN);
|
||||||
|
|
||||||
switch (params->cipher) {
|
switch (params->cipher) {
|
||||||
case IW_AUTH_CIPHER_NONE:
|
case IW_AUTH_CIPHER_NONE:
|
||||||
@ -1978,7 +1978,7 @@ exit:
|
|||||||
RTW_INFO(FUNC_NDEV_FMT " seq:0x%llx\n", FUNC_NDEV_ARG(ndev), *pn);
|
RTW_INFO(FUNC_NDEV_FMT " seq:0x%llx\n", FUNC_NDEV_ARG(ndev), *pn);
|
||||||
|
|
||||||
if (ret == 0) {
|
if (ret == 0) {
|
||||||
_rtw_memset(¶ms, 0, sizeof(params));
|
memset(¶ms, 0, sizeof(params));
|
||||||
|
|
||||||
params.cipher = cipher;
|
params.cipher = cipher;
|
||||||
params.key = key->skey;
|
params.key = key->skey;
|
||||||
@ -3697,7 +3697,7 @@ static int cfg80211_rtw_join_ibss(struct wiphy *wiphy, struct net_device *ndev,
|
|||||||
#endif /*CONFIG_CONCURRENT_MODE*/
|
#endif /*CONFIG_CONCURRENT_MODE*/
|
||||||
|
|
||||||
|
|
||||||
_rtw_memset(&ndis_ssid, 0, sizeof(NDIS_802_11_SSID));
|
memset(&ndis_ssid, 0, sizeof(NDIS_802_11_SSID));
|
||||||
ndis_ssid.SsidLength = params->ssid_len;
|
ndis_ssid.SsidLength = params->ssid_len;
|
||||||
_rtw_memcpy(ndis_ssid.Ssid, (u8 *)params->ssid, params->ssid_len);
|
_rtw_memcpy(ndis_ssid.Ssid, (u8 *)params->ssid, params->ssid_len);
|
||||||
|
|
||||||
@ -3928,7 +3928,7 @@ static int cfg80211_rtw_connect(struct wiphy *wiphy, struct net_device *ndev,
|
|||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
_rtw_memset(&ndis_ssid, 0, sizeof(NDIS_802_11_SSID));
|
memset(&ndis_ssid, 0, sizeof(NDIS_802_11_SSID));
|
||||||
ndis_ssid.SsidLength = sme->ssid_len;
|
ndis_ssid.SsidLength = sme->ssid_len;
|
||||||
_rtw_memcpy(ndis_ssid.Ssid, (u8 *)sme->ssid, sme->ssid_len);
|
_rtw_memcpy(ndis_ssid.Ssid, (u8 *)sme->ssid, sme->ssid_len);
|
||||||
|
|
||||||
@ -4010,7 +4010,7 @@ static int cfg80211_rtw_connect(struct wiphy *wiphy, struct net_device *ndev,
|
|||||||
goto cancel_ps_deny;
|
goto cancel_ps_deny;
|
||||||
}
|
}
|
||||||
|
|
||||||
_rtw_memset(pwep, 0, wep_total_len);
|
memset(pwep, 0, wep_total_len);
|
||||||
|
|
||||||
pwep->KeyLength = wep_key_len;
|
pwep->KeyLength = wep_key_len;
|
||||||
pwep->Length = wep_total_len;
|
pwep->Length = wep_total_len;
|
||||||
@ -4295,8 +4295,8 @@ static int cfg80211_rtw_del_pmksa(struct wiphy *wiphy,
|
|||||||
for (index = 0 ; index < NUM_PMKID_CACHE; index++) {
|
for (index = 0 ; index < NUM_PMKID_CACHE; index++) {
|
||||||
if (_rtw_memcmp(psecuritypriv->PMKIDList[index].Bssid, (u8 *)pmksa->bssid, ETH_ALEN) == _TRUE) {
|
if (_rtw_memcmp(psecuritypriv->PMKIDList[index].Bssid, (u8 *)pmksa->bssid, ETH_ALEN) == _TRUE) {
|
||||||
/* BSSID is matched, the same AP => Remove this PMKID information and reset it. */
|
/* BSSID is matched, the same AP => Remove this PMKID information and reset it. */
|
||||||
_rtw_memset(psecuritypriv->PMKIDList[index].Bssid, 0x00, ETH_ALEN);
|
memset(psecuritypriv->PMKIDList[index].Bssid, 0x00, ETH_ALEN);
|
||||||
_rtw_memset(psecuritypriv->PMKIDList[index].PMKID, 0x00, WLAN_PMKID_LEN);
|
memset(psecuritypriv->PMKIDList[index].PMKID, 0x00, WLAN_PMKID_LEN);
|
||||||
psecuritypriv->PMKIDList[index].bUsed = _FALSE;
|
psecuritypriv->PMKIDList[index].bUsed = _FALSE;
|
||||||
bMatched = _TRUE;
|
bMatched = _TRUE;
|
||||||
RTW_INFO(FUNC_NDEV_FMT" clear id:%hhu\n", FUNC_NDEV_ARG(ndev), index);
|
RTW_INFO(FUNC_NDEV_FMT" clear id:%hhu\n", FUNC_NDEV_ARG(ndev), index);
|
||||||
@ -4321,7 +4321,7 @@ static int cfg80211_rtw_flush_pmksa(struct wiphy *wiphy,
|
|||||||
|
|
||||||
RTW_INFO(FUNC_NDEV_FMT"\n", FUNC_NDEV_ARG(ndev));
|
RTW_INFO(FUNC_NDEV_FMT"\n", FUNC_NDEV_ARG(ndev));
|
||||||
|
|
||||||
_rtw_memset(&psecuritypriv->PMKIDList[0], 0x00, sizeof(RT_PMKID_LIST) * NUM_PMKID_CACHE);
|
memset(&psecuritypriv->PMKIDList[0], 0x00, sizeof(RT_PMKID_LIST) * NUM_PMKID_CACHE);
|
||||||
psecuritypriv->PMKIDIndex = 0;
|
psecuritypriv->PMKIDIndex = 0;
|
||||||
|
|
||||||
return 0;
|
return 0;
|
||||||
@ -4578,7 +4578,7 @@ dump:
|
|||||||
update_mgntframe_attrib(padapter, pattrib);
|
update_mgntframe_attrib(padapter, pattrib);
|
||||||
pattrib->retry_ctrl = _FALSE;
|
pattrib->retry_ctrl = _FALSE;
|
||||||
|
|
||||||
_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;
|
pframe = (u8 *)(pmgntframe->buf_addr) + TXDESC_OFFSET;
|
||||||
|
|
||||||
@ -5453,7 +5453,7 @@ release_plink_ctl:
|
|||||||
#endif
|
#endif
|
||||||
|
|
||||||
/* indicate new sta */
|
/* indicate new sta */
|
||||||
_rtw_memset(&sinfo, 0, sizeof(sinfo));
|
memset(&sinfo, 0, sizeof(sinfo));
|
||||||
cfg80211_new_sta(ndev, mac, &sinfo, GFP_ATOMIC);
|
cfg80211_new_sta(ndev, mac, &sinfo, GFP_ATOMIC);
|
||||||
}
|
}
|
||||||
goto exit;
|
goto exit;
|
||||||
@ -6373,8 +6373,8 @@ void rtw_cfg80211_issue_p2p_provision_request(_adapter *padapter, const u8 *buf,
|
|||||||
|
|
||||||
|
|
||||||
/* start to build provision_request frame */
|
/* start to build provision_request frame */
|
||||||
_rtw_memset(wpsie, 0, sizeof(wpsie));
|
memset(wpsie, 0, sizeof(wpsie));
|
||||||
_rtw_memset(p2p_ie, 0, sizeof(p2p_ie));
|
memset(p2p_ie, 0, sizeof(p2p_ie));
|
||||||
p2p_ielen = 0;
|
p2p_ielen = 0;
|
||||||
|
|
||||||
pmgntframe = alloc_mgtxmitframe(pxmitpriv);
|
pmgntframe = alloc_mgtxmitframe(pxmitpriv);
|
||||||
@ -6386,7 +6386,7 @@ void rtw_cfg80211_issue_p2p_provision_request(_adapter *padapter, const u8 *buf,
|
|||||||
pattrib = &pmgntframe->attrib;
|
pattrib = &pmgntframe->attrib;
|
||||||
update_mgntframe_attrib(padapter, pattrib);
|
update_mgntframe_attrib(padapter, pattrib);
|
||||||
|
|
||||||
_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;
|
pframe = (u8 *)(pmgntframe->buf_addr) + TXDESC_OFFSET;
|
||||||
pwlanhdr = (struct rtw_ieee80211_hdr *)pframe;
|
pwlanhdr = (struct rtw_ieee80211_hdr *)pframe;
|
||||||
@ -7118,7 +7118,7 @@ issue_mgmt_frame:
|
|||||||
|
|
||||||
pattrib->retry_ctrl = _FALSE;
|
pattrib->retry_ctrl = _FALSE;
|
||||||
|
|
||||||
_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;
|
pframe = (u8 *)(pmgntframe->buf_addr) + TXDESC_OFFSET;
|
||||||
|
|
||||||
@ -7611,7 +7611,7 @@ static int cfg80211_rtw_tdls_mgmt(struct wiphy *wiphy,
|
|||||||
goto discard;
|
goto discard;
|
||||||
}
|
}
|
||||||
|
|
||||||
_rtw_memset(&txmgmt, 0x00, sizeof(struct tdls_txmgmt));
|
memset(&txmgmt, 0x00, sizeof(struct tdls_txmgmt));
|
||||||
_rtw_memcpy(txmgmt.peer, peer, ETH_ALEN);
|
_rtw_memcpy(txmgmt.peer, peer, ETH_ALEN);
|
||||||
txmgmt.action_code = action_code;
|
txmgmt.action_code = action_code;
|
||||||
txmgmt.dialog_token = dialog_token;
|
txmgmt.dialog_token = dialog_token;
|
||||||
@ -7697,7 +7697,7 @@ static int cfg80211_rtw_tdls_oper(struct wiphy *wiphy,
|
|||||||
rtw_lps_ctrl_wk_cmd(padapter, LPS_CTRL_LEAVE, 0);
|
rtw_lps_ctrl_wk_cmd(padapter, LPS_CTRL_LEAVE, 0);
|
||||||
#endif /* CONFIG_LPS */
|
#endif /* CONFIG_LPS */
|
||||||
|
|
||||||
_rtw_memset(&txmgmt, 0x00, sizeof(struct tdls_txmgmt));
|
memset(&txmgmt, 0x00, sizeof(struct tdls_txmgmt));
|
||||||
if (peer)
|
if (peer)
|
||||||
_rtw_memcpy(txmgmt.peer, peer, ETH_ALEN);
|
_rtw_memcpy(txmgmt.peer, peer, ETH_ALEN);
|
||||||
|
|
||||||
@ -8224,8 +8224,8 @@ u8 *rtw_cfg80211_construct_mesh_beacon_ies(struct wiphy *wiphy, _adapter *adapte
|
|||||||
u8 ht_cap[HT_CAP_IE_LEN];
|
u8 ht_cap[HT_CAP_IE_LEN];
|
||||||
u8 ht_op[HT_OP_IE_LEN];
|
u8 ht_op[HT_OP_IE_LEN];
|
||||||
|
|
||||||
_rtw_memset(ht_cap, 0, HT_CAP_IE_LEN);
|
memset(ht_cap, 0, HT_CAP_IE_LEN);
|
||||||
_rtw_memset(ht_op, 0, HT_OP_IE_LEN);
|
memset(ht_op, 0, HT_OP_IE_LEN);
|
||||||
|
|
||||||
/* WLAN_EID_HT_CAP */
|
/* WLAN_EID_HT_CAP */
|
||||||
RTW_PUT_LE16(HT_CAP_ELE_CAP_INFO(ht_cap), sta_ht_cap->cap);
|
RTW_PUT_LE16(HT_CAP_ELE_CAP_INFO(ht_cap), sta_ht_cap->cap);
|
||||||
@ -8263,7 +8263,7 @@ u8 *rtw_cfg80211_construct_mesh_beacon_ies(struct wiphy *wiphy, _adapter *adapte
|
|||||||
u8 vht_op[VHT_OP_IE_LEN];
|
u8 vht_op[VHT_OP_IE_LEN];
|
||||||
u8 cch = rtw_get_center_ch(ch, bw, offset);
|
u8 cch = rtw_get_center_ch(ch, bw, offset);
|
||||||
|
|
||||||
_rtw_memset(vht_op, 0, VHT_OP_IE_LEN);
|
memset(vht_op, 0, VHT_OP_IE_LEN);
|
||||||
|
|
||||||
/* WLAN_EID_VHT_CAPABILITY */
|
/* WLAN_EID_VHT_CAPABILITY */
|
||||||
_rtw_memcpy(vht_cap, &sta_vht_cap->cap, 4);
|
_rtw_memcpy(vht_cap, &sta_vht_cap->cap, 4);
|
||||||
@ -8599,9 +8599,9 @@ static void rtw_cfg80211_mpath_set_pinfo(struct rtw_mesh_path *mpath, u8 *next_h
|
|||||||
if (next_hop_sta)
|
if (next_hop_sta)
|
||||||
_rtw_memcpy(next_hop, next_hop_sta->cmn.mac_addr, ETH_ALEN);
|
_rtw_memcpy(next_hop, next_hop_sta->cmn.mac_addr, ETH_ALEN);
|
||||||
else
|
else
|
||||||
_rtw_memset(next_hop, 0, ETH_ALEN);
|
memset(next_hop, 0, ETH_ALEN);
|
||||||
|
|
||||||
_rtw_memset(pinfo, 0, sizeof(*pinfo));
|
memset(pinfo, 0, sizeof(*pinfo));
|
||||||
|
|
||||||
pinfo->generation = mpath->adapter->mesh_info.mesh_paths_generation;
|
pinfo->generation = mpath->adapter->mesh_info.mesh_paths_generation;
|
||||||
|
|
||||||
@ -8684,7 +8684,7 @@ static void rtw_cfg80211_mpp_set_pinfo(struct rtw_mesh_path *mpath, u8 *mpp, str
|
|||||||
{
|
{
|
||||||
_rtw_memcpy(mpp, mpath->mpp, ETH_ALEN);
|
_rtw_memcpy(mpp, mpath->mpp, ETH_ALEN);
|
||||||
|
|
||||||
_rtw_memset(pinfo, 0, sizeof(*pinfo));
|
memset(pinfo, 0, sizeof(*pinfo));
|
||||||
pinfo->generation = mpath->adapter->mesh_info.mpp_paths_generation;
|
pinfo->generation = mpath->adapter->mesh_info.mpp_paths_generation;
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -9734,7 +9734,7 @@ int rtw_hostapd_acs_dump_survey(struct wiphy *wiphy, struct net_device *netdev,
|
|||||||
return -EINVAL;
|
return -EINVAL;
|
||||||
}
|
}
|
||||||
|
|
||||||
_rtw_memset(info, 0, sizeof(struct survey_info));
|
memset(info, 0, sizeof(struct survey_info));
|
||||||
if (padapter->bup == _FALSE) {
|
if (padapter->bup == _FALSE) {
|
||||||
RTW_INFO("%s: net device is down.\n", __func__);
|
RTW_INFO("%s: net device is down.\n", __func__);
|
||||||
return -EIO;
|
return -EIO;
|
||||||
|
@ -94,8 +94,8 @@ struct rtw_wdev_invit_info {
|
|||||||
#define rtw_wdev_invit_info_init(invit_info) \
|
#define rtw_wdev_invit_info_init(invit_info) \
|
||||||
do { \
|
do { \
|
||||||
(invit_info)->state = 0xff; \
|
(invit_info)->state = 0xff; \
|
||||||
_rtw_memset((invit_info)->peer_mac, 0, ETH_ALEN); \
|
memset((invit_info)->peer_mac, 0, ETH_ALEN); \
|
||||||
_rtw_memset((invit_info)->group_bssid, 0, ETH_ALEN); \
|
memset((invit_info)->group_bssid, 0, ETH_ALEN); \
|
||||||
(invit_info)->active = 0xff; \
|
(invit_info)->active = 0xff; \
|
||||||
(invit_info)->token = 0; \
|
(invit_info)->token = 0; \
|
||||||
(invit_info)->flags = 0x00; \
|
(invit_info)->flags = 0x00; \
|
||||||
@ -123,9 +123,9 @@ struct rtw_wdev_nego_info {
|
|||||||
#define rtw_wdev_nego_info_init(nego_info) \
|
#define rtw_wdev_nego_info_init(nego_info) \
|
||||||
do { \
|
do { \
|
||||||
(nego_info)->state = 0xff; \
|
(nego_info)->state = 0xff; \
|
||||||
_rtw_memset((nego_info)->iface_addr, 0, ETH_ALEN); \
|
memset((nego_info)->iface_addr, 0, ETH_ALEN); \
|
||||||
_rtw_memset((nego_info)->peer_mac, 0, ETH_ALEN); \
|
memset((nego_info)->peer_mac, 0, ETH_ALEN); \
|
||||||
_rtw_memset((nego_info)->peer_iface_addr, 0, ETH_ALEN); \
|
memset((nego_info)->peer_iface_addr, 0, ETH_ALEN); \
|
||||||
(nego_info)->active = 0xff; \
|
(nego_info)->active = 0xff; \
|
||||||
(nego_info)->token = 0; \
|
(nego_info)->token = 0; \
|
||||||
(nego_info)->status = 0xff; \
|
(nego_info)->status = 0xff; \
|
||||||
|
@ -112,7 +112,7 @@ static void indicate_wx_custom_event(_adapter *padapter, char *msg)
|
|||||||
|
|
||||||
_rtw_memcpy(buff, msg, strlen(msg));
|
_rtw_memcpy(buff, msg, strlen(msg));
|
||||||
|
|
||||||
_rtw_memset(&wrqu, 0, sizeof(wrqu));
|
memset(&wrqu, 0, sizeof(wrqu));
|
||||||
wrqu.data.length = strlen(msg);
|
wrqu.data.length = strlen(msg);
|
||||||
|
|
||||||
RTW_INFO("%s %s\n", __FUNCTION__, buff);
|
RTW_INFO("%s %s\n", __FUNCTION__, buff);
|
||||||
@ -135,13 +135,13 @@ static void request_wps_pbc_event(_adapter *padapter)
|
|||||||
if (!buff)
|
if (!buff)
|
||||||
return;
|
return;
|
||||||
|
|
||||||
_rtw_memset(buff, 0, IW_CUSTOM_MAX);
|
memset(buff, 0, IW_CUSTOM_MAX);
|
||||||
|
|
||||||
p = buff;
|
p = buff;
|
||||||
|
|
||||||
p += sprintf(p, "WPS_PBC_START.request=TRUE");
|
p += sprintf(p, "WPS_PBC_START.request=TRUE");
|
||||||
|
|
||||||
_rtw_memset(&wrqu, 0, sizeof(wrqu));
|
memset(&wrqu, 0, sizeof(wrqu));
|
||||||
|
|
||||||
wrqu.data.length = p - buff;
|
wrqu.data.length = p - buff;
|
||||||
|
|
||||||
@ -186,7 +186,7 @@ void indicate_wx_scan_complete_event(_adapter *padapter)
|
|||||||
{
|
{
|
||||||
union iwreq_data wrqu;
|
union iwreq_data wrqu;
|
||||||
|
|
||||||
_rtw_memset(&wrqu, 0, sizeof(union iwreq_data));
|
memset(&wrqu, 0, sizeof(union iwreq_data));
|
||||||
|
|
||||||
/* RTW_INFO("+rtw_indicate_wx_scan_complete_event\n"); */
|
/* RTW_INFO("+rtw_indicate_wx_scan_complete_event\n"); */
|
||||||
#ifndef CONFIG_IOCTL_CFG80211
|
#ifndef CONFIG_IOCTL_CFG80211
|
||||||
@ -203,7 +203,7 @@ void rtw_indicate_wx_assoc_event(_adapter *padapter)
|
|||||||
struct mlme_ext_info *pmlmeinfo = &(pmlmeext->mlmext_info);
|
struct mlme_ext_info *pmlmeinfo = &(pmlmeext->mlmext_info);
|
||||||
WLAN_BSSID_EX *pnetwork = (WLAN_BSSID_EX *)(&(pmlmeinfo->network));
|
WLAN_BSSID_EX *pnetwork = (WLAN_BSSID_EX *)(&(pmlmeinfo->network));
|
||||||
|
|
||||||
_rtw_memset(&wrqu, 0, sizeof(union iwreq_data));
|
memset(&wrqu, 0, sizeof(union iwreq_data));
|
||||||
|
|
||||||
wrqu.ap_addr.sa_family = ARPHRD_ETHER;
|
wrqu.ap_addr.sa_family = ARPHRD_ETHER;
|
||||||
|
|
||||||
@ -222,10 +222,10 @@ void rtw_indicate_wx_disassoc_event(_adapter *padapter)
|
|||||||
{
|
{
|
||||||
union iwreq_data wrqu;
|
union iwreq_data wrqu;
|
||||||
|
|
||||||
_rtw_memset(&wrqu, 0, sizeof(union iwreq_data));
|
memset(&wrqu, 0, sizeof(union iwreq_data));
|
||||||
|
|
||||||
wrqu.ap_addr.sa_family = ARPHRD_ETHER;
|
wrqu.ap_addr.sa_family = ARPHRD_ETHER;
|
||||||
_rtw_memset(wrqu.ap_addr.sa_data, 0, ETH_ALEN);
|
memset(wrqu.ap_addr.sa_data, 0, ETH_ALEN);
|
||||||
|
|
||||||
#ifndef CONFIG_IOCTL_CFG80211
|
#ifndef CONFIG_IOCTL_CFG80211
|
||||||
RTW_PRINT("indicate disassoc\n");
|
RTW_PRINT("indicate disassoc\n");
|
||||||
@ -580,7 +580,7 @@ static inline char *iwe_stream_wpa_wpa2_process(_adapter *padapter,
|
|||||||
|
|
||||||
if (wpa_len > 0) {
|
if (wpa_len > 0) {
|
||||||
|
|
||||||
_rtw_memset(pbuf, 0, buf_size);
|
memset(pbuf, 0, buf_size);
|
||||||
p += sprintf(p, "wpa_ie=");
|
p += sprintf(p, "wpa_ie=");
|
||||||
for (i = 0; i < wpa_len; i++)
|
for (i = 0; i < wpa_len; i++)
|
||||||
p += sprintf(p, "%02x", wpa_ie[i]);
|
p += sprintf(p, "%02x", wpa_ie[i]);
|
||||||
@ -593,28 +593,28 @@ static inline char *iwe_stream_wpa_wpa2_process(_adapter *padapter,
|
|||||||
printk("-----------------Len %d----------------\n", wpa_len);
|
printk("-----------------Len %d----------------\n", wpa_len);
|
||||||
}
|
}
|
||||||
|
|
||||||
_rtw_memset(iwe, 0, sizeof(*iwe));
|
memset(iwe, 0, sizeof(*iwe));
|
||||||
iwe->cmd = IWEVCUSTOM;
|
iwe->cmd = IWEVCUSTOM;
|
||||||
iwe->u.data.length = strlen(pbuf);
|
iwe->u.data.length = strlen(pbuf);
|
||||||
start = iwe_stream_add_point(info, start, stop, iwe, pbuf);
|
start = iwe_stream_add_point(info, start, stop, iwe, pbuf);
|
||||||
|
|
||||||
_rtw_memset(iwe, 0, sizeof(*iwe));
|
memset(iwe, 0, sizeof(*iwe));
|
||||||
iwe->cmd = IWEVGENIE;
|
iwe->cmd = IWEVGENIE;
|
||||||
iwe->u.data.length = wpa_len;
|
iwe->u.data.length = wpa_len;
|
||||||
start = iwe_stream_add_point(info, start, stop, iwe, wpa_ie);
|
start = iwe_stream_add_point(info, start, stop, iwe, wpa_ie);
|
||||||
}
|
}
|
||||||
if (rsn_len > 0) {
|
if (rsn_len > 0) {
|
||||||
|
|
||||||
_rtw_memset(pbuf, 0, buf_size);
|
memset(pbuf, 0, buf_size);
|
||||||
p += sprintf(p, "rsn_ie=");
|
p += sprintf(p, "rsn_ie=");
|
||||||
for (i = 0; i < rsn_len; i++)
|
for (i = 0; i < rsn_len; i++)
|
||||||
p += sprintf(p, "%02x", rsn_ie[i]);
|
p += sprintf(p, "%02x", rsn_ie[i]);
|
||||||
_rtw_memset(iwe, 0, sizeof(*iwe));
|
memset(iwe, 0, sizeof(*iwe));
|
||||||
iwe->cmd = IWEVCUSTOM;
|
iwe->cmd = IWEVCUSTOM;
|
||||||
iwe->u.data.length = strlen(pbuf);
|
iwe->u.data.length = strlen(pbuf);
|
||||||
start = iwe_stream_add_point(info, start, stop, iwe, pbuf);
|
start = iwe_stream_add_point(info, start, stop, iwe, pbuf);
|
||||||
|
|
||||||
_rtw_memset(iwe, 0, sizeof(*iwe));
|
memset(iwe, 0, sizeof(*iwe));
|
||||||
iwe->cmd = IWEVGENIE;
|
iwe->cmd = IWEVGENIE;
|
||||||
iwe->u.data.length = rsn_len;
|
iwe->u.data.length = rsn_len;
|
||||||
start = iwe_stream_add_point(info, start, stop, iwe, rsn_ie);
|
start = iwe_stream_add_point(info, start, stop, iwe, rsn_ie);
|
||||||
@ -681,17 +681,17 @@ static inline char *iwe_stream_wapi_process(_adapter *padapter,
|
|||||||
|
|
||||||
if (wapi_len > 0) {
|
if (wapi_len > 0) {
|
||||||
p = buf_wapi;
|
p = buf_wapi;
|
||||||
/* _rtw_memset(buf_wapi, 0, MAX_WAPI_IE_LEN*2); */
|
/* memset(buf_wapi, 0, MAX_WAPI_IE_LEN*2); */
|
||||||
p += sprintf(p, "wapi_ie=");
|
p += sprintf(p, "wapi_ie=");
|
||||||
for (i = 0; i < wapi_len; i++)
|
for (i = 0; i < wapi_len; i++)
|
||||||
p += sprintf(p, "%02x", wapi_ie[i]);
|
p += sprintf(p, "%02x", wapi_ie[i]);
|
||||||
|
|
||||||
_rtw_memset(iwe, 0, sizeof(*iwe));
|
memset(iwe, 0, sizeof(*iwe));
|
||||||
iwe->cmd = IWEVCUSTOM;
|
iwe->cmd = IWEVCUSTOM;
|
||||||
iwe->u.data.length = strlen(buf_wapi);
|
iwe->u.data.length = strlen(buf_wapi);
|
||||||
start = iwe_stream_add_point(info, start, stop, iwe, buf_wapi);
|
start = iwe_stream_add_point(info, start, stop, iwe, buf_wapi);
|
||||||
|
|
||||||
_rtw_memset(iwe, 0, sizeof(*iwe));
|
memset(iwe, 0, sizeof(*iwe));
|
||||||
iwe->cmd = IWEVGENIE;
|
iwe->cmd = IWEVGENIE;
|
||||||
iwe->u.data.length = wapi_len;
|
iwe->u.data.length = wapi_len;
|
||||||
start = iwe_stream_add_point(info, start, stop, iwe, wapi_ie);
|
start = iwe_stream_add_point(info, start, stop, iwe, wapi_ie);
|
||||||
@ -774,7 +774,7 @@ static inline char *iwe_stream_net_rsv_process(_adapter *padapter,
|
|||||||
pos = pnetwork->network.Reserved;
|
pos = pnetwork->network.Reserved;
|
||||||
|
|
||||||
p += sprintf(p, "fm=%02X%02X", pos[1], pos[0]);
|
p += sprintf(p, "fm=%02X%02X", pos[1], pos[0]);
|
||||||
_rtw_memset(iwe, 0, sizeof(*iwe));
|
memset(iwe, 0, sizeof(*iwe));
|
||||||
iwe->cmd = IWEVCUSTOM;
|
iwe->cmd = IWEVCUSTOM;
|
||||||
iwe->u.data.length = strlen(buf);
|
iwe->u.data.length = strlen(buf);
|
||||||
start = iwe_stream_add_point(info, start, stop, iwe, buf);
|
start = iwe_stream_add_point(info, start, stop, iwe, buf);
|
||||||
@ -787,7 +787,7 @@ static char *translate_scan(_adapter *padapter,
|
|||||||
{
|
{
|
||||||
struct iw_event iwe;
|
struct iw_event iwe;
|
||||||
u16 cap = 0;
|
u16 cap = 0;
|
||||||
_rtw_memset(&iwe, 0, sizeof(iwe));
|
memset(&iwe, 0, sizeof(iwe));
|
||||||
|
|
||||||
if (_FALSE == search_p2p_wfd_ie(padapter, info, pnetwork, start, stop))
|
if (_FALSE == search_p2p_wfd_ie(padapter, info, pnetwork, start, stop))
|
||||||
return start;
|
return start;
|
||||||
@ -1530,14 +1530,14 @@ static int rtw_wx_set_pmkid(struct net_device *dev,
|
|||||||
for (j = 0 ; j < NUM_PMKID_CACHE; j++) {
|
for (j = 0 ; j < NUM_PMKID_CACHE; j++) {
|
||||||
if (_rtw_memcmp(psecuritypriv->PMKIDList[j].Bssid, strIssueBssid, ETH_ALEN) == _TRUE) {
|
if (_rtw_memcmp(psecuritypriv->PMKIDList[j].Bssid, strIssueBssid, ETH_ALEN) == _TRUE) {
|
||||||
/* BSSID is matched, the same AP => Remove this PMKID information and reset it. */
|
/* BSSID is matched, the same AP => Remove this PMKID information and reset it. */
|
||||||
_rtw_memset(psecuritypriv->PMKIDList[j].Bssid, 0x00, ETH_ALEN);
|
memset(psecuritypriv->PMKIDList[j].Bssid, 0x00, ETH_ALEN);
|
||||||
psecuritypriv->PMKIDList[j].bUsed = _FALSE;
|
psecuritypriv->PMKIDList[j].bUsed = _FALSE;
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
} else if (pPMK->cmd == IW_PMKSA_FLUSH) {
|
} else if (pPMK->cmd == IW_PMKSA_FLUSH) {
|
||||||
RTW_INFO("[rtw_wx_set_pmkid] IW_PMKSA_FLUSH!\n");
|
RTW_INFO("[rtw_wx_set_pmkid] IW_PMKSA_FLUSH!\n");
|
||||||
_rtw_memset(&psecuritypriv->PMKIDList[0], 0x00, sizeof(RT_PMKID_LIST) * NUM_PMKID_CACHE);
|
memset(&psecuritypriv->PMKIDList[0], 0x00, sizeof(RT_PMKID_LIST) * NUM_PMKID_CACHE);
|
||||||
psecuritypriv->PMKIDIndex = 0;
|
psecuritypriv->PMKIDIndex = 0;
|
||||||
intReturn = _TRUE;
|
intReturn = _TRUE;
|
||||||
}
|
}
|
||||||
@ -1584,7 +1584,7 @@ static int rtw_wx_get_range(struct net_device *dev,
|
|||||||
|
|
||||||
|
|
||||||
wrqu->data.length = sizeof(*range);
|
wrqu->data.length = sizeof(*range);
|
||||||
_rtw_memset(range, 0, sizeof(*range));
|
memset(range, 0, sizeof(*range));
|
||||||
|
|
||||||
/* Let's try to keep this struct in the same order as in
|
/* Let's try to keep this struct in the same order as in
|
||||||
* linux/include/wireless.h
|
* linux/include/wireless.h
|
||||||
@ -1853,7 +1853,7 @@ static int rtw_wx_get_wap(struct net_device *dev,
|
|||||||
|
|
||||||
wrqu->ap_addr.sa_family = ARPHRD_ETHER;
|
wrqu->ap_addr.sa_family = ARPHRD_ETHER;
|
||||||
|
|
||||||
_rtw_memset(wrqu->ap_addr.sa_data, 0, ETH_ALEN);
|
memset(wrqu->ap_addr.sa_data, 0, ETH_ALEN);
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
@ -1863,7 +1863,7 @@ static int rtw_wx_get_wap(struct net_device *dev,
|
|||||||
|
|
||||||
_rtw_memcpy(wrqu->ap_addr.sa_data, pcur_bss->MacAddress, ETH_ALEN);
|
_rtw_memcpy(wrqu->ap_addr.sa_data, pcur_bss->MacAddress, ETH_ALEN);
|
||||||
else
|
else
|
||||||
_rtw_memset(wrqu->ap_addr.sa_data, 0, ETH_ALEN);
|
memset(wrqu->ap_addr.sa_data, 0, ETH_ALEN);
|
||||||
|
|
||||||
|
|
||||||
return 0;
|
return 0;
|
||||||
@ -2372,7 +2372,7 @@ static int rtw_wx_set_essid(struct net_device *dev,
|
|||||||
if (wrqu->essid.length != 33)
|
if (wrqu->essid.length != 33)
|
||||||
RTW_INFO("ssid=%s, len=%d\n", extra, wrqu->essid.length);
|
RTW_INFO("ssid=%s, len=%d\n", extra, wrqu->essid.length);
|
||||||
|
|
||||||
_rtw_memset(&ndis_ssid, 0, sizeof(NDIS_802_11_SSID));
|
memset(&ndis_ssid, 0, sizeof(NDIS_802_11_SSID));
|
||||||
ndis_ssid.SsidLength = len;
|
ndis_ssid.SsidLength = len;
|
||||||
_rtw_memcpy(ndis_ssid.Ssid, extra, len);
|
_rtw_memcpy(ndis_ssid.Ssid, extra, len);
|
||||||
src_ssid = ndis_ssid.Ssid;
|
src_ssid = ndis_ssid.Ssid;
|
||||||
@ -2709,7 +2709,7 @@ static int rtw_wx_set_enc(struct net_device *dev,
|
|||||||
struct pwrctrl_priv *pwrpriv = adapter_to_pwrctl(padapter);
|
struct pwrctrl_priv *pwrpriv = adapter_to_pwrctl(padapter);
|
||||||
RTW_INFO("+rtw_wx_set_enc, flags=0x%x\n", erq->flags);
|
RTW_INFO("+rtw_wx_set_enc, flags=0x%x\n", erq->flags);
|
||||||
|
|
||||||
_rtw_memset(&wep, 0, sizeof(NDIS_802_11_WEP));
|
memset(&wep, 0, sizeof(NDIS_802_11_WEP));
|
||||||
|
|
||||||
key = erq->flags & IW_ENCODE_INDEX;
|
key = erq->flags & IW_ENCODE_INDEX;
|
||||||
|
|
||||||
@ -3102,10 +3102,10 @@ static int rtw_wx_set_enc_ext(struct net_device *dev,
|
|||||||
if (param == NULL)
|
if (param == NULL)
|
||||||
return -1;
|
return -1;
|
||||||
|
|
||||||
_rtw_memset(param, 0, param_len);
|
memset(param, 0, param_len);
|
||||||
|
|
||||||
param->cmd = IEEE_CMD_SET_ENCRYPTION;
|
param->cmd = IEEE_CMD_SET_ENCRYPTION;
|
||||||
_rtw_memset(param->sta_addr, 0xff, ETH_ALEN);
|
memset(param->sta_addr, 0xff, ETH_ALEN);
|
||||||
|
|
||||||
|
|
||||||
switch (pext->alg) {
|
switch (pext->alg) {
|
||||||
@ -4057,7 +4057,7 @@ static int rtw_p2p_profilefound(struct net_device *dev,
|
|||||||
if (!rtw_p2p_chk_state(pwdinfo, P2P_STATE_NONE)) {
|
if (!rtw_p2p_chk_state(pwdinfo, P2P_STATE_NONE)) {
|
||||||
if (extra[0] == '0') {
|
if (extra[0] == '0') {
|
||||||
/* Remove all the profile information of wifidirect_info structure. */
|
/* Remove all the profile information of wifidirect_info structure. */
|
||||||
_rtw_memset(&pwdinfo->profileinfo[0], 0x00, sizeof(struct profile_info) * P2P_MAX_PERSISTENT_GROUP_NUM);
|
memset(&pwdinfo->profileinfo[0], 0x00, sizeof(struct profile_info) * P2P_MAX_PERSISTENT_GROUP_NUM);
|
||||||
pwdinfo->profileindex = 0;
|
pwdinfo->profileindex = 0;
|
||||||
} else {
|
} else {
|
||||||
if (pwdinfo->profileindex >= P2P_MAX_PERSISTENT_GROUP_NUM)
|
if (pwdinfo->profileindex >= P2P_MAX_PERSISTENT_GROUP_NUM)
|
||||||
@ -4092,7 +4092,7 @@ static int rtw_p2p_setDN(struct net_device *dev,
|
|||||||
|
|
||||||
|
|
||||||
RTW_INFO("[%s] %s %d\n", __FUNCTION__, extra, wrqu->data.length - 1);
|
RTW_INFO("[%s] %s %d\n", __FUNCTION__, extra, wrqu->data.length - 1);
|
||||||
_rtw_memset(pwdinfo->device_name, 0x00, WPS_MAX_DEVICE_NAME_LEN);
|
memset(pwdinfo->device_name, 0x00, WPS_MAX_DEVICE_NAME_LEN);
|
||||||
_rtw_memcpy(pwdinfo->device_name, extra, wrqu->data.length - 1);
|
_rtw_memcpy(pwdinfo->device_name, extra, wrqu->data.length - 1);
|
||||||
pwdinfo->device_name_len = wrqu->data.length - 1;
|
pwdinfo->device_name_len = wrqu->data.length - 1;
|
||||||
|
|
||||||
@ -4451,7 +4451,7 @@ static int rtw_p2p_get_go_device_address(struct net_device *dev,
|
|||||||
/* The P2P Device ID attribute is included in the Beacon frame. */
|
/* The P2P Device ID attribute is included in the Beacon frame. */
|
||||||
/* The P2P Device Info attribute is included in the probe response frame. */
|
/* The P2P Device Info attribute is included in the probe response frame. */
|
||||||
|
|
||||||
_rtw_memset(attr_content, 0x00, 100);
|
memset(attr_content, 0x00, 100);
|
||||||
if (rtw_get_p2p_attr_content(p2pie, p2pielen, P2P_ATTR_DEVICE_ID, attr_content, &attr_contentlen)) {
|
if (rtw_get_p2p_attr_content(p2pie, p2pielen, P2P_ATTR_DEVICE_ID, attr_content, &attr_contentlen)) {
|
||||||
/* Handle the P2P Device ID attribute of Beacon first */
|
/* Handle the P2P Device ID attribute of Beacon first */
|
||||||
blnMatch = 1;
|
blnMatch = 1;
|
||||||
@ -4678,7 +4678,7 @@ static int rtw_p2p_get_invitation_procedure(struct net_device *dev,
|
|||||||
p2pie = rtw_bss_ex_get_p2p_ie(&pnetwork->network, NULL, &p2pielen);
|
p2pie = rtw_bss_ex_get_p2p_ie(&pnetwork->network, NULL, &p2pielen);
|
||||||
if (p2pie) {
|
if (p2pie) {
|
||||||
while (p2pie) {
|
while (p2pie) {
|
||||||
/* _rtw_memset( attr_content, 0x00, 2); */
|
/* memset( attr_content, 0x00, 2); */
|
||||||
if (rtw_get_p2p_attr_content(p2pie, p2pielen, P2P_ATTR_CAPABILITY, attr_content, &attr_contentlen)) {
|
if (rtw_get_p2p_attr_content(p2pie, p2pielen, P2P_ATTR_CAPABILITY, attr_content, &attr_contentlen)) {
|
||||||
/* Handle the P2P capability attribute */
|
/* Handle the P2P capability attribute */
|
||||||
blnMatch = 1;
|
blnMatch = 1;
|
||||||
@ -4793,8 +4793,8 @@ static int rtw_p2p_connect(struct net_device *dev,
|
|||||||
_cancel_timer_ex(&pwdinfo->ap_p2p_switch_timer);
|
_cancel_timer_ex(&pwdinfo->ap_p2p_switch_timer);
|
||||||
#endif /* CONFIG_CONCURRENT_MODE */
|
#endif /* CONFIG_CONCURRENT_MODE */
|
||||||
|
|
||||||
_rtw_memset(&pwdinfo->nego_req_info, 0x00, sizeof(struct tx_nego_req_info));
|
memset(&pwdinfo->nego_req_info, 0x00, sizeof(struct tx_nego_req_info));
|
||||||
_rtw_memset(&pwdinfo->groupid_info, 0x00, sizeof(struct group_id_info));
|
memset(&pwdinfo->groupid_info, 0x00, sizeof(struct group_id_info));
|
||||||
|
|
||||||
pwdinfo->nego_req_info.peer_channel_num[0] = uintPeerChannel;
|
pwdinfo->nego_req_info.peer_channel_num[0] = uintPeerChannel;
|
||||||
_rtw_memcpy(pwdinfo->nego_req_info.peerDevAddr, pnetwork->network.MacAddress, ETH_ALEN);
|
_rtw_memcpy(pwdinfo->nego_req_info.peerDevAddr, pnetwork->network.MacAddress, ETH_ALEN);
|
||||||
@ -4892,11 +4892,11 @@ static int rtw_p2p_invite_req(struct net_device *dev,
|
|||||||
} else {
|
} else {
|
||||||
/* Reset the content of struct tx_invite_req_info */
|
/* Reset the content of struct tx_invite_req_info */
|
||||||
pinvite_req_info->benable = _FALSE;
|
pinvite_req_info->benable = _FALSE;
|
||||||
_rtw_memset(pinvite_req_info->go_bssid, 0x00, ETH_ALEN);
|
memset(pinvite_req_info->go_bssid, 0x00, ETH_ALEN);
|
||||||
_rtw_memset(pinvite_req_info->go_ssid, 0x00, WLAN_SSID_MAXLEN);
|
memset(pinvite_req_info->go_ssid, 0x00, WLAN_SSID_MAXLEN);
|
||||||
pinvite_req_info->ssidlen = 0x00;
|
pinvite_req_info->ssidlen = 0x00;
|
||||||
pinvite_req_info->operating_ch = pwdinfo->operating_channel;
|
pinvite_req_info->operating_ch = pwdinfo->operating_channel;
|
||||||
_rtw_memset(pinvite_req_info->peer_macaddr, 0x00, ETH_ALEN);
|
memset(pinvite_req_info->peer_macaddr, 0x00, ETH_ALEN);
|
||||||
pinvite_req_info->token = 3;
|
pinvite_req_info->token = 3;
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -5384,9 +5384,9 @@ static int rtw_p2p_prov_disc(struct net_device *dev,
|
|||||||
#endif /* CONFIG_INTEL_WIDI */
|
#endif /* CONFIG_INTEL_WIDI */
|
||||||
|
|
||||||
/* Reset the content of struct tx_provdisc_req_info excluded the wps_config_method_request. */
|
/* Reset the content of struct tx_provdisc_req_info excluded the wps_config_method_request. */
|
||||||
_rtw_memset(pwdinfo->tx_prov_disc_info.peerDevAddr, 0x00, ETH_ALEN);
|
memset(pwdinfo->tx_prov_disc_info.peerDevAddr, 0x00, ETH_ALEN);
|
||||||
_rtw_memset(pwdinfo->tx_prov_disc_info.peerIFAddr, 0x00, ETH_ALEN);
|
memset(pwdinfo->tx_prov_disc_info.peerIFAddr, 0x00, ETH_ALEN);
|
||||||
_rtw_memset(&pwdinfo->tx_prov_disc_info.ssid, 0x00, sizeof(NDIS_802_11_SSID));
|
memset(&pwdinfo->tx_prov_disc_info.ssid, 0x00, sizeof(NDIS_802_11_SSID));
|
||||||
pwdinfo->tx_prov_disc_info.peer_channel_num[0] = 0;
|
pwdinfo->tx_prov_disc_info.peer_channel_num[0] = 0;
|
||||||
pwdinfo->tx_prov_disc_info.peer_channel_num[1] = 0;
|
pwdinfo->tx_prov_disc_info.peer_channel_num[1] = 0;
|
||||||
pwdinfo->tx_prov_disc_info.benable = _FALSE;
|
pwdinfo->tx_prov_disc_info.benable = _FALSE;
|
||||||
@ -6998,7 +6998,7 @@ static int rtw_set_encryption(struct net_device *dev, struct ieee_param *param,
|
|||||||
goto exit;
|
goto exit;
|
||||||
}
|
}
|
||||||
|
|
||||||
_rtw_memset(pwep, 0, wep_total_len);
|
memset(pwep, 0, wep_total_len);
|
||||||
|
|
||||||
pwep->KeyLength = wep_key_len;
|
pwep->KeyLength = wep_key_len;
|
||||||
pwep->Length = wep_total_len;
|
pwep->Length = wep_total_len;
|
||||||
@ -8257,7 +8257,7 @@ int rtw_vendor_ie_get_raw_data(struct net_device *dev, u32 vendor_ie_num,
|
|||||||
}
|
}
|
||||||
|
|
||||||
vendor_ie_mask = pmlmepriv->vendor_ie_mask[vendor_ie_num];
|
vendor_ie_mask = pmlmepriv->vendor_ie_mask[vendor_ie_num];
|
||||||
_rtw_memset(extra, 0, length);
|
memset(extra, 0, length);
|
||||||
|
|
||||||
pstring = extra;
|
pstring = extra;
|
||||||
pstring += sprintf(pstring, "%d,%x,", vendor_ie_num, vendor_ie_mask);
|
pstring += sprintf(pstring, "%d,%x,", vendor_ie_num, vendor_ie_mask);
|
||||||
@ -8432,7 +8432,7 @@ int rtw_vendor_ie_set(struct net_device *dev, struct iw_request_info *info, unio
|
|||||||
return ret;
|
return ret;
|
||||||
|
|
||||||
_clear_path:
|
_clear_path:
|
||||||
_rtw_memset(pmlmepriv->vendor_ie[vendor_ie_num] , 0 , sizeof(u32) * WLAN_MAX_VENDOR_IE_LEN);
|
memset(pmlmepriv->vendor_ie[vendor_ie_num] , 0 , sizeof(u32) * WLAN_MAX_VENDOR_IE_LEN);
|
||||||
pmlmepriv->vendor_ielen[vendor_ie_num] = 0;
|
pmlmepriv->vendor_ielen[vendor_ie_num] = 0;
|
||||||
pmlmepriv->vendor_ie_mask[vendor_ie_num] = 0;
|
pmlmepriv->vendor_ie_mask[vendor_ie_num] = 0;
|
||||||
return -EFAULT;
|
return -EFAULT;
|
||||||
@ -8657,7 +8657,7 @@ static int rtw_mp_efuse_get(struct net_device *dev,
|
|||||||
goto exit;
|
goto exit;
|
||||||
}
|
}
|
||||||
|
|
||||||
_rtw_memset(extra, '\0', strlen(extra));
|
memset(extra, '\0', strlen(extra));
|
||||||
|
|
||||||
shift = blksz * raw_order;
|
shift = blksz * raw_order;
|
||||||
rawdata += shift;
|
rawdata += shift;
|
||||||
@ -8705,7 +8705,7 @@ static int rtw_mp_efuse_get(struct net_device *dev,
|
|||||||
goto exit;
|
goto exit;
|
||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
_rtw_memset(extra, '\0', strlen(extra));
|
memset(extra, '\0', strlen(extra));
|
||||||
|
|
||||||
shift = blksz * bt_raw_order;
|
shift = blksz * bt_raw_order;
|
||||||
rawdata += shift;
|
rawdata += shift;
|
||||||
@ -9758,7 +9758,7 @@ static int rtw_mp_efuse_set(struct net_device *dev,
|
|||||||
|
|
||||||
for (jj = 0, kk = 0; jj < cnts; jj++, kk += 2)
|
for (jj = 0, kk = 0; jj < cnts; jj++, kk += 2)
|
||||||
pEfuseHal->fakeEfuseModifiedMap[addr + jj] = key_2char2num(tmp[2][kk], tmp[2][kk + 1]);
|
pEfuseHal->fakeEfuseModifiedMap[addr + jj] = key_2char2num(tmp[2][kk], tmp[2][kk + 1]);
|
||||||
_rtw_memset(extra, '\0', strlen(extra));
|
memset(extra, '\0', strlen(extra));
|
||||||
sprintf(extra, "wlwfake OK\n");
|
sprintf(extra, "wlwfake OK\n");
|
||||||
|
|
||||||
}
|
}
|
||||||
@ -9797,7 +9797,7 @@ static int rtw_mp_efuse_set(struct net_device *dev,
|
|||||||
for (jj = 0, kk = 0; jj < cnts; jj++, kk += 2)
|
for (jj = 0, kk = 0; jj < cnts; jj++, kk += 2)
|
||||||
pEfuseHal->fakeEfuseModifiedMap[addr + jj] = key_2char2num(tmp[1][kk], tmp[1][kk + 1]);
|
pEfuseHal->fakeEfuseModifiedMap[addr + jj] = key_2char2num(tmp[1][kk], tmp[1][kk + 1]);
|
||||||
|
|
||||||
_rtw_memset(extra, '\0', strlen(extra));
|
memset(extra, '\0', strlen(extra));
|
||||||
sprintf(extra, "write mac addr to fake map OK\n");
|
sprintf(extra, "write mac addr to fake map OK\n");
|
||||||
} else if(strcmp(tmp[0], "update") == 0) {
|
} else if(strcmp(tmp[0], "update") == 0) {
|
||||||
RTW_INFO("To Use new eFuse map\n");
|
RTW_INFO("To Use new eFuse map\n");
|
||||||
@ -9820,12 +9820,12 @@ static int rtw_mp_efuse_set(struct net_device *dev,
|
|||||||
err = -EINVAL;
|
err = -EINVAL;
|
||||||
goto exit;
|
goto exit;
|
||||||
}
|
}
|
||||||
_rtw_memset(extra, '\0', strlen(extra));
|
memset(extra, '\0', strlen(extra));
|
||||||
sprintf(extra, "eFuse Update OK\n");
|
sprintf(extra, "eFuse Update OK\n");
|
||||||
} else if (strcmp(tmp[0], "analyze") == 0) {
|
} else if (strcmp(tmp[0], "analyze") == 0) {
|
||||||
|
|
||||||
rtw_efuse_analyze(padapter, EFUSE_WIFI, 0);
|
rtw_efuse_analyze(padapter, EFUSE_WIFI, 0);
|
||||||
_rtw_memset(extra, '\0', strlen(extra));
|
memset(extra, '\0', strlen(extra));
|
||||||
sprintf(extra, "eFuse Analyze OK,please to check kernel log\n");
|
sprintf(extra, "eFuse Analyze OK,please to check kernel log\n");
|
||||||
}
|
}
|
||||||
exit:
|
exit:
|
||||||
@ -9898,7 +9898,7 @@ static int rtw_mp_customer_str(
|
|||||||
return -EFAULT;
|
return -EFAULT;
|
||||||
}
|
}
|
||||||
|
|
||||||
_rtw_memset(param, 0xFF, RTW_CUSTOMER_STR_LEN);
|
memset(param, 0xFF, RTW_CUSTOMER_STR_LEN);
|
||||||
|
|
||||||
if (strcmp(pch, "read") == 0) {
|
if (strcmp(pch, "read") == 0) {
|
||||||
read = 1;
|
read = 1;
|
||||||
@ -10205,7 +10205,7 @@ static int rtw_mp_sd_iread(struct net_device *dev
|
|||||||
goto exit;
|
goto exit;
|
||||||
}
|
}
|
||||||
|
|
||||||
_rtw_memset(extra, 0, wrqu->length);
|
memset(extra, 0, wrqu->length);
|
||||||
|
|
||||||
if (sscanf(input, "%hhu,%lx", &width, &addr) != 2) {
|
if (sscanf(input, "%hhu,%lx", &width, &addr) != 2) {
|
||||||
RTW_INFO(FUNC_ADPT_FMT" sscanf fail\n", FUNC_ADPT_ARG(padapter));
|
RTW_INFO(FUNC_ADPT_FMT" sscanf fail\n", FUNC_ADPT_ARG(padapter));
|
||||||
@ -10268,7 +10268,7 @@ static int rtw_mp_sd_iwrite(struct net_device *dev
|
|||||||
goto exit;
|
goto exit;
|
||||||
}
|
}
|
||||||
|
|
||||||
_rtw_memset(extra, 0, wrqu->length);
|
memset(extra, 0, wrqu->length);
|
||||||
|
|
||||||
if (sscanf(input, "%hhu,%lx,%lx", &width, &addr, &data) != 3) {
|
if (sscanf(input, "%hhu,%lx,%lx", &width, &addr, &data) != 3) {
|
||||||
RTW_INFO(FUNC_ADPT_FMT" sscanf fail\n", FUNC_ADPT_ARG(padapter));
|
RTW_INFO(FUNC_ADPT_FMT" sscanf fail\n", FUNC_ADPT_ARG(padapter));
|
||||||
@ -10532,7 +10532,7 @@ static int rtw_tdls_setup(struct net_device *dev,
|
|||||||
return ret;
|
return ret;
|
||||||
}
|
}
|
||||||
|
|
||||||
_rtw_memset(&txmgmt, 0x00, sizeof(struct tdls_txmgmt));
|
memset(&txmgmt, 0x00, sizeof(struct tdls_txmgmt));
|
||||||
for (i = 0, j = 0 ; i < ETH_ALEN; i++, j += 3)
|
for (i = 0, j = 0 ; i < ETH_ALEN; i++, j += 3)
|
||||||
txmgmt.peer[i] = key_2char2num(*(extra + j), *(extra + j + 1));
|
txmgmt.peer[i] = key_2char2num(*(extra + j), *(extra + j + 1));
|
||||||
|
|
||||||
@ -10576,7 +10576,7 @@ static int rtw_tdls_teardown(struct net_device *dev,
|
|||||||
return ret;
|
return ret;
|
||||||
}
|
}
|
||||||
|
|
||||||
_rtw_memset(&txmgmt, 0x00, sizeof(struct tdls_txmgmt));
|
memset(&txmgmt, 0x00, sizeof(struct tdls_txmgmt));
|
||||||
for (i = 0, j = 0; i < ETH_ALEN; i++, j += 3)
|
for (i = 0, j = 0; i < ETH_ALEN; i++, j += 3)
|
||||||
txmgmt.peer[i] = key_2char2num(*(extra + j), *(extra + j + 1));
|
txmgmt.peer[i] = key_2char2num(*(extra + j), *(extra + j + 1));
|
||||||
|
|
||||||
@ -10609,7 +10609,7 @@ static int rtw_tdls_discovery(struct net_device *dev,
|
|||||||
|
|
||||||
RTW_INFO("[%s] %s %d\n", __FUNCTION__, extra, wrqu->data.length - 1);
|
RTW_INFO("[%s] %s %d\n", __FUNCTION__, extra, wrqu->data.length - 1);
|
||||||
|
|
||||||
_rtw_memset(&txmgmt, 0x00, sizeof(struct tdls_txmgmt));
|
memset(&txmgmt, 0x00, sizeof(struct tdls_txmgmt));
|
||||||
for (i = 0, j = 0 ; i < ETH_ALEN; i++, j += 3)
|
for (i = 0, j = 0 ; i < ETH_ALEN; i++, j += 3)
|
||||||
txmgmt.peer[i] = key_2char2num(*(extra + j), *(extra + j + 1));
|
txmgmt.peer[i] = key_2char2num(*(extra + j), *(extra + j + 1));
|
||||||
|
|
||||||
@ -10696,7 +10696,7 @@ static int rtw_tdls_ch_switch_off(struct net_device *dev,
|
|||||||
struct sta_info *ptdls_sta = NULL;
|
struct sta_info *ptdls_sta = NULL;
|
||||||
struct tdls_txmgmt txmgmt;
|
struct tdls_txmgmt txmgmt;
|
||||||
|
|
||||||
_rtw_memset(&txmgmt, 0x00, sizeof(struct tdls_txmgmt));
|
memset(&txmgmt, 0x00, sizeof(struct tdls_txmgmt));
|
||||||
|
|
||||||
RTW_INFO("[%s] %s %d\n", __FUNCTION__, extra, wrqu->data.length - 1);
|
RTW_INFO("[%s] %s %d\n", __FUNCTION__, extra, wrqu->data.length - 1);
|
||||||
|
|
||||||
@ -10719,7 +10719,7 @@ static int rtw_tdls_ch_switch_off(struct net_device *dev,
|
|||||||
pchsw_info->ch_sw_state &= ~(TDLS_CH_SW_INITIATOR_STATE |
|
pchsw_info->ch_sw_state &= ~(TDLS_CH_SW_INITIATOR_STATE |
|
||||||
TDLS_CH_SWITCH_ON_STATE |
|
TDLS_CH_SWITCH_ON_STATE |
|
||||||
TDLS_PEER_AT_OFF_STATE);
|
TDLS_PEER_AT_OFF_STATE);
|
||||||
_rtw_memset(pchsw_info->addr, 0x00, ETH_ALEN);
|
memset(pchsw_info->addr, 0x00, ETH_ALEN);
|
||||||
|
|
||||||
ptdls_sta->ch_switch_time = 0;
|
ptdls_sta->ch_switch_time = 0;
|
||||||
ptdls_sta->ch_switch_timeout = 0;
|
ptdls_sta->ch_switch_timeout = 0;
|
||||||
@ -11394,7 +11394,7 @@ static s32 initLoopback(PADAPTER padapter)
|
|||||||
ploopback->bstop = _TRUE;
|
ploopback->bstop = _TRUE;
|
||||||
ploopback->cnt = 0;
|
ploopback->cnt = 0;
|
||||||
ploopback->size = 300;
|
ploopback->size = 300;
|
||||||
_rtw_memset(ploopback->msg, 0, sizeof(ploopback->msg));
|
memset(ploopback->msg, 0, sizeof(ploopback->msg));
|
||||||
|
|
||||||
padapter->ploopback = ploopback;
|
padapter->ploopback = ploopback;
|
||||||
}
|
}
|
||||||
@ -11451,7 +11451,7 @@ static s32 createpseudoadhoc(PADAPTER padapter)
|
|||||||
return _FAIL;
|
return _FAIL;
|
||||||
|
|
||||||
passoc_ssid = &pmlmepriv->assoc_ssid;
|
passoc_ssid = &pmlmepriv->assoc_ssid;
|
||||||
_rtw_memset(passoc_ssid, 0, sizeof(NDIS_802_11_SSID));
|
memset(passoc_ssid, 0, sizeof(NDIS_802_11_SSID));
|
||||||
passoc_ssid->SsidLength = sizeof(ssid) - 1;
|
passoc_ssid->SsidLength = sizeof(ssid) - 1;
|
||||||
_rtw_memcpy(passoc_ssid->Ssid, ssid, passoc_ssid->SsidLength);
|
_rtw_memcpy(passoc_ssid->Ssid, ssid, passoc_ssid->SsidLength);
|
||||||
|
|
||||||
@ -11546,12 +11546,12 @@ static struct xmit_frame *createloopbackpkt(PADAPTER padapter, u32 size)
|
|||||||
pattrib = &pframe->attrib;
|
pattrib = &pframe->attrib;
|
||||||
|
|
||||||
/* init xmitframe attribute */
|
/* init xmitframe attribute */
|
||||||
_rtw_memset(pattrib, 0, sizeof(struct pkt_attrib));
|
memset(pattrib, 0, sizeof(struct pkt_attrib));
|
||||||
|
|
||||||
pattrib->ether_type = 0x8723;
|
pattrib->ether_type = 0x8723;
|
||||||
_rtw_memcpy(pattrib->src, adapter_mac_addr(padapter), ETH_ALEN);
|
_rtw_memcpy(pattrib->src, adapter_mac_addr(padapter), ETH_ALEN);
|
||||||
_rtw_memcpy(pattrib->ta, pattrib->src, ETH_ALEN);
|
_rtw_memcpy(pattrib->ta, pattrib->src, ETH_ALEN);
|
||||||
_rtw_memset(pattrib->dst, 0xFF, ETH_ALEN);
|
memset(pattrib->dst, 0xFF, ETH_ALEN);
|
||||||
_rtw_memcpy(pattrib->ra, pattrib->dst, ETH_ALEN);
|
_rtw_memcpy(pattrib->ra, pattrib->dst, ETH_ALEN);
|
||||||
|
|
||||||
/* pattrib->dhcp_pkt = 0;
|
/* pattrib->dhcp_pkt = 0;
|
||||||
@ -11580,7 +11580,7 @@ static struct xmit_frame *createloopbackpkt(PADAPTER padapter, u32 size)
|
|||||||
|
|
||||||
/* 2 4. fill TX descriptor */
|
/* 2 4. fill TX descriptor */
|
||||||
desc = (struct tx_desc *)pframe->buf_addr;
|
desc = (struct tx_desc *)pframe->buf_addr;
|
||||||
_rtw_memset(desc, 0, TXDESC_SIZE);
|
memset(desc, 0, TXDESC_SIZE);
|
||||||
|
|
||||||
fill_default_txdesc(pframe, (u8 *)desc);
|
fill_default_txdesc(pframe, (u8 *)desc);
|
||||||
|
|
||||||
@ -11803,9 +11803,9 @@ thread_return lbk_thread(thread_context context)
|
|||||||
fail++;
|
fail++;
|
||||||
|
|
||||||
ploopback->txsize = 0;
|
ploopback->txsize = 0;
|
||||||
_rtw_memset(ploopback->txbuf, 0, 0x8000);
|
memset(ploopback->txbuf, 0, 0x8000);
|
||||||
ploopback->rxsize = 0;
|
ploopback->rxsize = 0;
|
||||||
_rtw_memset(ploopback->rxbuf, 0, 0x8000);
|
memset(ploopback->rxbuf, 0, 0x8000);
|
||||||
|
|
||||||
freeloopbackpkt(padapter, pxmitframe);
|
freeloopbackpkt(padapter, pxmitframe);
|
||||||
pxmitframe = NULL;
|
pxmitframe = NULL;
|
||||||
|
@ -60,14 +60,14 @@ int rtw_mp_write_reg(struct net_device *dev,
|
|||||||
if (rtw_do_mp_iwdata_len_chk(__func__, (wrqu->length + 1)))
|
if (rtw_do_mp_iwdata_len_chk(__func__, (wrqu->length + 1)))
|
||||||
return -EFAULT;
|
return -EFAULT;
|
||||||
|
|
||||||
_rtw_memset(input, 0, sizeof(input));
|
memset(input, 0, sizeof(input));
|
||||||
|
|
||||||
if (copy_from_user(input, wrqu->pointer, wrqu->length))
|
if (copy_from_user(input, wrqu->pointer, wrqu->length))
|
||||||
return -EFAULT;
|
return -EFAULT;
|
||||||
|
|
||||||
input[wrqu->length] = '\0';
|
input[wrqu->length] = '\0';
|
||||||
|
|
||||||
_rtw_memset(extra, 0, wrqu->length);
|
memset(extra, 0, wrqu->length);
|
||||||
|
|
||||||
pch = input;
|
pch = input;
|
||||||
|
|
||||||
@ -83,7 +83,7 @@ int rtw_mp_write_reg(struct net_device *dev,
|
|||||||
return -EINVAL;
|
return -EINVAL;
|
||||||
*pnext = 0;
|
*pnext = 0;
|
||||||
/*addr = simple_strtoul(pch, &ptmp, 16);
|
/*addr = simple_strtoul(pch, &ptmp, 16);
|
||||||
_rtw_memset(buf, '\0', sizeof(buf));
|
memset(buf, '\0', sizeof(buf));
|
||||||
_rtw_memcpy(buf, pch, pnext-pch);
|
_rtw_memcpy(buf, pch, pnext-pch);
|
||||||
ret = kstrtoul(buf, 16, &addr);*/
|
ret = kstrtoul(buf, 16, &addr);*/
|
||||||
ret = sscanf(pch, "%x", &addr);
|
ret = sscanf(pch, "%x", &addr);
|
||||||
@ -160,14 +160,14 @@ int rtw_mp_read_reg(struct net_device *dev,
|
|||||||
if (wrqu->length > 128)
|
if (wrqu->length > 128)
|
||||||
return -EFAULT;
|
return -EFAULT;
|
||||||
|
|
||||||
_rtw_memset(input, 0, sizeof(input));
|
memset(input, 0, sizeof(input));
|
||||||
if (copy_from_user(input, wrqu->pointer, wrqu->length))
|
if (copy_from_user(input, wrqu->pointer, wrqu->length))
|
||||||
return -EFAULT;
|
return -EFAULT;
|
||||||
|
|
||||||
input[wrqu->length] = '\0';
|
input[wrqu->length] = '\0';
|
||||||
_rtw_memset(extra, 0, wrqu->length);
|
memset(extra, 0, wrqu->length);
|
||||||
_rtw_memset(data, '\0', sizeof(data));
|
memset(data, '\0', sizeof(data));
|
||||||
_rtw_memset(tmp, '\0', sizeof(tmp));
|
memset(tmp, '\0', sizeof(tmp));
|
||||||
pch = input;
|
pch = input;
|
||||||
pnext = strpbrk(pch, " ,.-");
|
pnext = strpbrk(pch, " ,.-");
|
||||||
if (pnext == NULL)
|
if (pnext == NULL)
|
||||||
@ -286,7 +286,7 @@ int rtw_mp_write_rf(struct net_device *dev,
|
|||||||
if (rtw_do_mp_iwdata_len_chk(__func__, wrqu->length))
|
if (rtw_do_mp_iwdata_len_chk(__func__, wrqu->length))
|
||||||
return -EFAULT;
|
return -EFAULT;
|
||||||
|
|
||||||
_rtw_memset(input, 0, wrqu->length);
|
memset(input, 0, wrqu->length);
|
||||||
if (copy_from_user(input, wrqu->pointer, wrqu->length))
|
if (copy_from_user(input, wrqu->pointer, wrqu->length))
|
||||||
return -EFAULT;
|
return -EFAULT;
|
||||||
|
|
||||||
@ -302,7 +302,7 @@ int rtw_mp_write_rf(struct net_device *dev,
|
|||||||
if (data > 0xFFFFF)
|
if (data > 0xFFFFF)
|
||||||
return -EINVAL;
|
return -EINVAL;
|
||||||
|
|
||||||
_rtw_memset(extra, 0, wrqu->length);
|
memset(extra, 0, wrqu->length);
|
||||||
|
|
||||||
write_rfreg(padapter, path, addr, data);
|
write_rfreg(padapter, path, addr, data);
|
||||||
|
|
||||||
@ -338,7 +338,7 @@ int rtw_mp_read_rf(struct net_device *dev,
|
|||||||
|
|
||||||
if (wrqu->length > 128)
|
if (wrqu->length > 128)
|
||||||
return -EFAULT;
|
return -EFAULT;
|
||||||
_rtw_memset(input, 0, wrqu->length);
|
memset(input, 0, wrqu->length);
|
||||||
if (copy_from_user(input, wrqu->pointer, wrqu->length))
|
if (copy_from_user(input, wrqu->pointer, wrqu->length))
|
||||||
return -EFAULT;
|
return -EFAULT;
|
||||||
|
|
||||||
@ -351,7 +351,7 @@ int rtw_mp_read_rf(struct net_device *dev,
|
|||||||
if (addr > 0xFF)
|
if (addr > 0xFF)
|
||||||
return -EINVAL;
|
return -EINVAL;
|
||||||
|
|
||||||
_rtw_memset(extra, 0, wrqu->length);
|
memset(extra, 0, wrqu->length);
|
||||||
|
|
||||||
sprintf(data, "%08x", read_rfreg(padapter, path, addr));
|
sprintf(data, "%08x", read_rfreg(padapter, path, addr));
|
||||||
/*add read data format blank*/
|
/*add read data format blank*/
|
||||||
@ -401,7 +401,7 @@ int rtw_mp_start(struct net_device *dev,
|
|||||||
if (rtw_mp_cmd(padapter, MP_START, RTW_CMDF_WAIT_ACK) != _SUCCESS)
|
if (rtw_mp_cmd(padapter, MP_START, RTW_CMDF_WAIT_ACK) != _SUCCESS)
|
||||||
ret = -EPERM;
|
ret = -EPERM;
|
||||||
|
|
||||||
_rtw_memset(extra, 0, wrqu->length);
|
memset(extra, 0, wrqu->length);
|
||||||
sprintf(extra, "mp_start %s\n", ret == 0 ? "ok" : "fail");
|
sprintf(extra, "mp_start %s\n", ret == 0 ? "ok" : "fail");
|
||||||
wrqu->length = strlen(extra);
|
wrqu->length = strlen(extra);
|
||||||
|
|
||||||
@ -420,7 +420,7 @@ int rtw_mp_stop(struct net_device *dev,
|
|||||||
if (rtw_mp_cmd(padapter, MP_STOP, RTW_CMDF_WAIT_ACK) != _SUCCESS)
|
if (rtw_mp_cmd(padapter, MP_STOP, RTW_CMDF_WAIT_ACK) != _SUCCESS)
|
||||||
ret = -EPERM;
|
ret = -EPERM;
|
||||||
|
|
||||||
_rtw_memset(extra, 0, wrqu->length);
|
memset(extra, 0, wrqu->length);
|
||||||
sprintf(extra, "mp_stop %s\n", ret == 0 ? "ok" : "fail");
|
sprintf(extra, "mp_stop %s\n", ret == 0 ? "ok" : "fail");
|
||||||
wrqu->length = strlen(extra);
|
wrqu->length = strlen(extra);
|
||||||
|
|
||||||
@ -440,7 +440,7 @@ int rtw_mp_rate(struct net_device *dev,
|
|||||||
if (rtw_do_mp_iwdata_len_chk(__func__, (wrqu->length + 1)))
|
if (rtw_do_mp_iwdata_len_chk(__func__, (wrqu->length + 1)))
|
||||||
return -EFAULT;
|
return -EFAULT;
|
||||||
|
|
||||||
_rtw_memset(input, 0, sizeof(input));
|
memset(input, 0, sizeof(input));
|
||||||
if (copy_from_user(input, wrqu->pointer, wrqu->length))
|
if (copy_from_user(input, wrqu->pointer, wrqu->length))
|
||||||
return -EFAULT;
|
return -EFAULT;
|
||||||
|
|
||||||
@ -463,7 +463,7 @@ int rtw_mp_rate(struct net_device *dev,
|
|||||||
rate =(rate - MPT_RATE_VHT1SS_MCS0);
|
rate =(rate - MPT_RATE_VHT1SS_MCS0);
|
||||||
*/
|
*/
|
||||||
}
|
}
|
||||||
_rtw_memset(extra, 0, wrqu->length);
|
memset(extra, 0, wrqu->length);
|
||||||
|
|
||||||
sprintf(extra, "Set data rate to %s index %d" , input, padapter->mppriv.rateidx);
|
sprintf(extra, "Set data rate to %s index %d" , input, padapter->mppriv.rateidx);
|
||||||
RTW_INFO("%s: %s rate index=%d\n", __func__, input, padapter->mppriv.rateidx);
|
RTW_INFO("%s: %s rate index=%d\n", __func__, input, padapter->mppriv.rateidx);
|
||||||
@ -492,14 +492,14 @@ int rtw_mp_channel(struct net_device *dev,
|
|||||||
if (rtw_do_mp_iwdata_len_chk(__func__, (wrqu->length + 1)))
|
if (rtw_do_mp_iwdata_len_chk(__func__, (wrqu->length + 1)))
|
||||||
return -EFAULT;
|
return -EFAULT;
|
||||||
|
|
||||||
_rtw_memset(input, 0, sizeof(input));
|
memset(input, 0, sizeof(input));
|
||||||
if (copy_from_user(input, wrqu->pointer, wrqu->length))
|
if (copy_from_user(input, wrqu->pointer, wrqu->length))
|
||||||
return -EFAULT;
|
return -EFAULT;
|
||||||
|
|
||||||
input[wrqu->length] = '\0';
|
input[wrqu->length] = '\0';
|
||||||
channel = rtw_atoi(input);
|
channel = rtw_atoi(input);
|
||||||
/*RTW_INFO("%s: channel=%d\n", __func__, channel);*/
|
/*RTW_INFO("%s: channel=%d\n", __func__, channel);*/
|
||||||
_rtw_memset(extra, 0, wrqu->length);
|
memset(extra, 0, wrqu->length);
|
||||||
sprintf(extra, "Change channel %d to channel %d", padapter->mppriv.channel , channel);
|
sprintf(extra, "Change channel %d to channel %d", padapter->mppriv.channel , channel);
|
||||||
padapter->mppriv.channel = channel;
|
padapter->mppriv.channel = channel;
|
||||||
SetChannel(padapter);
|
SetChannel(padapter);
|
||||||
@ -522,14 +522,14 @@ int rtw_mp_ch_offset(struct net_device *dev,
|
|||||||
if (rtw_do_mp_iwdata_len_chk(__func__, (wrqu->length + 1)))
|
if (rtw_do_mp_iwdata_len_chk(__func__, (wrqu->length + 1)))
|
||||||
return -EFAULT;
|
return -EFAULT;
|
||||||
|
|
||||||
_rtw_memset(input, 0, sizeof(input));
|
memset(input, 0, sizeof(input));
|
||||||
if (copy_from_user(input, wrqu->pointer, wrqu->length))
|
if (copy_from_user(input, wrqu->pointer, wrqu->length))
|
||||||
return -EFAULT;
|
return -EFAULT;
|
||||||
|
|
||||||
input[wrqu->length] = '\0';
|
input[wrqu->length] = '\0';
|
||||||
ch_offset = rtw_atoi(input);
|
ch_offset = rtw_atoi(input);
|
||||||
/*RTW_INFO("%s: channel=%d\n", __func__, channel);*/
|
/*RTW_INFO("%s: channel=%d\n", __func__, channel);*/
|
||||||
_rtw_memset(extra, 0, wrqu->length);
|
memset(extra, 0, wrqu->length);
|
||||||
sprintf(extra, "Change prime channel offset %d to %d", padapter->mppriv.prime_channel_offset , ch_offset);
|
sprintf(extra, "Change prime channel offset %d to %d", padapter->mppriv.prime_channel_offset , ch_offset);
|
||||||
padapter->mppriv.prime_channel_offset = ch_offset;
|
padapter->mppriv.prime_channel_offset = ch_offset;
|
||||||
SetChannel(padapter);
|
SetChannel(padapter);
|
||||||
@ -564,7 +564,7 @@ int rtw_mp_bandwidth(struct net_device *dev,
|
|||||||
|
|
||||||
padapter->mppriv.bandwidth = (u8)bandwidth;
|
padapter->mppriv.bandwidth = (u8)bandwidth;
|
||||||
padapter->mppriv.preamble = sg;
|
padapter->mppriv.preamble = sg;
|
||||||
_rtw_memset(extra, 0, wrqu->length);
|
memset(extra, 0, wrqu->length);
|
||||||
sprintf(extra, "Change BW %d to BW %d\n", pHalData->current_channel_bw , bandwidth);
|
sprintf(extra, "Change BW %d to BW %d\n", pHalData->current_channel_bw , bandwidth);
|
||||||
|
|
||||||
SetBandwidth(padapter);
|
SetBandwidth(padapter);
|
||||||
@ -592,7 +592,7 @@ int rtw_mp_txpower_index(struct net_device *dev,
|
|||||||
if (wrqu->length > 128)
|
if (wrqu->length > 128)
|
||||||
return -EFAULT;
|
return -EFAULT;
|
||||||
|
|
||||||
_rtw_memset(input, 0, sizeof(input));
|
memset(input, 0, sizeof(input));
|
||||||
|
|
||||||
if (copy_from_user(input, wrqu->pointer, wrqu->length))
|
if (copy_from_user(input, wrqu->pointer, wrqu->length))
|
||||||
return -EFAULT;
|
return -EFAULT;
|
||||||
@ -681,7 +681,7 @@ int rtw_mp_ant_tx(struct net_device *dev,
|
|||||||
if (rtw_do_mp_iwdata_len_chk(__func__, (wrqu->length + 1)))
|
if (rtw_do_mp_iwdata_len_chk(__func__, (wrqu->length + 1)))
|
||||||
return -EFAULT;
|
return -EFAULT;
|
||||||
|
|
||||||
_rtw_memset(input, 0, sizeof(input));
|
memset(input, 0, sizeof(input));
|
||||||
if (copy_from_user(input, wrqu->pointer, wrqu->length))
|
if (copy_from_user(input, wrqu->pointer, wrqu->length))
|
||||||
return -EFAULT;
|
return -EFAULT;
|
||||||
|
|
||||||
@ -731,13 +731,13 @@ int rtw_mp_ant_rx(struct net_device *dev,
|
|||||||
if (rtw_do_mp_iwdata_len_chk(__func__, (wrqu->length + 1)))
|
if (rtw_do_mp_iwdata_len_chk(__func__, (wrqu->length + 1)))
|
||||||
return -EFAULT;
|
return -EFAULT;
|
||||||
|
|
||||||
_rtw_memset(input, 0, sizeof(input));
|
memset(input, 0, sizeof(input));
|
||||||
if (copy_from_user(input, wrqu->pointer, wrqu->length))
|
if (copy_from_user(input, wrqu->pointer, wrqu->length))
|
||||||
return -EFAULT;
|
return -EFAULT;
|
||||||
|
|
||||||
input[wrqu->length] = '\0';
|
input[wrqu->length] = '\0';
|
||||||
/*RTW_INFO("%s: input=%s\n", __func__, input);*/
|
/*RTW_INFO("%s: input=%s\n", __func__, input);*/
|
||||||
_rtw_memset(extra, 0, wrqu->length);
|
memset(extra, 0, wrqu->length);
|
||||||
|
|
||||||
sprintf(extra, "switch Rx antenna to %s", input);
|
sprintf(extra, "switch Rx antenna to %s", input);
|
||||||
|
|
||||||
@ -848,7 +848,7 @@ int rtw_mp_ctx(struct net_device *dev,
|
|||||||
}
|
}
|
||||||
|
|
||||||
/*RTW_INFO("%s: count=%d countPkTx=%d cotuTx=%d CarrSprTx=%d scTx=%d sgleTx=%d pkTx=%d stop=%d\n", __func__, count, countPkTx, cotuTx, CarrSprTx, pkTx, sgleTx, scTx, stop);*/
|
/*RTW_INFO("%s: count=%d countPkTx=%d cotuTx=%d CarrSprTx=%d scTx=%d sgleTx=%d pkTx=%d stop=%d\n", __func__, count, countPkTx, cotuTx, CarrSprTx, pkTx, sgleTx, scTx, stop);*/
|
||||||
_rtw_memset(extra, '\0', strlen(extra));
|
memset(extra, '\0', strlen(extra));
|
||||||
|
|
||||||
if (pktinterval != 0) {
|
if (pktinterval != 0) {
|
||||||
sprintf(extra, "Pkt Interval = %d", pktinterval);
|
sprintf(extra, "Pkt Interval = %d", pktinterval);
|
||||||
@ -913,7 +913,7 @@ int rtw_mp_disable_bt_coexist(struct net_device *dev,
|
|||||||
if (rtw_do_mp_iwdata_len_chk(__func__, (wrqu->data.length + 1)))
|
if (rtw_do_mp_iwdata_len_chk(__func__, (wrqu->data.length + 1)))
|
||||||
return -EFAULT;
|
return -EFAULT;
|
||||||
|
|
||||||
_rtw_memset(input, 0, sizeof(input));
|
memset(input, 0, sizeof(input));
|
||||||
|
|
||||||
if (copy_from_user(input, wrqu->data.pointer, wrqu->data.length))
|
if (copy_from_user(input, wrqu->data.pointer, wrqu->data.length))
|
||||||
return -EFAULT;
|
return -EFAULT;
|
||||||
@ -1044,7 +1044,7 @@ int rtw_mp_arx(struct net_device *dev,
|
|||||||
pmppriv->bSetRxBssid = _FALSE;
|
pmppriv->bSetRxBssid = _FALSE;
|
||||||
sprintf(extra, "Received packet OK:%d CRC error:%d ,Filter out:%d", padapter->mppriv.rx_pktcount, padapter->mppriv.rx_crcerrpktcount, padapter->mppriv.rx_pktcount_filter_out);
|
sprintf(extra, "Received packet OK:%d CRC error:%d ,Filter out:%d", padapter->mppriv.rx_pktcount, padapter->mppriv.rx_crcerrpktcount, padapter->mppriv.rx_pktcount_filter_out);
|
||||||
} else if (bQueryPhy) {
|
} else if (bQueryPhy) {
|
||||||
_rtw_memset(&rx_counter, 0, sizeof(struct dbg_rx_counter));
|
memset(&rx_counter, 0, sizeof(struct dbg_rx_counter));
|
||||||
rtw_dump_phy_rx_counters(padapter, &rx_counter);
|
rtw_dump_phy_rx_counters(padapter, &rx_counter);
|
||||||
|
|
||||||
RTW_INFO("%s: OFDM_FA =%d\n", __func__, rx_counter.rx_ofdm_fa);
|
RTW_INFO("%s: OFDM_FA =%d\n", __func__, rx_counter.rx_ofdm_fa);
|
||||||
@ -1053,7 +1053,7 @@ int rtw_mp_arx(struct net_device *dev,
|
|||||||
|
|
||||||
|
|
||||||
} else if (bQueryMac) {
|
} else if (bQueryMac) {
|
||||||
_rtw_memset(&rx_counter, 0, sizeof(struct dbg_rx_counter));
|
memset(&rx_counter, 0, sizeof(struct dbg_rx_counter));
|
||||||
rtw_dump_mac_rx_counters(padapter, &rx_counter);
|
rtw_dump_mac_rx_counters(padapter, &rx_counter);
|
||||||
sprintf(extra, "Mac Received packet OK: %d , CRC error: %d , Drop Packets: %d\n",
|
sprintf(extra, "Mac Received packet OK: %d , CRC error: %d , Drop Packets: %d\n",
|
||||||
rx_counter.rx_pkt_ok, rx_counter.rx_pkt_crc_error, rx_counter.rx_pkt_drop);
|
rx_counter.rx_pkt_ok, rx_counter.rx_pkt_crc_error, rx_counter.rx_pkt_drop);
|
||||||
@ -1118,7 +1118,7 @@ int rtw_mp_trx_query(struct net_device *dev,
|
|||||||
rxfail = padapter->mppriv.rx_crcerrpktcount;
|
rxfail = padapter->mppriv.rx_crcerrpktcount;
|
||||||
rxfilterout = padapter->mppriv.rx_pktcount_filter_out;
|
rxfilterout = padapter->mppriv.rx_pktcount_filter_out;
|
||||||
|
|
||||||
_rtw_memset(extra, '\0', 128);
|
memset(extra, '\0', 128);
|
||||||
|
|
||||||
sprintf(extra, "Tx OK:%d, Tx Fail:%d, Rx OK:%d, CRC error:%d ,Rx Filter out:%d\n", txok, txfail, rxok, rxfail, rxfilterout);
|
sprintf(extra, "Tx OK:%d, Tx Fail:%d, Rx OK:%d, CRC error:%d ,Rx Filter out:%d\n", txok, txfail, rxok, rxfail, rxfilterout);
|
||||||
|
|
||||||
@ -1144,7 +1144,7 @@ int rtw_mp_pwrtrk(struct net_device *dev,
|
|||||||
if (copy_from_user(input, wrqu->pointer, wrqu->length))
|
if (copy_from_user(input, wrqu->pointer, wrqu->length))
|
||||||
return -EFAULT;
|
return -EFAULT;
|
||||||
|
|
||||||
_rtw_memset(extra, 0, wrqu->length);
|
memset(extra, 0, wrqu->length);
|
||||||
|
|
||||||
enable = 1;
|
enable = 1;
|
||||||
if (wrqu->length > 1) {
|
if (wrqu->length > 1) {
|
||||||
@ -1182,7 +1182,7 @@ int rtw_mp_psd(struct net_device *dev,
|
|||||||
if (rtw_do_mp_iwdata_len_chk(__func__, (wrqu->length + 1)))
|
if (rtw_do_mp_iwdata_len_chk(__func__, (wrqu->length + 1)))
|
||||||
return -EFAULT;
|
return -EFAULT;
|
||||||
|
|
||||||
_rtw_memset(input, 0, sizeof(input));
|
memset(input, 0, sizeof(input));
|
||||||
if (copy_from_user(input, wrqu->pointer, wrqu->length))
|
if (copy_from_user(input, wrqu->pointer, wrqu->length))
|
||||||
return -EFAULT;
|
return -EFAULT;
|
||||||
|
|
||||||
@ -1288,7 +1288,7 @@ int rtw_mp_reset_stats(struct net_device *dev,
|
|||||||
rtw_reset_phy_rx_counters(padapter);
|
rtw_reset_phy_rx_counters(padapter);
|
||||||
rtw_reset_mac_rx_counters(padapter);
|
rtw_reset_mac_rx_counters(padapter);
|
||||||
|
|
||||||
_rtw_memset(extra, 0, wrqu->length);
|
memset(extra, 0, wrqu->length);
|
||||||
sprintf(extra, "mp_reset_stats ok\n");
|
sprintf(extra, "mp_reset_stats ok\n");
|
||||||
wrqu->length = strlen(extra);
|
wrqu->length = strlen(extra);
|
||||||
|
|
||||||
@ -1375,7 +1375,7 @@ int rtw_mp_SetRFPath(struct net_device *dev,
|
|||||||
bMain = strncmp(input, "1", 2); /* strncmp TRUE is 0*/
|
bMain = strncmp(input, "1", 2); /* strncmp TRUE is 0*/
|
||||||
bTurnoff = strncmp(input, "0", 3); /* strncmp TRUE is 0*/
|
bTurnoff = strncmp(input, "0", 3); /* strncmp TRUE is 0*/
|
||||||
|
|
||||||
_rtw_memset(extra, 0, wrqu->length);
|
memset(extra, 0, wrqu->length);
|
||||||
#ifdef CONFIG_ANTENNA_DIVERSITY
|
#ifdef CONFIG_ANTENNA_DIVERSITY
|
||||||
if (bMain == 0)
|
if (bMain == 0)
|
||||||
ret = rtw_mp_set_antdiv(padapter, _TRUE);
|
ret = rtw_mp_set_antdiv(padapter, _TRUE);
|
||||||
@ -1431,7 +1431,7 @@ int rtw_mp_switch_rf_path(struct net_device *dev,
|
|||||||
btg = strncmp(input, "BTG", 3); /* strncmp TRUE is 0*/
|
btg = strncmp(input, "BTG", 3); /* strncmp TRUE is 0*/
|
||||||
bbt = strncmp(input, "BT", 3); /* strncmp TRUE is 0*/
|
bbt = strncmp(input, "BT", 3); /* strncmp TRUE is 0*/
|
||||||
|
|
||||||
_rtw_memset(extra, 0, wrqu->length);
|
memset(extra, 0, wrqu->length);
|
||||||
#ifdef CONFIG_RTL8821C /* only support for 8821c wlg/wla/btg/bt RF switch path */
|
#ifdef CONFIG_RTL8821C /* only support for 8821c wlg/wla/btg/bt RF switch path */
|
||||||
if (bwlg == 0) {
|
if (bwlg == 0) {
|
||||||
pmp_priv->rf_path_cfg = SWITCH_TO_WLG;
|
pmp_priv->rf_path_cfg = SWITCH_TO_WLG;
|
||||||
@ -1734,7 +1734,7 @@ int rtw_mp_tx(struct net_device *dev,
|
|||||||
pmp_priv->tx.count = count;
|
pmp_priv->tx.count = count;
|
||||||
return 0;
|
return 0;
|
||||||
} else if (strncmp(extra, "setting", 7) == 0) {
|
} else if (strncmp(extra, "setting", 7) == 0) {
|
||||||
_rtw_memset(extra, 0, wrqu->data.length);
|
memset(extra, 0, wrqu->data.length);
|
||||||
pextra += sprintf(pextra, "Current Setting :\n Channel:%d", pmp_priv->channel);
|
pextra += sprintf(pextra, "Current Setting :\n Channel:%d", pmp_priv->channel);
|
||||||
pextra += sprintf(pextra, "\n Bandwidth:%d", pmp_priv->bandwidth);
|
pextra += sprintf(pextra, "\n Bandwidth:%d", pmp_priv->bandwidth);
|
||||||
pextra += sprintf(pextra, "\n Rate index:%d", pmp_priv->rateidx);
|
pextra += sprintf(pextra, "\n Rate index:%d", pmp_priv->rateidx);
|
||||||
@ -1747,7 +1747,7 @@ int rtw_mp_tx(struct net_device *dev,
|
|||||||
#ifdef CONFIG_MP_VHT_HW_TX_MODE
|
#ifdef CONFIG_MP_VHT_HW_TX_MODE
|
||||||
} else if (strncmp(extra, "pmact", 5) == 0) {
|
} else if (strncmp(extra, "pmact", 5) == 0) {
|
||||||
if (strncmp(extra, "pmact=", 6) == 0) {
|
if (strncmp(extra, "pmact=", 6) == 0) {
|
||||||
_rtw_memset(&pMptCtx->PMacTxInfo, 0, sizeof(pMptCtx->PMacTxInfo));
|
memset(&pMptCtx->PMacTxInfo, 0, sizeof(pMptCtx->PMacTxInfo));
|
||||||
if (strncmp(extra, "pmact=start", 11) == 0) {
|
if (strncmp(extra, "pmact=start", 11) == 0) {
|
||||||
pMptCtx->PMacTxInfo.bEnPMacTx = _TRUE;
|
pMptCtx->PMacTxInfo.bEnPMacTx = _TRUE;
|
||||||
sprintf(extra, "Set PMac Tx Mode start\n");
|
sprintf(extra, "Set PMac Tx Mode start\n");
|
||||||
@ -1792,7 +1792,7 @@ int rtw_mp_tx(struct net_device *dev,
|
|||||||
pMptCtx->PMacTxInfo.Ntx++;
|
pMptCtx->PMacTxInfo.Ntx++;
|
||||||
}
|
}
|
||||||
|
|
||||||
_rtw_memset(pMptCtx->PMacTxInfo.MacAddress, 0xFF, ETH_ALEN);
|
memset(pMptCtx->PMacTxInfo.MacAddress, 0xFF, ETH_ALEN);
|
||||||
|
|
||||||
PMAC_Get_Pkt_Param(&pMptCtx->PMacTxInfo, &pMptCtx->PMacPktInfo);
|
PMAC_Get_Pkt_Param(&pMptCtx->PMacTxInfo, &pMptCtx->PMacPktInfo);
|
||||||
|
|
||||||
@ -1878,7 +1878,7 @@ int rtw_mp_tx(struct net_device *dev,
|
|||||||
|
|
||||||
if (sscanf(extra, "ch=%d,bw=%d,rate=%d,pwr=%d,ant=%d,tx=%d", &channel, &bandwidth, &rate, &txpower, &ant, &txmode) < 6) {
|
if (sscanf(extra, "ch=%d,bw=%d,rate=%d,pwr=%d,ant=%d,tx=%d", &channel, &bandwidth, &rate, &txpower, &ant, &txmode) < 6) {
|
||||||
RTW_INFO("Invalid format [ch=%d,bw=%d,rate=%d,pwr=%d,ant=%d,tx=%d]\n", channel, bandwidth, rate, txpower, ant, txmode);
|
RTW_INFO("Invalid format [ch=%d,bw=%d,rate=%d,pwr=%d,ant=%d,tx=%d]\n", channel, bandwidth, rate, txpower, ant, txmode);
|
||||||
_rtw_memset(extra, 0, wrqu->data.length);
|
memset(extra, 0, wrqu->data.length);
|
||||||
pextra += sprintf(pextra, "\n Please input correct format as bleow:\n");
|
pextra += sprintf(pextra, "\n Please input correct format as bleow:\n");
|
||||||
pextra += sprintf(pextra, "\t ch=%d,bw=%d,rate=%d,pwr=%d,ant=%d,tx=%d\n", channel, bandwidth, rate, txpower, ant, txmode);
|
pextra += sprintf(pextra, "\t ch=%d,bw=%d,rate=%d,pwr=%d,ant=%d,tx=%d\n", channel, bandwidth, rate, txpower, ant, txmode);
|
||||||
pextra += sprintf(pextra, "\n [ ch : BGN = <1~14> , A or AC = <36~165> ]");
|
pextra += sprintf(pextra, "\n [ ch : BGN = <1~14> , A or AC = <36~165> ]");
|
||||||
@ -1897,7 +1897,7 @@ int rtw_mp_tx(struct net_device *dev,
|
|||||||
} else {
|
} else {
|
||||||
char *pextra = extra;
|
char *pextra = extra;
|
||||||
RTW_INFO("Got format [ch=%d,bw=%d,rate=%d,pwr=%d,ant=%d,tx=%d]\n", channel, bandwidth, rate, txpower, ant, txmode);
|
RTW_INFO("Got format [ch=%d,bw=%d,rate=%d,pwr=%d,ant=%d,tx=%d]\n", channel, bandwidth, rate, txpower, ant, txmode);
|
||||||
_rtw_memset(extra, 0, wrqu->data.length);
|
memset(extra, 0, wrqu->data.length);
|
||||||
sprintf(extra, "Change Current channel %d to channel %d", padapter->mppriv.channel , channel);
|
sprintf(extra, "Change Current channel %d to channel %d", padapter->mppriv.channel , channel);
|
||||||
padapter->mppriv.channel = channel;
|
padapter->mppriv.channel = channel;
|
||||||
SetChannel(padapter);
|
SetChannel(padapter);
|
||||||
@ -2041,7 +2041,7 @@ int rtw_mp_rx(struct net_device *dev,
|
|||||||
#endif
|
#endif
|
||||||
|
|
||||||
if (strncmp(extra, "stop", 4) == 0) {
|
if (strncmp(extra, "stop", 4) == 0) {
|
||||||
_rtw_memset(extra, 0, wrqu->data.length);
|
memset(extra, 0, wrqu->data.length);
|
||||||
SetPacketRx(padapter, bStartRx, _FALSE);
|
SetPacketRx(padapter, bStartRx, _FALSE);
|
||||||
pmp_priv->bmac_filter = _FALSE;
|
pmp_priv->bmac_filter = _FALSE;
|
||||||
sprintf(extra, "Received packet OK:%d CRC error:%d ,Filter out:%d", padapter->mppriv.rx_pktcount, padapter->mppriv.rx_crcerrpktcount, padapter->mppriv.rx_pktcount_filter_out);
|
sprintf(extra, "Received packet OK:%d CRC error:%d ,Filter out:%d", padapter->mppriv.rx_pktcount, padapter->mppriv.rx_crcerrpktcount, padapter->mppriv.rx_pktcount_filter_out);
|
||||||
@ -2050,7 +2050,7 @@ int rtw_mp_rx(struct net_device *dev,
|
|||||||
|
|
||||||
} else if (sscanf(extra, "ch=%d,bw=%d,ant=%d", &channel, &bandwidth, &ant) < 3) {
|
} else if (sscanf(extra, "ch=%d,bw=%d,ant=%d", &channel, &bandwidth, &ant) < 3) {
|
||||||
RTW_INFO("Invalid format [ch=%d,bw=%d,ant=%d]\n", channel, bandwidth, ant);
|
RTW_INFO("Invalid format [ch=%d,bw=%d,ant=%d]\n", channel, bandwidth, ant);
|
||||||
_rtw_memset(extra, 0, wrqu->data.length);
|
memset(extra, 0, wrqu->data.length);
|
||||||
pextra += sprintf(pextra, "\n Please input correct format as bleow:\n");
|
pextra += sprintf(pextra, "\n Please input correct format as bleow:\n");
|
||||||
pextra += sprintf(pextra, "\t ch=%d,bw=%d,ant=%d\n", channel, bandwidth, ant);
|
pextra += sprintf(pextra, "\t ch=%d,bw=%d,ant=%d\n", channel, bandwidth, ant);
|
||||||
pextra += sprintf(pextra, "\n [ ch : BGN = <1~14> , A or AC = <36~165> ]");
|
pextra += sprintf(pextra, "\n [ ch : BGN = <1~14> , A or AC = <36~165> ]");
|
||||||
@ -2063,7 +2063,7 @@ int rtw_mp_rx(struct net_device *dev,
|
|||||||
char *pextra = extra;
|
char *pextra = extra;
|
||||||
bStartRx = 1;
|
bStartRx = 1;
|
||||||
RTW_INFO("Got format [ch=%d,bw=%d,ant=%d]\n", channel, bandwidth, ant);
|
RTW_INFO("Got format [ch=%d,bw=%d,ant=%d]\n", channel, bandwidth, ant);
|
||||||
_rtw_memset(extra, 0, wrqu->data.length);
|
memset(extra, 0, wrqu->data.length);
|
||||||
sprintf(extra, "Change Current channel %d to channel %d", padapter->mppriv.channel , channel);
|
sprintf(extra, "Change Current channel %d to channel %d", padapter->mppriv.channel , channel);
|
||||||
padapter->mppriv.channel = channel;
|
padapter->mppriv.channel = channel;
|
||||||
SetChannel(padapter);
|
SetChannel(padapter);
|
||||||
@ -2153,9 +2153,9 @@ int rtw_mp_hwtx(struct net_device *dev,
|
|||||||
if (copy_from_user(input, wrqu->data.pointer, wrqu->data.length))
|
if (copy_from_user(input, wrqu->data.pointer, wrqu->data.length))
|
||||||
return -EFAULT;
|
return -EFAULT;
|
||||||
|
|
||||||
_rtw_memset(&pMptCtx->PMacTxInfo, 0, sizeof(RT_PMAC_TX_INFO));
|
memset(&pMptCtx->PMacTxInfo, 0, sizeof(RT_PMAC_TX_INFO));
|
||||||
_rtw_memcpy((void *)&pMptCtx->PMacTxInfo, (void *)input, sizeof(RT_PMAC_TX_INFO));
|
_rtw_memcpy((void *)&pMptCtx->PMacTxInfo, (void *)input, sizeof(RT_PMAC_TX_INFO));
|
||||||
_rtw_memset(wrqu->data.pointer, 0, wrqu->data.length);
|
memset(wrqu->data.pointer, 0, wrqu->data.length);
|
||||||
|
|
||||||
if (pMptCtx->PMacTxInfo.bEnPMacTx == 1 && pmp_priv->mode != MP_ON) {
|
if (pMptCtx->PMacTxInfo.bEnPMacTx == 1 && pmp_priv->mode != MP_ON) {
|
||||||
sprintf(extra, "MP Tx Running, Please Set PMac Tx Mode Stop\n");
|
sprintf(extra, "MP Tx Running, Please Set PMac Tx Mode Stop\n");
|
||||||
@ -2236,7 +2236,7 @@ int rtw_efuse_mask_file(struct net_device *dev,
|
|||||||
u8 Status;
|
u8 Status;
|
||||||
PADAPTER padapter = rtw_netdev_priv(dev);
|
PADAPTER padapter = rtw_netdev_priv(dev);
|
||||||
|
|
||||||
_rtw_memset(maskfileBuffer, 0x00, sizeof(maskfileBuffer));
|
memset(maskfileBuffer, 0x00, sizeof(maskfileBuffer));
|
||||||
|
|
||||||
if (copy_from_user(extra, wrqu->data.pointer, wrqu->data.length))
|
if (copy_from_user(extra, wrqu->data.pointer, wrqu->data.length))
|
||||||
return -EFAULT;
|
return -EFAULT;
|
||||||
@ -2334,7 +2334,7 @@ int rtw_efuse_file_map(struct net_device *dev,
|
|||||||
|
|
||||||
rtw_efuse_file_map_path = extra;
|
rtw_efuse_file_map_path = extra;
|
||||||
|
|
||||||
_rtw_memset(pEfuseHal->fakeEfuseModifiedMap, 0xFF, EFUSE_MAX_MAP_LEN);
|
memset(pEfuseHal->fakeEfuseModifiedMap, 0xFF, EFUSE_MAX_MAP_LEN);
|
||||||
|
|
||||||
if (rtw_is_file_readable(rtw_efuse_file_map_path) == _TRUE) {
|
if (rtw_is_file_readable(rtw_efuse_file_map_path) == _TRUE) {
|
||||||
RTW_INFO("%s do rtw_efuse_mask_file_read = %s!\n", __func__, rtw_efuse_file_map_path);
|
RTW_INFO("%s do rtw_efuse_mask_file_read = %s!\n", __func__, rtw_efuse_file_map_path);
|
||||||
@ -2371,7 +2371,7 @@ int rtw_bt_efuse_file_map(struct net_device *dev,
|
|||||||
|
|
||||||
rtw_efuse_file_map_path = extra;
|
rtw_efuse_file_map_path = extra;
|
||||||
|
|
||||||
_rtw_memset(pEfuseHal->fakeBTEfuseModifiedMap, 0xFF, EFUSE_BT_MAX_MAP_LEN);
|
memset(pEfuseHal->fakeBTEfuseModifiedMap, 0xFF, EFUSE_BT_MAX_MAP_LEN);
|
||||||
|
|
||||||
if (rtw_is_file_readable(rtw_efuse_file_map_path) == _TRUE) {
|
if (rtw_is_file_readable(rtw_efuse_file_map_path) == _TRUE) {
|
||||||
RTW_INFO("%s do rtw_efuse_mask_file_read = %s!\n", __func__, rtw_efuse_file_map_path);
|
RTW_INFO("%s do rtw_efuse_mask_file_read = %s!\n", __func__, rtw_efuse_file_map_path);
|
||||||
@ -2474,7 +2474,7 @@ int rtw_mp_SetBT(struct net_device *dev,
|
|||||||
|
|
||||||
RTW_INFO("Wait for FirmwareDownloadBT fw boot!\n");
|
RTW_INFO("Wait for FirmwareDownloadBT fw boot!\n");
|
||||||
msleep(2000);
|
msleep(2000);
|
||||||
_rtw_memset(extra, '\0', wrqu->data.length);
|
memset(extra, '\0', wrqu->data.length);
|
||||||
BtReq.opCodeVer = 1;
|
BtReq.opCodeVer = 1;
|
||||||
BtReq.OpCode = 0;
|
BtReq.OpCode = 0;
|
||||||
BtReq.paraLength = 0;
|
BtReq.paraLength = 0;
|
||||||
@ -2545,7 +2545,7 @@ int rtw_mp_SetBT(struct net_device *dev,
|
|||||||
/*hal_btcoex1ant_SetAntPath(padapter);*/
|
/*hal_btcoex1ant_SetAntPath(padapter);*/
|
||||||
rtw_btcoex_SetManualControl(padapter, _TRUE);
|
rtw_btcoex_SetManualControl(padapter, _TRUE);
|
||||||
#endif
|
#endif
|
||||||
_rtw_memset(extra, '\0', wrqu->data.length);
|
memset(extra, '\0', wrqu->data.length);
|
||||||
BtReq.opCodeVer = 1;
|
BtReq.opCodeVer = 1;
|
||||||
BtReq.OpCode = 0;
|
BtReq.OpCode = 0;
|
||||||
BtReq.paraLength = 0;
|
BtReq.paraLength = 0;
|
||||||
@ -2703,7 +2703,7 @@ int rtw_mp_SetBT(struct net_device *dev,
|
|||||||
}
|
}
|
||||||
|
|
||||||
todo:
|
todo:
|
||||||
_rtw_memset(extra, '\0', wrqu->data.length);
|
memset(extra, '\0', wrqu->data.length);
|
||||||
|
|
||||||
if (pHalData->bBTFWReady == _FALSE) {
|
if (pHalData->bBTFWReady == _FALSE) {
|
||||||
sprintf(extra, "BTFWReady = FALSE.\n");
|
sprintf(extra, "BTFWReady = FALSE.\n");
|
||||||
|
@ -112,13 +112,13 @@ void rtw_reset_securitypriv(_adapter *adapter)
|
|||||||
/* Backup the btkip_countermeasure information. */
|
/* Backup the btkip_countermeasure information. */
|
||||||
/* When the countermeasure is trigger, the driver have to disconnect with AP for 60 seconds. */
|
/* When the countermeasure is trigger, the driver have to disconnect with AP for 60 seconds. */
|
||||||
|
|
||||||
_rtw_memset(&backupPMKIDList[0], 0x00, sizeof(RT_PMKID_LIST) * NUM_PMKID_CACHE);
|
memset(&backupPMKIDList[0], 0x00, sizeof(RT_PMKID_LIST) * NUM_PMKID_CACHE);
|
||||||
|
|
||||||
_rtw_memcpy(&backupPMKIDList[0], &adapter->securitypriv.PMKIDList[0], sizeof(RT_PMKID_LIST) * NUM_PMKID_CACHE);
|
_rtw_memcpy(&backupPMKIDList[0], &adapter->securitypriv.PMKIDList[0], sizeof(RT_PMKID_LIST) * NUM_PMKID_CACHE);
|
||||||
backupPMKIDIndex = adapter->securitypriv.PMKIDIndex;
|
backupPMKIDIndex = adapter->securitypriv.PMKIDIndex;
|
||||||
backupTKIPCountermeasure = adapter->securitypriv.btkip_countermeasure;
|
backupTKIPCountermeasure = adapter->securitypriv.btkip_countermeasure;
|
||||||
backupTKIPcountermeasure_time = adapter->securitypriv.btkip_countermeasure_time;
|
backupTKIPcountermeasure_time = adapter->securitypriv.btkip_countermeasure_time;
|
||||||
_rtw_memset((unsigned char *)&adapter->securitypriv, 0, sizeof(struct security_priv));
|
memset((unsigned char *)&adapter->securitypriv, 0, sizeof(struct security_priv));
|
||||||
|
|
||||||
/* Added by Albert 2009/02/18 */
|
/* Added by Albert 2009/02/18 */
|
||||||
/* Restore the PMK information to securitypriv structure for the following connection. */
|
/* Restore the PMK information to securitypriv structure for the following connection. */
|
||||||
@ -207,7 +207,7 @@ void rtw_report_sec_ie(_adapter *adapter, u8 authmode, u8 *sec_ie)
|
|||||||
|
|
||||||
p += sprintf(p, ")");
|
p += sprintf(p, ")");
|
||||||
|
|
||||||
_rtw_memset(&wrqu, 0, sizeof(wrqu));
|
memset(&wrqu, 0, sizeof(wrqu));
|
||||||
|
|
||||||
wrqu.data.length = p - buff;
|
wrqu.data.length = p - buff;
|
||||||
|
|
||||||
|
@ -1009,7 +1009,7 @@ uint loadparam(_adapter *padapter)
|
|||||||
) {
|
) {
|
||||||
if (rtw_country_code != rtw_country_unspecified)
|
if (rtw_country_code != rtw_country_unspecified)
|
||||||
RTW_ERR("%s discard rtw_country_code not in alpha2\n", __func__);
|
RTW_ERR("%s discard rtw_country_code not in alpha2\n", __func__);
|
||||||
_rtw_memset(registry_par->alpha2, 0xFF, 2);
|
memset(registry_par->alpha2, 0xFF, 2);
|
||||||
} else
|
} else
|
||||||
_rtw_memcpy(registry_par->alpha2, rtw_country_code, 2);
|
_rtw_memcpy(registry_par->alpha2, rtw_country_code, 2);
|
||||||
|
|
||||||
@ -2129,7 +2129,7 @@ struct dvobj_priv *devobj_init(void)
|
|||||||
#endif
|
#endif
|
||||||
#ifdef CONFIG_RTW_CUSTOMER_STR
|
#ifdef CONFIG_RTW_CUSTOMER_STR
|
||||||
_rtw_mutex_init(&pdvobj->customer_str_mutex);
|
_rtw_mutex_init(&pdvobj->customer_str_mutex);
|
||||||
_rtw_memset(pdvobj->customer_str, 0xFF, RTW_CUSTOMER_STR_LEN);
|
memset(pdvobj->customer_str, 0xFF, RTW_CUSTOMER_STR_LEN);
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
pdvobj->processing_dev_remove = _FALSE;
|
pdvobj->processing_dev_remove = _FALSE;
|
||||||
@ -2397,7 +2397,7 @@ u8 rtw_init_drv_sw(_adapter *padapter)
|
|||||||
_rtw_spinlock_init(&padapter->security_key_mutex);
|
_rtw_spinlock_init(&padapter->security_key_mutex);
|
||||||
|
|
||||||
/* We don't need to memset padapter->XXX to zero, because adapter is allocated by rtw_zvmalloc(). */
|
/* We don't need to memset padapter->XXX to zero, because adapter is allocated by rtw_zvmalloc(). */
|
||||||
/* _rtw_memset((unsigned char *)&padapter->securitypriv, 0, sizeof (struct security_priv)); */
|
/* memset((unsigned char *)&padapter->securitypriv, 0, sizeof (struct security_priv)); */
|
||||||
|
|
||||||
if (_rtw_init_sta_priv(&padapter->stapriv) == _FAIL) {
|
if (_rtw_init_sta_priv(&padapter->stapriv) == _FAIL) {
|
||||||
RTW_INFO("Can't _rtw_init_sta_priv\n");
|
RTW_INFO("Can't _rtw_init_sta_priv\n");
|
||||||
@ -2424,7 +2424,7 @@ u8 rtw_init_drv_sw(_adapter *padapter)
|
|||||||
|
|
||||||
rtw_init_pwrctrl_priv(padapter);
|
rtw_init_pwrctrl_priv(padapter);
|
||||||
|
|
||||||
/* _rtw_memset((u8 *)&padapter->qospriv, 0, sizeof (struct qos_priv)); */ /* move to mlme_priv */
|
/* memset((u8 *)&padapter->qospriv, 0, sizeof (struct qos_priv)); */ /* move to mlme_priv */
|
||||||
|
|
||||||
#ifdef CONFIG_MP_INCLUDED
|
#ifdef CONFIG_MP_INCLUDED
|
||||||
if (init_mp_priv(padapter) == _FAIL)
|
if (init_mp_priv(padapter) == _FAIL)
|
||||||
@ -2997,7 +2997,7 @@ static int rtw_inetaddr_notifier_call(struct notifier_block *nb,
|
|||||||
ifa->ifa_label, pmlmeinfo->ip_addr);
|
ifa->ifa_label, pmlmeinfo->ip_addr);
|
||||||
break;
|
break;
|
||||||
case NETDEV_DOWN:
|
case NETDEV_DOWN:
|
||||||
_rtw_memset(pmlmeinfo->ip_addr, 0, RTW_IP_ADDR_LEN);
|
memset(pmlmeinfo->ip_addr, 0, RTW_IP_ADDR_LEN);
|
||||||
RTW_DBG("%s[%s]: down IP: %pI4\n", __func__,
|
RTW_DBG("%s[%s]: down IP: %pI4\n", __func__,
|
||||||
ifa->ifa_label, pmlmeinfo->ip_addr);
|
ifa->ifa_label, pmlmeinfo->ip_addr);
|
||||||
break;
|
break;
|
||||||
@ -3053,7 +3053,7 @@ static int rtw_inet6addr_notifier_call(struct notifier_block *nb,
|
|||||||
#ifdef CONFIG_WOWLAN
|
#ifdef CONFIG_WOWLAN
|
||||||
pwrctl->wowlan_ns_offload_en = _FALSE;
|
pwrctl->wowlan_ns_offload_en = _FALSE;
|
||||||
#endif
|
#endif
|
||||||
_rtw_memset(pmlmeinfo->ip6_addr, 0, RTW_IPv6_ADDR_LEN);
|
memset(pmlmeinfo->ip6_addr, 0, RTW_IPv6_ADDR_LEN);
|
||||||
RTW_DBG("%s: down IPv6 addrs: %pI6\n", __func__,
|
RTW_DBG("%s: down IPv6 addrs: %pI6\n", __func__,
|
||||||
pmlmeinfo->ip6_addr);
|
pmlmeinfo->ip6_addr);
|
||||||
break;
|
break;
|
||||||
|
@ -583,7 +583,7 @@ void rtw_handle_tkip_mic_err(_adapter *padapter, struct sta_info *sta, u8 bgroup
|
|||||||
cfg80211_michael_mic_failure(padapter->pnetdev, sta->cmn.mac_addr, key_type, -1, NULL, GFP_ATOMIC);
|
cfg80211_michael_mic_failure(padapter->pnetdev, sta->cmn.mac_addr, key_type, -1, NULL, GFP_ATOMIC);
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
_rtw_memset(&ev, 0x00, sizeof(ev));
|
memset(&ev, 0x00, sizeof(ev));
|
||||||
if (bgroup)
|
if (bgroup)
|
||||||
ev.flags |= IW_MICFAILURE_GROUP;
|
ev.flags |= IW_MICFAILURE_GROUP;
|
||||||
else
|
else
|
||||||
@ -592,7 +592,7 @@ void rtw_handle_tkip_mic_err(_adapter *padapter, struct sta_info *sta, u8 bgroup
|
|||||||
ev.src_addr.sa_family = ARPHRD_ETHER;
|
ev.src_addr.sa_family = ARPHRD_ETHER;
|
||||||
_rtw_memcpy(ev.src_addr.sa_data, sta->cmn.mac_addr, ETH_ALEN);
|
_rtw_memcpy(ev.src_addr.sa_data, sta->cmn.mac_addr, ETH_ALEN);
|
||||||
|
|
||||||
_rtw_memset(&wrqu, 0x00, sizeof(wrqu));
|
memset(&wrqu, 0x00, sizeof(wrqu));
|
||||||
wrqu.data.length = sizeof(ev);
|
wrqu.data.length = sizeof(ev);
|
||||||
|
|
||||||
#ifndef CONFIG_IOCTL_CFG80211
|
#ifndef CONFIG_IOCTL_CFG80211
|
||||||
@ -632,7 +632,7 @@ void rtw_hostapd_mlme_rx(_adapter *padapter, union recv_frame *precv_frame)
|
|||||||
skb_reset_mac_header(skb);
|
skb_reset_mac_header(skb);
|
||||||
|
|
||||||
/* skb_pull(skb, 24); */
|
/* skb_pull(skb, 24); */
|
||||||
_rtw_memset(skb->cb, 0, sizeof(skb->cb));
|
memset(skb->cb, 0, sizeof(skb->cb));
|
||||||
|
|
||||||
rtw_netif_rx(pmgnt_netdev, skb);
|
rtw_netif_rx(pmgnt_netdev, skb);
|
||||||
|
|
||||||
|
@ -1354,7 +1354,7 @@ void rtw_cfgvendor_rssi_monitor_evt(_adapter *padapter) {
|
|||||||
goto exit;
|
goto exit;
|
||||||
}
|
}
|
||||||
|
|
||||||
_rtw_memset(&data, 0, sizeof(data));
|
memset(&data, 0, sizeof(data));
|
||||||
|
|
||||||
data.version = RSSI_MONITOR_EVT_VERSION;
|
data.version = RSSI_MONITOR_EVT_VERSION;
|
||||||
data.cur_rssi = rssi;
|
data.cur_rssi = rssi;
|
||||||
|
@ -2477,7 +2477,7 @@ ssize_t proc_set_btinfo_evt(struct file *file, const char __user *buffer, size_t
|
|||||||
if (buffer && !copy_from_user(tmp, buffer, count)) {
|
if (buffer && !copy_from_user(tmp, buffer, count)) {
|
||||||
int num = 0;
|
int num = 0;
|
||||||
|
|
||||||
_rtw_memset(btinfo, 0, 8);
|
memset(btinfo, 0, 8);
|
||||||
|
|
||||||
num = sscanf(tmp, "%hhx %hhx %hhx %hhx %hhx %hhx %hhx %hhx"
|
num = sscanf(tmp, "%hhx %hhx %hhx %hhx %hhx %hhx %hhx %hhx"
|
||||||
, &btinfo[0], &btinfo[1], &btinfo[2], &btinfo[3]
|
, &btinfo[0], &btinfo[1], &btinfo[2], &btinfo[3]
|
||||||
@ -4298,7 +4298,7 @@ ssize_t proc_set_phydm_cmd(struct file *file, const char __user *buffer, size_t
|
|||||||
if (NULL == phydm_msg)
|
if (NULL == phydm_msg)
|
||||||
return -ENOMEM;
|
return -ENOMEM;
|
||||||
} else
|
} else
|
||||||
_rtw_memset(phydm_msg, 0, PHYDM_MSG_LEN);
|
memset(phydm_msg, 0, PHYDM_MSG_LEN);
|
||||||
|
|
||||||
phydm_cmd(phydm, tmp, count, 1, phydm_msg, PHYDM_MSG_LEN);
|
phydm_cmd(phydm, tmp, count, 1, phydm_msg, PHYDM_MSG_LEN);
|
||||||
|
|
||||||
|
@ -95,7 +95,7 @@ int usbctrl_vendorreq(struct intf_hdl *pintfhdl, u8 request, u16 value, u16 inde
|
|||||||
}
|
}
|
||||||
|
|
||||||
while (++vendorreq_times <= MAX_USBCTRL_VENDORREQ_TIMES) {
|
while (++vendorreq_times <= MAX_USBCTRL_VENDORREQ_TIMES) {
|
||||||
_rtw_memset(pIo_buf, 0, len);
|
memset(pIo_buf, 0, len);
|
||||||
|
|
||||||
if (requesttype == 0x01) {
|
if (requesttype == 0x01) {
|
||||||
pipe = usb_rcvctrlpipe(udev, 0);/* read_in */
|
pipe = usb_rcvctrlpipe(udev, 0);/* read_in */
|
||||||
|
@ -940,27 +940,6 @@ int _rtw_memcmp(const void *dst, const void *src, u32 sz)
|
|||||||
|
|
||||||
|
|
||||||
|
|
||||||
}
|
|
||||||
|
|
||||||
void _rtw_memset(void *pbuf, int c, u32 sz)
|
|
||||||
{
|
|
||||||
|
|
||||||
#if defined(PLATFORM_LINUX) || defined (PLATFORM_FREEBSD)
|
|
||||||
|
|
||||||
memset(pbuf, c, sz);
|
|
||||||
|
|
||||||
#endif
|
|
||||||
|
|
||||||
#ifdef PLATFORM_WINDOWS
|
|
||||||
#if 0
|
|
||||||
NdisZeroMemory(pbuf, sz);
|
|
||||||
if (c != 0)
|
|
||||||
memset(pbuf, c, sz);
|
|
||||||
#else
|
|
||||||
NdisFillMemory(pbuf, sz, c);
|
|
||||||
#endif
|
|
||||||
#endif
|
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
#ifdef PLATFORM_FREEBSD
|
#ifdef PLATFORM_FREEBSD
|
||||||
@ -2560,7 +2539,7 @@ int map_readN(const struct map_t *map, u16 offset, u16 len, u8 *buf)
|
|||||||
goto exit;
|
goto exit;
|
||||||
}
|
}
|
||||||
|
|
||||||
_rtw_memset(buf, map->init_value, len);
|
memset(buf, map->init_value, len);
|
||||||
|
|
||||||
for (i = 0; i < map->seg_num; i++) {
|
for (i = 0; i < map->seg_num; i++) {
|
||||||
u8 *c_dst, *c_src;
|
u8 *c_dst, *c_src;
|
||||||
|
Loading…
Reference in New Issue
Block a user