Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit ac6107ca authored by Amitkumar Karwar's avatar Amitkumar Karwar Committed by Kalle Valo
Browse files

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: default avatarAmitkumar Karwar <amit.karwar@redpinesignals.com>
Signed-off-by: default avatarKalle Valo <kvalo@codeaurora.org>
parent ed833be6
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -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);