Ajuda com o adaptador sem fio de banda dupla da Belkin AC867

3

Eu tenho tentado fazer com que meu adaptador USB Dual Band Belkin AC867 funcione com o Ubuntu 15.04 sem sucesso. Eu segui este tutorial link . Atualmente estou on-line via tethering via bluetooth.

Eu esperava que funcionasse, mas estou recebendo uma mensagem de erro quando digito o seguinte comando na janela do terminal:

    cd rtl8821AU_8821AU_linux
    make

Depois de digitar make é quando recebo um erro no final do script de código

jonathan@pc:~/rtl8812AU_8821AU_linux$ make
make ARCH=x86_64 CROSS_COMPILE= -C /lib/modules/3.19.0-16-generic/build M=/home/jonathan/rtl8812AU_8821AU_linux  modules
make[1]: Entering directory '/usr/src/linux-headers-3.19.0-16-generic'
  CC [M]  /home/jonathan/rtl8812AU_8821AU_linux/os_dep/linux/ioctl_cfg80211.o
/home/jonathan/rtl8812AU_8821AU_linux/os_dep/linux/ioctl_cfg80211.c: In function ‘cfg80211_rtw_add_key’:
/home/jonathan/rtl8812AU_8821AU_linux/os_dep/linux/ioctl_cfg80211.c:1250:35: warning: passing argument 2 of ‘_rtw_memcpy’ discards ‘const’ qualifier from pointer target type
   _rtw_memcpy(param->u.crypt.seq, params->seq, params->seq_len);
                                   ^
In file included from /home/jonathan/rtl8812AU_8821AU_linux/include/drv_types.h:32:0,
                 from /home/jonathan/rtl8812AU_8821AU_linux/os_dep/linux/ioctl_cfg80211.c:22:
/home/jonathan/rtl8812AU_8821AU_linux/include/osdep_service.h:167:13: note: expected ‘void *’ but argument is of type ‘const u8 *’
 extern void _rtw_memcpy(void* dec, void* sour, u32 sz);
             ^
/home/jonathan/rtl8812AU_8821AU_linux/os_dep/linux/ioctl_cfg80211.c:1256:35: warning: passing argument 2 of ‘_rtw_memcpy’ discards ‘const’ qualifier from pointer target type
   _rtw_memcpy(param->u.crypt.key, params->key, params->key_len);
                                   ^
In file included from /home/jonathan/rtl8812AU_8821AU_linux/include/drv_types.h:32:0,
                 from /home/jonathan/rtl8812AU_8821AU_linux/os_dep/linux/ioctl_cfg80211.c:22:
/home/jonathan/rtl8812AU_8821AU_linux/include/osdep_service.h:167:13: note: expected ‘void *’ but argument is of type ‘const u8 *’
 extern void _rtw_memcpy(void* dec, void* sour, u32 sz);
             ^
/home/jonathan/rtl8812AU_8821AU_linux/os_dep/linux/ioctl_cfg80211.c: In function ‘cfg80211_rtw_connect’:
/home/jonathan/rtl8812AU_8821AU_linux/os_dep/linux/ioctl_cfg80211.c:2550:30: warning: passing argument 2 of ‘_rtw_memcpy’ discards ‘const’ qualifier from pointer target type
  _rtw_memcpy(ndis_ssid.Ssid, sme->ssid, sme->ssid_len);
                              ^
In file included from /home/jonathan/rtl8812AU_8821AU_linux/include/drv_types.h:32:0,
                 from /home/jonathan/rtl8812AU_8821AU_linux/os_dep/linux/ioctl_cfg80211.c:22:
/home/jonathan/rtl8812AU_8821AU_linux/include/osdep_service.h:167:13: note: expected ‘void *’ but argument is of type ‘const u8 *’
 extern void _rtw_memcpy(void* dec, void* sour, u32 sz);
             ^
/home/jonathan/rtl8812AU_8821AU_linux/os_dep/linux/ioctl_cfg80211.c:2587:49: warning: passing argument 2 of ‘_rtw_memcmp’ discards ‘const’ qualifier from pointer target type
    if(_rtw_memcmp(pnetwork->network.MacAddress, sme->bssid, ETH_ALEN) == _FALSE)
                                                 ^
In file included from /home/jonathan/rtl8812AU_8821AU_linux/include/drv_types.h:32:0,
                 from /home/jonathan/rtl8812AU_8821AU_linux/os_dep/linux/ioctl_cfg80211.c:22:
