Hello,

When I plug in an Alfa AWUS051NH USB wireless card, "iw dev" shows phy0 for a moment, then phy1, phy2, etc. If the card is not unplugged within about 10 seconds, the system locks as if out of memory. When looking at "dmesg" output, it can be seen that the driver loading process is occuring repeatedly; perhaps infinitely until the system lock occurs. Please see a section of the dmesg output below. On each loop there are warnings "rt2800usb_entry_txstatus_timeout: Warning - TX status timeout for entry 0 in queue 0" that others appear to be having trouble with, but not reporting the looping issue. In most cases "Googled", the warning appears, the card doesnt connect and that is the end. In my case, the loop occurs.

Please advise if there is a way to fix or at least a way to prevent the loop to allow more diagnostics.

dmesg output with card being plugged in twice for about 5 seconds per time (anymore risks locking the system)

Code:
[   37.424151] usb 1-1: new high-speed USB device number 2 using ehci-pci
[   37.652286] usb 1-1: New USB device found, idVendor=148f, idProduct=2770
[   37.652291] usb 1-1: New USB device strings: Mfr=1, Product=2, SerialNumber=3
[   37.652294] usb 1-1: Product: 802.11 n WLAN
[   37.652296] usb 1-1: Manufacturer: Ralink
[   37.652297] usb 1-1: SerialNumber: 1.0
[   37.678859] cfg80211: Calling CRDA to update world regulatory domain
[   37.772093] cfg80211: World regulatory domain updated:
[   37.772096] cfg80211:  DFS Master region: unset
[   37.772097] cfg80211:   (start_freq - end_freq @ bandwidth), (max_antenna_gain, max_eirp)
[   37.772099] cfg80211:   (2402000 KHz - 2472000 KHz @ 40000 KHz), (300 mBi, 2000 mBm)
[   37.772100] cfg80211:   (2457000 KHz - 2482000 KHz @ 20000 KHz), (300 mBi, 2000 mBm)
[   37.772101] cfg80211:   (2474000 KHz - 2494000 KHz @ 20000 KHz), (300 mBi, 2000 mBm)
[   37.772102] cfg80211:   (5170000 KHz - 5250000 KHz @ 40000 KHz), (300 mBi, 2000 mBm)
[   37.772102] cfg80211:   (5735000 KHz - 5835000 KHz @ 40000 KHz), (300 mBi, 2000 mBm)
[   37.876190] usb 1-1: reset high-speed USB device number 2 using ehci-pci
[   38.115787] ieee80211 phy0: rt2x00_set_rt: Info - RT chipset 2872, rev 0202 detected
[   38.172708] ieee80211 phy0: rt2x00_set_rf: Info - RF chipset 0004 detected
[   38.181924] ieee80211 phy0: Selected rate control algorithm 'minstrel_ht'
[   38.182321] usbcore: registered new interface driver rt2800usb
[   38.208118] ieee80211 phy0: rt2x00lib_request_firmware: Info - Loading firmware file 'rt2870.bin'
[   38.209106] rt2800usb 1-1:1.0: firmware: direct-loading firmware rt2870.bin
[   38.209110] ieee80211 phy0: rt2x00lib_request_firmware: Info - Firmware detected - version: 0.29
[   39.804582] IPv6: ADDRCONF(NETDEV_UP): wlan1: link is not ready
[   40.018002] usb 1-1: USB disconnect, device number 2
[   40.126854] ieee80211 phy0: rt2800usb_entry_txstatus_timeout: Warning - TX status timeout for entry 0 in queue 0
[   40.126860] ieee80211 phy0: rt2800usb_entry_txstatus_timeout: Warning - TX status timeout for entry 0 in queue 0
[   41.742788] ieee80211 phy0: rt2800_wait_wpdma_ready: Error - WPDMA TX/RX busy [0xffffffff]
[  216.651389] usb 1-1: new high-speed USB device number 3 using ehci-pci
[  216.883391] usb 1-1: New USB device found, idVendor=148f, idProduct=2770
[  216.883396] usb 1-1: New USB device strings: Mfr=1, Product=2, SerialNumber=3
[  216.883399] usb 1-1: Product: 802.11 n WLAN
[  216.883400] usb 1-1: Manufacturer: Ralink
[  216.883402] usb 1-1: SerialNumber: 1.0
[  217.089835] usb 1-1: reset high-speed USB device number 3 using ehci-pci
[  217.329551] ieee80211 phy1: rt2x00_set_rt: Info - RT chipset 2872, rev 0202 detected
[  217.386636] ieee80211 phy1: rt2x00_set_rf: Info - RF chipset 0004 detected
[  217.389633] ieee80211 phy1: Selected rate control algorithm 'minstrel_ht'
[  217.488491] ieee80211 phy1: rt2x00lib_request_firmware: Info - Loading firmware file 'rt2870.bin'
[  217.488517] rt2800usb 1-1:1.0: firmware: direct-loading firmware rt2870.bin
[  217.488520] ieee80211 phy1: rt2x00lib_request_firmware: Info - Firmware detected - version: 0.29
[  219.076363] IPv6: ADDRCONF(NETDEV_UP): wlan1: link is not ready
[  220.164703] usb 1-1: USB disconnect, device number 3
[  220.273539] ieee80211 phy1: rt2800usb_entry_txstatus_timeout: Warning - TX status timeout for entry 5 in queue 0
[  220.273544] ieee80211 phy1: rt2800usb_entry_txstatus_timeout: Warning - TX status timeout for entry 5 in queue 0
[  221.888636] ieee80211 phy1: rt2800_wait_wpdma_ready: Error - WPDMA TX/RX busy [0xffffffff]
[  222.255444] usb 1-1: new high-speed USB device number 4 using ehci-pci
[  283.580187] usb 1-1: new high-speed USB device number 5 using ehci-pci
[  283.808539] usb 1-1: New USB device found, idVendor=148f, idProduct=2770
[  283.808543] usb 1-1: New USB device strings: Mfr=1, Product=2, SerialNumber=3
[  283.808545] usb 1-1: Product: 802.11 n WLAN
[  283.808546] usb 1-1: Manufacturer: Ralink
[  283.808547] usb 1-1: SerialNumber: 1.0
[  284.016371] usb 1-1: reset high-speed USB device number 5 using ehci-pci
[  284.252119] ieee80211 phy2: rt2x00_set_rt: Info - RT chipset 2872, rev 0202 detected
[  284.309051] ieee80211 phy2: rt2x00_set_rf: Info - RF chipset 0004 detected
[  284.312325] ieee80211 phy2: Selected rate control algorithm 'minstrel_ht'
[  284.368108] ieee80211 phy2: rt2x00lib_request_firmware: Info - Loading firmware file 'rt2870.bin'
[  284.368132] rt2800usb 1-1:1.0: firmware: direct-loading firmware rt2870.bin
[  284.368135] ieee80211 phy2: rt2x00lib_request_firmware: Info - Firmware detected - version: 0.29
[  285.955526] IPv6: ADDRCONF(NETDEV_UP): wlan1: link is not ready
[  286.159680] usb 1-1: USB disconnect, device number 5
[  286.269305] ieee80211 phy2: rt2800usb_entry_txstatus_timeout: Warning - TX status timeout for entry 0 in queue 0
[  286.269310] ieee80211 phy2: rt2800usb_entry_txstatus_timeout: Warning - TX status timeout for entry 0 in queue 0
[  287.884537] ieee80211 phy2: rt2800_wait_wpdma_ready: Error - WPDMA TX/RX busy [0xffffffff]
[  288.296122] usb 1-1: new high-speed USB device number 6 using ehci-pci
[  288.527534] usb 1-1: New USB device found, idVendor=148f, idProduct=2770
[  288.527539] usb 1-1: New USB device strings: Mfr=1, Product=2, SerialNumber=3
[  288.527541] usb 1-1: Product: 802.11 n WLAN
[  288.527543] usb 1-1: Manufacturer: Ralink
[  288.527545] usb 1-1: SerialNumber: 1.0
[  288.735500] usb 1-1: reset high-speed USB device number 6 using ehci-pci
[  288.977185] ieee80211 phy3: rt2x00_set_rt: Info - RT chipset 2872, rev 0202 detected
[  289.034027] ieee80211 phy3: rt2x00_set_rf: Info - RF chipset 0004 detected
[  289.036753] ieee80211 phy3: Selected rate control algorithm 'minstrel_ht'
[  289.064997] ieee80211 phy3: rt2x00lib_request_firmware: Info - Loading firmware file 'rt2870.bin'
[  289.065020] rt2800usb 1-1:1.0: firmware: direct-loading firmware rt2870.bin
[  289.065023] ieee80211 phy3: rt2x00lib_request_firmware: Info - Firmware detected - version: 0.29
[  290.671769] IPv6: ADDRCONF(NETDEV_UP): wlan1: link is not ready
[  290.852331] ieee80211 phy3: rt2800usb_txdone: Warning - Got TX status for an empty queue 0, dropping
[  291.370861] usb 1-1: USB disconnect, device number 6
[  291.481007] ieee80211 phy3: rt2800usb_entry_txstatus_timeout: Warning - TX status timeout for entry 3 in queue 0
[  291.481013] ieee80211 phy3: rt2800usb_entry_txstatus_timeout: Warning - TX status timeout for entry 3 in queue 0
[  293.095593] ieee80211 phy3: rt2800_wait_wpdma_ready: Error - WPDMA TX/RX busy [0xffffffff]