Code:
root@kali:~/Downloads/mt7610u_wifi_sta_v3002_dpo_20130916-master# make
make -C tools
make[1]: Entering directory '/root/Downloads/mt7610u_wifi_sta_v3002_dpo_20130916-master/tools'
gcc -g bin2h.c -o bin2h
make[1]: Leaving directory '/root/Downloads/mt7610u_wifi_sta_v3002_dpo_20130916-master/tools'
/root/Downloads/mt7610u_wifi_sta_v3002_dpo_20130916-master/tools/bin2h
chipset = mt7650u
chipset = mt7630u
chipset = mt7610u
cp -f os/linux/Makefile.6 /root/Downloads/mt7610u_wifi_sta_v3002_dpo_20130916-master/os/linux/Makefile
make -C /lib/modules/4.14.0-kali3-amd64/build SUBDIRS=/root/Downloads/mt7610u_wifi_sta_v3002_dpo_20130916-master/os/linux modules
make[1]: Entering directory '/usr/src/linux-headers-4.14.0-kali3-amd64'
CC [M] /root/Downloads/mt7610u_wifi_sta_v3002_dpo_20130916-master/os/linux/../../os/linux/rt_profile.o
/root/Downloads/mt7610u_wifi_sta_v3002_dpo_20130916-master/os/linux/../../os/linux/rt_profile.c: In function ‘announce_802_3_packet’:
/root/Downloads/mt7610u_wifi_sta_v3002_dpo_20130916-master/os/linux/../../os/linux/rt_profile.c:334:16: warning: unused variable ‘pAd’ [-Wunused-variable]
RTMP_ADAPTER *pAd = (RTMP_ADAPTER *)pAdSrc;
^~~
In file included from /root/Downloads/mt7610u_wifi_sta_v3002_dpo_20130916-master/include/rtmp_os.h:44:0,
from /root/Downloads/mt7610u_wifi_sta_v3002_dpo_20130916-master/include/rtmp_comm.h:75,
from /root/Downloads/mt7610u_wifi_sta_v3002_dpo_20130916-master/include/rt_config.h:33,
from /root/Downloads/mt7610u_wifi_sta_v3002_dpo_20130916-master/os/linux/../../os/linux/rt_profile.c:28:
/root/Downloads/mt7610u_wifi_sta_v3002_dpo_20130916-master/os/linux/../../os/linux/rt_profile.c: In function ‘STA_MonPktSend’:
/root/Downloads/mt7610u_wifi_sta_v3002_dpo_20130916-master/os/linux/../../os/linux/rt_profile.c:443:35: warning: format ‘%d’ expects argument of type ‘int’, but argument 3 has type ‘long unsigned int’ [-Wformat=]
DBGPRINT(RT_DEBUG_ERROR, ("%s : Size is too large! (%d)\n", __FUNCTION__, pRxBlk->DataSize + sizeof(wlan_ng_prism2_header)));
^ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/root/Downloads/mt7610u_wifi_sta_v3002_dpo_20130916-master/include/os/rt_linux.h:660:16: note: in definition of macro ‘DBGPRINT_RAW’
printk Fmt; \
^~~
/root/Downloads/mt7610u_wifi_sta_v3002_dpo_20130916-master/os/linux/../../os/linux/rt_profile.c:443:9: note: in expansion of macro ‘DBGPRINT’
DBGPRINT(RT_DEBUG_ERROR, ("%s : Size is too large! (%d)\n", __FUNCTION__, pRxBlk->DataSize + sizeof(wlan_ng_prism2_header)));
^~~~~~~~
CC [M] /root/Downloads/mt7610u_wifi_sta_v3002_dpo_20130916-master/os/linux/../../sta/assoc.o
CC [M] /root/Downloads/mt7610u_wifi_sta_v3002_dpo_20130916-master/os/linux/../../sta/auth.o
CC [M] /root/Downloads/mt7610u_wifi_sta_v3002_dpo_20130916-master/os/linux/../../sta/auth_rsp.o
CC [M] /root/Downloads/mt7610u_wifi_sta_v3002_dpo_20130916-master/os/linux/../../sta/sync.o
CC [M] /root/Downloads/mt7610u_wifi_sta_v3002_dpo_20130916-master/os/linux/../../sta/sanity.o
CC [M] /root/Downloads/mt7610u_wifi_sta_v3002_dpo_20130916-master/os/linux/../../sta/rtmp_data.o
CC [M] /root/Downloads/mt7610u_wifi_sta_v3002_dpo_20130916-master/os/linux/../../sta/connect.o
CC [M] /root/Downloads/mt7610u_wifi_sta_v3002_dpo_20130916-master/os/linux/../../sta/wpa.o
CC [M] /root/Downloads/mt7610u_wifi_sta_v3002_dpo_20130916-master/os/linux/../../sta/sta_cfg.o
/root/Downloads/mt7610u_wifi_sta_v3002_dpo_20130916-master/os/linux/../../sta/sta_cfg.c: In function ‘Set_EncrypType_Proc’:
/root/Downloads/mt7610u_wifi_sta_v3002_dpo_20130916-master/os/linux/../../sta/sta_cfg.c:789:5: warning: this ‘else’ clause does not guard... [-Wmisleading-indentation]
else
^~~~
/root/Downloads/mt7610u_wifi_sta_v3002_dpo_20130916-master/os/linux/../../sta/sta_cfg.c:792:2: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the ‘else’
if (pAd->StaCfg.BssType == BSS_ADHOC)
^~
/root/Downloads/mt7610u_wifi_sta_v3002_dpo_20130916-master/os/linux/../../sta/sta_cfg.c: In function ‘RtmpIoctl_rt_ioctl_siwfreq’:
/root/Downloads/mt7610u_wifi_sta_v3002_dpo_20130916-master/os/linux/../../sta/sta_cfg.c:5647:5: warning: this ‘else’ clause does not guard... [-Wmisleading-indentation]
else
^~~~
/root/Downloads/mt7610u_wifi_sta_v3002_dpo_20130916-master/os/linux/../../sta/sta_cfg.c:5650:2: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the ‘else’
return NDIS_STATUS_SUCCESS;
^~~~~~
/root/Downloads/mt7610u_wifi_sta_v3002_dpo_20130916-master/os/linux/../../sta/sta_cfg.c: In function ‘RtmpIoctl_rt_ioctl_giwrate’:
/root/Downloads/mt7610u_wifi_sta_v3002_dpo_20130916-master/os/linux/../../sta/sta_cfg.c:7518:5: warning: this ‘if’ clause does not guard... [-Wmisleading-indentation]
if (rate_index >= rate_count)
^~
/root/Downloads/mt7610u_wifi_sta_v3002_dpo_20130916-master/os/linux/../../sta/sta_cfg.c:7521:2: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the ‘if’
*(ULONG *)pData = ralinkrate[rate_index] * 500000;
^
CC [M] /root/Downloads/mt7610u_wifi_sta_v3002_dpo_20130916-master/os/linux/../../mgmt/mgmt_vht.o
CC [M] /root/Downloads/mt7610u_wifi_sta_v3002_dpo_20130916-master/os/linux/../../common/vht.o
CC [M] /root/Downloads/mt7610u_wifi_sta_v3002_dpo_20130916-master/os/linux/../../common/crypt_md5.o
CC [M] /root/Downloads/mt7610u_wifi_sta_v3002_dpo_20130916-master/os/linux/../../common/crypt_sha2.o
CC [M] /root/Downloads/mt7610u_wifi_sta_v3002_dpo_20130916-master/os/linux/../../common/crypt_hmac.o
CC [M] /root/Downloads/mt7610u_wifi_sta_v3002_dpo_20130916-master/os/linux/../../common/crypt_aes.o
In file included from /root/Downloads/mt7610u_wifi_sta_v3002_dpo_20130916-master/include/rtmp_os.h:44:0,
from /root/Downloads/mt7610u_wifi_sta_v3002_dpo_20130916-master/include/rtmp_comm.h:75,
from /root/Downloads/mt7610u_wifi_sta_v3002_dpo_20130916-master/include/rt_config.h:33,
from /root/Downloads/mt7610u_wifi_sta_v3002_dpo_20130916-master/include/crypt_aes.h:31,
from /root/Downloads/mt7610u_wifi_sta_v3002_dpo_20130916-master/os/linux/../../common/crypt_aes.c:28:
/root/Downloads/mt7610u_wifi_sta_v3002_dpo_20130916-master/os/linux/../../common/crypt_aes.c: In function ‘AES_Key_Wrap’:
/root/Downloads/mt7610u_wifi_sta_v3002_dpo_20130916-master/os/linux/../../common/crypt_aes.c:1459:32: warning: format ‘%d’ expects argument of type ‘int’, but argument 2 has type ‘long unsigned int’ [-Wformat=]
DBGPRINT(RT_DEBUG_ERROR, ("AES_Key_Wrap: allocate %d bytes memory failure.\n", sizeof(UINT8)*PlainTextLength));
^ ~~~~~~~~~~~~~~~
/root/Downloads/mt7610u_wifi_sta_v3002_dpo_20130916-master/include/os/rt_linux.h:660:16: note: in definition of macro ‘DBGPRINT_RAW’
printk Fmt; \
^~~
/root/Downloads/mt7610u_wifi_sta_v3002_dpo_20130916-master/os/linux/../../common/crypt_aes.c:1459:6: note: in expansion of macro ‘DBGPRINT’
DBGPRINT(RT_DEBUG_ERROR, ("AES_Key_Wrap: allocate %d bytes memory failure.\n", sizeof(UINT8)*PlainTextLength));
^~~~~~~~
/root/Downloads/mt7610u_wifi_sta_v3002_dpo_20130916-master/os/linux/../../common/crypt_aes.c: In function ‘AES_Key_Unwrap’:
/root/Downloads/mt7610u_wifi_sta_v3002_dpo_20130916-master/os/linux/../../common/crypt_aes.c:1554:32: warning: format ‘%d’ expects argument of type ‘int’, but argument 2 has type ‘long unsigned int’ [-Wformat=]
DBGPRINT(RT_DEBUG_ERROR, ("AES_Key_Unwrap: allocate %d bytes memory failure.\n", sizeof(UINT8)*PlainLength));
^ ~~~~~~~~~~~~~~~
/root/Downloads/mt7610u_wifi_sta_v3002_dpo_20130916-master/include/os/rt_linux.h:660:16: note: in definition of macro ‘DBGPRINT_RAW’
printk Fmt; \
^~~
/root/Downloads/mt7610u_wifi_sta_v3002_dpo_20130916-master/os/linux/../../common/crypt_aes.c:1554:6: note: in expansion of macro ‘DBGPRINT’
DBGPRINT(RT_DEBUG_ERROR, ("AES_Key_Unwrap: allocate %d bytes memory failure.\n", sizeof(UINT8)*PlainLength));
^~~~~~~~
CC [M] /root/Downloads/mt7610u_wifi_sta_v3002_dpo_20130916-master/os/linux/../../common/crypt_arc4.o
CC [M] /root/Downloads/mt7610u_wifi_sta_v3002_dpo_20130916-master/os/linux/../../common/mlme.o
In file included from /root/Downloads/mt7610u_wifi_sta_v3002_dpo_20130916-master/include/rtmp_os.h:44:0,
from /root/Downloads/mt7610u_wifi_sta_v3002_dpo_20130916-master/include/rtmp_comm.h:75,
from /root/Downloads/mt7610u_wifi_sta_v3002_dpo_20130916-master/include/rt_config.h:33,
from /root/Downloads/mt7610u_wifi_sta_v3002_dpo_20130916-master/os/linux/../../common/mlme.c:28:
/root/Downloads/mt7610u_wifi_sta_v3002_dpo_20130916-master/os/linux/../../common/mlme.c: In function ‘MlmeResetRalinkCounters’:
/root/Downloads/mt7610u_wifi_sta_v3002_dpo_20130916-master/os/linux/../../common/mlme.c:538:7: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast]
(UINT32)&pAd->RalinkCounters.OneSecEnd -
^
/root/Downloads/mt7610u_wifi_sta_v3002_dpo_20130916-master/include/os/rt_linux.h:471:76: note: in definition of macro ‘NdisZeroMemory’
fine NdisZeroMemory(Destination, Length) memset(Destination, 0, Length)
^~~~~~
/root/Downloads/mt7610u_wifi_sta_v3002_dpo_20130916-master/os/linux/../../common/mlme.c:539:7: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast]
(UINT32)&pAd->RalinkCounters.OneSecStart);
^
/root/Downloads/mt7610u_wifi_sta_v3002_dpo_20130916-master/include/os/rt_linux.h:471:76: note: in definition of macro ‘NdisZeroMemory’
fine NdisZeroMemory(Destination, Length) memset(Destination, 0, Length)
^~~~~~
CC [M] /root/Downloads/mt7610u_wifi_sta_v3002_dpo_20130916-master/os/linux/../../common/cmm_wep.o
CC [M] /root/Downloads/mt7610u_wifi_sta_v3002_dpo_20130916-master/os/linux/../../common/action.o
CC [M] /root/Downloads/mt7610u_wifi_sta_v3002_dpo_20130916-master/os/linux/../../common/cmm_data.o
CC [M] /root/Downloads/mt7610u_wifi_sta_v3002_dpo_20130916-master/os/linux/../../common/rtmp_init.o
In file included from /root/Downloads/mt7610u_wifi_sta_v3002_dpo_20130916-master/include/rtmp_os.h:44:0,
from /root/Downloads/mt7610u_wifi_sta_v3002_dpo_20130916-master/include/rtmp_comm.h:75,
from /root/Downloads/mt7610u_wifi_sta_v3002_dpo_20130916-master/include/rt_config.h:33,
from /root/Downloads/mt7610u_wifi_sta_v3002_dpo_20130916-master/os/linux/../../common/rtmp_init.c:28:
/root/Downloads/mt7610u_wifi_sta_v3002_dpo_20130916-master/os/linux/../../common/rtmp_init.c: In function ‘NICReadEEPROMParameters’:
/root/Downloads/mt7610u_wifi_sta_v3002_dpo_20130916-master/os/linux/../../common/rtmp_init.c:716:28: warning: format ‘%d’ expects argument of type ‘int’, but argument 2 has type ‘UCHAR * {aka unsigned char *}’ [-Wformat=]
DBGPRINT(RT_DEBUG_TRACE,("E2PROM: A Tssi[-4 .. +4] = %d %d %d %d - %d -%d %d %d %d, step=%d, tuning=%d\n",
^
pAd->TssiMinusBoundaryA[4], pAd->TssiMinusBoundaryA[3], pAd->TssiMinusBoundaryA[2], pAd->TssiMinusBoundaryA[1],
~
/root/Downloads/mt7610u_wifi_sta_v3002_dpo_20130916-master/include/os/rt_linux.h:660:16: note: in definition of macro ‘DBGPRINT_RAW’
printk Fmt; \
^~~
/root/Downloads/mt7610u_wifi_sta_v3002_dpo_20130916-master/os/linux/../../common/rtmp_init.c:716:3: note: in expansion of macro ‘DBGPRINT’
DBGPRINT(RT_DEBUG_TRACE,("E2PROM: A Tssi[-4 .. +4] = %d %d %d %d - %d -%d %d %d %d, step=%d, tuning=%d\n",
^~~~~~~~
/root/Downloads/mt7610u_wifi_sta_v3002_dpo_20130916-master/os/linux/../../common/rtmp_init.c:716:28: warning: format ‘%d’ expects argument of type ‘int’, but argument 3 has type ‘UCHAR * {aka unsigned char *}’ [-Wformat=]
DBGPRINT(RT_DEBUG_TRACE,("E2PROM: A Tssi[-4 .. +4] = %d %d %d %d - %d -%d %d %d %d, step=%d, tuning=%d\n",
^
pAd->TssiMinusBoundaryA[4], pAd->TssiMinusBoundaryA[3], pAd->TssiMinusBoundaryA[2], pAd->TssiMinusBoundaryA[1],
~
/root/Downloads/mt7610u_wifi_sta_v3002_dpo_20130916-master/include/os/rt_linux.h:660:16: note: in definition of macro ‘DBGPRINT_RAW’
printk Fmt; \
^~~
/root/Downloads/mt7610u_wifi_sta_v3002_dpo_20130916-master/os/linux/../../common/rtmp_init.c:716:3: note: in expansion of macro ‘DBGPRINT’
DBGPRINT(RT_DEBUG_TRACE,("E2PROM: A Tssi[-4 .. +4] = %d %d %d %d - %d -%d %d %d %d, step=%d, tuning=%d\n",
^~~~~~~~
/root/Downloads/mt7610u_wifi_sta_v3002_dpo_20130916-master/os/linux/../../common/rtmp_init.c:716:28: warning: format ‘%d’ expects argument of type ‘int’, but argument 4 has type ‘UCHAR * {aka unsigned char *}’ [-Wformat=]
DBGPRINT(RT_DEBUG_TRACE,("E2PROM: A Tssi[-4 .. +4] = %d %d %d %d - %d -%d %d %d %d, step=%d, tuning=%d\n",
^
pAd->TssiMinusBoundaryA[4], pAd->TssiMinusBoundaryA[3], pAd->TssiMinusBoundaryA[2], pAd->TssiMinusBoundaryA[1],
~
/root/Downloads/mt7610u_wifi_sta_v3002_dpo_20130916-master/include/os/rt_linux.h:660:16: note: in definition of macro ‘DBGPRINT_RAW’
printk Fmt; \
^~~
/root/Downloads/mt7610u_wifi_sta_v3002_dpo_20130916-master/os/linux/../../common/rtmp_init.c:716:3: note: in expansion of macro ‘DBGPRINT’
DBGPRINT(RT_DEBUG_TRACE,("E2PROM: A Tssi[-4 .. +4] = %d %d %d %d - %d -%d %d %d %d, step=%d, tuning=%d\n",
^~~~~~~~
/root/Downloads/mt7610u_wifi_sta_v3002_dpo_20130916-master/os/linux/../../common/rtmp_init.c:716:28: warning: format ‘%d’ expects argument of type ‘int’, but argument 5 has type ‘UCHAR * {aka unsigned char *}’ [-Wformat=]
DBGPRINT(RT_DEBUG_TRACE,("E2PROM: A Tssi[-4 .. +4] = %d %d %d %d - %d -%d %d %d %d, step=%d, tuning=%d\n",
^
pAd->TssiMinusBoundaryA[4], pAd->TssiMinusBoundaryA[3], pAd->TssiMinusBoundaryA[2], pAd->TssiMinusBoundaryA[1],
~
/root/Downloads/mt7610u_wifi_sta_v3002_dpo_20130916-master/include/os/rt_linux.h:660:16: note: in definition of macro ‘DBGPRINT_RAW’
printk Fmt; \
^~~
/root/Downloads/mt7610u_wifi_sta_v3002_dpo_20130916-master/os/linux/../../common/rtmp_init.c:716:3: note: in expansion of macro ‘DBGPRINT’
DBGPRINT(RT_DEBUG_TRACE,("E2PROM: A Tssi[-4 .. +4] = %d %d %d %d - %d -%d %d %d %d, step=%d, tuning=%d\n",
^~~~~~~~
/root/Downloads/mt7610u_wifi_sta_v3002_dpo_20130916-master/os/linux/../../common/rtmp_init.c:716:28: warning: format ‘%d’ expects argument of type ‘int’, but argument 7 has type ‘UCHAR * {aka unsigned char *}’ [-Wformat=]
DBGPRINT(RT_DEBUG_TRACE,("E2PROM: A Tssi[-4 .. +4] = %d %d %d %d - %d -%d %d %d %d, step=%d, tuning=%d\n",
^
/root/Downloads/mt7610u_wifi_sta_v3002_dpo_20130916-master/os/linux/../../common/rtmp_init.c:719:4:
pAd->TssiPlusBoundaryA[1], pAd->TssiPlusBoundaryA[2], pAd->TssiPlusBoundaryA[3], pAd->TssiPlusBoundaryA[4],
~
/root/Downloads/mt7610u_wifi_sta_v3002_dpo_20130916-master/include/os/rt_linux.h:660:16: note: in definition of macro ‘DBGPRINT_RAW’
printk Fmt; \
^~~
/root/Downloads/mt7610u_wifi_sta_v3002_dpo_20130916-master/os/linux/../../common/rtmp_init.c:716:3: note: in expansion of macro ‘DBGPRINT’
DBGPRINT(RT_DEBUG_TRACE,("E2PROM: A Tssi[-4 .. +4] = %d %d %d %d - %d -%d %d %d %d, step=%d, tuning=%d\n",
^~~~~~~~
/root/Downloads/mt7610u_wifi_sta_v3002_dpo_20130916-master/os/linux/../../common/rtmp_init.c:716:28: warning: format ‘%d’ expects argument of type ‘int’, but argument 8 has type ‘UCHAR * {aka unsigned char *}’ [-Wformat=]
DBGPRINT(RT_DEBUG_TRACE,("E2PROM: A Tssi[-4 .. +4] = %d %d %d %d - %d -%d %d %d %d, step=%d, tuning=%d\n",
^
/root/Downloads/mt7610u_wifi_sta_v3002_dpo_20130916-master/os/linux/../../common/rtmp_init.c:719:31:
pAd->TssiPlusBoundaryA[1], pAd->TssiPlusBoundaryA[2], pAd->TssiPlusBoundaryA[3], pAd->TssiPlusBoundaryA[4],
~
/root/Downloads/mt7610u_wifi_sta_v3002_dpo_20130916-master/include/os/rt_linux.h:660:16: note: in definition of macro ‘DBGPRINT_RAW’
printk Fmt; \
^~~
/root/Downloads/mt7610u_wifi_sta_v3002_dpo_20130916-master/os/linux/../../common/rtmp_init.c:716:3: note: in expansion of macro ‘DBGPRINT’
DBGPRINT(RT_DEBUG_TRACE,("E2PROM: A Tssi[-4 .. +4] = %d %d %d %d - %d -%d %d %d %d, step=%d, tuning=%d\n",
^~~~~~~~
/root/Downloads/mt7610u_wifi_sta_v3002_dpo_20130916-master/os/linux/../../common/rtmp_init.c:716:28: warning: format ‘%d’ expects argument of type ‘int’, but argument 9 has type ‘UCHAR * {aka unsigned char *}’ [-Wformat=]
DBGPRINT(RT_DEBUG_TRACE,("E2PROM: A Tssi[-4 .. +4] = %d %d %d %d - %d -%d %d %d %d, step=%d, tuning=%d\n",
^
/root/Downloads/mt7610u_wifi_sta_v3002_dpo_20130916-master/os/linux/../../common/rtmp_init.c:719:58:
pAd->TssiPlusBoundaryA[1], pAd->TssiPlusBoundaryA[2], pAd->TssiPlusBoundaryA[3], pAd->TssiPlusBoundaryA[4],
~
/root/Downloads/mt7610u_wifi_sta_v3002_dpo_20130916-master/include/os/rt_linux.h:660:16: note: in definition of macro ‘DBGPRINT_RAW’
printk Fmt; \
^~~
/root/Downloads/mt7610u_wifi_sta_v3002_dpo_20130916-master/os/linux/../../common/rtmp_init.c:716:3: note: in expansion of macro ‘DBGPRINT’
DBGPRINT(RT_DEBUG_TRACE,("E2PROM: A Tssi[-4 .. +4] = %d %d %d %d - %d -%d %d %d %d, step=%d, tuning=%d\n",
^~~~~~~~
/root/Downloads/mt7610u_wifi_sta_v3002_dpo_20130916-master/os/linux/../../common/rtmp_init.c:716:28: warning: format ‘%d’ expects argument of type ‘int’, but argument 10 has type ‘UCHAR * {aka unsigned char *}’ [-Wformat=]
DBGPRINT(RT_DEBUG_TRACE,("E2PROM: A Tssi[-4 .. +4] = %d %d %d %d - %d -%d %d %d %d, step=%d, tuning=%d\n",
^
/root/Downloads/mt7610u_wifi_sta_v3002_dpo_20130916-master/os/linux/../../common/rtmp_init.c:719:85:
pAd->TssiPlusBoundaryA[1], pAd->TssiPlusBoundaryA[2], pAd->TssiPlusBoundaryA[3], pAd->TssiPlusBoundaryA[4],
~
/root/Downloads/mt7610u_wifi_sta_v3002_dpo_20130916-master/include/os/rt_linux.h:660:16: note: in definition of macro ‘DBGPRINT_RAW’
printk Fmt; \
^~~
/root/Downloads/mt7610u_wifi_sta_v3002_dpo_20130916-master/os/linux/../../common/rtmp_init.c:716:3: note: in expansion of macro ‘DBGPRINT’
DBGPRINT(RT_DEBUG_TRACE,("E2PROM: A Tssi[-4 .. +4] = %d %d %d %d - %d -%d %d %d %d, step=%d, tuning=%d\n",
^~~~~~~~
/root/Downloads/mt7610u_wifi_sta_v3002_dpo_20130916-master/os/linux/../../common/rtmp_init.c: In function ‘NICInitAsicFromEEPROM’:
/root/Downloads/mt7610u_wifi_sta_v3002_dpo_20130916-master/os/linux/../../common/rtmp_init.c:1061:9: warning: unused variable ‘i’ [-Wunused-variable]
USHORT i;
^
/root/Downloads/mt7610u_wifi_sta_v3002_dpo_20130916-master/os/linux/../../common/rtmp_init.c: In function ‘NICInitializeAsic’:
/root/Downloads/mt7610u_wifi_sta_v3002_dpo_20130916-master/os/linux/../../common/rtmp_init.c:1684:1: warning: the frame size of 2056 bytes is larger than 2048 bytes [-Wframe-larger-than=]
}
^
In file included from /root/Downloads/mt7610u_wifi_sta_v3002_dpo_20130916-master/include/rtmp_os.h:44:0,
from /root/Downloads/mt7610u_wifi_sta_v3002_dpo_20130916-master/include/rtmp_comm.h:75,
from /root/Downloads/mt7610u_wifi_sta_v3002_dpo_20130916-master/include/rt_config.h:33,
from /root/Downloads/mt7610u_wifi_sta_v3002_dpo_20130916-master/os/linux/../../common/rtmp_init.c:28:
/root/Downloads/mt7610u_wifi_sta_v3002_dpo_20130916-master/os/linux/../../common/rtmp_init.c: In function ‘NICReadEEPROMParameters’:
/root/Downloads/mt7610u_wifi_sta_v3002_dpo_20130916-master/os/linux/../../common/rtmp_init.c:719:85: warning: array subscript is above array bounds [-Warray-bounds]
BoundaryA[1], pAd->TssiPlusBoundaryA[2], pAd->TssiPlusBoundaryA[3], pAd->TssiPlusBoundaryA[4],
^
/root/Downloads/mt7610u_wifi_sta_v3002_dpo_20130916-master/include/os/rt_linux.h:660:16: note: in definition of macro ‘DBGPRINT_RAW’
printk Fmt; \
^~~
/root/Downloads/mt7610u_wifi_sta_v3002_dpo_20130916-master/os/linux/../../common/rtmp_init.c:716:3: note: in expansion of macro ‘DBGPRINT’
DBGPRINT(RT_DEBUG_TRACE,("E2PROM: A Tssi[-4 .. +4] = %d %d %d %d - %d -%d %d %d %d, step=%d, tuning=%d\n",
^~~~~~~~
/root/Downloads/mt7610u_wifi_sta_v3002_dpo_20130916-master/os/linux/../../common/rtmp_init.c:719:58: warning: array subscript is above array bounds [-Warray-bounds]
pAd->TssiPlusBoundaryA[1], pAd->TssiPlusBoundaryA[2], pAd->TssiPlusBoundaryA[3], pAd->TssiPlusBoundaryA[4],
^
/root/Downloads/mt7610u_wifi_sta_v3002_dpo_20130916-master/include/os/rt_linux.h:660:16: note: in definition of macro ‘DBGPRINT_RAW’
printk Fmt; \
^~~
/root/Downloads/mt7610u_wifi_sta_v3002_dpo_20130916-master/os/linux/../../common/rtmp_init.c:716:3: note: in expansion of macro ‘DBGPRINT’
DBGPRINT(RT_DEBUG_TRACE,("E2PROM: A Tssi[-4 .. +4] = %d %d %d %d - %d -%d %d %d %d, step=%d, tuning=%d\n",
^~~~~~~~
/root/Downloads/mt7610u_wifi_sta_v3002_dpo_20130916-master/os/linux/../../common/rtmp_init.c:717:32: warning: array subscript is above array bounds [-Warray-bounds]
pAd->TssiMinusBoundaryA[4], pAd->TssiMinusBoundaryA[3], pAd->TssiMinusBoundaryA[2], pAd->TssiMinusBoundaryA[1],
^
/root/Downloads/mt7610u_wifi_sta_v3002_dpo_20130916-master/include/os/rt_linux.h:660:16: note: in definition of macro ‘DBGPRINT_RAW’
printk Fmt; \
^~~
/root/Downloads/mt7610u_wifi_sta_v3002_dpo_20130916-master/os/linux/../../common/rtmp_init.c:716:3: note: in expansion of macro ‘DBGPRINT’
DBGPRINT(RT_DEBUG_TRACE,("E2PROM: A Tssi[-4 .. +4] = %d %d %d %d - %d -%d %d %d %d, step=%d, tuning=%d\n",
^~~~~~~~
/root/Downloads/mt7610u_wifi_sta_v3002_dpo_20130916-master/os/linux/../../common/rtmp_init.c:717:4: warning: array subscript is above array bounds [-Warray-bounds]
pAd->TssiMinusBoundaryA[4], pAd->TssiMinusBoundaryA[3], pAd->TssiMinusBoundaryA[2], pAd->TssiMinusBoundaryA[1],
^
/root/Downloads/mt7610u_wifi_sta_v3002_dpo_20130916-master/include/os/rt_linux.h:660:16: note: in definition of macro ‘DBGPRINT_RAW’
printk Fmt; \
^~~
/root/Downloads/mt7610u_wifi_sta_v3002_dpo_20130916-master/os/linux/../../common/rtmp_init.c:716:3: note: in expansion of macro ‘DBGPRINT’
DBGPRINT(RT_DEBUG_TRACE,("E2PROM: A Tssi[-4 .. +4] = %d %d %d %d - %d -%d %d %d %d, step=%d, tuning=%d\n",
^~~~~~~~
CC [M] /root/Downloads/mt7610u_wifi_sta_v3002_dpo_20130916-master/os/linux/../../common/rtmp_init_inf.o
CC [M] /root/Downloads/mt7610u_wifi_sta_v3002_dpo_20130916-master/os/linux/../../common/cmm_tkip.o
CC [M] /root/Downloads/mt7610u_wifi_sta_v3002_dpo_20130916-master/os/linux/../../common/cmm_aes.o
CC [M] /root/Downloads/mt7610u_wifi_sta_v3002_dpo_20130916-master/os/linux/../../common/cmm_sync.o
CC [M] /root/Downloads/mt7610u_wifi_sta_v3002_dpo_20130916-master/os/linux/../../common/eeprom.o
CC [M] /root/Downloads/mt7610u_wifi_sta_v3002_dpo_20130916-master/os/linux/../../common/cmm_sanity.o
CC [M] /root/Downloads/mt7610u_wifi_sta_v3002_dpo_20130916-master/os/linux/../../common/cmm_info.o
In file included from /root/Downloads/mt7610u_wifi_sta_v3002_dpo_20130916-master/include/rtmp_os.h:44:0,
from /root/Downloads/mt7610u_wifi_sta_v3002_dpo_20130916-master/include/rtmp_comm.h:75,
from /root/Downloads/mt7610u_wifi_sta_v3002_dpo_20130916-master/include/rt_config.h:33,
from /root/Downloads/mt7610u_wifi_sta_v3002_dpo_20130916-master/os/linux/../../common/cmm_info.c:28:
/root/Downloads/mt7610u_wifi_sta_v3002_dpo_20130916-master/os/linux/../../common/cmm_info.c: In function ‘Set_DebugFunc_Proc’:
/root/Downloads/mt7610u_wifi_sta_v3002_dpo_20130916-master/os/linux/../../common/cmm_info.c:1084:30: warning: format ‘%x’ expects argument of type ‘unsigned int’, but argument 2 has type ‘ULONG {aka long unsigned int}’ [-Wformat=]
DBGPRINT_S(RT_DEBUG_TRACE, ("Set RTDebugFunc = 0x%x\n", RTDebugFunc));
^
/root/Downloads/mt7610u_wifi_sta_v3002_dpo_20130916-master/include/os/rt_linux.h:675:9: note: in definition of macro ‘DBGPRINT_S’
printk Fmt; \
^~~
/root/Downloads/mt7610u_wifi_sta_v3002_dpo_20130916-master/os/linux/../../common/cmm_info.c: In function ‘GetEncryptType’:
/root/Downloads/mt7610u_wifi_sta_v3002_dpo_20130916-master/os/linux/../../common/cmm_info.c:1752:5: warning: this ‘if’ clause does not guard... [-Wmisleading-indentation]
if(enc == Ndis802_11Encryption3Enabled)
^~
/root/Downloads/mt7610u_wifi_sta_v3002_dpo_20130916-master/os/linux/../../common/cmm_info.c:1754:2: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the ‘if’
if(enc == Ndis802_11Encryption4Enabled)
^~
/root/Downloads/mt7610u_wifi_sta_v3002_dpo_20130916-master/os/linux/../../common/cmm_info.c: In function ‘GetAuthMode’:
/root/Downloads/mt7610u_wifi_sta_v3002_dpo_20130916-master/os/linux/../../common/cmm_info.c:1764:5: warning: this ‘if’ clause does not guard... [-Wmisleading-indentation]
if(auth == Ndis802_11AuthModeShared)
^~
/root/Downloads/mt7610u_wifi_sta_v3002_dpo_20130916-master/os/linux/../../common/cmm_info.c:1766:2: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the ‘if’
if(auth == Ndis802_11AuthModeAutoSwitch)
^~
/root/Downloads/mt7610u_wifi_sta_v3002_dpo_20130916-master/os/linux/../../common/cmm_info.c:1776:5: warning: this ‘if’ clause does not guard... [-Wmisleading-indentation]
if(auth == Ndis802_11AuthModeWPA2PSK)
^~
/root/Downloads/mt7610u_wifi_sta_v3002_dpo_20130916-master/os/linux/../../common/cmm_info.c:1778:2: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the ‘if’
if(auth == Ndis802_11AuthModeWPA1WPA2)
^~
/root/Downloads/mt7610u_wifi_sta_v3002_dpo_20130916-master/os/linux/../../common/cmm_info.c: In function ‘Show_PMK_Proc’:
/root/Downloads/mt7610u_wifi_sta_v3002_dpo_20130916-master/os/linux/../../common/cmm_info.c:4214:5: warning: this ‘for’ clause does not guard... [-Wmisleading-indentation]
for (idx = 0; idx < 32; idx++)
^~~
/root/Downloads/mt7610u_wifi_sta_v3002_dpo_20130916-master/os/linux/../../common/cmm_info.c:4217:2: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the ‘for’
return 0;
^~~~~~
/root/Downloads/mt7610u_wifi_sta_v3002_dpo_20130916-master/os/linux/../../common/cmm_info.c: In function ‘set_rf’:
/root/Downloads/mt7610u_wifi_sta_v3002_dpo_20130916-master/os/linux/../../common/cmm_info.c:5960:28: warning: format ‘%x’ expects argument of type ‘unsigned int *’, but argument 5 has type ‘UCHAR * {aka unsigned char *}’ [-Wformat=]
rv = sscanf(arg, "%d-%d-%x", &(bank_id), &(rf_id), &(rf_val));
~^ ~~~~~~~~~
%hhx
CC [M] /root/Downloads/mt7610u_wifi_sta_v3002_dpo_20130916-master/os/linux/../../common/cmm_cfg.o
/root/Downloads/mt7610u_wifi_sta_v3002_dpo_20130916-master/os/linux/../../common/cmm_cfg.c: In function ‘RTMP_COM_IoctlHandle’:
/root/Downloads/mt7610u_wifi_sta_v3002_dpo_20130916-master/os/linux/../../common/cmm_cfg.c:705:32: warning: unused variable ‘ppINTF’ [-Wunused-variable]
VOID **ppINTF = (VOID **)pData;
^~~~~~
CC [M] /root/Downloads/mt7610u_wifi_sta_v3002_dpo_20130916-master/os/linux/../../common/cmm_wpa.o
/root/Downloads/mt7610u_wifi_sta_v3002_dpo_20130916-master/os/linux/../../common/cmm_wpa.c: In function ‘WPAStart2WayGroupHS’:
/root/Downloads/mt7610u_wifi_sta_v3002_dpo_20130916-master/os/linux/../../common/cmm_wpa.c:1249:5: warning: this ‘if’ clause does not guard... [-Wmisleading-indentation]
if ((!pEntry) || !IS_ENTRY_CLIENT(pEntry))
^~
/root/Downloads/mt7610u_wifi_sta_v3002_dpo_20130916-master/os/linux/../../common/cmm_wpa.c:1254:2: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the ‘if’
os_alloc_mem(NULL, (PUCHAR *)&mpool, TX_EAPOL_BUFFER);
^~~~~~~~~~~~
CC [M] /root/Downloads/mt7610u_wifi_sta_v3002_dpo_20130916-master/os/linux/../../common/cmm_radar.o
CC [M] /root/Downloads/mt7610u_wifi_sta_v3002_dpo_20130916-master/os/linux/../../common/spectrum.o
In file included from /root/Downloads/mt7610u_wifi_sta_v3002_dpo_20130916-master/include/rtmp_os.h:44:0,
from /root/Downloads/mt7610u_wifi_sta_v3002_dpo_20130916-master/include/rtmp_comm.h:75,
from /root/Downloads/mt7610u_wifi_sta_v3002_dpo_20130916-master/include/rt_config.h:33,
from /root/Downloads/mt7610u_wifi_sta_v3002_dpo_20130916-master/os/linux/../../common/spectrum.c:28:
/root/Downloads/mt7610u_wifi_sta_v3002_dpo_20130916-master/os/linux/../../common/spectrum.c: In function ‘PeerMeasureReportAction’:
/root/Downloads/mt7610u_wifi_sta_v3002_dpo_20130916-master/os/linux/../../common/spectrum.c:1972:29: warning: format ‘%d’ expects argument of type ‘int’, but argument 3 has type ‘long unsigned int’ [-Wformat=]
DBGPRINT(RT_DEBUG_ERROR, ("%s unable to alloc memory for measure report buffer (size=%d).\n", __FUNCTION__, sizeof(MEASURE_RPI_REPORT)));
^
/root/Downloads/mt7610u_wifi_sta_v3002_dpo_20130916-master/include/os/rt_linux.h:660:16: note: in definition of macro ‘DBGPRINT_RAW’
printk Fmt; \
^~~
/root/Downloads/mt7610u_wifi_sta_v3002_dpo_20130916-master/os/linux/../../common/spectrum.c:1972:3: note: in expansion of macro ‘DBGPRINT’
DBGPRINT(RT_DEBUG_ERROR, ("%s unable to alloc memory for measure report buffer (size=%d).\n", __FUNCTION__, sizeof(MEASURE_RPI_REPORT)));
^~~~~~~~
CC [M] /root/Downloads/mt7610u_wifi_sta_v3002_dpo_20130916-master/os/linux/../../common/rtmp_timer.o
CC [M] /root/Downloads/mt7610u_wifi_sta_v3002_dpo_20130916-master/os/linux/../../common/rt_channel.o
CC [M] /root/Downloads/mt7610u_wifi_sta_v3002_dpo_20130916-master/os/linux/../../common/cmm_profile.o
CC [M] /root/Downloads/mt7610u_wifi_sta_v3002_dpo_20130916-master/os/linux/../../common/cmm_asic.o
/root/Downloads/mt7610u_wifi_sta_v3002_dpo_20130916-master/os/linux/../../common/cmm_asic.c: In function ‘AsicUpdateProtect’:
/root/Downloads/mt7610u_wifi_sta_v3002_dpo_20130916-master/os/linux/../../common/cmm_asic.c:330:21: warning: large integer implicitly truncated to unsigned type [-Woverflow]
UCHAR i, PhyMode = 0x4000;
^~~~~~
/root/Downloads/mt7610u_wifi_sta_v3002_dpo_20130916-master/os/linux/../../common/cmm_asic.c:384:12: warning: large integer implicitly truncated to unsigned type [-Woverflow]
PhyMode = 0x2000; /* Bit 15:13, 0:Legacy CCK, 1: Legacy OFDM, 2: HT mix mode, 3: HT green field, 4: VHT mode, 5-7: Reserved */
^~~~~~
CC [M] /root/Downloads/mt7610u_wifi_sta_v3002_dpo_20130916-master/os/linux/../../common/scan.o
CC [M] /root/Downloads/mt7610u_wifi_sta_v3002_dpo_20130916-master/os/linux/../../common/cmm_cmd.o
CC [M] /root/Downloads/mt7610u_wifi_sta_v3002_dpo_20130916-master/os/linux/../../common/uapsd.o
CC [M] /root/Downloads/mt7610u_wifi_sta_v3002_dpo_20130916-master/os/linux/../../common/ps.o
CC [M] /root/Downloads/mt7610u_wifi_sta_v3002_dpo_20130916-master/os/linux/../../rate_ctrl/ra_ctrl.o
CC [M] /root/Downloads/mt7610u_wifi_sta_v3002_dpo_20130916-master/os/linux/../../rate_ctrl/alg_legacy.o
CC [M] /root/Downloads/mt7610u_wifi_sta_v3002_dpo_20130916-master/os/linux/../../rate_ctrl/alg_ags.o
CC [M] /root/Downloads/mt7610u_wifi_sta_v3002_dpo_20130916-master/os/linux/../../chips/rtmp_chip.o
CC [M] /root/Downloads/mt7610u_wifi_sta_v3002_dpo_20130916-master/os/linux/../../common/txpower.o
CC [M] /root/Downloads/mt7610u_wifi_sta_v3002_dpo_20130916-master/os/linux/../../mac/rtmp_mac.o
CC [M] /root/Downloads/mt7610u_wifi_sta_v3002_dpo_20130916-master/os/linux/../../mgmt/mgmt_hw.o
CC [M] /root/Downloads/mt7610u_wifi_sta_v3002_dpo_20130916-master/os/linux/../../mgmt/mgmt_entrytb.o
CC [M] /root/Downloads/mt7610u_wifi_sta_v3002_dpo_20130916-master/os/linux/../../phy/rtmp_phy.o
CC [M] /root/Downloads/mt7610u_wifi_sta_v3002_dpo_20130916-master/os/linux/../../phy/rlt_phy.o
/root/Downloads/mt7610u_wifi_sta_v3002_dpo_20130916-master/os/linux/../../phy/rlt_phy.c: In function ‘rtmp_bbp_get_temp’:
/root/Downloads/mt7610u_wifi_sta_v3002_dpo_20130916-master/os/linux/../../phy/rlt_phy.c:68:9: warning: unused variable ‘bbp_val’ [-Wunused-variable]
UINT32 bbp_val;
^~~~~~~
/root/Downloads/mt7610u_wifi_sta_v3002_dpo_20130916-master/os/linux/../../phy/rlt_phy.c: In function ‘rtmp_bbp_tx_comp_init’:
/root/Downloads/mt7610u_wifi_sta_v3002_dpo_20130916-master/os/linux/../../phy/rlt_phy.c:83:8: warning: unused variable ‘rf_val’ [-Wunused-variable]
UCHAR rf_val;
^~~~~~
/root/Downloads/mt7610u_wifi_sta_v3002_dpo_20130916-master/os/linux/../../phy/rlt_phy.c:82:9: warning: unused variable ‘bbp_val’ [-Wunused-variable]
UINT32 bbp_val;
^~~~~~~
At top level:
/root/Downloads/mt7610u_wifi_sta_v3002_dpo_20130916-master/os/linux/../../phy/rlt_phy.c:153:14: warning: ‘vht_prim_ch_val’ defined but not used [-Wunused-variable]
static UCHAR vht_prim_ch_val[] = {
^~~~~~~~~~~~~~~
CC [M] /root/Downloads/mt7610u_wifi_sta_v3002_dpo_20130916-master/os/linux/../../phy/rlt_rf.o
CC [M] /root/Downloads/mt7610u_wifi_sta_v3002_dpo_20130916-master/os/linux/../../rate_ctrl/alg_grp.o
CC [M] /root/Downloads/mt7610u_wifi_sta_v3002_dpo_20130916-master/os/linux/../../common/ba_action.o
CC [M] /root/Downloads/mt7610u_wifi_sta_v3002_dpo_20130916-master/os/linux/../../mgmt/mgmt_ht.o
CC [M] /root/Downloads/mt7610u_wifi_sta_v3002_dpo_20130916-master/os/linux/../../common/rt_os_util.o
CC [M] /root/Downloads/mt7610u_wifi_sta_v3002_dpo_20130916-master/os/linux/../../os/linux/sta_ioctl.o
CC [M] /root/Downloads/mt7610u_wifi_sta_v3002_dpo_20130916-master/os/linux/../../os/linux/rt_linux.o
/root/Downloads/mt7610u_wifi_sta_v3002_dpo_20130916-master/os/linux/../../os/linux/rt_linux.c: In function ‘RtmpOsUsDelay’:
/root/Downloads/mt7610u_wifi_sta_v3002_dpo_20130916-master/os/linux/../../os/linux/rt_linux.c:176:8: warning: unused variable ‘i’ [-Wunused-variable]
ULONG i;
^
/root/Downloads/mt7610u_wifi_sta_v3002_dpo_20130916-master/os/linux/../../os/linux/rt_linux.c: In function ‘RtmpOSFileWrite’:
/root/Downloads/mt7610u_wifi_sta_v3002_dpo_20130916-master/os/linux/../../os/linux/rt_linux.c:1096:9: error: implicit declaration of function ‘__vfs_write’; did you mean ‘vfs_write’? [-Werror=implicit-function-declaration]
return __vfs_write(osfd, pDataPtr, (size_t) writeLen, &osfd->f_pos);
^~~~~~~~~~~
vfs_write
/root/Downloads/mt7610u_wifi_sta_v3002_dpo_20130916-master/os/linux/../../os/linux/rt_linux.c: In function ‘RtmpDrvAllRFPrint’:
/root/Downloads/mt7610u_wifi_sta_v3002_dpo_20130916-master/os/linux/../../os/linux/rt_linux.c:2017:22: warning: unused variable ‘macValue’ [-Wunused-variable]
UINT32 macAddr = 0, macValue = 0;
^~~~~~~~
/root/Downloads/mt7610u_wifi_sta_v3002_dpo_20130916-master/os/linux/../../os/linux/rt_linux.c:2017:9: warning: unused variable ‘macAddr’ [-Wunused-variable]
UINT32 macAddr = 0, macValue = 0;
^~~~~~~
/root/Downloads/mt7610u_wifi_sta_v3002_dpo_20130916-master/os/linux/../../os/linux/rt_linux.c: In function ‘RtmpOSIRQRelease’:
/root/Downloads/mt7610u_wifi_sta_v3002_dpo_20130916-master/os/linux/../../os/linux/rt_linux.c:2153:21: warning: unused variable ‘net_dev’ [-Wunused-variable]
struct net_device *net_dev = (struct net_device *)pNetDev;
^~~~~~~
cc1: some warnings being treated as errors
/usr/src/linux-headers-4.14.0-kali3-common/scripts/Makefile.build:325: recipe for target '/root/Downloads/mt7610u_wifi_sta_v3002_dpo_20130916-master/os/linux/../../os/linux/rt_linux.o' failed
make[4]: *** [/root/Downloads/mt7610u_wifi_sta_v3002_dpo_20130916-master/os/linux/../../os/linux/rt_linux.o] Error 1
/usr/src/linux-headers-4.14.0-kali3-common/Makefile:1525: recipe for target '_module_/root/Downloads/mt7610u_wifi_sta_v3002_dpo_20130916-master/os/linux' failed
make[3]: *** [_module_/root/Downloads/mt7610u_wifi_sta_v3002_dpo_20130916-master/os/linux] Error 2
Makefile:146: recipe for target 'sub-make' failed
make[2]: *** [sub-make] Error 2
Makefile:8: recipe for target 'all' failed
make[1]: *** [all] Error 2
make[1]: Leaving directory '/usr/src/linux-headers-4.14.0-kali3-amd64'
Makefile:393: recipe for target 'LINUX' failed
make: *** [LINUX] Error 2
As you can see those are the errors on the end there.