/home/jonathan/rtl8812AU_8821AU_linux/include/osdep_service.h:168:12: note: expected ‘void *’ but argument is of type ‘const u8 *’
 extern int _rtw_memcmp(void *dst, void *src, u32 sz);
            ^
/home/jonathan/rtl8812AU_8821AU_linux/os_dep/linux/ioctl_cfg80211.c:2593:49: warning: passing argument 2 of ‘_rtw_memcmp’ discards ‘const’ qualifier from pointer target type
     || _rtw_memcmp(pnetwork->network.Ssid.Ssid, sme->ssid, sme->ssid_len) == _FALSE
                                                 ^
In file included from /home/jonathan/rtl8812AU_8821AU_linux/include/drv_types.h:32:0,
                 from /home/jonathan/rtl8812AU_8821AU_linux/os_dep/linux/ioctl_cfg80211.c:22:
/home/jonathan/rtl8812AU_8821AU_linux/include/osdep_service.h:168:12: note: expected ‘void *’ but argument is of type ‘const u8 *’
 extern int _rtw_memcmp(void *dst, void *src, u32 sz);
            ^
/home/jonathan/rtl8812AU_8821AU_linux/os_dep/linux/ioctl_cfg80211.c:2601:14: warning: assignment discards ‘const’ qualifier from pointer target type
    src_bssid = sme->bssid;
              ^
/home/jonathan/rtl8812AU_8821AU_linux/os_dep/linux/ioctl_cfg80211.c:2682:42: warning: passing argument 2 of ‘rtw_cfg80211_set_wpa_ie’ discards ‘const’ qualifier from pointer target type
  ret = rtw_cfg80211_set_wpa_ie(padapter, sme->ie, sme->ie_len);
                                          ^
/home/jonathan/rtl8812AU_8821AU_linux/os_dep/linux/ioctl_cfg80211.c:2243:12: note: expected ‘u8 *’ but argument is of type ‘const u8 *’
 static int rtw_cfg80211_set_wpa_ie(_adapter *padapter, u8 *pie, size_t ielen)
            ^
/home/jonathan/rtl8812AU_8821AU_linux/os_dep/linux/ioctl_cfg80211.c: In function ‘cfg80211_rtw_set_pmksa’:
/home/jonathan/rtl8812AU_8821AU_linux/os_dep/linux/ioctl_cfg80211.c:2913:20: warning: passing argument 1 of ‘_rtw_memcmp’ discards ‘const’ qualifier from pointer target type
  if ( _rtw_memcmp( pmksa->bssid, strZeroMacAddress, ETH_ALEN ) == _TRUE )
                    ^
In file included from /home/jonathan/rtl8812AU_8821AU_linux/include/drv_types.h:32:0,
                 from /home/jonathan/rtl8812AU_8821AU_linux/os_dep/linux/ioctl_cfg80211.c:22:
/home/jonathan/rtl8812AU_8821AU_linux/include/osdep_service.h:168:12: note: expected ‘void *’ but argument is of type ‘const u8 *’
 extern int _rtw_memcmp(void *dst, void *src, u32 sz);
            ^
/home/jonathan/rtl8812AU_8821AU_linux/os_dep/linux/ioctl_cfg80211.c:2923:59: warning: passing argument 2 of ‘_rtw_memcmp’ discards ‘const’ qualifier from pointer target type
   if( _rtw_memcmp( psecuritypriv->PMKIDList[index].Bssid, pmksa->bssid, ETH_ALEN) ==_TRUE )
                                                           ^
In file included from /home/jonathan/rtl8812AU_8821AU_linux/include/drv_types.h:32:0,
                 from /home/jonathan/rtl8812AU_8821AU_linux/os_dep/linux/ioctl_cfg80211.c:22:
/home/jonathan/rtl8812AU_8821AU_linux/include/osdep_service.h:168:12: note: expected ‘void *’ but argument is of type ‘const u8 *’
 extern int _rtw_memcmp(void *dst, void *src, u32 sz);
            ^
/home/jonathan/rtl8812AU_8821AU_linux/os_dep/linux/ioctl_cfg80211.c:2927:56: warning: passing argument 2 of ‘_rtw_memcpy’ discards ‘const’ qualifier from pointer target type
    _rtw_memcpy( psecuritypriv->PMKIDList[index].PMKID, pmksa->pmkid, WLAN_PMKID_LEN);
                                                        ^
