腾达W311MI不能驱动,请指教
Tofloor
poster avatar
152******88
deepin
2020-03-23 10:52
Author
腾达W311MI插上电脑不能自动驱动,官网上找到linux版本驱动后不能安装,请指教。
# make
make -C tools
make[1]: Entering directory '/home/ysgg/Downloads/MT7601U_LinuxAP_3.0.0.1_20130802/tools'
gcc -g bin2h.c -o bin2h
make[1]: Leaving directory '/home/ysgg/Downloads/MT7601U_LinuxAP_3.0.0.1_20130802/tools'
/home/ysgg/Downloads/MT7601U_LinuxAP_3.0.0.1_20130802/tools/bin2h
cp -f os/linux/Makefile.6 /home/ysgg/Downloads/MT7601U_LinuxAP_3.0.0.1_20130802/os/linux/Makefile
make -C /lib/modules/4.15.0-30deepin-generic/build SUBDIRS=/home/ysgg/Downloads/MT7601U_LinuxAP_3.0.0.1_20130802/os/linux modules
make[1]: Entering directory '/usr/src/linux-headers-4.15.0-30deepin-generic'
  CC [M]  /home/ysgg/Downloads/MT7601U_LinuxAP_3.0.0.1_20130802/os/linux/../../os/linux/rt_profile.o
/home/ysgg/Downloads/MT7601U_LinuxAP_3.0.0.1_20130802/os/linux/../../os/linux/rt_profile.c: In function ‘announce_802_3_packet’:
/home/ysgg/Downloads/MT7601U_LinuxAP_3.0.0.1_20130802/os/linux/../../os/linux/rt_profile.c:437:16: warning: unused variable ‘pAd’ [-Wunused-variable]
  RTMP_ADAPTER *pAd = (RTMP_ADAPTER *)pAdSrc;
                ^~~
  CC [M]  /home/ysgg/Downloads/MT7601U_LinuxAP_3.0.0.1_20130802/os/linux/../../ap/ap_mbss.o
  CC [M]  /home/ysgg/Downloads/MT7601U_LinuxAP_3.0.0.1_20130802/os/linux/../../ap/ap.o
/home/ysgg/Downloads/MT7601U_LinuxAP_3.0.0.1_20130802/os/linux/../../ap/ap.c: In function ‘APStartUp’:
/home/ysgg/Downloads/MT7601U_LinuxAP_3.0.0.1_20130802/os/linux/../../ap/ap.c:144:10: warning: unused variable ‘Value’ [-Wunused-variable]
  UINT32  Value = 0;
          ^~~~~
/home/ysgg/Downloads/MT7601U_LinuxAP_3.0.0.1_20130802/os/linux/../../ap/ap.c:143:10: warning: unused variable ‘offset’ [-Wunused-variable]
  UINT32  offset, i;
          ^~~~~~
/home/ysgg/Downloads/MT7601U_LinuxAP_3.0.0.1_20130802/os/linux/../../ap/ap.c:789:1: warning: the frame size of 1088 bytes is larger than 1024 bytes [-Wframe-larger-than=]
}
^
  CC [M]  /home/ysgg/Downloads/MT7601U_LinuxAP_3.0.0.1_20130802/os/linux/../../ap/ap_assoc.o
  CC [M]  /home/ysgg/Downloads/MT7601U_LinuxAP_3.0.0.1_20130802/os/linux/../../ap/ap_auth.o
/home/ysgg/Downloads/MT7601U_LinuxAP_3.0.0.1_20130802/os/linux/../../ap/ap_auth.c: In function ‘APPeerDeauthReqAction’:
/home/ysgg/Downloads/MT7601U_LinuxAP_3.0.0.1_20130802/os/linux/../../ap/ap_auth.c:165:5: warning: this ‘if’ clause does not guard... [-Wmisleading-indentation]
     if (! PeerDeauthReqSanity(pAd, Elem->Msg, Elem->MsgLen, Addr2, &SeqNum, &Reason))
     ^~
