mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-14 16:46:15 -04:00
qcacld-3.0: Modify scan type for RRM scan request
Currently in the case of concurrent sessions running, the driver updates the active dwell time for the scan request to the default value, overwriting the already filled active dwell time which the DUT got from the AP as part of RRM request, which results in violation of protocol. Fix is to not update the concurrency params if the scan request is of type RRM. Change-Id: I09ebfbee0d282391be17aed7eaf56e3c53c2a5e2 CRs-Fixed: 2438535
This commit is contained in:
parent
f01c9750e9
commit
7b5efba296
2 changed files with 10 additions and 1 deletions
|
|
@ -109,7 +109,7 @@ static QDF_STATUS p2p_scan_start(struct p2p_roc_context *roc_ctx)
|
|||
roc_ctx->scan_id = ucfg_scan_get_scan_id(p2p_soc_obj->soc);
|
||||
req->vdev = vdev;
|
||||
req->scan_req.scan_id = roc_ctx->scan_id;
|
||||
req->scan_req.p2p_scan_type = SCAN_P2P_LISTEN;
|
||||
req->scan_req.scan_type = SCAN_TYPE_P2P_LISTEN;
|
||||
req->scan_req.scan_req_id = p2p_soc_obj->scan_req_id;
|
||||
req->scan_req.chan_list.num_chan = 1;
|
||||
req->scan_req.chan_list.chan[0].freq = wlan_chan_to_freq(roc_ctx->chan);
|
||||
|
|
|
|||
|
|
@ -887,6 +887,15 @@ static QDF_STATUS sme_rrm_issue_scan_req(struct mac_context *mac_ctx)
|
|||
req->scan_req.dwell_time_active,
|
||||
chan_num,
|
||||
req->scan_req.chan_list.chan[0].freq);
|
||||
/*
|
||||
* Fill RRM scan type for these requests. This is done
|
||||
* because in scan concurrency update params we update the
|
||||
* dwell time active which was not the expectation.
|
||||
* So doing a check of RRM scan request, we would not
|
||||
* update the dwell time.
|
||||
*/
|
||||
req->scan_req.scan_type = SCAN_TYPE_RRM;
|
||||
|
||||
status = ucfg_scan_start(req);
|
||||
wlan_objmgr_vdev_release_ref(vdev, WLAN_LEGACY_SME_ID);
|
||||
if (QDF_IS_STATUS_ERROR(status))
|
||||
|
|
|
|||
Loading…
Reference in a new issue