Search Linux Wireless

Re: [PATCH v4] ath9k: verify the expected usb_endpoints are present

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Sat, 2022-10-08 at 15:02 +0300, Fedor Pchelkin wrote:
>  
> +	/* Verify the expected endpoints are present */
> +	alt = interface->cur_altsetting;
> +	if (usb_find_common_endpoints(alt, &bulk_in, &bulk_out, &int_in, &int_out) < 0 ||
> +			usb_endpoint_num(bulk_in) != USB_WLAN_RX_PIPE ||
> +			usb_endpoint_num(bulk_out) != USB_WLAN_TX_PIPE ||
> +			usb_endpoint_num(int_in) != USB_REG_IN_PIPE ||
> +			usb_endpoint_num(int_out) != USB_REG_OUT_PIPE) {
> +			dev_err(&udev->dev,
> +					"ath9k_htc: Device endpoint numbers are not the expected ones\n");
> +		return -ENODEV;
> 

Indentation somehow got pretty messed up now ..

johannes




[Index of Archives]     [Linux Host AP]     [ATH6KL]     [Linux Wireless Personal Area Network]     [Linux Bluetooth]     [Wireless Regulations]     [Linux Netdev]     [Kernel Newbies]     [Linux Kernel]     [IDE]     [Git]     [Netfilter]     [Bugtraq]     [Yosemite Hiking]     [MIPS Linux]     [ARM Linux]     [Linux RAID]

  Powered by Linux