Dear abhijeet2096,
I successfully managed to compile and install the kernel module on my Kali Linux with kernel 4.14 running on KVM. The monitor mode is also working when I execute your described commands. Great job. I just had to disable the already install driver "r8188eu" to make it work.
But when starting "airmon-ng" I get an error message about that the channel could not be switched:
Error setting channel: command failed: Operation not supported (-95)
Here is the log:
[ 6.900257] RTL871X: module init start
[ 6.900260] RTL871X: rtl8188eu v4.3.0.8_13968.20150417
[ 6.900262] RTL871X: build time: DATE TIME
[ 6.900310] RTL871X:
[ 6.900311] RTL871X: bLength=7
[ 6.900312] RTL871X: bDescriptorType=5
[ 6.900313] RTL871X: bEndpointAddress=81
[ 6.900314] RTL871X: wMaxPacketSize=64
[ 6.900315] RTL871X: bInterval=0
[ 6.900316] RTL871X: RT_usb_endpoint_is_bulk_in = 1
[ 6.900317] RTL871X:
[ 6.900335] RTL871X: bLength=7
[ 6.900336] RTL871X: bDescriptorType=5
[ 6.900336] RTL871X: bEndpointAddress=2
[ 6.900337] RTL871X: wMaxPacketSize=64
[ 6.900338] RTL871X: bInterval=0
[ 6.900339] RTL871X: RT_usb_endpoint_is_bulk_out = 2
[ 6.900340] RTL871X:
[ 6.900341] RTL871X: bLength=7
[ 6.900341] RTL871X: bDescriptorType=5
[ 6.900342] RTL871X: bEndpointAddress=3
[ 6.900343] RTL871X: wMaxPacketSize=64
[ 6.900344] RTL871X: bInterval=0
[ 6.900344] RTL871X: RT_usb_endpoint_is_bulk_out = 3
[ 6.900346] RTL871X: nr_endpoint=3, in_num=1, out_num=2
[ 6.900347] RTL871X: USB_SPEED_FULL
[ 6.900378] RTL871X: CHIP TYPE: RTL8188E
[ 6.900391] RTL871X: register rtw_netdev_ops to netdev_ops
[ 6.900395] RTL871X: rtw_wdev_alloc(padapter=ffffad6040421000)
[ 6.903590] RTL871X: Chip Version Info: CHIP_8188E_Normal_Chip_TSMC_D_CUT_1T1R_RomVer(0)
[ 6.903593] RTL871X: RF_Type is 3!!
[ 6.903598] RTL871X: _ConfigNormalChipOutEP_8188E OutEpQueueSel(0x05), OutEpNumber(2)
[ 6.905743] RTL871X: EEPROM type is E-FUSE
[ 6.905746] RTL871X: ====> _ReadAdapterInfo8188EU
[ 6.907960] RTL871X: Boot from EFUSE, Autoload OK !
[ 6.988067] RTL871X: SetHwReg8188EU: bMacPwrCtrlOn=1
[ 7.007714] RTL871X: =====> _8051Reset88E(): 8051 reset success .
[ 7.034802] RTL871X: efuse_read_phymap_from_txpktbuf bcnhead:0
[ 7.090468] RTL871X: efuse_read_phymap_from_txpktbuf len:125, lenbak:125, aaa:125, aaabak:125
[ 7.494263] RTL871X: efuse_read_phymap_from_txpktbuf read count:123
[ 7.500861] RTL871X: EEPROM ID=0x8129
[ 7.500866] RTL871X: VID = 0x2357, PID = 0x010C
[ 7.500867] RTL871X: Customer ID: 0x00, SubCustomer ID: 0xCD
[ 7.500871] RTL871X: Hal_ReadPowerSavingMode88E...bHWPwrPindetect(0)-bHWPowerdown(0) ,bSupportRemoteWakeup(1)
[ 7.500872] RTL871X: ### PS params=> power_mgnt(1),usbss_enable(0) ###
[ 7.500875] RTL871X: ======= Path 0, Channel 1 =======
[ 7.500876] RTL871X: Index24G_CCK_Base[0][1] = 0x2e
[ 7.500878] RTL871X: Index24G_BW40_Base[0][1] = 0x32
[ 7.500879] RTL871X: ======= Path 0, Channel 2 =======
[ 7.500880] RTL871X: Index24G_CCK_Base[0][2] = 0x2e
[ 7.500881] RTL871X: Index24G_BW40_Base[0][2] = 0x32
[ 7.500882] RTL871X: ======= Path 0, Channel 3 =======
[ 7.500883] RTL871X: Index24G_CCK_Base[0][3] = 0x2e
[ 7.500885] RTL871X: Index24G_BW40_Base[0][3] = 0x32
[ 7.500886] RTL871X: ======= Path 0, Channel 4 =======
[ 7.500887] RTL871X: Index24G_CCK_Base[0][4] = 0x2e
[ 7.500888] RTL871X: Index24G_BW40_Base[0][4] = 0x32
[ 7.500889] RTL871X: ======= Path 0, Channel 5 =======
[ 7.500890] RTL871X: Index24G_CCK_Base[0][5] = 0x2e
[ 7.500891] RTL871X: Index24G_BW40_Base[0][5] = 0x32
[ 7.500909] RTL871X: ======= Path 0, Channel 6 =======
[ 7.500911] RTL871X: Index24G_CCK_Base[0][6] = 0x2d
[ 7.500912] RTL871X: Index24G_BW40_Base[0][6] = 0x31
[ 7.500913] RTL871X: ======= Path 0, Channel 7 =======
[ 7.500914] RTL871X: Index24G_CCK_Base[0][7] = 0x2d
[ 7.500915] RTL871X: Index24G_BW40_Base[0][7] = 0x31
[ 7.500916] RTL871X: ======= Path 0, Channel 8 =======
[ 7.500917] RTL871X: Index24G_CCK_Base[0][8] = 0x2d
[ 7.500919] RTL871X: Index24G_BW40_Base[0][8] = 0x31
[ 7.500920] RTL871X: ======= Path 0, Channel 9 =======
[ 7.500921] RTL871X: Index24G_CCK_Base[0][9] = 0x2c
[ 7.500922] RTL871X: Index24G_BW40_Base[0][9] = 0x30
[ 7.500924] RTL871X: ======= Path 0, Channel 10 =======
[ 7.500925] RTL871X: Index24G_CCK_Base[0][10] = 0x2c
[ 7.500926] RTL871X: Index24G_BW40_Base[0][10] = 0x30
[ 7.500927] RTL871X: ======= Path 0, Channel 11 =======
[ 7.500929] RTL871X: Index24G_CCK_Base[0][11] = 0x2c
[ 7.500930] RTL871X: Index24G_BW40_Base[0][11] = 0x30
[ 7.500931] RTL871X: ======= Path 0, Channel 12 =======
[ 7.500932] RTL871X: Index24G_CCK_Base[0][12] = 0x2c
[ 7.500933] RTL871X: Index24G_BW40_Base[0][12] = 0x30
[ 7.500934] RTL871X: ======= Path 0, Channel 13 =======
[ 7.500935] RTL871X: Index24G_CCK_Base[0][13] = 0x2c
[ 7.500937] RTL871X: Index24G_BW40_Base[0][13] = 0x30
[ 7.500938] RTL871X: ======= Path 0, Channel 14 =======
[ 7.500939] RTL871X: Index24G_CCK_Base[0][14] = 0x2c
[ 7.500940] RTL871X: Index24G_BW40_Base[0][14] = 0x30
[ 7.500941] RTL871X: ======= TxCount 0 =======
[ 7.500943] RTL871X: CCK_24G_Diff[0][0]= 0
[ 7.500944] RTL871X: OFDM_24G_Diff[0][0]= 1
[ 7.500945] RTL871X: BW20_24G_Diff[0][0]= 0
[ 7.500946] RTL871X: BW40_24G_Diff[0][0]= 0
[ 7.500947] RTL871X: EEPROMRegulatory = 0x0
[ 7.500949] RTL871X: mlmepriv.ChannelPlan = 0x21
[ 7.500951] RTL871X: CrystalCap: 0x20
[ 7.500951] RTL871X: EEPROM Customer ID: 0x 0
[ 7.500953] RTL871X: EEPROM : AntDivCfg = 0, TRxAntDivType = 3
[ 7.500954] RTL871X: Board Type: 0x 0
[ 7.500954] RTL871X: ThermalMeter = 0x1b
[ 7.500957] RTL871X: <==== _ReadAdapterInfo8188EU in 596 ms
[ 7.501048] RTL871X: init_channel_set ChannelPlan ID 21 Chan num:13
[ 7.501417] RTL871X: pwrctrlpriv.bSupportRemoteWakeup~~~~~~
[ 7.501419] RTL871X: pwrctrlpriv.bSupportRemoteWakeup~~~[1]~~~
[ 7.501422] RTL871X: can't get autopm:
[ 7.501425] RTL871X: rtw_macaddr_cfg MAC Address = c0:25:e9:14:53:d0
[ 7.501427] RTL871X: bDriverStopped:1, bSurpriseRemoved:0, bup:0, hw_init_completed:0
[ 7.501439] RTL871X: rtw_ndev_init(wlan0)
[ 7.501810] RTL871X: cfg80211_rtw_get_txpower
[ 7.501828] RTL871X: _rtw_drv_register_netdev, MAC Address (if1) = c0:25:e9:14:53:d0
[ 7.501876] RTL871X: module init ret=0
[ 8.915044] RTL871X: cfg80211_rtw_get_txpower
[ 8.922328] RTL871X: +871x_drv - drv_open, bup=0
[ 8.922333] RTL871X: Set RF Chip ID to RF_6052 and RF type to 1T1R.
[ 8.934913] RTL871X: rtl8188e_FirmwareDownload fw:NIC, size: 13904
[ 8.934920] RTL871X: rtl8188e_FirmwareDownload: fw_ver=b fw_subver=0001 sig=0x88e1, Month=11, Date=27, Hour=30, Minute=36
[ 9.282184] RTL871X: polling_fwdl_chksum: Checksum report OK! (1, 4ms), REG_MCUFWDL:0x00030005
[ 9.309213] RTL871X: =====> _8051Reset88E(): 8051 reset success .
[ 9.313645] RTL871X: _FWFreeToGo: Polling FW ready OK! (2, 24ms), REG_MCUFWDL:0x000300c6
[ 9.313648] RTL871X: FWDL success. write_fw:1, 368ms
[ 12.946229] RTL871X: pDM_Odm TxPowerTrackControl = 1
[ 13.802378] RTL871X: rtl8188eu_hal_init in 4880ms
[ 13.813583] RTL871X: hw_var_set_opmode()-4042 mode = 2
[ 13.932419] RTL871X: MAC Address = c0:25:e9:14:53:d0
[ 13.932716] RTL871X: rtw_cfg80211_init_wiphy:rf_type=3
[ 13.932727] RTL871X: -871x_drv - drv_open, bup=1
[ 13.932790] RTL871X: cfg80211_rtw_set_power_mgmt(wlan0) enabled:1, timeout:-1
[ 13.933121] RTL871X: cfg80211_rtw_get_txpower
[ 13.933232] RTL871X: (2)871x_drv - drv_close, bup=1, hw_init_completed=1
[ 14.029747] RTL871X: rtw_cfg80211_indicate_disconnect(wlan0)
[ 14.029798] RTL871X: rtl8188e_set_FwJoinBssReport_cmd mstatus(0)
[ 14.036455] RTL871X: HW_VAR_BASIC_RATE: 0x15f -> 0x15f -> 0x15f
[ 14.043939] RTL871X: -871x_drv - drv_close, bup=1
[ 14.146301] RTL871X: +871x_drv - drv_open, bup=1
[ 14.146310] RTL871X: -871x_drv - drv_open, bup=1
[ 14.146351] RTL871X: cfg80211_rtw_set_power_mgmt(wlan0) enabled:1, timeout:-1
[ 14.223298] RTL871X: cfg80211_rtw_get_txpower
[ 14.223318] RTL871X: cfg80211_rtw_get_txpower
[ 14.223439] RTL871X: cfg80211_rtw_get_txpower
[ 14.223452] RTL871X: cfg80211_rtw_get_txpower
[ 14.223868] RTL871X: cfg80211_rtw_get_txpower
[ 14.225270] RTL871X: cfg80211_rtw_flush_pmksa(wlan0)
[ 14.297343] RTL871X: cfg80211_rtw_scan(wlan0)
[ 14.355231] RTL871X: ###=> usb_read_port_complete => urb status(-75)
[ 14.401722] RTL871X: ###=> usb_read_port_complete => urb status(-84)
[ 14.401914] RTL871X: reg 0xe10, usb read 4 fail, status:-71 value=0x0, vendorreq_times:1
[ 14.421102] RTL871X: ###=> usb_read_port_complete => urb status(-84)
[ 14.421290] RTL871X: reg 0xe10, usb read 4 fail, status:-71 value=0x0, vendorreq_times:2
[ 14.440649] RTL871X: ###=> usb_read_port_complete => urb status(-84)
[ 14.440666] RTL871X: [dvobj:ffff8aa53dbee800][ERROR] continual_io_error:5 > 4
[ 14.440842] RTL871X: reg 0xe10, usb read 4 fail, status:-71 value=0x0, vendorreq_times:3
[ 14.440845] RTL871X: [dvobj:ffff8aa53dbee800][ERROR] continual_io_error:6 > 4
[ 14.440879] RTL871X: rtw_cmd_thread: DriverStopped(0) SurpriseRemoved(1) break at line 506
[ 14.454641] RTL871X: usb_read_port_complete() RX Warning! bDriverStopped(0) OR bSurpriseRemoved(1)
[ 14.464708] RTL871X: usb_read_port_complete() RX Warning! bDriverStopped(0) OR bSurpriseRemoved(1)
[ 14.486777] RTL871X: usb_read_port_complete() RX Warning! bDriverStopped(0) OR bSurpriseRemoved(1)
[ 14.496843] RTL871X: usb_read_port_complete() RX Warning! bDriverStopped(0) OR bSurpriseRemoved(1)
[ 14.506648] RTL871X: usb_read_port_complete() RX Warning! bDriverStopped(0) OR bSurpriseRemoved(1)
[ 14.517158] RTL871X: usb_read_port_complete() RX Warning! bDriverStopped(0) OR bSurpriseRemoved(1)
[ 14.527185] RTL871X: usb_read_port_complete() RX Warning! bDriverStopped(0) OR bSurpriseRemoved(1)
[ 22.496128] RTL871X: rtw_scan_timeout_handler(wlan0) fw_state=808
[ 22.496152] RTL871X: rtw_indicate_scan_done(wlan0)
[ 38.579382] RTL871X: rtw_wx_get_rts, rts_thresh=2347
[ 38.579387] RTL871X: rtw_wx_get_frag, frag_len=2346
[ 46.006267] RTL871X: cfg80211_rtw_scan(wlan0)
[ 46.006276] RTL871X: LeaveAllPowerSaveMode(wlan0): bSurpriseRemoved=1 Skip!
[ 63.684987] RTL871X: (2)871x_drv - drv_close, bup=1, hw_init_completed=1
[ 63.684992] RTL871X: LeaveAllPowerSaveMode(wlan0): bSurpriseRemoved=1 Skip!
[ 63.685011] RTL871X: rtw_cfg80211_indicate_disconnect(wlan0)
[ 63.685038] RTL871X: LeaveAllPowerSaveMode(wlan0): bSurpriseRemoved=1 Skip!
[ 63.685044] RTL871X: HW_VAR_BASIC_RATE: 0x15f -> 0x15f -> 0x15f
[ 63.685046] RTL871X: -871x_drv - drv_close, bup=1
[ 64.692516] RTL871X: LeaveAllPowerSaveMode(wlan0): bSurpriseRemoved=1 Skip!
[ 64.692520] RTL871X: set_mode = IW_MODE_MONITOR
[ 65.698521] RTL871X: +871x_drv - drv_open, bup=1
[ 65.698538] RTL871X: -871x_drv - drv_open, bup=1
[ 65.700506] RTL871X: cfg80211_rtw_set_power_mgmt(wlan0) enabled:1, timeout:-1
[ 65.708807] RTL871X: cfg80211_rtw_scan(wlan0)
[ 65.708817] RTL871X: LeaveAllPowerSaveMode(wlan0): bSurpriseRemoved=1 Skip!
[ 66.741345] RTL871X: rtw_wx_get_rts, rts_thresh=2347
[ 66.741350] RTL871X: rtw_wx_get_frag, frag_len=2346
[ 67.638491] RTL871X: (2)871x_drv - drv_close, bup=1, hw_init_completed=1
[ 67.638497] RTL871X: LeaveAllPowerSaveMode(wlan0): bSurpriseRemoved=1 Skip!
[ 67.638515] RTL871X: rtw_cfg80211_indicate_disconnect(wlan0)
[ 67.638538] RTL871X: LeaveAllPowerSaveMode(wlan0): bSurpriseRemoved=1 Skip!
[ 67.638543] RTL871X: HW_VAR_BASIC_RATE: 0x15f -> 0x15f -> 0x15f
[ 67.638545] RTL871X: -871x_drv - drv_close, bup=1
[ 70.361174] RTL871X: rtw_wx_get_rts, rts_thresh=2347
[ 70.361179] RTL871X: rtw_wx_get_frag, frag_len=2346
[ 70.615486] RTL871X: +871x_drv - drv_open, bup=1
[ 70.615503] RTL871X: -871x_drv - drv_open, bup=1
[ 70.615560] RTL871X: cfg80211_rtw_set_power_mgmt(wlan0) enabled:1, timeout:-1
When I then start airodump-ng, nothing is received. But the log is spammed with the following messages:
[ 466.883556] device wlan0 entered promiscuous mode
[ 466.970839] RTL871X: LeaveAllPowerSaveMode(wlan0): bSurpriseRemoved=1 Skip!
[ 466.970844] RTL871X: set_mode = IW_MODE_MONITOR
[ 467.623251] RTL871X: LeaveAllPowerSaveMode(wlan0): bSurpriseRemoved=1 Skip!
[ 467.623256] RTL871X: set_mode = IW_MODE_MONITOR
[ 468.124174] RTL871X: LeaveAllPowerSaveMode(wlan0): bSurpriseRemoved=1 Skip!
[ 468.124180] RTL871X: set_mode = IW_MODE_MONITOR
[ 468.628232] RTL871X: LeaveAllPowerSaveMode(wlan0): bSurpriseRemoved=1 Skip!
[ 468.628237] RTL871X: set_mode = IW_MODE_MONITOR
[ 469.130639] RTL871X: LeaveAllPowerSaveMode(wlan0): bSurpriseRemoved=1 Skip!
[ 469.130644] RTL871X: set_mode = IW_MODE_MONITOR
[ 469.637510] RTL871X: LeaveAllPowerSaveMode(wlan0): bSurpriseRemoved=1 Skip!
[ 469.637516] RTL871X: set_mode = IW_MODE_MONITOR
[ 470.137076] RTL871X: LeaveAllPowerSaveMode(wlan0): bSurpriseRemoved=1 Skip!
[ 470.137082] RTL871X: set_mode = IW_MODE_MONITOR
[ 470.640417] RTL871X: LeaveAllPowerSaveMode(wlan0): bSurpriseRemoved=1 Skip!
[ 470.640422] RTL871X: set_mode = IW_MODE_MONITOR
[ 471.147399] RTL871X: LeaveAllPowerSaveMode(wlan0): bSurpriseRemoved=1 Skip!
[ 471.147404] RTL871X: set_mode = IW_MODE_MONITOR
[ 471.654304] RTL871X: LeaveAllPowerSaveMode(wlan0): bSurpriseRemoved=1 Skip!
[ 471.654309] RTL871X: set_mode = IW_MODE_MONITOR
[ 472.156125] RTL871X: LeaveAllPowerSaveMode(wlan0): bSurpriseRemoved=1 Skip!
[ 472.156130] RTL871X: set_mode = IW_MODE_MONITOR
[ 472.652697] RTL871X: LeaveAllPowerSaveMode(wlan0): bSurpriseRemoved=1 Skip!
[ 472.652702] RTL871X: set_mode = IW_MODE_MONITOR
[ 473.155289] RTL871X: LeaveAllPowerSaveMode(wlan0): bSurpriseRemoved=1 Skip!
[ 473.155294] RTL871X: set_mode = IW_MODE_MONITOR
[ 473.662487] RTL871X: LeaveAllPowerSaveMode(wlan0): bSurpriseRemoved=1 Skip!
[ 473.662495] RTL871X: set_mode = IW_MODE_MONITOR
[ 474.161720] RTL871X: LeaveAllPowerSaveMode(wlan0): bSurpriseRemoved=1 Skip!
[ 474.161725] RTL871X: set_mode = IW_MODE_MONITOR
Do you have any idea or suggestion?
Thank you in advance!