quickreflex / rtl8188eus

Wifi driver support for rtl8188eu, rtl8188eus and rtl8188etv chips and working under the new linux kernel (5.1.x).
Other
189 stars 73 forks source link

Error installing on kali linux 2019.3 (kernal 5.3.0-kali2-amd64) #36

Open foundation-university opened 4 years ago

foundation-university commented 4 years ago

I am try to install this driver on kali linux 2019.3 (kernal 5.3.0-kali2-amd64). I followed the instruction and when i execute

make all

commands i and getting this error

/bin/sh: 1: bc: not found
make ARCH=x86_64 CROSS_COMPILE= -C /lib/modules/5.3.0-kali2-amd64/build M=/root/Desktop/rtl8188eus_1  modules
make[1]: Entering directory '/usr/src/linux-headers-5.3.0-kali2-amd64'
/bin/sh: 1: bc: not found
  CC [M]  /root/Desktop/rtl8188eus_1/core/rtw_cmd.o
  CC [M]  /root/Desktop/rtl8188eus_1/core/rtw_security.o
  CC [M]  /root/Desktop/rtl8188eus_1/core/rtw_debug.o
  CC [M]  /root/Desktop/rtl8188eus_1/core/rtw_io.o
  CC [M]  /root/Desktop/rtl8188eus_1/core/rtw_ioctl_query.o
  CC [M]  /root/Desktop/rtl8188eus_1/core/rtw_ioctl_set.o
  CC [M]  /root/Desktop/rtl8188eus_1/core/rtw_ieee80211.o
  CC [M]  /root/Desktop/rtl8188eus_1/core/rtw_mlme.o
  CC [M]  /root/Desktop/rtl8188eus_1/core/rtw_mlme_ext.o
/root/Desktop/rtl8188eus_1/core/rtw_mlme_ext.c: In function ‘mgt_dispatcher’:
/root/Desktop/rtl8188eus_1/core/rtw_mlme_ext.c:1833:17: warning: this statement may fall through [-Wimplicit-fallthrough=]
 1833 |    ptable->func = &OnAuthClient;
      |    ~~~~~~~~~~~~~^~~~~~~~~~~~~~~
/root/Desktop/rtl8188eus_1/core/rtw_mlme_ext.c:1835:2: note: here
 1835 |  case WIFI_ASSOCREQ:
      |  ^~~~
  CC [M]  /root/Desktop/rtl8188eus_1/core/rtw_mi.o
  CC [M]  /root/Desktop/rtl8188eus_1/core/rtw_wlan_util.o
  CC [M]  /root/Desktop/rtl8188eus_1/core/rtw_vht.o
  CC [M]  /root/Desktop/rtl8188eus_1/core/rtw_pwrctrl.o
  CC [M]  /root/Desktop/rtl8188eus_1/core/rtw_rf.o
  CC [M]  /root/Desktop/rtl8188eus_1/core/rtw_recv.o
  CC [M]  /root/Desktop/rtl8188eus_1/core/rtw_sta_mgt.o
  CC [M]  /root/Desktop/rtl8188eus_1/core/rtw_ap.o