/home/ysgg/Downloads/MT7601U_LinuxAP_3.0.0.1_20130802/os/linux/../../ap/ap_auth.c:168:2: note: ...this statement, but the latter is misleadingly indented as if it is guarded by the ‘if’
  pEntry = NULL;
  ^~~~~~
  CC [M]  /home/ysgg/Downloads/MT7601U_LinuxAP_3.0.0.1_20130802/os/linux/../../ap/ap_connect.o
  CC [M]  /home/ysgg/Downloads/MT7601U_LinuxAP_3.0.0.1_20130802/os/linux/../../ap/ap_mlme.o
  CC [M]  /home/ysgg/Downloads/MT7601U_LinuxAP_3.0.0.1_20130802/os/linux/../../ap/ap_sanity.o
  CC [M]  /home/ysgg/Downloads/MT7601U_LinuxAP_3.0.0.1_20130802/os/linux/../../ap/ap_sync.o
  CC [M]  /home/ysgg/Downloads/MT7601U_LinuxAP_3.0.0.1_20130802/os/linux/../../ap/ap_wpa.o
/home/ysgg/Downloads/MT7601U_LinuxAP_3.0.0.1_20130802/os/linux/../../ap/ap_wpa.c: In function ‘HandleCounterMeasure’:
/home/ysgg/Downloads/MT7601U_LinuxAP_3.0.0.1_20130802/os/linux/../../ap/ap_wpa.c:566:5: warning: this ‘if’ clause does not guard... [-Wmisleading-indentation]
     if (!pEntry)
     ^~
/home/ysgg/Downloads/MT7601U_LinuxAP_3.0.0.1_20130802/os/linux/../../ap/ap_wpa.c:570:2: note: ...this statement, but the latter is misleadingly indented as if it is guarded by the ‘if’
  if (IS_ENTRY_APCLI(pEntry))
  ^~
  CC [M]  /home/ysgg/Downloads/MT7601U_LinuxAP_3.0.0.1_20130802/os/linux/../../ap/ap_data.o
  CC [M]  /home/ysgg/Downloads/MT7601U_LinuxAP_3.0.0.1_20130802/os/linux/../../ap/ap_autoChSel.o
  CC [M]  /home/ysgg/Downloads/MT7601U_LinuxAP_3.0.0.1_20130802/os/linux/../../ap/ap_qload.o
  CC [M]  /home/ysgg/Downloads/MT7601U_LinuxAP_3.0.0.1_20130802/os/linux/../../ap/ap_cfg.o
In file included from /home/ysgg/Downloads/MT7601U_LinuxAP_3.0.0.1_20130802/include/rtmp_os.h:42:0,
                 from /home/ysgg/Downloads/MT7601U_LinuxAP_3.0.0.1_20130802/include/rtmp_comm.h:66,
                 from /home/ysgg/Downloads/MT7601U_LinuxAP_3.0.0.1_20130802/include/rt_config.h:36,
                 from /home/ysgg/Downloads/MT7601U_LinuxAP_3.0.0.1_20130802/os/linux/../../ap/ap_cfg.c:28:
/home/ysgg/Downloads/MT7601U_LinuxAP_3.0.0.1_20130802/os/linux/../../ap/ap_cfg.c: In function ‘RTMPAPSetInformation’:
/home/ysgg/Downloads/MT7601U_LinuxAP_3.0.0.1_20130802/include/os/rt_linux.h:486:54: warning: assignment makes pointer from integer without a cast [-Wint-conversion]
#define RT_GET_OS_PID(_x, _y)  do{rcu_read_lock(); _x=(ULONG)current->pids[PIDTYPE_PID].pid; rcu_read_unlock();}while(0)
                                                      ^
/home/ysgg/Downloads/MT7601U_LinuxAP_3.0.0.1_20130802/include/os/rt_linux.h:490:35: note: in expansion of macro ‘RT_GET_OS_PID’
#define RTMP_GET_OS_PID(_a, _b)   RT_GET_OS_PID(_a, _b)
                                   ^~~~~~~~~~~~~
