mirror of
https://github.com/shenmintao/aic8800d80.git
synced 2026-11-10 16:49:17 +00:00
Merge pull request #116 from NomDeTom/irate/scan-freed-request
USB: forget a scan whose command failed, so a late answer cannot finish a freed request
This commit is contained in:
1 file changed
+3
-1
@@ -2947,8 +2947,10 @@ static int rwnx_cfg80211_scan(struct wiphy *wiphy,
|
||||
}
|
||||
|
||||
rwnx_hw->scan_request = request;
|
||||
if ((error = rwnx_send_scanu_req(rwnx_hw, rwnx_vif, request)))
|
||||
if ((error = rwnx_send_scanu_req(rwnx_hw, rwnx_vif, request))) {
|
||||
rwnx_hw->scan_request = NULL;
|
||||
return error;
|
||||
}
|
||||
|
||||
return 0;
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user