mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-25 22:23:14 -04:00
rsi: correct the logic of deriving queue number
Maximum valid queue number is 0x5. So anding with 0x7 should be ok here. Signed-off-by: Amitkumar Karwar <amit.karwar@redpinesignals.com> Signed-off-by: Kalle Valo <kvalo@codeaurora.org>
This commit is contained in:
parent
ed833be6fa
commit
ac6107caa0
1 changed files with 1 additions and 1 deletions
|
|
@ -381,7 +381,7 @@ static int rsi_usb_host_intf_write_pkt(struct rsi_hw *adapter,
|
|||
u8 *pkt,
|
||||
u32 len)
|
||||
{
|
||||
u32 queueno = ((pkt[1] >> 4) & 0xf);
|
||||
u32 queueno = ((pkt[1] >> 4) & 0x7);
|
||||
u8 endpoint;
|
||||
|
||||
endpoint = ((queueno == RSI_WIFI_MGMT_Q) ? MGMT_EP : DATA_EP);
|
||||
|
|
|
|||
Loading…
Reference in a new issue