In file included from /home/jonathan/rtl8812AU_8821AU_linux/include/drv_types.h:32:0,
                 from /home/jonathan/rtl8812AU_8821AU_linux/os_dep/linux/ioctl_cfg80211.c:22:
/home/jonathan/rtl8812AU_8821AU_linux/include/osdep_service.h:167:13: note: expected ‘void *’ but argument is of type ‘const u8 *’
 extern void _rtw_memcpy(void* dec, void* sour, u32 sz);
             ^
/home/jonathan/rtl8812AU_8821AU_linux/os_dep/linux/ioctl_cfg80211.c:2941:74: warning: passing argument 2 of ‘_rtw_memcpy’ discards ‘const’ qualifier from pointer target type
   _rtw_memcpy(psecuritypriv->PMKIDList[psecuritypriv->PMKIDIndex].Bssid, pmksa->bssid, ETH_ALEN);
                                                                          ^
In file included from /home/jonathan/rtl8812AU_8821AU_linux/include/drv_types.h:32:0,
                 from /home/jonathan/rtl8812AU_8821AU_linux/os_dep/linux/ioctl_cfg80211.c:22:
/home/jonathan/rtl8812AU_8821AU_linux/include/osdep_service.h:167:13: note: expected ‘void *’ but argument is of type ‘const u8 *’
 extern void _rtw_memcpy(void* dec, void* sour, u32 sz);
             ^
/home/jonathan/rtl8812AU_8821AU_linux/os_dep/linux/ioctl_cfg80211.c:2942:74: warning: passing argument 2 of ‘_rtw_memcpy’ discards ‘const’ qualifier from pointer target type
   _rtw_memcpy(psecuritypriv->PMKIDList[psecuritypriv->PMKIDIndex].PMKID, pmksa->pmkid, WLAN_PMKID_LEN);
                                                                          ^
In file included from /home/jonathan/rtl8812AU_8821AU_linux/include/drv_types.h:32:0,
                 from /home/jonathan/rtl8812AU_8821AU_linux/os_dep/linux/ioctl_cfg80211.c:22:
/home/jonathan/rtl8812AU_8821AU_linux/include/osdep_service.h:167:13: note: expected ‘void *’ but argument is of type ‘const u8 *’
 extern void _rtw_memcpy(void* dec, void* sour, u32 sz);
             ^
/home/jonathan/rtl8812AU_8821AU_linux/os_dep/linux/ioctl_cfg80211.c: In function ‘cfg80211_rtw_del_pmksa’:
/home/jonathan/rtl8812AU_8821AU_linux/os_dep/linux/ioctl_cfg80211.c:2967:59: warning: passing argument 2 of ‘_rtw_memcmp’ discards ‘const’ qualifier from pointer target type
   if( _rtw_memcmp( psecuritypriv->PMKIDList[index].Bssid, pmksa->bssid, ETH_ALEN) ==_TRUE )
                                                           ^
In file included from /home/jonathan/rtl8812AU_8821AU_linux/include/drv_types.h:32:0,
                 from /home/jonathan/rtl8812AU_8821AU_linux/os_dep/linux/ioctl_cfg80211.c:22:
/home/jonathan/rtl8812AU_8821AU_linux/include/osdep_service.h:168:12: note: expected ‘void *’ but argument is of type ‘const u8 *’
 extern int _rtw_memcmp(void *dst, void *src, u32 sz);
            ^
In file included from /home/jonathan/rtl8812AU_8821AU_linux/include/drv_types.h:141:0,
                 from /home/jonathan/rtl8812AU_8821AU_linux/os_dep/linux/ioctl_cfg80211.c:22:
/home/jonathan/rtl8812AU_8821AU_linux/os_dep/linux/ioctl_cfg80211.c: In function ‘rtw_cfg80211_rx_action_p2p’:
/home/jonathan/rtl8812AU_8821AU_linux/include/ioctl_cfg80211.h:114:71: error: too many arguments to function ‘cfg80211_rx_mgmt’
   #define rtw_cfg80211_rx_mgmt(adapter, freq, sig_dbm, buf, len, gfp) cfg80211_rx_mgmt((adapter)->rtw_wdev, freq, sig_dbm, buf, len, 0, gfp)
                                                                       ^
/home/jonathan/rtl8812AU_8821AU_linux/os_dep/linux/ioctl_cfg80211.c:3883:2: note: in expansion of macro ‘rtw_cfg80211_rx_mgmt’
  rtw_cfg80211_rx_mgmt(padapter, freq, 0, pmgmt_frame, frame_len, GFP_ATOMIC);
  ^
