mirror of
https://github.com/chinawrj/rtl8812au
synced 2024-11-27 23:54:24 +00:00
Fix wrong type in rtw_dump_cur_efuse
This commit is contained in:
parent
a0bb0e1d42
commit
6b029c4b52
@ -12763,13 +12763,12 @@ exit:
|
|||||||
|
|
||||||
void rtw_dump_cur_efuse(PADAPTER padapter)
|
void rtw_dump_cur_efuse(PADAPTER padapter)
|
||||||
{
|
{
|
||||||
int i =0;
|
u16 mapsize =0;
|
||||||
int mapsize =0;
|
|
||||||
HAL_DATA_TYPE *hal_data = GET_HAL_DATA(padapter);
|
HAL_DATA_TYPE *hal_data = GET_HAL_DATA(padapter);
|
||||||
|
|
||||||
EFUSE_GetEfuseDefinition(padapter, EFUSE_WIFI, TYPE_EFUSE_MAP_LEN , (void *)&mapsize, _FALSE);
|
EFUSE_GetEfuseDefinition(padapter, EFUSE_WIFI, TYPE_EFUSE_MAP_LEN , (void *)&mapsize, _FALSE);
|
||||||
|
|
||||||
if (mapsize <= 0 || mapsize > EEPROM_MAX_SIZE) {
|
if (mapsize > EEPROM_MAX_SIZE) {
|
||||||
RTW_ERR("wrong map size %d\n", mapsize);
|
RTW_ERR("wrong map size %d\n", mapsize);
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
@ -12790,14 +12789,14 @@ u32 Hal_readPGDataFromConfigFile(PADAPTER padapter)
|
|||||||
{
|
{
|
||||||
HAL_DATA_TYPE *hal_data = GET_HAL_DATA(padapter);
|
HAL_DATA_TYPE *hal_data = GET_HAL_DATA(padapter);
|
||||||
u32 ret = _FALSE;
|
u32 ret = _FALSE;
|
||||||
u32 maplen = 0;
|
u16 maplen = 0;
|
||||||
|
|
||||||
EFUSE_GetEfuseDefinition(padapter, EFUSE_WIFI, TYPE_EFUSE_MAP_LEN , (void *)&maplen, _FALSE);
|
EFUSE_GetEfuseDefinition(padapter, EFUSE_WIFI, TYPE_EFUSE_MAP_LEN , (void *)&maplen, _FALSE);
|
||||||
|
|
||||||
if (maplen < 256 || maplen > EEPROM_MAX_SIZE) {
|
if (maplen < 256 || maplen > EEPROM_MAX_SIZE) {
|
||||||
RTW_ERR("eFuse length error :%d\n", maplen);
|
RTW_ERR("eFuse length error :%d\n", maplen);
|
||||||
return _FALSE;
|
return _FALSE;
|
||||||
}
|
}
|
||||||
|
|
||||||
ret = rtw_read_efuse_from_file(EFUSE_MAP_PATH, hal_data->efuse_eeprom_data, maplen);
|
ret = rtw_read_efuse_from_file(EFUSE_MAP_PATH, hal_data->efuse_eeprom_data, maplen);
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user