qcacmn: 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: Ifbb4b45fc111851f544fd39187e4113bda5f7348
CRs-Fixed: 2436893
このコミットが含まれているのは:
gaurank kathpalia
2019-04-19 15:44:37 +05:30
committed by nshrivas
コミット 5ba222aea6
4個のファイルの変更30行の追加31行の削除

ファイルの表示

@@ -783,15 +783,17 @@ struct chan_list {
};
/**
* enum scan_type: scan type
* @SCAN_NON_P2P_DEFAULT: Def scan
* @SCAN_P2P_SEARCH: P2P Search
* @SCAN_P2P_LISTEN: P2P listed
* enum scan_request_type: scan type
* @SCAN_TYPE_DEFAULT: Def scan
* @SCAN_TYPE_P2P_SEARCH: P2P Search
* @SCAN_TYPE_P2P_LISTEN: P2P listed
* @SCAN_TYPE_RRM: RRM scan request
*/
enum p2p_scan_type {
SCAN_NON_P2P_DEFAULT = 0,
SCAN_P2P_SEARCH = 1,
SCAN_P2P_LISTEN = 2,
enum scan_request_type {
SCAN_TYPE_DEFAULT = 0,
SCAN_TYPE_P2P_SEARCH = 1,
SCAN_TYPE_P2P_LISTEN = 2,
SCAN_TYPE_RRM = 3
};
/**
@@ -876,7 +878,7 @@ struct scan_req_params {
uint32_t vdev_id;
uint32_t pdev_id;
enum scan_priority scan_priority;
enum p2p_scan_type p2p_scan_type;
enum scan_request_type scan_type;
union {
struct {
uint32_t scan_ev_started:1,

ファイルの表示

@@ -1142,7 +1142,7 @@ ucfg_scan_init_default_params(struct wlan_objmgr_vdev *vdev,
req->vdev = vdev;
req->scan_req.vdev_id = wlan_vdev_get_id(vdev);
req->scan_req.p2p_scan_type = SCAN_NON_P2P_DEFAULT;
req->scan_req.scan_type = SCAN_TYPE_DEFAULT;
req->scan_req.scan_priority = def->scan_priority;
req->scan_req.dwell_time_active = def->active_dwell;
req->scan_req.dwell_time_active_2g = def->active_dwell_2g;