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
@ -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 New Issue
Block a user