We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 34625c1 commit f0b9d87Copy full SHA for f0b9d87
drivers/staging/wfx/scan.c
@@ -57,8 +57,10 @@ static int send_scan_req(struct wfx_vif *wvif,
57
wvif->scan_abort = false;
58
reinit_completion(&wvif->scan_complete);
59
timeout = hif_scan(wvif, req, start_idx, i - start_idx);
60
- if (timeout < 0)
+ if (timeout < 0) {
61
+ wfx_tx_unlock(wvif->wdev);
62
return timeout;
63
+ }
64
ret = wait_for_completion_timeout(&wvif->scan_complete, timeout);
65
if (req->channels[start_idx]->max_power != wvif->vif->bss_conf.txpower)
66
hif_set_output_power(wvif, wvif->vif->bss_conf.txpower);
0 commit comments