qcacmn: Add ini to honour NL80211 scan policy flags

Currently dwell time is determined by scan policy flags from kernel.
Sometimes when we suspect the scan result is not full enough, we need
to set dwell time by force through ini.

Add ini to decide whether to honour NL80211 scan policy flags, so that
we can disable dwell time changed by scan policy flag from kernel.

Change-Id: Ia0b9f957a7de901513479522e008e4bcbd6b2c0e
CRs-Fixed: 2428630
这个提交包含在:
bings
2019-04-19 14:38:25 +08:00
提交者 nshrivas
父节点 af7c3c95d9
当前提交 47c737dba8
修改 8 个文件,包含 81 行新增7 行删除

查看文件

@@ -1405,13 +1405,15 @@ int wlan_cfg80211_scan(struct wlan_objmgr_vdev *vdev,
req->scan_req.scan_type = SCAN_TYPE_P2P_SEARCH;
/* Set dwell time mode according to scan policy type flags */
if (req->scan_req.scan_policy_high_accuracy)
req->scan_req.adaptive_dwell_time_mode =
SCAN_DWELL_MODE_STATIC;
if ((req->scan_req.scan_policy_low_power) ||
(req->scan_req.scan_policy_low_span))
req->scan_req.adaptive_dwell_time_mode =
SCAN_DWELL_MODE_AGGRESSIVE;
if (ucfg_scan_cfg_honour_nl_scan_policy_flags(psoc)) {
if (req->scan_req.scan_policy_high_accuracy)
req->scan_req.adaptive_dwell_time_mode =
SCAN_DWELL_MODE_STATIC;
if (req->scan_req.scan_policy_low_power ||
req->scan_req.scan_policy_low_span)
req->scan_req.adaptive_dwell_time_mode =
SCAN_DWELL_MODE_AGGRESSIVE;
}
/*
* FW require at least 1 MAC to send probe request.