TP-Link WN8200ND On BeagleBone Black

From Wiki
Jump to: navigation, search

This is using the TP-Link 4.0.2_9000.20130911 Linux driver under kernel version 3.8.13-bone32.

I compiled the package, blacklisted the provided rtl8192cu, rtl8192c_common and rtlwifi modules. No matter what I do, it will not associate to a network, whether it's open or WPA2 secured. I've checked dozens of websites, some people have claimed they've gotten it working, others run into the same problems. At this point, I'm chucking this in a box, and I'm going to go find an Aetheros-based chipset USB adapter.

/etc/network/interfaces

# This file describes the network interfaces available on your system
# and how to activate them. For more information, see interfaces(5).

# The loopback network interface
auto lo
iface lo inet loopback

# The primary network interface
auto eth0
iface eth0 inet dhcp
# Example to keep MAC address between reboots
#hwaddress ether DE:AD:BE:EF:CA:FE

# WiFi Example
#auto wlan0
#iface wlan0 inet dhcp
#    wpa-ssid "essid"
#    wpa-psk  "password"

# Ethernet/RNDIS gadget (g_ether)
# ... or on host side, usbnet and random hwaddr
# Note on some boards, usb0 is automaticly setup with an init script
# in that case, to completely disable remove file [run_boot-scripts] from the boot partition
iface usb0 inet static
    address 192.168.7.2
    netmask 255.255.255.0
    network 192.168.7.0
    gateway 192.168.7.1

allow-hotplug wlan0
iface wlan0 inet manual
  wpa-roam /etc/wpa_supplicant/wpa_supplicant.conf

iface default inet dhcp

/etc/wpa_supplicant/wpa_supplicant.conf

ctrl_interface=/var/run/wpa_supplicant
ctrl_interface_group=0
update_config=1
eapol_version=1

network={
        ssid="JCW's WiFi HotSpot"
        key_mgmt=NONE
        scan_ssid=1
}

This is the dmesg log after 'modprobe 8192cu'.

