FomalhautWeisszwerg / rtl8822bu

RTL8822BU Wireless Driver for Linux >= 4.12
GNU General Public License v2.0
34 stars 12 forks source link

8822bu initialisation does not continue #13

Closed debiangamer closed 6 years ago

debiangamer commented 6 years ago

Hi,

I have this usb stick: https://www.aliexpress.com/item/Hot-Sale-Dual-Band-2-4G-5-8G-1200Mbps-Wireless-USB-WiFi-Adapter-with-Antenna-802/32849576941.html

I ported this repository driver to the 4.16 kernel. Modprode 8822bu messages is the same with/without the usb stick. Any ideas how to make the driver to continue to make a wlan interface for Wicd?

[ 16.804389] usb 1-3: new high-speed USB device number 5 using xhci_hcd [ 16.978766] usb 1-3: New USB device found, idVendor=0bda, idProduct=b812 [ 16.978770] usb 1-3: New USB device strings: Mfr=1, Product=2, SerialNumber=3 [ 16.978773] usb 1-3: Product: USB3.0 802.11ac 1200M Adapter [ 16.978775] usb 1-3: Manufacturer: Realtek [ 16.978777] usb 1-3: SerialNumber: 123456 [ 52.117487] RTW: module init start [ 52.117488] RTW: rtl8822bu v5.1.0-5_17968.20160601_BTCOEX20160411-1400_beta [ 52.117489] RTW: rtl8822bu BT-Coex version = BTCOEX20160411-1400 [ 52.117518] usbcore: registered new interface driver rtl8822bu [ 52.117518] RTW: module init ret=0

Is this ok timer init in Downloads/rtl8822bu/include/osdep_service_linux.h? inline static void _init_timer(_timer ptimer, _nic_hdl nic_hdl, void pfunc, void *cntx) { init_timer(ptimer, pfunc, (unsigned int) cntx);
}

The compiler throws warning about converting a pointer to a integer.

debiangamer commented 6 years ago

This driver makes wlan if and connect to wlan router but disconnect after that because of the line 752 of Downloads/linux/net/wireless/sme.c

if (WARN_ON(!cr->bss)) return;

https://github.com/cilynx/rtl88x2bu