]> git.proxmox.com Git - mirror_ubuntu-hirsute-kernel.git/commitdiff
at76c50x-usb: fix endpoint debug message
authorJohan Hovold <johan@kernel.org>
Tue, 10 Dec 2019 11:44:21 +0000 (12:44 +0100)
committerKalle Valo <kvalo@codeaurora.org>
Wed, 18 Dec 2019 19:06:02 +0000 (21:06 +0200)
Make sure to use the current alternate setting, which may not be the
same as the first alternate setting, also when printing the number of
endpoints at probe.

Signed-off-by: Johan Hovold <johan@kernel.org>
Signed-off-by: Kalle Valo <kvalo@codeaurora.org>
drivers/net/wireless/atmel/at76c50x-usb.c

index db2c3b8d491e5eb73c29f7131abce861fa5d972e..3b2680772f03d41f860d5837c0ac45e4d5eaa52d 100644 (file)
@@ -2236,7 +2236,7 @@ static int at76_alloc_urbs(struct at76_priv *priv,
        at76_dbg(DBG_PROC_ENTRY, "%s: ENTER", __func__);
 
        at76_dbg(DBG_URB, "%s: NumEndpoints %d ", __func__,
-                interface->altsetting[0].desc.bNumEndpoints);
+                interface->cur_altsetting->desc.bNumEndpoints);
 
        ep_in = NULL;
        ep_out = NULL;