mirror of
https://github.com/hardkernel/linux.git
synced 2026-06-07 11:26:02 +09:00
mwifiex: Fix invalid port issue
[ Upstream commitecd7eb7c2b] We have to use start port, for TX/RX of single packet, instead of current aggregating port. This will fix SDIO CMD53(TX/RX) returning -ETIMEDOUT and halting the data path. Fixes:0cb52aac4d("mwifiex: do not set multiport flag for tx/rx single packet") Signed-off-by: Ganapathi Bhat <gbhat@marvell.com> Signed-off-by: Kalle Valo <kvalo@codeaurora.org> Signed-off-by: Sasha Levin <alexander.levin@microsoft.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
This commit is contained in:
committed by
Greg Kroah-Hartman
parent
46eae02ef6
commit
ac09628e70
@@ -1458,7 +1458,7 @@ static int mwifiex_sdio_card_to_host_mp_aggr(struct mwifiex_adapter *adapter,
|
||||
}
|
||||
|
||||
if (card->mpa_rx.pkt_cnt == 1)
|
||||
mport = adapter->ioport + port;
|
||||
mport = adapter->ioport + card->mpa_rx.start_port;
|
||||
|
||||
if (mwifiex_read_data_sync(adapter, card->mpa_rx.buf,
|
||||
card->mpa_rx.buf_len, mport, 1))
|
||||
@@ -1891,7 +1891,7 @@ static int mwifiex_host_to_card_mp_aggr(struct mwifiex_adapter *adapter,
|
||||
}
|
||||
|
||||
if (card->mpa_tx.pkt_cnt == 1)
|
||||
mport = adapter->ioport + port;
|
||||
mport = adapter->ioport + card->mpa_tx.start_port;
|
||||
|
||||
ret = mwifiex_write_data_to_card(adapter, card->mpa_tx.buf,
|
||||
card->mpa_tx.buf_len, mport);
|
||||
|
||||
Reference in New Issue
Block a user