diff options
author | Jérôme Pouiller <jerome.pouiller@silabs.com> | 2020-04-20 19:02:56 +0300 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2020-04-23 14:26:02 +0300 |
commit | 13fe5a59b3c79e03cea3f7232a05e79bc5aad70a (patch) | |
tree | 7604544934217ef69f0d5a5de0a7d7a20c185e12 | |
parent | 4e1d96306d8b8790bc157afa233dc2a2be86ccf5 (diff) | |
download | linux-13fe5a59b3c79e03cea3f7232a05e79bc5aad70a.tar.xz |
staging: wfx: simplify the check if the the device is associated
Firmware dislikes the driver enables PS when it is not yet associated.
The current check for that condition is more complex than necessary.
Signed-off-by: Jérôme Pouiller <jerome.pouiller@silabs.com>
Link: https://lore.kernel.org/r/20200420160311.57323-2-Jerome.Pouiller@silabs.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
-rw-r--r-- | drivers/staging/wfx/sta.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/staging/wfx/sta.c b/drivers/staging/wfx/sta.c index c73dbb3a0de8..c0c3eb945967 100644 --- a/drivers/staging/wfx/sta.c +++ b/drivers/staging/wfx/sta.c @@ -263,7 +263,7 @@ static int wfx_update_pm(struct wfx_vif *wvif) struct ieee80211_channel *chan0 = NULL, *chan1 = NULL; WARN_ON(conf->dynamic_ps_timeout < 0); - if (wvif->state != WFX_STATE_STA || !wvif->bss_params.aid) + if (!wvif->vif->bss_conf.assoc) return 0; if (!ps) ps_timeout = 0; |