In file included from /home/jonathan/rtl8812AU_8821AU_linux/include/osdep_service_linux.h:76:0,
                 from /home/jonathan/rtl8812AU_8821AU_linux/include/osdep_service.h:41,
                 from /home/jonathan/rtl8812AU_8821AU_linux/include/drv_types.h:32,
                 from /home/jonathan/rtl8812AU_8821AU_linux/os_dep/linux/ioctl_cfg80211.c:22:
include/net/cfg80211.h:4612:6: note: declared here
 bool cfg80211_rx_mgmt(struct wireless_dev *wdev, int freq, int sig_dbm,
      ^
In file included from /home/jonathan/rtl8812AU_8821AU_linux/include/drv_types.h:141:0,
                 from /home/jonathan/rtl8812AU_8821AU_linux/os_dep/linux/ioctl_cfg80211.c:22:
/home/jonathan/rtl8812AU_8821AU_linux/os_dep/linux/ioctl_cfg80211.c: In function ‘rtw_cfg80211_rx_p2p_action_public’:
/home/jonathan/rtl8812AU_8821AU_linux/include/ioctl_cfg80211.h:114:71: error: too many arguments to function ‘cfg80211_rx_mgmt’
   #define rtw_cfg80211_rx_mgmt(adapter, freq, sig_dbm, buf, len, gfp) cfg80211_rx_mgmt((adapter)->rtw_wdev, freq, sig_dbm, buf, len, 0, gfp)
                                                                       ^
/home/jonathan/rtl8812AU_8821AU_linux/os_dep/linux/ioctl_cfg80211.c:3921:2: note: in expansion of macro ‘rtw_cfg80211_rx_mgmt’
  rtw_cfg80211_rx_mgmt(padapter, freq, 0, pmgmt_frame, frame_len, GFP_ATOMIC);
  ^
In file included from /home/jonathan/rtl8812AU_8821AU_linux/include/osdep_service_linux.h:76:0,
                 from /home/jonathan/rtl8812AU_8821AU_linux/include/osdep_service.h:41,
                 from /home/jonathan/rtl8812AU_8821AU_linux/include/drv_types.h:32,
                 from /home/jonathan/rtl8812AU_8821AU_linux/os_dep/linux/ioctl_cfg80211.c:22:
include/net/cfg80211.h:4612:6: note: declared here
 bool cfg80211_rx_mgmt(struct wireless_dev *wdev, int freq, int sig_dbm,
      ^
In file included from /home/jonathan/rtl8812AU_8821AU_linux/include/drv_types.h:141:0,
                 from /home/jonathan/rtl8812AU_8821AU_linux/os_dep/linux/ioctl_cfg80211.c:22:
/home/jonathan/rtl8812AU_8821AU_linux/os_dep/linux/ioctl_cfg80211.c: In function ‘rtw_cfg80211_rx_action’:
/home/jonathan/rtl8812AU_8821AU_linux/include/ioctl_cfg80211.h:114:71: error: too many arguments to function ‘cfg80211_rx_mgmt’
   #define rtw_cfg80211_rx_mgmt(adapter, freq, sig_dbm, buf, len, gfp) cfg80211_rx_mgmt((adapter)->rtw_wdev, freq, sig_dbm, buf, len, 0, gfp)
                                                                       ^
/home/jonathan/rtl8812AU_8821AU_linux/os_dep/linux/ioctl_cfg80211.c:3951:2: note: in expansion of macro ‘rtw_cfg80211_rx_mgmt’
  rtw_cfg80211_rx_mgmt(adapter, freq, 0, frame, frame_len, GFP_ATOMIC);
  ^
In file included from /home/jonathan/rtl8812AU_8821AU_linux/include/osdep_service_linux.h:76:0,
                 from /home/jonathan/rtl8812AU_8821AU_linux/include/osdep_service.h:41,
                 from /home/jonathan/rtl8812AU_8821AU_linux/include/drv_types.h:32,
                 from /home/jonathan/rtl8812AU_8821AU_linux/os_dep/linux/ioctl_cfg80211.c:22:
include/net/cfg80211.h:4612:6: note: declared here
 bool cfg80211_rx_mgmt(struct wireless_dev *wdev, int freq, int sig_dbm,
      ^
/home/jonathan/rtl8812AU_8821AU_linux/os_dep/linux/ioctl_cfg80211.c: At top level:
/home/jonathan/rtl8812AU_8821AU_linux/os_dep/linux/ioctl_cfg80211.c:5041:2: warning: initialization from incompatible pointer type
  .get_station = cfg80211_rtw_get_station,
  ^
/home/jonathan/rtl8812AU_8821AU_linux/os_dep/linux/ioctl_cfg80211.c:5041:2: warning: (near initialization for ‘rtw_cfg80211_ops.get_station’)
/home/jonathan/rtl8812AU_8821AU_linux/os_dep/linux/ioctl_cfg80211.c:5069:2: warning: initialization from incompatible pointer type
  .add_station = cfg80211_rtw_add_station,
  ^
/home/jonathan/rtl8812AU_8821AU_linux/os_dep/linux/ioctl_cfg80211.c:5069:2: warning: (near initialization for ‘rtw_cfg80211_ops.add_station’)
/home/jonathan/rtl8812AU_8821AU_linux/os_dep/linux/ioctl_cfg80211.c:5070:2: warning: initialization from incompatible pointer type
  .del_station = cfg80211_rtw_del_station,
  ^
/home/jonathan/rtl8812AU_8821AU_linux/os_dep/linux/ioctl_cfg80211.c:5070:2: warning: (near initialization for ‘rtw_cfg80211_ops.del_station’)
/home/jonathan/rtl8812AU_8821AU_linux/os_dep/linux/ioctl_cfg80211.c:5071:2: warning: initialization from incompatible pointer type
  .change_station = cfg80211_rtw_change_station,
  ^
/home/jonathan/rtl8812AU_8821AU_linux/os_dep/linux/ioctl_cfg80211.c:5071:2: warning: (near initialization for ‘rtw_cfg80211_ops.change_station’)
/home/jonathan/rtl8812AU_8821AU_linux/os_dep/linux/ioctl_cfg80211.c:5087:2: warning: initialization from incompatible pointer type
  .mgmt_tx = cfg80211_rtw_mgmt_tx,
  ^
/home/jonathan/rtl8812AU_8821AU_linux/os_dep/linux/ioctl_cfg80211.c:5087:2: warning: (near initialization for ‘rtw_cfg80211_ops.mgmt_tx’)
scripts/Makefile.build:257: recipe for target '/home/jonathan/rtl8812AU_8821AU_linux/os_dep/linux/ioctl_cfg80211.o' failed
make[2]: *** [/home/jonathan/rtl8812AU_8821AU_linux/os_dep/linux/ioctl_cfg80211.o] Error 1
Makefile:1394: recipe for target '_module_/home/jonathan/rtl8812AU_8821AU_linux' failed
make[1]: *** [_module_/home/jonathan/rtl8812AU_8821AU_linux] Error 2
make[1]: Leaving directory '/usr/src/linux-headers-3.19.0-16-generic'
Makefile:1040: recipe for target 'modules' failed
make: *** [modules] Error 2

Estas são as informações do dispositivo quando eu insiro o lsusb (componente belkin no topo):

jonathan@pc:~$ lsusb
Bus 003 Device 006: ID 050d:1109 Belkin Components 
Bus 003 Device 002: ID 357d:7788  
Bus 003 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 007 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 006 Device 003: ID 046d:c52b Logitech, Inc. Unifying Receiver
Bus 006 Device 002: ID 0a5c:21e8 Broadcom Corp. BCM20702A0 Bluetooth 4.0
Bus 006 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 005 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 004 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 002 Device 001: ID 1d6b:0003 Linux Foundation 3.0 root hub
Bus 001 Device 002: ID 2109:3431  
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
jonathan@pc:~$

Além disso, estou executando o Ubuntu 15.04. Eu sou novo no Linux, então, por favor, me desculpe se eu deixei de fora uma informação vital ou este post não está em um formato aceitável. Por favor, deixe-me saber se há mais alguma informação que você precisa.

    
por Jonathan Morales 13.05.2015 / 09:20

1 resposta

3

Por favor, tente este pacote:

git clone https://github.com/abperiasamy/rtl8812AU_8821AU_linux.git
cd rtl8812AU_8821AU_linux
make
sudo make install
sudo depmod -a
sudo modprobe 8812au

Faz para mim no meu kernel 3.19.0-16 com avisos, mas sem erros.

    
por chili555 13.05.2015 / 12:53