/home/ysgg/Downloads/MT7601U_LinuxAP_3.0.0.1_20130802/os/linux/../../ap/ap_cfg.c:1929:6: note: in expansion of macro ‘RTMP_GET_OS_PID’
      RTMP_GET_OS_PID(pObj->IappPid, IappPid);
      ^~~~~~~~~~~~~~~
/home/ysgg/Downloads/MT7601U_LinuxAP_3.0.0.1_20130802/os/linux/../../ap/ap_cfg.c:1931:32: warning: format ‘%x’ expects argument of type ‘unsigned int’, but argument 3 has type ‘RTMP_OS_PID {aka struct pid *}’ [-Wformat=]
      DBGPRINT(RT_DEBUG_TRACE, ("RT_SET_APD_PID:IappPid=%lu(0x%x))\n", IappPid, pObj->IappPid));
                                ^
/home/ysgg/Downloads/MT7601U_LinuxAP_3.0.0.1_20130802/include/os/rt_linux.h:677:16: note: in definition of macro ‘DBGPRINT_RAW’
         printk Fmt;               \
                ^~~
/home/ysgg/Downloads/MT7601U_LinuxAP_3.0.0.1_20130802/os/linux/../../ap/ap_cfg.c:1931:6: note: in expansion of macro ‘DBGPRINT’
      DBGPRINT(RT_DEBUG_TRACE, ("RT_SET_APD_PID:IappPid=%lu(0x%x))\n", IappPid, pObj->IappPid));
      ^~~~~~~~
/home/ysgg/Downloads/MT7601U_LinuxAP_3.0.0.1_20130802/include/os/rt_linux.h:486:54: warning: assignment makes pointer from integer without a cast [-Wint-conversion]
#define RT_GET_OS_PID(_x, _y)  do{rcu_read_lock(); _x=(ULONG)current->pids[PIDTYPE_PID].pid; rcu_read_unlock();}while(0)
                                                      ^
/home/ysgg/Downloads/MT7601U_LinuxAP_3.0.0.1_20130802/include/os/rt_linux.h:490:35: note: in expansion of macro ‘RT_GET_OS_PID’
#define RTMP_GET_OS_PID(_a, _b)   RT_GET_OS_PID(_a, _b)
                                   ^~~~~~~~~~~~~
/home/ysgg/Downloads/MT7601U_LinuxAP_3.0.0.1_20130802/os/linux/../../ap/ap_cfg.c:1946:6: note: in expansion of macro ‘RTMP_GET_OS_PID’
      RTMP_GET_OS_PID(pObj->apd_pid, apd_pid);
      ^~~~~~~~~~~~~~~
/home/ysgg/Downloads/MT7601U_LinuxAP_3.0.0.1_20130802/os/linux/../../ap/ap_cfg.c:1948:32: warning: format ‘%x’ expects argument of type ‘unsigned int’, but argument 3 has type ‘RTMP_OS_PID {aka struct pid *}’ [-Wformat=]
      DBGPRINT(RT_DEBUG_TRACE, ("RT_SET_APD_PID:ApdPid=%lu(0x%x))\n", apd_pid, pObj->apd_pid));
                                ^
/home/ysgg/Downloads/MT7601U_LinuxAP_3.0.0.1_20130802/include/os/rt_linux.h:677:16: note: in definition of macro ‘DBGPRINT_RAW’
         printk Fmt;               \
                ^~~


Reply Favorite View the author
All Replies
avatar
152******88
deepin
2020-03-23 10:52
#1
接上
/home/ysgg/Downloads/MT7601U_LinuxAP_3.0.0.1_20130802/os/linux/../../ap/ap_cfg.c:1948:6: note: in expansion of macro ‘DBGPRINT’
      DBGPRINT(RT_DEBUG_TRACE, ("RT_SET_APD_PID:ApdPid=%lu(0x%x))\n", apd_pid, pObj->apd_pid));
      ^~~~~~~~
