diff options
Diffstat (limited to 'drivers/net/wireless/ti/wl18xx/debugfs.c')
-rw-r--r-- | drivers/net/wireless/ti/wl18xx/debugfs.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/net/wireless/ti/wl18xx/debugfs.c b/drivers/net/wireless/ti/wl18xx/debugfs.c index 3ce6f1039af3..7f1669cdea09 100644 --- a/drivers/net/wireless/ti/wl18xx/debugfs.c +++ b/drivers/net/wireless/ti/wl18xx/debugfs.c | |||
@@ -220,7 +220,7 @@ static ssize_t clear_fw_stats_write(struct file *file, | |||
220 | 220 | ||
221 | mutex_lock(&wl->mutex); | 221 | mutex_lock(&wl->mutex); |
222 | 222 | ||
223 | if (wl->state == WL1271_STATE_OFF) | 223 | if (unlikely(wl->state != WLCORE_STATE_ON)) |
224 | goto out; | 224 | goto out; |
225 | 225 | ||
226 | ret = wl18xx_acx_clear_statistics(wl); | 226 | ret = wl18xx_acx_clear_statistics(wl); |