
Originally Posted by
chili555
It will be very helpful for you to post the exact wording of the errors.
I think I found a bug, but I do not know how to fix it.
If I change value in the file HAS_ANTENNA_DIVERSITY_SUPPORT=n on HAS_ANTENNA_DIVERSITY_SUPPORT=y errors appear. but if I leave the value HAS_ANTENNA_DIVERSITY_SUPPORT=n no errors.
CC [M] /home/hp650/rt/os/linux/../../chips/rtmp_chip.o
/home/hp650/rt/os/linux/../../chips/rtmp_chip.c: In function ‘HWAntennaDiversityEnable’:
/home/hp650/rt/os/linux/../../chips/rtmp_chip.c:2010:2: error: ‘regs’ undeclared (first use in this function)
/home/hp650/rt/os/linux/../../chips/rtmp_chip.c:2010:2: note: each undeclared identifier is reported only once for each function it appears in
make[2]: *** [/home/hp650/rt/os/linux/../../chips/rtmp_chip.o] Error 1
make[1]: *** [_module_/home/hp650/rt/os/linux] Error 2
make[1]: Leaving directory `/usr/src/linux-headers-3.2.0-29-generic-pae'
make: *** [LINUX] Error 2
I found a file with an error.
This is the part where the error occurs
Code:
VOID HWAntennaDiversityEnable(
IN PRTMP_ADAPTER pAd)
{
UINT8 BBPValue = 0, RFValue = 0;
/* RF_R29 bit[7:6] = b'11 */
RT30xxReadRFRegister(pAd, RF_R29, &RFValue);
RFValue |= 0xC0; /* rssi_gain */
RT30xxWriteRFRegister(pAd, RF_R29, RFValue);
/* BBP_R47 bit7=1 */
RTMP_BBP_IO_READ8_BY_REG_ID(pAd, BBP_R47, &BBPValue);
BBPValue |= 0x80; /* ADC6 on */
RTMP_BBP_IO_WRITE8_BY_REG_ID(pAd, BBP_R47, BBPValue);
RTMP_BBP_IO_WRITE8_BY_REG_ID(pAd, BBP_R150, regs[0]); /* ENABLE_ANTSW_OFDM and RSSI_ANTSWT */
RTMP_BBP_IO_WRITE8_BY_REG_ID(pAd, BBP_R151, regs[1]); /* ENABLE_ANTSW_CCK and RSSI_LNASWTH_HM */
RTMP_BBP_IO_WRITE8_BY_REG_ID(pAd, BBP_R152, regs[2]); /* RSSI_LNASWTH_HL */
RTMP_BBP_IO_WRITE8_BY_REG_ID(pAd, BBP_R153, regs[3]); /* RSSI_ANALOG_LOWTH */
RTMP_BBP_IO_WRITE8_BY_REG_ID(pAd, BBP_R154, regs[4]); /* ANTSW_PWROFFSET, ANTSW_DELAYOFFSET and auto-control BBP R152[7] (RX_DEFAULT_ANT) */
RTMP_BBP_IO_WRITE8_BY_REG_ID(pAd, BBP_R155, regs[5]); /* RSSI_OFFSET */
RTMP_BBP_IO_WRITE8_BY_REG_ID(pAd, BBP_R253, regs[6]); /* MEASURE_RSSI_OFFSET */
DBGPRINT(RT_DEBUG_OFF, ("HwAnDiv --> Enable!\n"));
}
/home/hp650/rt/os/linux/../../chips/rtmp_chip.c: In function ‘HWAntennaDiversityEnable’:
/home/hp650/rt/os/linux/../../chips/rtmp_chip.c:2010:2: error: ‘regs’ undeclared (first use in this function)
Bookmarks