/home/ysgg/Downloads/MT7601U_LinuxAP_3.0.0.1_20130802/os/linux/../../ap/ap_cfg.c: In function ‘RTMPAPQueryInformation’:
/home/ysgg/Downloads/MT7601U_LinuxAP_3.0.0.1_20130802/os/linux/../../ap/ap_cfg.c:3585:30: warning: format ‘%d’ expects argument of type ‘int’, but argument 2 has type ‘long unsigned int’ [-Wformat=]
    DBGPRINT(RT_DEBUG_TRACE, ("Query::Get Radius setting(%d)\n", sizeof(DOT1X_CMM_CONF)));
                              ^
/home/ysgg/Downloads/MT7601U_LinuxAP_3.0.0.1_20130802/include/os/rt_linux.h:677:16: note: in definition of macro ‘DBGPRINT_RAW’
         printk Fmt;               \
                ^~~
/home/ysgg/Downloads/MT7601U_LinuxAP_3.0.0.1_20130802/os/linux/../../ap/ap_cfg.c:3585:4: note: in expansion of macro ‘DBGPRINT’
    DBGPRINT(RT_DEBUG_TRACE, ("Query::Get Radius setting(%d)\n", sizeof(DOT1X_CMM_CONF)));
    ^~~~~~~~
/home/ysgg/Downloads/MT7601U_LinuxAP_3.0.0.1_20130802/os/linux/../../ap/ap_cfg.c: In function ‘Show_DriverInfo_Proc’:
/home/ysgg/Downloads/MT7601U_LinuxAP_3.0.0.1_20130802/os/linux/../../ap/ap_cfg.c:5705:65: error: macro "__DATE__" might prevent reproducible builds [-Werror=date-time]
     printk("Driver version: %s (%s %s) .\n", AP_DRIVER_VERSION, __DATE__, __TIME__);
                                                                 ^~~~~~~~
/home/ysgg/Downloads/MT7601U_LinuxAP_3.0.0.1_20130802/os/linux/../../ap/ap_cfg.c:5705:75: error: macro "__TIME__" might prevent reproducible builds [-Werror=date-time]
     printk("Driver version: %s (%s %s) .\n", AP_DRIVER_VERSION, __DATE__, __TIME__);
                                                                           ^~~~~~~~
/home/ysgg/Downloads/MT7601U_LinuxAP_3.0.0.1_20130802/os/linux/../../ap/ap_cfg.c: In function ‘Show_Sat_Proc’:
/home/ysgg/Downloads/MT7601U_LinuxAP_3.0.0.1_20130802/os/linux/../../ap/ap_cfg.c:5909:38: warning: format ‘%d’ expects argument of type ‘int’, but argument 2 has type ‘INT64 {aka long long int}’ [-Wformat=]
  printk("TransmittedFragmentCount = %d\n", pAd->WlanCounters.TransmittedFragmentCount.u.LowPart + pAd->WlanCounters.MulticastTransmittedFrameCount.QuadPart);
                                      ^
/home/ysgg/Downloads/MT7601U_LinuxAP_3.0.0.1_20130802/os/linux/../../ap/ap_cfg.c: In function ‘Show_Sat_Reset_Proc’:
/home/ysgg/Downloads/MT7601U_LinuxAP_3.0.0.1_20130802/os/linux/../../ap/ap_cfg.c:6039:38: warning: format ‘%d’ expects argument of type ‘int’, but argument 2 has type ‘INT64 {aka long long int}’ [-Wformat=]
  printk("TransmittedFragmentCount = %d\n", pAd->WlanCounters.TransmittedFragmentCount.u.LowPart + pAd->WlanCounters.MulticastTransmittedFrameCount.QuadPart);
                                      ^
