at76c50x-usb: fix endpoint debug message

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>
This commit is contained in:
Johan Hovold 2019-12-10 12:44:21 +01:00 коммит произвёл Kalle Valo
Родитель 8d9627b05b
Коммит af615abd15
1 изменённых файлов: 1 добавлений и 1 удалений

Просмотреть файл

@ -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;