LINUX.ORG.RU

Не получается собрать драйвер Ralink

 


0

1
beta@beta-version-pc:~/Загрузки/DPO_RT5572_LinuxSTA_2.6.1.3_20121022$ sudo make
[sudo] пароль для beta: 
make -C tools
make[1]: вход в каталог «/home/beta/Загрузки/DPO_RT5572_LinuxSTA_2.6.1.3_20121022/tools»
gcc -g bin2h.c -o bin2h
make[1]: выход из каталога «/home/beta/Загрузки/DPO_RT5572_LinuxSTA_2.6.1.3_20121022/tools»
/home/beta/Загрузки/DPO_RT5572_LinuxSTA_2.6.1.3_20121022/tools/bin2h
cp -f os/linux/Makefile.6 /home/beta/Загрузки/DPO_RT5572_LinuxSTA_2.6.1.3_20121022/os/linux/Makefile
make -C /lib/modules/3.16.0-4-amd64/build SUBDIRS=/home/beta/Загрузки/DPO_RT5572_LinuxSTA_2.6.1.3_20121022/os/linux modules
make[1]: вход в каталог «/usr/src/linux-headers-3.16.0-4-amd64»
Makefile:10: *** mixed implicit and normal rules: deprecated syntax
make[1]: Entering directory `/usr/src/linux-headers-3.16.0-4-amd64'
  CC [M]  /home/beta/Загрузки/DPO_RT5572_LinuxSTA_2.6.1.3_20121022/os/linux/../../common/crypt_md5.o
  CC [M]  /home/beta/Загрузки/DPO_RT5572_LinuxSTA_2.6.1.3_20121022/os/linux/../../common/crypt_sha2.o
  CC [M]  /home/beta/Загрузки/DPO_RT5572_LinuxSTA_2.6.1.3_20121022/os/linux/../../common/crypt_hmac.o
  CC [M]  /home/beta/Загрузки/DPO_RT5572_LinuxSTA_2.6.1.3_20121022/os/linux/../../common/crypt_aes.o
/home/beta/Загрузки/DPO_RT5572_LinuxSTA_2.6.1.3_20121022/os/linux/../../common/crypt_aes.c: In function ‘AES_Key_Wrap’:
/home/beta/Загрузки/DPO_RT5572_LinuxSTA_2.6.1.3_20121022/os/linux/../../common/crypt_aes.c:1459:6: 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));
      ^
/home/beta/Загрузки/DPO_RT5572_LinuxSTA_2.6.1.3_20121022/os/linux/../../common/crypt_aes.c: In function ‘AES_Key_Unwrap’:
/home/beta/Загрузки/DPO_RT5572_LinuxSTA_2.6.1.3_20121022/os/linux/../../common/crypt_aes.c:1554:6: 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));
      ^
  CC [M]  /home/beta/Загрузки/DPO_RT5572_LinuxSTA_2.6.1.3_20121022/os/linux/../../common/crypt_arc4.o
  CC [M]  /home/beta/Загрузки/DPO_RT5572_LinuxSTA_2.6.1.3_20121022/os/linux/../../common/mlme.o
In file included from /home/beta/Загрузки/DPO_RT5572_LinuxSTA_2.6.1.3_20121022/include/rtmp_os.h:44:0,
                 from /home/beta/Загрузки/DPO_RT5572_LinuxSTA_2.6.1.3_20121022/include/rtmp_comm.h:69,
                 from /home/beta/Загрузки/DPO_RT5572_LinuxSTA_2.6.1.3_20121022/include/rt_config.h:33,
                 from /home/beta/Загрузки/DPO_RT5572_LinuxSTA_2.6.1.3_20121022/os/linux/../../common/mlme.c:28:
/home/beta/Загрузки/DPO_RT5572_LinuxSTA_2.6.1.3_20121022/os/linux/../../common/mlme.c: In function ‘MlmeResetRalinkCounters’:
/home/beta/Загрузки/DPO_RT5572_LinuxSTA_2.6.1.3_20121022/os/linux/../../common/mlme.c:568:7: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast]
       (UINT32)&pAd->RalinkCounters.OneSecEnd -
       ^
/home/beta/Загрузки/DPO_RT5572_LinuxSTA_2.6.1.3_20121022/include/os/rt_linux.h:468:76: note: in definition of macro ‘NdisZeroMemory’
 #define NdisZeroMemory(Destination, Length)         memset(Destination, 0, Length)
                                                                            ^
/home/beta/Загрузки/DPO_RT5572_LinuxSTA_2.6.1.3_20121022/os/linux/../../common/mlme.c:569:7: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast]
       (UINT32)&pAd->RalinkCounters.OneSecStart);
       ^
/home/beta/Загрузки/DPO_RT5572_LinuxSTA_2.6.1.3_20121022/include/os/rt_linux.h:468:76: note: in definition of macro ‘NdisZeroMemory’
 #define NdisZeroMemory(Destination, Length)         memset(Destination, 0, Length)
                                                                            ^
  CC [M]  /home/beta/Загрузки/DPO_RT5572_LinuxSTA_2.6.1.3_20121022/os/linux/../../common/cmm_wep.o
  CC [M]  /home/beta/Загрузки/DPO_RT5572_LinuxSTA_2.6.1.3_20121022/os/linux/../../common/action.o
  CC [M]  /home/beta/Загрузки/DPO_RT5572_LinuxSTA_2.6.1.3_20121022/os/linux/../../common/cmm_data.o
/home/beta/Загрузки/DPO_RT5572_LinuxSTA_2.6.1.3_20121022/os/linux/../../common/cmm_data.c: In function ‘RtmpPrepareHwNullFrame’:
/home/beta/Загрузки/DPO_RT5572_LinuxSTA_2.6.1.3_20121022/os/linux/../../common/cmm_data.c:3142:34: warning: passing argument 2 of ‘hex_dump’ from incompatible pointer type
    hex_dump("null frame before", &longValue, 4);
                                  ^
In file included from /home/beta/Загрузки/DPO_RT5572_LinuxSTA_2.6.1.3_20121022/include/rt_config.h:66:0,
                 from /home/beta/Загрузки/DPO_RT5572_LinuxSTA_2.6.1.3_20121022/os/linux/../../common/cmm_data.c:28:
/home/beta/Загрузки/DPO_RT5572_LinuxSTA_2.6.1.3_20121022/include/rt_os_util.h:679:6: note: expected ‘unsigned char *’ but argument is of type ‘UINT32 *’
 void hex_dump(char *str, unsigned char *pSrcBufVA, unsigned int SrcBufLen);
      ^
In file included from /home/beta/Загрузки/DPO_RT5572_LinuxSTA_2.6.1.3_20121022/include/rtmp_os.h:44:0,
                 from /home/beta/Загрузки/DPO_RT5572_LinuxSTA_2.6.1.3_20121022/include/rtmp_comm.h:69,
                 from /home/beta/Загрузки/DPO_RT5572_LinuxSTA_2.6.1.3_20121022/include/rt_config.h:33,
                 from /home/beta/Загрузки/DPO_RT5572_LinuxSTA_2.6.1.3_20121022/os/linux/../../common/cmm_data.c:28:
/home/beta/Загрузки/DPO_RT5572_LinuxSTA_2.6.1.3_20121022/include/os/rt_linux.h:787:29: warning: passing argument 2 of ‘RTUSBReadMACRegister’ makes integer from pointer without a cast
  RTUSBReadMACRegister((_A), (_R), (PUINT32) (_pV))
                             ^
/home/beta/Загрузки/DPO_RT5572_LinuxSTA_2.6.1.3_20121022/os/linux/../../common/cmm_data.c:3150:4: note: in expansion of macro ‘RTMP_IO_READ32’
    RTMP_IO_READ32(pAd, pAd->NullBufOffset + TXWISize+ i, &longValue);
    ^
In file included from /home/beta/Загрузки/DPO_RT5572_LinuxSTA_2.6.1.3_20121022/include/rt_config.h:61:0,
                 from /home/beta/Загрузки/DPO_RT5572_LinuxSTA_2.6.1.3_20121022/os/linux/../../common/cmm_data.c:28:
/home/beta/Загрузки/DPO_RT5572_LinuxSTA_2.6.1.3_20121022/include/rtmp.h:7214:10: note: expected ‘USHORT’ but argument is of type ‘USHORT *’
 NTSTATUS RTUSBReadMACRegister(
          ^
/home/beta/Загрузки/DPO_RT5572_LinuxSTA_2.6.1.3_20121022/os/linux/../../common/cmm_data.c:3151:33: warning: passing argument 2 of ‘hex_dump’ from incompatible pointer type
    hex_dump("null frame after", &longValue, 4);
                                 ^
In file included from /home/beta/Загрузки/DPO_RT5572_LinuxSTA_2.6.1.3_20121022/include/rt_config.h:66:0,
                 from /home/beta/Загрузки/DPO_RT5572_LinuxSTA_2.6.1.3_20121022/os/linux/../../common/cmm_data.c:28:
/home/beta/Загрузки/DPO_RT5572_LinuxSTA_2.6.1.3_20121022/include/rt_os_util.h:679:6: note: expected ‘unsigned char *’ but argument is of type ‘UINT32 *’
 void hex_dump(char *str, unsigned char *pSrcBufVA, unsigned int SrcBufLen);
      ^
/home/beta/Загрузки/DPO_RT5572_LinuxSTA_2.6.1.3_20121022/os/linux/../../common/cmm_data.c:3021:8: warning: unused variable ‘MlmeRate’ [-Wunused-variable]
  UCHAR MlmeRate;
        ^
  CC [M]  /home/beta/Загрузки/DPO_RT5572_LinuxSTA_2.6.1.3_20121022/os/linux/../../common/rtmp_init.o
/home/beta/Загрузки/DPO_RT5572_LinuxSTA_2.6.1.3_20121022/os/linux/../../common/rtmp_init.c: In function ‘NICInitializeAsic’:
/home/beta/Загрузки/DPO_RT5572_LinuxSTA_2.6.1.3_20121022/os/linux/../../common/rtmp_init.c:1826:11: warning: unused variable ‘apidx’ [-Wunused-variable]
  INT    i,apidx;
           ^
/home/beta/Загрузки/DPO_RT5572_LinuxSTA_2.6.1.3_20121022/os/linux/../../common/rtmp_init.c:1826:9: warning: unused variable ‘i’ [-Wunused-variable]
  INT    i,apidx;
         ^
  CC [M]  /home/beta/Загрузки/DPO_RT5572_LinuxSTA_2.6.1.3_20121022/os/linux/../../common/rtmp_init_inf.o
  CC [M]  /home/beta/Загрузки/DPO_RT5572_LinuxSTA_2.6.1.3_20121022/os/linux/../../common/cmm_tkip.o
  CC [M]  /home/beta/Загрузки/DPO_RT5572_LinuxSTA_2.6.1.3_20121022/os/linux/../../common/cmm_aes.o
  CC [M]  /home/beta/Загрузки/DPO_RT5572_LinuxSTA_2.6.1.3_20121022/os/linux/../../common/cmm_sync.o
  CC [M]  /home/beta/Загрузки/DPO_RT5572_LinuxSTA_2.6.1.3_20121022/os/linux/../../common/eeprom.o
  CC [M]  /home/beta/Загрузки/DPO_RT5572_LinuxSTA_2.6.1.3_20121022/os/linux/../../common/cmm_sanity.o
  CC [M]  /home/beta/Загрузки/DPO_RT5572_LinuxSTA_2.6.1.3_20121022/os/linux/../../common/cmm_info.o
  CC [M]  /home/beta/Загрузки/DPO_RT5572_LinuxSTA_2.6.1.3_20121022/os/linux/../../common/cmm_cfg.o
  CC [M]  /home/beta/Загрузки/DPO_RT5572_LinuxSTA_2.6.1.3_20121022/os/linux/../../common/cmm_wpa.o
/home/beta/Загрузки/DPO_RT5572_LinuxSTA_2.6.1.3_20121022/os/linux/../../common/cmm_wpa.c: In function ‘PeerPairMsg3Action’:
/home/beta/Загрузки/DPO_RT5572_LinuxSTA_2.6.1.3_20121022/os/linux/../../common/cmm_wpa.c:1031:13: warning: unused variable ‘Cancelled’ [-Wunused-variable]
  BOOLEAN    Cancelled;
             ^
/home/beta/Загрузки/DPO_RT5572_LinuxSTA_2.6.1.3_20121022/os/linux/../../common/cmm_wpa.c: In function ‘RTMPToWirelessSta’:
/home/beta/Загрузки/DPO_RT5572_LinuxSTA_2.6.1.3_20121022/os/linux/../../common/cmm_wpa.c:424:31: warning: iteration 4u invokes undefined behavior [-Waggressive-loop-optimizations]
       if(pAd->TxSwQueue[Index].Number > 0)
                               ^
/home/beta/Загрузки/DPO_RT5572_LinuxSTA_2.6.1.3_20121022/os/linux/../../common/cmm_wpa.c:423:6: note: containing loop
      for(Index = 0; Index < 5; Index ++)
      ^
  CC [M]  /home/beta/Загрузки/DPO_RT5572_LinuxSTA_2.6.1.3_20121022/os/linux/../../common/cmm_radar.o
  CC [M]  /home/beta/Загрузки/DPO_RT5572_LinuxSTA_2.6.1.3_20121022/os/linux/../../common/spectrum.o
/home/beta/Загрузки/DPO_RT5572_LinuxSTA_2.6.1.3_20121022/os/linux/../../common/spectrum.c: In function ‘PeerMeasureReportAction’:
/home/beta/Загрузки/DPO_RT5572_LinuxSTA_2.6.1.3_20121022/os/linux/../../common/spectrum.c:1972:3: 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)));
   ^
  CC [M]  /home/beta/Загрузки/DPO_RT5572_LinuxSTA_2.6.1.3_20121022/os/linux/../../common/rtmp_timer.o
  CC [M]  /home/beta/Загрузки/DPO_RT5572_LinuxSTA_2.6.1.3_20121022/os/linux/../../common/rt_channel.o
  CC [M]  /home/beta/Загрузки/DPO_RT5572_LinuxSTA_2.6.1.3_20121022/os/linux/../../common/cmm_profile.o
  CC [M]  /home/beta/Загрузки/DPO_RT5572_LinuxSTA_2.6.1.3_20121022/os/linux/../../common/cmm_asic.o
/home/beta/Загрузки/DPO_RT5572_LinuxSTA_2.6.1.3_20121022/os/linux/../../common/cmm_asic.c: In function ‘AsicGetAutoAgcOffsetForTemperatureSensor’:
/home/beta/Загрузки/DPO_RT5572_LinuxSTA_2.6.1.3_20121022/os/linux/../../common/cmm_asic.c:1188:28: warning: assignment discards ‘const’ qualifier from pointer target type
   TxPowerTuningTableEntry0 = &TxPowerTuningTable[TuningTableIndex0 + TX_POWER_TUNING_ENTRY_OFFSET];
                            ^
/home/beta/Загрузки/DPO_RT5572_LinuxSTA_2.6.1.3_20121022/os/linux/../../common/cmm_asic.c:1201:28: warning: assignment discards ‘const’ qualifier from pointer target type
   TxPowerTuningTableEntry1 = &TxPowerTuningTable[TuningTableIndex1 + TX_POWER_TUNING_ENTRY_OFFSET];
                            ^
  CC [M]  /home/beta/Загрузки/DPO_RT5572_LinuxSTA_2.6.1.3_20121022/os/linux/../../common/cmm_cmd.o
  CC [M]  /home/beta/Загрузки/DPO_RT5572_LinuxSTA_2.6.1.3_20121022/os/linux/../../common/ps.o
  CC [M]  /home/beta/Загрузки/DPO_RT5572_LinuxSTA_2.6.1.3_20121022/os/linux/../../common/uapsd.o
  CC [M]  /home/beta/Загрузки/DPO_RT5572_LinuxSTA_2.6.1.3_20121022/os/linux/../../rate_ctrl/ra_ctrl.o
  CC [M]  /home/beta/Загрузки/DPO_RT5572_LinuxSTA_2.6.1.3_20121022/os/linux/../../rate_ctrl/alg_legacy.o
  CC [M]  /home/beta/Загрузки/DPO_RT5572_LinuxSTA_2.6.1.3_20121022/os/linux/../../rate_ctrl/alg_ags.o
  CC [M]  /home/beta/Загрузки/DPO_RT5572_LinuxSTA_2.6.1.3_20121022/os/linux/../../os/linux/rt_profile.o
/home/beta/Загрузки/DPO_RT5572_LinuxSTA_2.6.1.3_20121022/os/linux/../../os/linux/rt_profile.c: In function ‘STA_MonPktSend’:
/home/beta/Загрузки/DPO_RT5572_LinuxSTA_2.6.1.3_20121022/os/linux/../../os/linux/rt_profile.c:463:9: 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)));
         ^
  CC [M]  /home/beta/Загрузки/DPO_RT5572_LinuxSTA_2.6.1.3_20121022/os/linux/../../chips/rtmp_chip.o
/home/beta/Загрузки/DPO_RT5572_LinuxSTA_2.6.1.3_20121022/os/linux/../../chips/rtmp_chip.c: In function ‘RTMPReadChannelPwr’:
/home/beta/Загрузки/DPO_RT5572_LinuxSTA_2.6.1.3_20121022/os/linux/../../chips/rtmp_chip.c:1380:2: warning: ISO C90 forbids mixed declarations and code [-Wdeclaration-after-statement]
  UCHAR  Tx2ALC = 0, Tx2FinePowerCtrl = 0;
  ^
  CC [M]  /home/beta/Загрузки/DPO_RT5572_LinuxSTA_2.6.1.3_20121022/os/linux/../../sta/assoc.o
  CC [M]  /home/beta/Загрузки/DPO_RT5572_LinuxSTA_2.6.1.3_20121022/os/linux/../../sta/auth.o
  CC [M]  /home/beta/Загрузки/DPO_RT5572_LinuxSTA_2.6.1.3_20121022/os/linux/../../sta/auth_rsp.o
  CC [M]  /home/beta/Загрузки/DPO_RT5572_LinuxSTA_2.6.1.3_20121022/os/linux/../../sta/sync.o
  CC [M]  /home/beta/Загрузки/DPO_RT5572_LinuxSTA_2.6.1.3_20121022/os/linux/../../sta/sanity.o
  CC [M]  /home/beta/Загрузки/DPO_RT5572_LinuxSTA_2.6.1.3_20121022/os/linux/../../sta/rtmp_data.o
/home/beta/Загрузки/DPO_RT5572_LinuxSTA_2.6.1.3_20121022/os/linux/../../sta/rtmp_data.c: In function ‘STAHandleRxDataFrame’:
/home/beta/Загрузки/DPO_RT5572_LinuxSTA_2.6.1.3_20121022/os/linux/../../sta/rtmp_data.c:284:17: warning: unused variable ‘pFmeCtrl’ [-Wunused-variable]
  FRAME_CONTROL *pFmeCtrl = &pHeader->FC;
                 ^
/home/beta/Загрузки/DPO_RT5572_LinuxSTA_2.6.1.3_20121022/os/linux/../../sta/rtmp_data.c:283:8: warning: unused variable ‘OldPwrMgmt’ [-Wunused-variable]
  UCHAR OldPwrMgmt = PWR_ACTIVE;
        ^
/home/beta/Загрузки/DPO_RT5572_LinuxSTA_2.6.1.3_20121022/os/linux/../../sta/rtmp_data.c: In function ‘STAFindCipherAlgorithm’:
/home/beta/Загрузки/DPO_RT5572_LinuxSTA_2.6.1.3_20121022/os/linux/../../sta/rtmp_data.c:1740:4: warning: suggest parentheses around ‘&&’ within ‘||’ [-Wparentheses]
    && (!ADHOC_ON(pAd))) || (ADHOC_ON(pAd) && (pAd->SharedKey[BSS0][KeyIdx].KeyLen == 0)))
    ^
  CC [M]  /home/beta/Загрузки/DPO_RT5572_LinuxSTA_2.6.1.3_20121022/os/linux/../../sta/connect.o
  CC [M]  /home/beta/Загрузки/DPO_RT5572_LinuxSTA_2.6.1.3_20121022/os/linux/../../sta/wpa.o
  CC [M]  /home/beta/Загрузки/DPO_RT5572_LinuxSTA_2.6.1.3_20121022/os/linux/../../sta/sta_cfg.o
/home/beta/Загрузки/DPO_RT5572_LinuxSTA_2.6.1.3_20121022/os/linux/../../sta/sta_cfg.c: In function ‘RTMPQueryInformation’:
/home/beta/Загрузки/DPO_RT5572_LinuxSTA_2.6.1.3_20121022/os/linux/../../sta/sta_cfg.c:4039:4: warning: format ‘%d’ expects argument of type ‘int’, but argument 2 has type ‘long unsigned int’ [-Wformat=]
    DBGPRINT(RT_DEBUG_TRACE, ("sizeof UCHAR=%d, channel=%d \n", sizeof(UCHAR), pAd->CommonCfg.Channel));
    ^
/home/beta/Загрузки/DPO_RT5572_LinuxSTA_2.6.1.3_20121022/os/linux/../../sta/sta_cfg.c: In function ‘set_quality’:
/home/beta/Загрузки/DPO_RT5572_LinuxSTA_2.6.1.3_20121022/os/linux/../../sta/sta_cfg.c:5548:2: warning: ISO C90 forbids mixed declarations and code [-Wdeclaration-after-statement]
  BOOLEAN bInitial = FALSE;
  ^
  CC [M]  /home/beta/Загрузки/DPO_RT5572_LinuxSTA_2.6.1.3_20121022/os/linux/../../common/rt_os_util.o
  CC [M]  /home/beta/Загрузки/DPO_RT5572_LinuxSTA_2.6.1.3_20121022/os/linux/../../os/linux/sta_ioctl.o
  CC [M]  /home/beta/Загрузки/DPO_RT5572_LinuxSTA_2.6.1.3_20121022/os/linux/../../os/linux/rt_linux.o
In file included from /home/beta/Загрузки/DPO_RT5572_LinuxSTA_2.6.1.3_20121022/include/rtmp_os.h:44:0,
                 from /home/beta/Загрузки/DPO_RT5572_LinuxSTA_2.6.1.3_20121022/include/rtmp_comm.h:69,
                 from /home/beta/Загрузки/DPO_RT5572_LinuxSTA_2.6.1.3_20121022/os/linux/../../os/linux/rt_linux.c:32:
/home/beta/Загрузки/DPO_RT5572_LinuxSTA_2.6.1.3_20121022/os/linux/../../os/linux/rt_linux.c: In function ‘duplicate_pkt’:
/home/beta/Загрузки/DPO_RT5572_LinuxSTA_2.6.1.3_20121022/os/linux/../../os/linux/rt_linux.c:513:18: warning: passing argument 1 of ‘memmove’ makes pointer from integer without a cast
   NdisMoveMemory(skb->tail, pHeader802_3, HdrLen);
                  ^
/home/beta/Загрузки/DPO_RT5572_LinuxSTA_2.6.1.3_20121022/include/os/rt_linux.h:466:61: note: in definition of macro ‘NdisMoveMemory’
 #define NdisMoveMemory(Destination, Source, Length) memmove(Destination, Source, Length)
                                                             ^
In file included from /usr/src/linux-headers-3.16.0-4-common/arch/x86/include/asm/string.h:4:0,
                 from /usr/src/linux-headers-3.16.0-4-common/include/linux/string.h:17,
                 from /usr/src/linux-headers-3.16.0-4-common/include/linux/bitmap.h:8,
                 from /usr/src/linux-headers-3.16.0-4-common/include/linux/cpumask.h:11,
                 from /usr/src/linux-headers-3.16.0-4-common/arch/x86/include/asm/cpumask.h:4,
                 from /usr/src/linux-headers-3.16.0-4-common/arch/x86/include/asm/msr.h:10,
                 from /usr/src/linux-headers-3.16.0-4-common/arch/x86/include/asm/processor.h:20,
                 from /usr/src/linux-headers-3.16.0-4-common/arch/x86/include/asm/thread_info.h:23,
                 from /usr/src/linux-headers-3.16.0-4-common/include/linux/thread_info.h:54,
                 from /usr/src/linux-headers-3.16.0-4-common/arch/x86/include/asm/preempt.h:6,
                 from /usr/src/linux-headers-3.16.0-4-common/include/linux/preempt.h:18,
                 from /usr/src/linux-headers-3.16.0-4-common/include/linux/spinlock.h:50,
                 from /usr/src/linux-headers-3.16.0-4-common/include/linux/seqlock.h:35,
                 from /usr/src/linux-headers-3.16.0-4-common/include/linux/time.h:5,
                 from /usr/src/linux-headers-3.16.0-4-common/include/linux/stat.h:18,
                 from /usr/src/linux-headers-3.16.0-4-common/include/linux/module.h:10,
                 from /home/beta/Загрузки/DPO_RT5572_LinuxSTA_2.6.1.3_20121022/include/os/rt_linux.h:31,
                 from /home/beta/Загрузки/DPO_RT5572_LinuxSTA_2.6.1.3_20121022/include/rtmp_os.h:44,
                 from /home/beta/Загрузки/DPO_RT5572_LinuxSTA_2.6.1.3_20121022/include/rtmp_comm.h:69,
                 from /home/beta/Загрузки/DPO_RT5572_LinuxSTA_2.6.1.3_20121022/os/linux/../../os/linux/rt_linux.c:32:
/usr/src/linux-headers-3.16.0-4-common/arch/x86/include/asm/string_64.h:58:7: note: expected ‘void *’ but argument is of type ‘sk_buff_data_t’
 void *memmove(void *dest, const void *src, size_t count);
       ^
In file included from /home/beta/Загрузки/DPO_RT5572_LinuxSTA_2.6.1.3_20121022/include/rtmp_os.h:44:0,
                 from /home/beta/Загрузки/DPO_RT5572_LinuxSTA_2.6.1.3_20121022/include/rtmp_comm.h:69,
                 from /home/beta/Загрузки/DPO_RT5572_LinuxSTA_2.6.1.3_20121022/os/linux/../../os/linux/rt_linux.c:32:
/home/beta/Загрузки/DPO_RT5572_LinuxSTA_2.6.1.3_20121022/os/linux/../../os/linux/rt_linux.c:515:18: warning: passing argument 1 of ‘memmove’ makes pointer from integer without a cast
   NdisMoveMemory(skb->tail, pData, DataSize);
                  ^
/home/beta/Загрузки/DPO_RT5572_LinuxSTA_2.6.1.3_20121022/include/os/rt_linux.h:466:61: note: in definition of macro ‘NdisMoveMemory’
 #define NdisMoveMemory(Destination, Source, Length) memmove(Destination, Source, Length)
                                                             ^
In file included from /usr/src/linux-headers-3.16.0-4-common/arch/x86/include/asm/string.h:4:0,
                 from /usr/src/linux-headers-3.16.0-4-common/include/linux/string.h:17,
                 from /usr/src/linux-headers-3.16.0-4-common/include/linux/bitmap.h:8,
                 from /usr/src/linux-headers-3.16.0-4-common/include/linux/cpumask.h:11,
                 from /usr/src/linux-headers-3.16.0-4-common/arch/x86/include/asm/cpumask.h:4,
                 from /usr/src/linux-headers-3.16.0-4-common/arch/x86/include/asm/msr.h:10,
                 from /usr/src/linux-headers-3.16.0-4-common/arch/x86/include/asm/processor.h:20,
                 from /usr/src/linux-headers-3.16.0-4-common/arch/x86/include/asm/thread_info.h:23,
                 from /usr/src/linux-headers-3.16.0-4-common/include/linux/thread_info.h:54,
                 from /usr/src/linux-headers-3.16.0-4-common/arch/x86/include/asm/preempt.h:6,
                 from /usr/src/linux-headers-3.16.0-4-common/include/linux/preempt.h:18,
                 from /usr/src/linux-headers-3.16.0-4-common/include/linux/spinlock.h:50,
                 from /usr/src/linux-headers-3.16.0-4-common/include/linux/seqlock.h:35,
                 from /usr/src/linux-headers-3.16.0-4-common/include/linux/time.h:5,
                 from /usr/src/linux-headers-3.16.0-4-common/include/linux/stat.h:18,
                 from /usr/src/linux-headers-3.16.0-4-common/include/linux/module.h:10,
                 from /home/beta/Загрузки/DPO_RT5572_LinuxSTA_2.6.1.3_20121022/include/os/rt_linux.h:31,
                 from /home/beta/Загрузки/DPO_RT5572_LinuxSTA_2.6.1.3_20121022/include/rtmp_os.h:44,
                 from /home/beta/Загрузки/DPO_RT5572_LinuxSTA_2.6.1.3_20121022/include/rtmp_comm.h:69,
                 from /home/beta/Загрузки/DPO_RT5572_LinuxSTA_2.6.1.3_20121022/os/linux/../../os/linux/rt_linux.c:32:
/usr/src/linux-headers-3.16.0-4-common/arch/x86/include/asm/string_64.h:58:7: note: expected ‘void *’ but argument is of type ‘sk_buff_data_t’
 void *memmove(void *dest, const void *src, size_t count);
       ^
/home/beta/Загрузки/DPO_RT5572_LinuxSTA_2.6.1.3_20121022/os/linux/../../os/linux/rt_linux.c: In function ‘ClonePacket’:
/home/beta/Загрузки/DPO_RT5572_LinuxSTA_2.6.1.3_20121022/os/linux/../../os/linux/rt_linux.c:667:20: warning: assignment makes integer from pointer without a cast
   pClonedPkt->tail = pClonedPkt->data + pClonedPkt->len;
                    ^
In file included from /home/beta/Загрузки/DPO_RT5572_LinuxSTA_2.6.1.3_20121022/include/rtmp_os.h:44:0,
                 from /home/beta/Загрузки/DPO_RT5572_LinuxSTA_2.6.1.3_20121022/include/rtmp_comm.h:69,
                 from /home/beta/Загрузки/DPO_RT5572_LinuxSTA_2.6.1.3_20121022/os/linux/../../os/linux/rt_linux.c:32:
/home/beta/Загрузки/DPO_RT5572_LinuxSTA_2.6.1.3_20121022/os/linux/../../os/linux/rt_linux.c: In function ‘RtmpOsPktInit’:
/home/beta/Загрузки/DPO_RT5572_LinuxSTA_2.6.1.3_20121022/include/os/rt_linux.h:886:34: warning: assignment makes integer from pointer without a cast
   ((RTPKT_TO_OSPKT(_pkt))->tail) = (PUCHAR)((_start) + (_len))
                                  ^
/home/beta/Загрузки/DPO_RT5572_LinuxSTA_2.6.1.3_20121022/os/linux/../../os/linux/rt_linux.c:686:2: note: in expansion of macro ‘SET_OS_PKT_DATATAIL’
  SET_OS_PKT_DATATAIL(pRxPkt, pData, DataSize);
  ^
/home/beta/Загрузки/DPO_RT5572_LinuxSTA_2.6.1.3_20121022/os/linux/../../os/linux/rt_linux.c: In function ‘wlan_802_11_to_802_3_packet’:
/home/beta/Загрузки/DPO_RT5572_LinuxSTA_2.6.1.3_20121022/os/linux/../../os/linux/rt_linux.c:713:15: warning: assignment makes integer from pointer without a cast
  pOSPkt->tail = pOSPkt->data + pOSPkt->len;
               ^
/home/beta/Загрузки/DPO_RT5572_LinuxSTA_2.6.1.3_20121022/os/linux/../../os/linux/rt_linux.c: In function ‘__RtmpOSFSInfoChange’:
/home/beta/Загрузки/DPO_RT5572_LinuxSTA_2.6.1.3_20121022/os/linux/../../os/linux/rt_linux.c:1141:20: error: incompatible types when assigning to type ‘int’ from type ‘kuid_t’
   pOSFSInfo->fsuid = current_fsuid();
                    ^
/home/beta/Загрузки/DPO_RT5572_LinuxSTA_2.6.1.3_20121022/os/linux/../../os/linux/rt_linux.c:1142:20: error: incompatible types when assigning to type ‘int’ from type ‘kgid_t’
   pOSFSInfo->fsgid = current_fsgid();
                    ^
/usr/src/linux-headers-3.16.0-4-common/scripts/Makefile.build:262: ошибка выполнения рецепта для цели «/home/beta/Загрузки/DPO_RT5572_LinuxSTA_2.6.1.3_20121022/os/linux/../../os/linux/rt_linux.o»
make[4]: *** [/home/beta/Загрузки/DPO_RT5572_LinuxSTA_2.6.1.3_20121022/os/linux/../../os/linux/rt_linux.o] Ошибка 1
/usr/src/linux-headers-3.16.0-4-common/Makefile:1350: ошибка выполнения рецепта для цели «_module_/home/beta/Загрузки/DPO_RT5572_LinuxSTA_2.6.1.3_20121022/os/linux»
make[3]: *** [_module_/home/beta/Загрузки/DPO_RT5572_LinuxSTA_2.6.1.3_20121022/os/linux] Ошибка 2
Makefile:181: ошибка выполнения рецепта для цели «sub-make»
make[2]: *** [sub-make] Ошибка 2
Makefile:8: ошибка выполнения рецепта для цели «all»
make[1]: *** [all] Ошибка 2
make[1]: выход из каталога «/usr/src/linux-headers-3.16.0-4-amd64»
Makefile:388: ошибка выполнения рецепта для цели «LINUX»
make: *** [LINUX] Ошибка 2

Поддержка 5572 появилась в 3.10, зачем ты собираешь сторонний модуль, к тому же такой старый?

post-factum ★★★★★
()
Ответ на: комментарий от post-factum

Мой DWA-140 [RT5372] отказывается выдавать скорость выше 10 мегабит, хотя должно быть в районе 50 мегабит (по тарифу. Сам адаптер должен втягивать ~300 мегабит). Плюс довольно часто теряет соединение с модемом.

В гугле все решения этой проблемы начинаются с установки дров с сайта производителя.

BetaVersion
() автор топика
Ответ на: комментарий от BetaVersion

должно быть в районе 50 мегабит (по тарифу

Если по тарифу, то скорее всего «до 50», а не «50».

Сам адаптер должен втягивать ~300 мегабит

Это канальная скорость. Никакими реальными 300 там и не пахнет.

Поскольку на сайте новее версии нет, то либо ставь более старое ядро, либо копай исходники дров, чтобы адаптировать их к новому ядру, либо меняй карточку.

Хотя на твоём месте я бы для начала попробовал ядро 4.х.

post-factum ★★★★★
()
cat /usr/src/rt5572/os/linux/rt_linux.c | head -n1142 | tail -n3
/*#else
                pOSFSInfo->fsuid = current_fsuid();
                pOSFSInfo->fsgid = current_fsgid();*/
alfix
()
4 июля 2016 г.

Вот патч: https://dl.dropboxusercontent.com/s/qlx4jn1t3y79zrg/rt2870-mt7601Usta-kuid_t-... На случай, если удалят:

--- include/os/rt_linux.h	2013-09-12 13:27:14.000000000 +0800
+++ include/os/rt_linux.h	2014-03-23 11:45:03.907628847 +0800
@@ -279,8 +279,8 @@ typedef struct file* RTMP_OS_FD;
 
 typedef struct _OS_FS_INFO_
 {
-	int				fsuid;
-	int				fsgid;
+	kuid_t				fsuid;
+	kgid_t				fsgid;
 	mm_segment_t	fs;
 } OS_FS_INFO;
 
--- sta/sta_cfg.c	2013-09-12 13:27:14.000000000 +0800
+++ sta/sta_cfg.c	2014-12-15 11:49:50.747843025 +0800
@@ -5763,7 +5763,10 @@
             wrq->u.data.length = strlen(extra) + 1; /* 1: size of '\0' */
             break;
         case SHOW_DRVIER_VERION:
+#pragma GCC diagnostic push
+#pragma GCC diagnostic ignored "-Wdate-time"
             snprintf(extra, size, "Driver version-%s, %s %s\n", STA_DRIVER_VERSION, __DATE__, __TIME__ );
+#pragma GCC diagnostic pop
             wrq->u.data.length = strlen(extra) + 1; /* 1: size of '\0' */
             break;
 #ifdef DOT11_N_SUPPORT

Полезные ссылки: https://ask.fedoraproject.org/en/question/23693/rt5390-wireless-problem/ http://www.arnelborja.com/compiling-rt2870-wifi-driver-in-fedora/

ZenitharChampion ★★★★★
()
Последнее исправление: ZenitharChampion (всего исправлений: 1)
Вы не можете добавлять комментарии в эту тему. Тема перемещена в архив.