/home/ysgg/Downloads/MT7601U_LinuxAP_3.0.0.1_20130802/os/linux/../../ap/ap_cfg.c: In function ‘RTMPAPIoctlRF’:
/home/ysgg/Downloads/MT7601U_LinuxAP_3.0.0.1_20130802/os/linux/../../ap/ap_cfg.c:7263:27: error: passing argument 2 of ‘RtmpDrvAllRFPrint’ from incompatible pointer type [-Werror=incompatible-pointer-types]
   RtmpDrvAllRFPrint(NULL, msg, strlen(msg));
                           ^~~
In file included from /home/ysgg/Downloads/MT7601U_LinuxAP_3.0.0.1_20130802/include/rt_config.h:70:0,
                 from /home/ysgg/Downloads/MT7601U_LinuxAP_3.0.0.1_20130802/os/linux/../../ap/ap_cfg.c:28:
/home/ysgg/Downloads/MT7601U_LinuxAP_3.0.0.1_20130802/include/rt_os_util.h:656:6: note: expected ‘UINT32 * {aka unsigned int *}’ but argument is of type ‘PSTRING {aka char *}’
VOID RtmpDrvAllRFPrint(
      ^~~~~~~~~~~~~~~~~
/home/ysgg/Downloads/MT7601U_LinuxAP_3.0.0.1_20130802/os/linux/../../ap/ap_cfg.c:7225:10: warning: unused variable ‘rfValue’ [-Wunused-variable]
  LONG    rfValue;
          ^~~~~~~
/home/ysgg/Downloads/MT7601U_LinuxAP_3.0.0.1_20130802/os/linux/../../ap/ap_cfg.c:7223:13: warning: unused variable ‘ptr’ [-Wunused-variable]
  PSTRING    ptr;
             ^~~
/home/ysgg/Downloads/MT7601U_LinuxAP_3.0.0.1_20130802/os/linux/../../ap/ap_cfg.c:7220:22: warning: unused variable ‘rf_bank’ [-Wunused-variable]
  UCHAR    regRF = 0, rf_bank = 0;
                      ^~~~~~~
/home/ysgg/Downloads/MT7601U_LinuxAP_3.0.0.1_20130802/os/linux/../../ap/ap_cfg.c:7219:13: warning: unused variable ‘value’ [-Wunused-variable]
  PSTRING    value;
             ^~~~~
/home/ysgg/Downloads/MT7601U_LinuxAP_3.0.0.1_20130802/os/linux/../../ap/ap_cfg.c:7218:13: warning: unused variable ‘this_char’ [-Wunused-variable]
  PSTRING    this_char;
             ^~~~~~~~~
/home/ysgg/Downloads/MT7601U_LinuxAP_3.0.0.1_20130802/os/linux/../../ap/ap_cfg.c: In function ‘Set_WscV2Support_Proc’:
/home/ysgg/Downloads/MT7601U_LinuxAP_3.0.0.1_20130802/os/linux/../../ap/ap_cfg.c:9795:8: warning: unused variable ‘IsAPConfigured’ [-Wunused-variable]
  INT   IsAPConfigured = pWscControl->WscConfStatus;
        ^~~~~~~~~~~~~~
In file included from /home/ysgg/Downloads/MT7601U_LinuxAP_3.0.0.1_20130802/include/rtmp_os.h:42:0,
                 from /home/ysgg/Downloads/MT7601U_LinuxAP_3.0.0.1_20130802/include/rtmp_comm.h:66,
                 from /home/ysgg/Downloads/MT7601U_LinuxAP_3.0.0.1_20130802/include/rt_config.h:36,
                 from /home/ysgg/Downloads/MT7601U_LinuxAP_3.0.0.1_20130802/os/linux/../../ap/ap_cfg.c:28:
/home/ysgg/Downloads/MT7601U_LinuxAP_3.0.0.1_20130802/os/linux/../../ap/ap_cfg.c: In function ‘Set_IappPID_Proc’:
/home/ysgg/Downloads/MT7601U_LinuxAP_3.0.0.1_20130802/include/os/rt_linux.h:486:54: warning: assignment makes pointer from integer without a cast [-Wint-conversion]
#define RT_GET_OS_PID(_x, _y)  do{rcu_read_lock(); _x=(ULONG)current->pids[PIDTYPE_PID].pid; rcu_read_unlock();}while(0)
                                                      ^
/home/ysgg/Downloads/MT7601U_LinuxAP_3.0.0.1_20130802/include/os/rt_linux.h:490:35: note: in expansion of macro ‘RT_GET_OS_PID’
#define RTMP_GET_OS_PID(_a, _b)   RT_GET_OS_PID(_a, _b)
                                   ^~~~~~~~~~~~~
/home/ysgg/Downloads/MT7601U_LinuxAP_3.0.0.1_20130802/os/linux/../../ap/ap_cfg.c:9957:2: note: in expansion of macro ‘RTMP_GET_OS_PID’
  RTMP_GET_OS_PID(pObj->IappPid, IappPid);
  ^~~~~~~~~~~~~~~
/home/ysgg/Downloads/MT7601U_LinuxAP_3.0.0.1_20130802/os/linux/../../ap/ap_cfg.c: In function ‘Set_TestTxFrameProc’:
/home/ysgg/Downloads/MT7601U_LinuxAP_3.0.0.1_20130802/os/linux/../../ap/ap_cfg.c:11451:9: warning: unused variable ‘TempLen’ [-Wunused-variable]
   ULONG TempLen;
         ^~~~~~~
/home/ysgg/Downloads/MT7601U_LinuxAP_3.0.0.1_20130802/os/linux/../../ap/ap_cfg.c: In function ‘Set_TestTxFrame2Proc’:
/home/ysgg/Downloads/MT7601U_LinuxAP_3.0.0.1_20130802/os/linux/../../ap/ap_cfg.c:11708:10: warning: unused variable ‘Value1’ [-Wunused-variable]
  UINT32  Value1 = 0;
          ^~~~~~
/home/ysgg/Downloads/MT7601U_LinuxAP_3.0.0.1_20130802/os/linux/../../ap/ap_cfg.c: In function ‘Set_TestTxFrame3Proc’:
/home/ysgg/Downloads/MT7601U_LinuxAP_3.0.0.1_20130802/os/linux/../../ap/ap_cfg.c:11779:10: warning: unused variable ‘Value1’ [-Wunused-variable]
  UINT32  Value1 = 0;
          ^~~~~~
/home/ysgg/Downloads/MT7601U_LinuxAP_3.0.0.1_20130802/os/linux/../../ap/ap_cfg.c: In function ‘Set_TestTxFrame4Proc’:
/home/ysgg/Downloads/MT7601U_LinuxAP_3.0.0.1_20130802/os/linux/../../ap/ap_cfg.c:11850:10: warning: unused variable ‘Value1’ [-Wunused-variable]
  UINT32  Value1 = 0;
          ^~~~~~
cc1: some warnings being treated as errors
scripts/Makefile.build:332: recipe for target '/home/ysgg/Downloads/MT7601U_LinuxAP_3.0.0.1_20130802/os/linux/../../ap/ap_cfg.o' failed
make[2]: *** [/home/ysgg/Downloads/MT7601U_LinuxAP_3.0.0.1_20130802/os/linux/../../ap/ap_cfg.o] Error 1
Makefile:1552: recipe for target '_module_/home/ysgg/Downloads/MT7601U_LinuxAP_3.0.0.1_20130802/os/linux' failed
make[1]: *** [_module_/home/ysgg/Downloads/MT7601U_LinuxAP_3.0.0.1_20130802/os/linux] Error 2
make[1]: Leaving directory '/usr/src/linux-headers-4.15.0-30deepin-generic'
Makefile:387: recipe for target 'LINUX' failed
make: *** [LINUX] Error 2
Reply View the author