[PATCH 01/20] staging: wfx: update filtering even if not connected

From: Jerome Pouiller
Date: Wed Apr 15 2020 - 12:12:26 EST


From: JÃrÃme Pouiller <jerome.pouiller@xxxxxxxxxx>

Currently, filtering are not update if the device is not connected.
There is no obvious rationale for that. Updating filtering while it is
not necessary is harmless. On the other hand, it is difficult to ensure
that the filtering rule has been correctly sent to the firmware.

Just drop this useless condition.

Signed-off-by: JÃrÃme Pouiller <jerome.pouiller@xxxxxxxxxx>
---
drivers/staging/wfx/sta.c | 3 ---
1 file changed, 3 deletions(-)

diff --git a/drivers/staging/wfx/sta.c b/drivers/staging/wfx/sta.c
index f1df7717d5f4..cb9d14471745 100644
--- a/drivers/staging/wfx/sta.c
+++ b/drivers/staging/wfx/sta.c
@@ -168,9 +168,6 @@ void wfx_update_filtering(struct wfx_vif *wvif)
}
};

- if (wvif->state == WFX_STATE_PASSIVE)
- return;
-
if (wvif->disable_beacon_filter) {
bf_enable = 0;
bf_count = 1;
--
2.25.1