Hi Daniel, > > Please try attached patch on top of the 3 patches I sent last Friday. > > Thanks for continuing to look at this. > > Unfortuntaely the cmd_pending warning is still there and the numbers > are now -4 and -5 e.g. > [ 128.269912] mwifiex_sdio mmc0:0001:1: rx_pending=0, tx_pending=0, > cmd_pending=-5 This is caused by decreasing cmd_pending while cleanup scan commands in scan_pending_q. cmd_pending only counts the commands queued in cmd_pending_q. Attached v2 patch should fix it. Please try it out. Thanks, Bing > > This is using the same test script used in the opening message on this > thread, with uap0 and p2p0 auto-creation disabled, with or without > NetworkManager running at the same time. > > Thanks > Daniel
Attachment:
0001-v2-mwifiex-fix-negative-cmd_pending-count.patch
Description: 0001-v2-mwifiex-fix-negative-cmd_pending-count.patch
Attachment:
0002-v2-mwifiex-complete-last-internal-scan.patch
Description: 0002-v2-mwifiex-complete-last-internal-scan.patch