rtl8xxxu: Do not overwrite rtl8xxxu_debug for untested chips
authorJes Sorensen <Jes.Sorensen@redhat.com>
Mon, 29 Feb 2016 22:04:31 +0000 (17:04 -0500)
committerKalle Valo <kvalo@codeaurora.org>
Thu, 10 Mar 2016 13:29:00 +0000 (15:29 +0200)
Fix a silly bug where the debug level was overwritten rather than
amended for untested chips.

Signed-off-by: Jes Sorensen <Jes.Sorensen@redhat.com>
Signed-off-by: Kalle Valo <kvalo@codeaurora.org>
drivers/net/wireless/realtek/rtl8xxxu/rtl8xxxu.c

index e0653b2..cfea68b 100644 (file)
@@ -6391,7 +6391,7 @@ static int rtl8xxxu_probe(struct usb_interface *interface,
        }
 
        if (untested) {
-               rtl8xxxu_debug = RTL8XXXU_DEBUG_EFUSE;
+               rtl8xxxu_debug |= RTL8XXXU_DEBUG_EFUSE;
                dev_info(&udev->dev,
                         "This Realtek USB WiFi dongle (0x%04x:0x%04x) is untested!\n",
                         id->idVendor, id->idProduct);