[32168.801444] rtl8192cu driver version=v4.0.2_9000.20130911
[32168.807301] build time: Jan 17 2014 16:00:08
[32168.818957] rtl8192cu 1-1:1.0: usb_probe_interface
[32168.819022] rtl8192cu 1-1:1.0: usb_probe_interface - got id
[32168.819082] 
[32168.819082] usb_endpoint_descriptor(0):
[32168.824811] bLength=7
[32168.827263] bDescriptorType=5
[32168.830433] bEndpointAddress=81
[32168.833780] wMaxPacketSize=200
[32168.837035] bInterval=0
[32168.839654] RT_usb_endpoint_is_bulk_in = 1
[32168.844000] 
[32168.844000] usb_endpoint_descriptor(1):
[32168.849625] bLength=7
[32168.852062] bDescriptorType=5
[32168.855224] bEndpointAddress=2
[32168.858478] wMaxPacketSize=200
[32168.861731] bInterval=0
[32168.864349] RT_usb_endpoint_is_bulk_out = 2
[32168.868785] 
[32168.868785] usb_endpoint_descriptor(2):
[32168.874410] bLength=7
[32168.876845] bDescriptorType=5
[32168.880009] bEndpointAddress=3
[32168.883264] wMaxPacketSize=200
[32168.886517] bInterval=0
[32168.889136] RT_usb_endpoint_is_bulk_out = 3
[32168.893573] 
[32168.893573] usb_endpoint_descriptor(3):
[32168.899207] bLength=7
[32168.901645] bDescriptorType=5
[32168.904810] bEndpointAddress=84
[32168.908154] wMaxPacketSize=40
[32168.911317] bInterval=1
[32168.913935] RT_usb_endpoint_is_int_in = 4, Interval = 1
[32168.919467] nr_endpoint=4, in_num=2, out_num=2
[32168.919467] 
[32168.925728] USB_SPEED_HIGH
[32168.930255] CHIP TYPE: RTL8188C_8192C
[32168.934343] register rtw_netdev_ops to netdev_ops
[32168.939651] Chip Version ID: VERSION_NORMAL_TSMC_CHIP_92C.
[32168.945488] RF_Type is 2!!
[32168.948770] EEPROM type is E-FUSE
[32168.952339] ====> ReadAdapterInfo8192C
[32168.961436] Boot from EFUSE, Autoload OK !
[32169.091063] EEPROMVID = 0x2357
[32169.094310] EEPROMPID = 0x0100
[32169.097522] EEPROMCustomerID : 0x00
[32169.101187] EEPROMSubCustomerID: 0x00
[32169.105034] RT_CustomerID: 0x00
[32169.108340] _ReadMACAddress MAC Address from EFUSE = a0:f3:c1:26:0a:73
[32169.115194] EEPROMRegulatory = 0x0
[32169.118768] _ReadBoardType(0)
[32169.121887] BT Coexistance = disable
[32169.125644] mlmepriv.ChannelPlan = 0x02
[32169.129676] _ReadPSSetting...bHWPwrPindetect(0)-bHWPowerdown(0) ,bSupportRemoteWakeup(0)
[32169.138172] ### PS params=>  power_mgnt(1),usbss_enable(0) ###
[32169.144295] ### AntDivCfg(0)
[32169.147324] readAdapterInfo_8192CU(): REPLACEMENT = 1
[32169.152628] <==== ReadAdapterInfo8192C in 199 ms
[32169.158499] rtw_macaddr_cfg MAC Address  = a0:f3:c1:26:0a:73
[32169.164494] bDriverStopped:1, bSurpriseRemoved:0, bup:0, hw_init_completed:0
[32169.177064] _rtw_drv_register_netdev, MAC Address (if1) = a0:f3:c1:26:0a:73
[32169.186324] usbcore: registered new interface driver rtl8192cu
[32169.394602] +871x_drv - drv_open, bup=0
[32169.401729]  ===> FirmwareDownload91C() fw:Rtl819XFwImageArray_TSMC
[32169.408379] FirmwareDownload92C accquire FW from embedded image
[32169.414603] fw_ver=v88, fw_subver=2, sig=0x88c0
[32169.437157] fw download ok!
[32169.440133] Set RF Chip ID to RF_6052 and RF type to 2.
[32169.731789] IQK:Start!!!
[32169.741686] Path A IQK Success!!
[32169.748543] Path B IQK Success!!
[32169.757306] Path A IQK Success!!
[32169.764013] Path B IQK Success!!
[32169.770247] IQK: final_candidate is 0
[32169.774155] IQK: RegE94=ff RegE9C=3fa RegEA4=fa RegEAC=3fe RegEB4=101 RegEBC=8 RegEC4=fc RegECC=2
[32169.774155]  Path A IQ Calibration Success !
[32169.787794] Path B IQ Calibration Success !
[32169.900868] pdmpriv->TxPowerTrackControl = 1
[32169.907993] rtl8192cu_hal_init in 507ms
[32169.919261] MAC Address = a0:f3:c1:26:0a:73
[32169.924799] -871x_drv - drv_open, bup=1
[32169.929872] IPv6: ADDRCONF(NETDEV_UP): wlan0: link is not ready
[32169.936828] [rtw_wx_set_pmkid] IW_PMKSA_FLUSH!
[32169.942156] set_mode = IW_MODE_INFRA
[32169.947132] hw_var_set_opmode()-4234 mode = 2
[32169.952688] =>rtw_wx_set_essid
[32169.956010] ssid=g\xffffffc6isQ\xffffffffJ\xffffffec)\xffffffcd\xffffffba\xffffffba\xffffffab\xfffffff2\xfffffffb\xffffffe3F|\xffffffc2T\xfffffff8\x1b\xffffffe8\xffffffe7\xffffff8dvZ.c3\xffffff9f\xffffffc9\xffffff9a\xffffff9a, len=32
[32169.962040] Set SSID under fw_state=0x00000008
[32169.966781] <=rtw_wx_set_essid, ret 0
[32169.997218] [rtw_wx_set_pmkid] IW_PMKSA_FLUSH!
[32171.307324] survey done event(24) band:0 for wlan0
[32171.312537] rtw_select_and_join_from_scanned_queue: return _FAIL(candidate == NULL)
[32171.320660] try_to_join, but select scanning queue fail, to_roaming:0
[32172.032866] IW_SCAN_THIS_ESSID, ssid=JCW's WiFi HotSpot, len=18
[32173.363127] survey done event(1e) band:0 for wlan0
[32173.390681] wpa_set_auth_algs, AUTH_ALG_OPEN_SYSTEM
[32173.397286] set_mode = IW_MODE_INFRA
[32173.403323] hw_var_set_opmode()-4234 mode = 2
[32173.409759] =>rtw_wx_set_essid
[32173.413142] ssid=JCW's WiFi HotSpot, len=18
[32173.418951] Set SSID under fw_state=0x00000008
[32173.423755] [by_bssid:0][assoc_ssid:JCW's WiFi HotSpot][to_roaming:0] new candidate: JCW's WiFi HotSpot(f8:1a:67:4d:44:e4, ch11) rssi:-44
[32173.436839] rtw_select_and_join_from_scanned_queue: candidate: JCW's WiFi HotSpot(f8:1a:67:4d:44:e4, ch:11)
[32173.447254] link to Artheros AP
[32173.450902] <=rtw_wx_set_essid, ret 0
[32173.457947] set ch/bw before connected
[32173.462037] start_join_set_ch_bw: ch=11, bwmode=1, ch_offset=2
[32173.475264] Set BSSID under fw_state=0x00000088
[32173.976268] issue_deauth_ex(wlan0) to f8:1a:67:4d:44:e4, ch:11, 5/5 in 482 ms
[32174.031125] link to Artheros AP
[32174.328532] link_timer_hdl: auth timeout and try again
[32174.631246] link_timer_hdl: auth timeout and try again
[32174.934012] link_timer_hdl: auth timeout and try again
[32175.236757] link_timer_hdl: auth timeout and try again
[32175.539467] report_join_res(-1)
[32175.542917] _rtw_join_timeout_handler, fw_state=8
[32175.551441] HW_VAR_BASIC_RATE: BrateCfg(0x15d)
[32175.558513] =>mlmeext_joinbss_event_callback
[32175.563177] rtl8192c_set_FwJoinBssReport_cmd mstatus(0)
[32176.978819] survey done event(20) band:0 for wlan0
[32176.992635] wpa_set_auth_algs, AUTH_ALG_OPEN_SYSTEM
[32176.998961] set_mode = IW_MODE_INFRA
[32177.004908] hw_var_set_opmode()-4234 mode = 2
[32177.011151] =>rtw_wx_set_essid
[32177.014534] ssid=JCW's WiFi HotSpot, len=18
[32177.019604] Set SSID under fw_state=0x00000008
[32177.024388] [by_bssid:0][assoc_ssid:JCW's WiFi HotSpot][to_roaming:0] new candidate: JCW's WiFi HotSpot(f8:1a:67:4d:44:e4, ch11) rssi:-64
[32177.037395] rtw_select_and_join_from_scanned_queue: candidate: JCW's WiFi HotSpot(f8:1a:67:4d:44:e4, ch:11)
[32177.047750] link to Artheros AP
[32177.051199] <=rtw_wx_set_essid, ret 0
[32177.055840] set ch/bw before connected