From af57d04433f579aa44b4880ab2e8cb1981013865 Mon Sep 17 00:00:00 2001 From: Masayuki Ishikawa Date: Wed, 25 Aug 2021 10:05:34 +0900 Subject: [PATCH] Revert "drivers: wireless: Fix ASSERT() in _read_data_len() in gs2200m.c" We found that the change caused a problem when running a VPN application. and also confirmed that reverting the commit fixed the issue. This reverts commit 11a842333f0514b17dbdaed5f5df0fee8f5cdaab. Signed-off-by: Masayuki Ishikawa --- drivers/wireless/gs2200m.c | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/drivers/wireless/gs2200m.c b/drivers/wireless/gs2200m.c index e0a5bc9ec6..b7e729dcbb 100644 --- a/drivers/wireless/gs2200m.c +++ b/drivers/wireless/gs2200m.c @@ -872,12 +872,6 @@ retry: _write_data(dev, hdr, sizeof(hdr)); - /* NOTE: busy wait 30us - * workaround to avoid an invalid frame response - */ - - up_udelay(30); - /* Wait for data ready */ while (!dev->lower->dready(NULL)) @@ -885,6 +879,12 @@ retry: /* TODO: timeout */ } + /* NOTE: busy wait 50us + * workaround to avoid an invalid frame response + */ + + up_udelay(50); + /* Read frame response */ _read_data(dev, res, sizeof(res));