[WCNCR00166359] sdio: Fix FW assert in T.P. TX

[Description]
Fix FW assert in T.P. TX

[Reproduce steps]
1. Setup STA ready
2. Run T.P. TX test (reproducible on both TCP/UDP)
iperf -c 10.0.0.2 -t 60 -i1
3. FW assert log found
[wlan][2475]nicProcessAbnormalInterrupt:(REQ WARN) MCR_WASR: 0x2
[wlan][2474]nicRxProcessRFBs:(RX ERROR) ucPacketType = 0
[wlan][2475]nicProcessAbnormalInterrupt:(REQ WARN) MCR_WASR: 0x100
[wlan][MT6632][wifi][Firmware] Assert at "nic.c " #2269

[Rootcause]
TX buffer size should be adapted with the size of
card->host->max_blk_count. Otherwise, FW assert may show up.

In this case, wifi driver provide too much data buffer into sdio_writesb()
and causing the command divied into two CMD53.

[Solution]
* Update TX buffer allocation policy. To make sure the max-buf is allowed
in this platform
* Add log for debugging in the future

Change-Id: I86f5346b62ba15027cf3071f917c39fd19f2e7b7
Signed-off-by: Deren Wu <deren.wu@mediatek.com>
CR-Id: WCNCR00166359
Feature: sdio
(cherry picked from commit b3ea4e822aef530e71593fb063628cdfe265e734)
1 file changed