/root/Desktop/rtl8188eus_1/core/rtw_ap.c: In function ‘rtw_add_bcn_ie’:
/root/Desktop/rtl8188eus_1/core/rtw_ap.c:195:25: warning: ‘ielen’ may be used uninitialized in this function [-Wmaybe-uninitialized]
  195 |  if (p != NULL && ielen > 0) {
      |                   ~~~~~~^~~
  CC [M]  /root/Desktop/rtl8188eus_1/core/mesh/rtw_mesh.o
  CC [M]  /root/Desktop/rtl8188eus_1/core/mesh/rtw_mesh_pathtbl.o
  CC [M]  /root/Desktop/rtl8188eus_1/core/mesh/rtw_mesh_hwmp.o
  CC [M]  /root/Desktop/rtl8188eus_1/core/rtw_xmit.o
  CC [M]  /root/Desktop/rtl8188eus_1/core/rtw_p2p.o
  CC [M]  /root/Desktop/rtl8188eus_1/core/rtw_rson.o
  CC [M]  /root/Desktop/rtl8188eus_1/core/rtw_tdls.o
  CC [M]  /root/Desktop/rtl8188eus_1/core/rtw_br_ext.o
  CC [M]  /root/Desktop/rtl8188eus_1/core/rtw_iol.o
  CC [M]  /root/Desktop/rtl8188eus_1/core/rtw_sreset.o
  CC [M]  /root/Desktop/rtl8188eus_1/core/rtw_btcoex_wifionly.o
  CC [M]  /root/Desktop/rtl8188eus_1/core/rtw_btcoex.o
  CC [M]  /root/Desktop/rtl8188eus_1/core/rtw_beamforming.o
  CC [M]  /root/Desktop/rtl8188eus_1/core/rtw_odm.o
  CC [M]  /root/Desktop/rtl8188eus_1/core/rtw_rm.o
  CC [M]  /root/Desktop/rtl8188eus_1/core/rtw_rm_fsm.o
  CC [M]  /root/Desktop/rtl8188eus_1/core/efuse/rtw_efuse.o
  CC [M]  /root/Desktop/rtl8188eus_1/os_dep/osdep_service.o
  CC [M]  /root/Desktop/rtl8188eus_1/os_dep/linux/os_intfs.o
  CC [M]  /root/Desktop/rtl8188eus_1/os_dep/linux/usb_intf.o
  CC [M]  /root/Desktop/rtl8188eus_1/os_dep/linux/usb_ops_linux.o
  CC [M]  /root/Desktop/rtl8188eus_1/os_dep/linux/ioctl_linux.o
  CC [M]  /root/Desktop/rtl8188eus_1/os_dep/linux/xmit_linux.o
  CC [M]  /root/Desktop/rtl8188eus_1/os_dep/linux/mlme_linux.o
  CC [M]  /root/Desktop/rtl8188eus_1/os_dep/linux/recv_linux.o
  CC [M]  /root/Desktop/rtl8188eus_1/os_dep/linux/ioctl_cfg80211.o
/root/Desktop/rtl8188eus_1/os_dep/linux/ioctl_cfg80211.c: In function ‘rtw_cfg80211_indicate_sta_assoc’:
/root/Desktop/rtl8188eus_1/os_dep/linux/ioctl_cfg80211.c:4141:3: warning: ISO C90 forbids mixed declarations and code [-Wdeclaration-after-statement]
 4141 |   u8 ie_offset;
      |   ^~
/root/Desktop/rtl8188eus_1/os_dep/linux/ioctl_cfg80211.c: In function ‘cfg80211_rtw_change_iface’:
/root/Desktop/rtl8188eus_1/os_dep/linux/ioctl_cfg80211.c:2368:10: warning: this statement may fall through [-Wimplicit-fallthrough=]
 2368 |   is_p2p = _TRUE;
/root/Desktop/rtl8188eus_1/os_dep/linux/ioctl_cfg80211.c:2370:2: note: here
 2370 |  case NL80211_IFTYPE_STATION:
      |  ^~~~
/root/Desktop/rtl8188eus_1/os_dep/linux/ioctl_cfg80211.c:2392:10: warning: this statement may fall through [-Wimplicit-fallthrough=]
 2392 |   is_p2p = _TRUE;
/root/Desktop/rtl8188eus_1/os_dep/linux/ioctl_cfg80211.c:2394:2: note: here
 2394 |  case NL80211_IFTYPE_AP:
      |  ^~~~
  CC [M]  /root/Desktop/rtl8188eus_1/os_dep/linux/rtw_cfgvendor.o
  CC [M]  /root/Desktop/rtl8188eus_1/os_dep/linux/wifi_regd.o
  CC [M]  /root/Desktop/rtl8188eus_1/os_dep/linux/rtw_android.o
  CC [M]  /root/Desktop/rtl8188eus_1/os_dep/linux/rtw_proc.o
  CC [M]  /root/Desktop/rtl8188eus_1/os_dep/linux/rtw_rhashtable.o
  CC [M]  /root/Desktop/rtl8188eus_1/os_dep/linux/ioctl_mp.o
  CC [M]  /root/Desktop/rtl8188eus_1/hal/hal_intf.o
/root/Desktop/rtl8188eus_1/hal/hal_intf.c: In function ‘c2h_handler’:
/root/Desktop/rtl8188eus_1/hal/hal_intf.c:941:10: warning: this statement may fall through [-Wimplicit-fallthrough=]
  941 |   sub_id = payload[0];
      |   ~~~~~~~^~~~~~~~~~~~
/root/Desktop/rtl8188eus_1/hal/hal_intf.c:944:2: note: here
  944 |  default:
      |  ^~~~~~~
  CC [M]  /root/Desktop/rtl8188eus_1/hal/hal_com.o
  CC [M]  /root/Desktop/rtl8188eus_1/hal/hal_com_phycfg.o
  CC [M]  /root/Desktop/rtl8188eus_1/hal/hal_phy.o
  CC [M]  /root/Desktop/rtl8188eus_1/hal/hal_dm.o
  CC [M]  /root/Desktop/rtl8188eus_1/hal/hal_dm_acs.o
  CC [M]  /root/Desktop/rtl8188eus_1/hal/hal_btcoex_wifionly.o
  CC [M]  /root/Desktop/rtl8188eus_1/hal/hal_btcoex.o
  CC [M]  /root/Desktop/rtl8188eus_1/hal/hal_mp.o
  CC [M]  /root/Desktop/rtl8188eus_1/hal/hal_mcc.o
  CC [M]  /root/Desktop/rtl8188eus_1/hal/hal_hci/hal_usb.o
  CC [M]  /root/Desktop/rtl8188eus_1/hal/led/hal_led.o
  CC [M]  /root/Desktop/rtl8188eus_1/hal/led/hal_usb_led.o
  CC [M]  /root/Desktop/rtl8188eus_1/hal/HalPwrSeqCmd.o
  CC [M]  /root/Desktop/rtl8188eus_1/hal/rtl8188e/Hal8188EPwrSeq.o
  CC [M]  /root/Desktop/rtl8188eus_1/hal/rtl8188e/rtl8188e_xmit.o
  CC [M]  /root/Desktop/rtl8188eus_1/hal/rtl8188e/rtl8188e_sreset.o
  CC [M]  /root/Desktop/rtl8188eus_1/hal/rtl8188e/rtl8188e_hal_init.o
  CC [M]  /root/Desktop/rtl8188eus_1/hal/rtl8188e/rtl8188e_phycfg.o
  CC [M]  /root/Desktop/rtl8188eus_1/hal/rtl8188e/rtl8188e_rf6052.o
  CC [M]  /root/Desktop/rtl8188eus_1/hal/rtl8188e/rtl8188e_dm.o
  CC [M]  /root/Desktop/rtl8188eus_1/hal/rtl8188e/rtl8188e_rxdesc.o
  CC [M]  /root/Desktop/rtl8188eus_1/hal/rtl8188e/rtl8188e_cmd.o
  CC [M]  /root/Desktop/rtl8188eus_1/hal/rtl8188e/hal8188e_s_fw.o
  CC [M]  /root/Desktop/rtl8188eus_1/hal/rtl8188e/hal8188e_t_fw.o
  CC [M]  /root/Desktop/rtl8188eus_1/hal/rtl8188e/usb/usb_halinit.o
  CC [M]  /root/Desktop/rtl8188eus_1/hal/rtl8188e/usb/rtl8188eu_led.o
  CC [M]  /root/Desktop/rtl8188eus_1/hal/rtl8188e/usb/rtl8188eu_xmit.o
  CC [M]  /root/Desktop/rtl8188eus_1/hal/rtl8188e/usb/rtl8188eu_recv.o
  CC [M]  /root/Desktop/rtl8188eus_1/hal/rtl8188e/usb/usb_ops_linux.o
  CC [M]  /root/Desktop/rtl8188eus_1/hal/efuse/rtl8188e/HalEfuseMask8188E_USB.o
  CC [M]  /root/Desktop/rtl8188eus_1/hal/phydm/phydm_debug.o
  CC [M]  /root/Desktop/rtl8188eus_1/hal/phydm/phydm_antdiv.o
  CC [M]  /root/Desktop/rtl8188eus_1/hal/phydm/phydm_soml.o
  CC [M]  /root/Desktop/rtl8188eus_1/hal/phydm/phydm_smt_ant.o
  CC [M]  /root/Desktop/rtl8188eus_1/hal/phydm/phydm_antdect.o
  CC [M]  /root/Desktop/rtl8188eus_1/hal/phydm/phydm_interface.o
  CC [M]  /root/Desktop/rtl8188eus_1/hal/phydm/phydm_phystatus.o
  CC [M]  /root/Desktop/rtl8188eus_1/hal/phydm/phydm_hwconfig.o
  CC [M]  /root/Desktop/rtl8188eus_1/hal/phydm/phydm.o
  CC [M]  /root/Desktop/rtl8188eus_1/hal/phydm/phydm_dig.o
  CC [M]  /root/Desktop/rtl8188eus_1/hal/phydm/phydm_pathdiv.o
  CC [M]  /root/Desktop/rtl8188eus_1/hal/phydm/phydm_rainfo.o
  CC [M]  /root/Desktop/rtl8188eus_1/hal/phydm/phydm_dynamictxpower.o
  CC [M]  /root/Desktop/rtl8188eus_1/hal/phydm/phydm_adaptivity.o
  CC [M]  /root/Desktop/rtl8188eus_1/hal/phydm/phydm_cfotracking.o
  CC [M]  /root/Desktop/rtl8188eus_1/hal/phydm/phydm_noisemonitor.o
  CC [M]  /root/Desktop/rtl8188eus_1/hal/phydm/phydm_beamforming.o
  CC [M]  /root/Desktop/rtl8188eus_1/hal/phydm/phydm_dfs.o
  CC [M]  /root/Desktop/rtl8188eus_1/hal/phydm/txbf/halcomtxbf.o
  CC [M]  /root/Desktop/rtl8188eus_1/hal/phydm/txbf/haltxbfinterface.o
  CC [M]  /root/Desktop/rtl8188eus_1/hal/phydm/txbf/phydm_hal_txbf_api.o
  CC [M]  /root/Desktop/rtl8188eus_1/hal/phydm/phydm_adc_sampling.o
  CC [M]  /root/Desktop/rtl8188eus_1/hal/phydm/phydm_ccx.o
  CC [M]  /root/Desktop/rtl8188eus_1/hal/phydm/phydm_psd.o
  CC [M]  /root/Desktop/rtl8188eus_1/hal/phydm/phydm_primary_cca.o
  CC [M]  /root/Desktop/rtl8188eus_1/hal/phydm/phydm_cck_pd.o
  CC [M]  /root/Desktop/rtl8188eus_1/hal/phydm/phydm_rssi_monitor.o
  CC [M]  /root/Desktop/rtl8188eus_1/hal/phydm/phydm_auto_dbg.o
  CC [M]  /root/Desktop/rtl8188eus_1/hal/phydm/phydm_math_lib.o
  CC [M]  /root/Desktop/rtl8188eus_1/hal/phydm/phydm_api.o
  CC [M]  /root/Desktop/rtl8188eus_1/hal/phydm/phydm_pow_train.o
  CC [M]  /root/Desktop/rtl8188eus_1/hal/phydm/halrf/halrf.o
  CC [M]  /root/Desktop/rtl8188eus_1/hal/phydm/halrf/halphyrf_ce.o
  CC [M]  /root/Desktop/rtl8188eus_1/hal/phydm/halrf/halrf_powertracking_ce.o
  CC [M]  /root/Desktop/rtl8188eus_1/hal/phydm/halrf/halrf_powertracking.o
  CC [M]  /root/Desktop/rtl8188eus_1/hal/phydm/halrf/halrf_kfree.o
  CC [M]  /root/Desktop/rtl8188eus_1/hal/phydm/rtl8188e/halhwimg8188e_mac.o
  CC [M]  /root/Desktop/rtl8188eus_1/hal/phydm/rtl8188e/halhwimg8188e_bb.o
  CC [M]  /root/Desktop/rtl8188eus_1/hal/phydm/rtl8188e/halhwimg8188e_rf.o
  CC [M]  /root/Desktop/rtl8188eus_1/hal/phydm/halrf/rtl8188e/halrf_8188e_ce.o
  CC [M]  /root/Desktop/rtl8188eus_1/hal/phydm/rtl8188e/phydm_regconfig8188e.o
  CC [M]  /root/Desktop/rtl8188eus_1/hal/phydm/rtl8188e/hal8188erateadaptive.o
  CC [M]  /root/Desktop/rtl8188eus_1/hal/phydm/rtl8188e/phydm_rtl8188e.o
  CC [M]  /root/Desktop/rtl8188eus_1/platform/platform_ops.o
  CC [M]  /root/Desktop/rtl8188eus_1/core/rtw_mp.o
  LD [M]  /root/Desktop/rtl8188eus_1/8188eu.o
  Building modules, stage 2.
/bin/sh: 1: bc: not found
  MODPOST 1 modules
  CC      /root/Desktop/rtl8188eus_1/8188eu.mod.o
  LD [M]  /root/Desktop/rtl8188eus_1/8188eu.ko
make[1]: Leaving directory '/usr/src/linux-headers-5.3.0-kali2-amd64'
make install

commands i and getting this error

/bin/sh: 1: bc: not found
install -p -m 644 8188eu.ko  /lib/modules/5.3.0-kali2-amd64/kernel/drivers/net/wireless/
/sbin/depmod -a 5.3.0-kali2-amd64

Kindly guide main. how to intall the drivers

kimocoder commented 4 years ago

apt-get install bc

foundation-university commented 4 years ago

i execute this command apt-get install bc and still two errors and response of make all

root@kali:~/Desktop/rtl8188eus# make all
make ARCH=x86_64 CROSS_COMPILE= -C /lib/modules/5.3.0-kali2-amd64/build M=/root/Desktop/rtl8188eus  modules
make[1]: Entering directory '/usr/src/linux-headers-5.3.0-kali2-amd64'
  CC [M]  /root/Desktop/rtl8188eus/core/rtw_cmd.o
  CC [M]  /root/Desktop/rtl8188eus/core/rtw_security.o
  CC [M]  /root/Desktop/rtl8188eus/core/rtw_debug.o
  CC [M]  /root/Desktop/rtl8188eus/core/rtw_io.o
  CC [M]  /root/Desktop/rtl8188eus/core/rtw_ioctl_query.o
  CC [M]  /root/Desktop/rtl8188eus/core/rtw_ioctl_set.o
  CC [M]  /root/Desktop/rtl8188eus/core/rtw_ieee80211.o
  CC [M]  /root/Desktop/rtl8188eus/core/rtw_mlme.o
  CC [M]  /root/Desktop/rtl8188eus/core/rtw_mlme_ext.o
/root/Desktop/rtl8188eus/core/rtw_mlme_ext.c: In function ‘mgt_dispatcher’:
/root/Desktop/rtl8188eus/core/rtw_mlme_ext.c:1441:6: warning: this statement may fall through [-Wimplicit-fallthrough=]
 1441 |   if (check_fwstate(pmlmepriv, WIFI_AP_STATE) == _TRUE)
      |      ^
/root/Desktop/rtl8188eus/core/rtw_mlme_ext.c:1446:2: note: here
 1446 |  case WIFI_ASSOCREQ:
      |  ^~~~
  CC [M]  /root/Desktop/rtl8188eus/core/rtw_mi.o
  CC [M]  /root/Desktop/rtl8188eus/core/rtw_wlan_util.o
  CC [M]  /root/Desktop/rtl8188eus/core/rtw_vht.o
  CC [M]  /root/Desktop/rtl8188eus/core/rtw_pwrctrl.o
  CC [M]  /root/Desktop/rtl8188eus/core/rtw_rf.o
  CC [M]  /root/Desktop/rtl8188eus/core/rtw_recv.o
  CC [M]  /root/Desktop/rtl8188eus/core/rtw_sta_mgt.o
  CC [M]  /root/Desktop/rtl8188eus/core/rtw_ap.o
/root/Desktop/rtl8188eus/core/rtw_ap.c: In function ‘rtw_add_bcn_ie’:
/root/Desktop/rtl8188eus/core/rtw_ap.c:193:9: warning: ‘ielen’ may be used uninitialized in this function [-Wmaybe-uninitialized]
  193 |   ielen += 2;
      |   ~~~~~~^~~~
  CC [M]  /root/Desktop/rtl8188eus/core/rtw_xmit.o
  CC [M]  /root/Desktop/rtl8188eus/core/rtw_p2p.o
  CC [M]  /root/Desktop/rtl8188eus/core/rtw_tdls.o
  CC [M]  /root/Desktop/rtl8188eus/core/rtw_br_ext.o
  CC [M]  /root/Desktop/rtl8188eus/core/rtw_iol.o
  CC [M]  /root/Desktop/rtl8188eus/core/rtw_sreset.o
  CC [M]  /root/Desktop/rtl8188eus/core/rtw_btcoex_wifionly.o
  CC [M]  /root/Desktop/rtl8188eus/core/rtw_btcoex.o
  CC [M]  /root/Desktop/rtl8188eus/core/rtw_beamforming.o
  CC [M]  /root/Desktop/rtl8188eus/core/rtw_odm.o
  CC [M]  /root/Desktop/rtl8188eus/core/efuse/rtw_efuse.o
  CC [M]  /root/Desktop/rtl8188eus/os_dep/osdep_service.o
  CC [M]  /root/Desktop/rtl8188eus/os_dep/linux/os_intfs.o
/root/Desktop/rtl8188eus/os_dep/linux/os_intfs.c:1240:22: error: initialization of ‘u16 (*)(struct net_device *, struct sk_buff *, struct net_device *)’ {aka ‘short unsigned int (*)(struct net_device *, struct sk_buff *, struct net_device *)’} from incompatible pointer type ‘u16 (*)(struct net_device *, struct sk_buff *, struct net_device *, u16 (*)(struct net_device *, struct sk_buff *, struct net_device *))’ {aka ‘short unsigned int (*)(struct net_device *, struct sk_buff *, struct net_device *, short unsigned int (*)(struct net_device *, struct sk_buff *, struct net_device *))’} [-Werror=incompatible-pointer-types]
 1240 |  .ndo_select_queue = rtw_select_queue,
      |                      ^~~~~~~~~~~~~~~~
/root/Desktop/rtl8188eus/os_dep/linux/os_intfs.c:1240:22: note: (near initialization for ‘rtw_netdev_ops.ndo_select_queue’)
cc1: some warnings being treated as errors
make[3]: *** [/usr/src/linux-headers-5.3.0-kali2-common/scripts/Makefile.build:286: /root/Desktop/rtl8188eus/os_dep/linux/os_intfs.o] Error 1
make[2]: *** [/usr/src/linux-headers-5.3.0-kali2-common/Makefile:1639: _module_/root/Desktop/rtl8188eus] Error 2
make[1]: *** [/usr/src/linux-headers-5.3.0-kali2-common/Makefile:179: sub-make] Error 2
make[1]: Leaving directory '/usr/src/linux-headers-5.3.0-kali2-amd64'
make: *** [Makefile:1911: modules] Error 2
kimocoder commented 4 years ago

I'll add a patch for it, just hold on

kimocoder commented 4 years ago

In the rtl8188eus folder do the below..

make clean wget https://github.com/quickreflex/rtl8188eus/pull/37/commits/0342a5197467a94d60f17cd0c2bf2a7644f51f2c.patch

patch -p1 < . patch rm -rf .patch

make && make install

reboot.. loaded

LittleEumel commented 4 years ago

I tried it, using the patch. The error persists.

/root/rtl8188eus/os_dep/linux/os_intfs.c:1240:22: error: initialization of ‘u16 ()(struct net_device , struct sk_buff , struct net_device )’ {aka ‘short unsigned int ()(struct net_device , struct sk_buff , struct net_device )’} from incompatible pointer type ‘u16 ()(struct net_device , struct sk_buff , struct net_device , u16 ()(struct net_device , struct sk_buff , struct net_device ))’ {aka ‘short unsigned int ()(struct net_device , struct sk_buff , struct net_device , short unsigned int ()(struct net_device , struct sk_buff , struct net_device ))’} [-Werror=incompatible-pointer-types] 1240 | .ndo_select_queue = rtw_select_queue, | ^~~~ /root/rtl8188eus/os_dep/linux/os_intfs.c:1240:22: note: (near initialization for ‘rtw_netdev_ops.ndo_select_queue’)

Comment out line 1239 - 1241 let me compile, but driver didnt work.

foundation-university commented 4 years ago

I also tried the patch but not successful.

root@kali:~/Desktop/rtl8188eus# patch -p1 < *.patch
patching file os_dep/linux/os_intfs.c
root@kali:~/Desktop/rtl8188eus# rm -rf *.patch
root@kali:~/Desktop/rtl8188eus# make && make install
make ARCH=x86_64 CROSS_COMPILE= -C /lib/modules/5.3.0-kali2-amd64/build M=/root/Desktop/rtl8188eus  modules
make[1]: Entering directory '/usr/src/linux-headers-5.3.0-kali2-amd64'
  CC [M]  /root/Desktop/rtl8188eus/core/rtw_cmd.o
  CC [M]  /root/Desktop/rtl8188eus/core/rtw_security.o
  CC [M]  /root/Desktop/rtl8188eus/core/rtw_debug.o
  CC [M]  /root/Desktop/rtl8188eus/core/rtw_io.o
  CC [M]  /root/Desktop/rtl8188eus/core/rtw_ioctl_query.o
  CC [M]  /root/Desktop/rtl8188eus/core/rtw_ioctl_set.o
  CC [M]  /root/Desktop/rtl8188eus/core/rtw_ieee80211.o
  CC [M]  /root/Desktop/rtl8188eus/core/rtw_mlme.o
  CC [M]  /root/Desktop/rtl8188eus/core/rtw_mlme_ext.o
/root/Desktop/rtl8188eus/core/rtw_mlme_ext.c: In function ‘mgt_dispatcher’:
/root/Desktop/rtl8188eus/core/rtw_mlme_ext.c:1441:6: warning: this statement may fall through [-Wimplicit-fallthrough=]
 1441 |   if (check_fwstate(pmlmepriv, WIFI_AP_STATE) == _TRUE)
      |      ^
/root/Desktop/rtl8188eus/core/rtw_mlme_ext.c:1446:2: note: here
 1446 |  case WIFI_ASSOCREQ:
      |  ^~~~
  CC [M]  /root/Desktop/rtl8188eus/core/rtw_mi.o
  CC [M]  /root/Desktop/rtl8188eus/core/rtw_wlan_util.o
  CC [M]  /root/Desktop/rtl8188eus/core/rtw_vht.o
  CC [M]  /root/Desktop/rtl8188eus/core/rtw_pwrctrl.o
  CC [M]  /root/Desktop/rtl8188eus/core/rtw_rf.o
  CC [M]  /root/Desktop/rtl8188eus/core/rtw_recv.o
  CC [M]  /root/Desktop/rtl8188eus/core/rtw_sta_mgt.o
  CC [M]  /root/Desktop/rtl8188eus/core/rtw_ap.o
/root/Desktop/rtl8188eus/core/rtw_ap.c: In function ‘rtw_add_bcn_ie’:
/root/Desktop/rtl8188eus/core/rtw_ap.c:193:9: warning: ‘ielen’ may be used uninitialized in this function [-Wmaybe-uninitialized]
  193 |   ielen += 2;
      |   ~~~~~~^~~~
  CC [M]  /root/Desktop/rtl8188eus/core/rtw_xmit.o
  CC [M]  /root/Desktop/rtl8188eus/core/rtw_p2p.o
  CC [M]  /root/Desktop/rtl8188eus/core/rtw_tdls.o
  CC [M]  /root/Desktop/rtl8188eus/core/rtw_br_ext.o
  CC [M]  /root/Desktop/rtl8188eus/core/rtw_iol.o
  CC [M]  /root/Desktop/rtl8188eus/core/rtw_sreset.o
  CC [M]  /root/Desktop/rtl8188eus/core/rtw_btcoex_wifionly.o
  CC [M]  /root/Desktop/rtl8188eus/core/rtw_btcoex.o
  CC [M]  /root/Desktop/rtl8188eus/core/rtw_beamforming.o
  CC [M]  /root/Desktop/rtl8188eus/core/rtw_odm.o
  CC [M]  /root/Desktop/rtl8188eus/core/efuse/rtw_efuse.o
  CC [M]  /root/Desktop/rtl8188eus/os_dep/osdep_service.o
  CC [M]  /root/Desktop/rtl8188eus/os_dep/linux/os_intfs.o
/root/Desktop/rtl8188eus/os_dep/linux/os_intfs.c:1240:22: error: initialization of ‘u16 (*)(struct net_device *, struct sk_buff *, struct net_device *)’ {aka ‘short unsigned int (*)(struct net_device *, struct sk_buff *, struct net_device *)’} from incompatible pointer type ‘u16 (*)(struct net_device *, struct sk_buff *, struct net_device *, u16 (*)(struct net_device *, struct sk_buff *, struct net_device *))’ {aka ‘short unsigned int (*)(struct net_device *, struct sk_buff *, struct net_device *, short unsigned int (*)(struct net_device *, struct sk_buff *, struct net_device *))’} [-Werror=incompatible-pointer-types]
 1240 |  .ndo_select_queue = rtw_select_queue,
      |                      ^~~~~~~~~~~~~~~~
/root/Desktop/rtl8188eus/os_dep/linux/os_intfs.c:1240:22: note: (near initialization for ‘rtw_netdev_ops.ndo_select_queue’)
cc1: some warnings being treated as errors
make[3]: *** [/usr/src/linux-headers-5.3.0-kali2-common/scripts/Makefile.build:286: /root/Desktop/rtl8188eus/os_dep/linux/os_intfs.o] Error 1
make[2]: *** [/usr/src/linux-headers-5.3.0-kali2-common/Makefile:1639: _module_/root/Desktop/rtl8188eus] Error 2
make[1]: *** [/usr/src/linux-headers-5.3.0-kali2-common/Makefile:179: sub-make] Error 2
make[1]: Leaving directory '/usr/src/linux-headers-5.3.0-kali2-amd64'
make: *** [Makefile:1911: modules] Error 2
foundation-university commented 4 years ago

@kimocoder have you find any solution? I am waiting for your answer.

thewhiteh4t commented 4 years ago

@kimocoder tried this patch method same error

kurohat commented 4 years ago

Got same error on kali 2019.4

Qaisser commented 4 years ago

going to this /lib/modules/5.3.0-kali3-amd64/kernel/drivers/net/wireless and do rmmod 8188eu insmod8188eu.ko

will don

LuD1161 commented 4 years ago

@Qaisser @foundation-university @gu2rks @thewhiteh4t

Use the pull request : https://github.com/quickreflex/rtl8188eus/pull/40 Probably you would be having kernel >= 5.1 ( like myself )

I have run this, works fine . image

Also there's a space in

patch -p1 < *. patch

it should be patch -p1 < *.patch

In the rtl8188eus folder do the below..

make clean wget https://github.com/quickreflex/rtl8188eus/pull/37/commits/0342a5197467a94d60f17cd0c2bf2a7644f51f2c.patch

patch -p1 < . patch rm -rf .patch

make && make install

reboot.. loaded

Qaisser commented 4 years ago

give me your number

On Wed, May 13, 2020 at 5:45 PM Aseem Shrey notifications@github.com wrote:

@Qaisser https://github.com/Qaisser @foundation-university https://github.com/foundation-university @gu2rks https://github.com/gu2rks @thewhiteh4t https://github.com/thewhiteh4t

Use the pull request : #40 https://github.com/quickreflex/rtl8188eus/pull/40 Probably you would be having kernel >= 5.1 ( like myself )

I have run this, works fine . [image: image] https://user-images.githubusercontent.com/17861054/81834539-af602680-955e-11ea-8d13-16e0e1290434.png

Also there's a space in

patch -p1 < *. patch

it should be patch -p1 < *.patch

In the rtl8188eus folder do the below..

make clean wget https://github.com/quickreflex/rtl8188eus/pull/37/commits/0342a5197467a94d60f17cd0c2bf2a7644f51f2c.patch

patch -p1 < . patch rm -rf .patch

make && make install

reboot.. loaded

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/quickreflex/rtl8188eus/issues/36#issuecomment-628077499, or unsubscribe https://github.com/notifications/unsubscribe-auth/AOFGOEB35BUUGC4Y7CIUC7DRRK6BZANCNFSM4JOEVKWQ .

LuD1161 commented 4 years ago

Well it got built correctly but still doesn't work. I rebooted but still didn't work.

On Thu, 14 May, 2020, 12:37 pm Qaisser, notifications@github.com wrote:

give me your number

On Wed, May 13, 2020 at 5:45 PM Aseem Shrey notifications@github.com wrote:

@Qaisser https://github.com/Qaisser @foundation-university https://github.com/foundation-university @gu2rks https://github.com/gu2rks @thewhiteh4t <https://github.com/thewhiteh4t

Use the pull request : #40 https://github.com/quickreflex/rtl8188eus/pull/40 Probably you would be having kernel >= 5.1 ( like myself )

I have run this, works fine . [image: image] < https://user-images.githubusercontent.com/17861054/81834539-af602680-955e-11ea-8d13-16e0e1290434.png

Also there's a space in

patch -p1 < *. patch

it should be patch -p1 < *.patch

In the rtl8188eus folder do the below..

make clean wget

https://github.com/quickreflex/rtl8188eus/pull/37/commits/0342a5197467a94d60f17cd0c2bf2a7644f51f2c.patch

patch -p1 < . patch rm -rf .patch

make && make install

reboot.. loaded

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub < https://github.com/quickreflex/rtl8188eus/issues/36#issuecomment-628077499 , or unsubscribe < https://github.com/notifications/unsubscribe-auth/AOFGOEB35BUUGC4Y7CIUC7DRRK6BZANCNFSM4JOEVKWQ

.

— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/quickreflex/rtl8188eus/issues/36#issuecomment-628434476, or unsubscribe https://github.com/notifications/unsubscribe-auth/AEIITPRL72ZMG2TVM3YESDDRROKDNANCNFSM4JOEVKWQ .

bobby69-24 commented 4 years ago

plz give me solution i too have same issue in kali vmware