BBB Angstrom EDIMAX Wifi stopped working after a while in drawer!

Just dusted off my BBB and it’s struggling to get wifi going - it was working fine a few months back.

I have an Edimax usb wifi dongle in a 2A powered USB hub.

ifconfig shows:

wlan0 Link encap:Ethernet HWaddr 74:DA:38:0C:C7:8B
UP BROADCAST MULTICAST MTU:1500 Metric:1
RX packets:0 errors:0 dropped:0 overruns:0 frame:0
TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:0 (0.0 B) TX bytes:0 (0.0 B)

lsmod shows:

Module Size Used by
fuse 51875 3
mac80211 270414 0
cfg80211 166418 1 mac80211
ip_tables 8294 0
x_tables 15072 1 ip_tables
g_multi 55905 2
libcomposite 15228 1 g_multi
8192cu 443598 0
rfcomm 25106 0
mtnet7601Usta 25701 0
mt7601Usta 753921 1 mtnet7601Usta
mtutil7601Usta 65890 2 mt7601Usta,mtnet7601Usta
ircomm_tty 14503 0
ircomm 8846 1 ircomm_tty
irda 89974 2 ircomm_tty,ircomm
ipv6 229989 12
hidp 10112 0
bluetooth 146100 4 hidp,rfcomm
rfkill 16510 5 cfg80211,bluetooth
autofs4 17432 2

So the driver appears to be there.

I have double checked the wifi.config

/usr/lib/connman/test/test-connman services shows my hub is there.

dmesg is showing this though:

[ 978.673284]
rfpwrstate_check call ips_leave…
[ 978.673344] ==>ips_leave cnts:6
[ 978.673370] ===> rtw_ips_pwr_up…
[ 978.673405] ===> ips_netdrv_open…
[ 978.682578] ===> FirmwareDownload91C() fw:Rtl819XFwImageArray_TSMC
[ 978.682623] FirmwareDownload92C accquire FW from embedded image
[ 978.682656] fw_ver=v80, fw_subver=0, sig=0x88c0
[ 978.718000] fw download ok!
[ 978.718039] Set RF Chip ID to RF_6052 and RF type to 1T1R.
[ 979.061015] IQK:Start!!!
[ 979.071278] Path A IQK Success!!
[ 979.078903] Path A IQK Success!!
[ 979.083876] IQK: final_candidate is 0
[ 979.083923] IQK: RegE94=102 RegE9C=11 RegEA4=fe RegEAC=2 RegEB4=0 RegEBC=0 RegEC4=0 RegECC=0
Path A IQ Calibration Success !
[ 979.197120] pdmpriv->TxPowerTrackControl = 1
[ 979.201943] MAC Address from REG_MACID = 74:da:38:0c:c7:8b
[ 979.201978] rtl8192cu_hal_init in 529ms
[ 979.202178] <=== rtw_ips_pwr_up… in 529ms
[ 979.202301] ==> ips_leave…LED(0x00028080)…
[ 980.531974] survey done event(21)
[ 981.029374] IPv6: ADDRCONF(NETDEV_UP): wlan0: link is not ready
[ 981.203469] ==>pwr_state_check_handler .fw_state(8)
[ 981.203521] ==> rtw_ps_cmd , enqueue CMD
[ 981.203632] ==>rtw_ps_processor .fw_state(8)
[ 981.203661] ==>ips_enter cnts:7
[ 981.203812] ==>power_saving_ctrl_wk_hdl change rf to OFF…LED(0x00028000)…

[ 981.203848] ===> rtw_ips_pwr_down…
[ 981.204143] ====> rtw_ips_dev_unload…
[ 981.233266] usb_read_port_cancel
[ 981.236175] usb_write_port_cancel
[ 981.236389] ==> rtl8192cu_hal_deinit
[ 981.236416] bkeepfwalive(0)
[ 981.236438] card disble without HWSM…
[ 981.243192] <=== rtw_ips_pwr_down… in 39ms

Any ideas?