diff options
| author | Manjeet Singh <manjee@codeaurora.org> | 2016-08-11 15:31:34 +0530 |
|---|---|---|
| committer | qcabuildsw <qcabuildsw@localhost> | 2017-01-12 06:40:35 -0800 |
| commit | 950167df586c27c8675da0fa93d29d878ab5d856 (patch) | |
| tree | 41506bbd1b0778c80360c23ced09aab672dfd590 /wmi | |
| parent | 3fdf806a44c08c64431300e4b2df217eaa6f1b2a (diff) | |
qcacmn: Follow spec for NL80211_CMD_START_SCHED_SCAN
qcacld-2.0 to qca-wifi-host-cmn propagation
If no SSID are passed to NL80211_CMD_START_SCHED_SCAN cmd,
interface spec requires that an active scan is not needed.
Therefore a passive scan is now requested by cfg80211_sched_scan_request
for this case.
Change-Id: I1b1b9232ffb9d8d5c0bc9a1d75145d39c9fe9e6b
CRs-Fixed: 902092
Diffstat (limited to 'wmi')
| -rw-r--r-- | wmi/inc/wmi_unified_param.h | 2 | ||||
| -rw-r--r-- | wmi/src/wmi_unified_tlv.c | 2 |
2 files changed, 4 insertions, 0 deletions
diff --git a/wmi/inc/wmi_unified_param.h b/wmi/inc/wmi_unified_param.h index 44756e715e97..2c07747563b9 100644 --- a/wmi/inc/wmi_unified_param.h +++ b/wmi/inc/wmi_unified_param.h @@ -2012,6 +2012,7 @@ struct pno_nw_type { * @enable: flag to enable or disable * @modePNO: PNO Mode * @ucNetworksCount: Number of networks + * @do_passive_scan: Flag to request passive scan to fw * @aNetworks: Preferred network list * @sessionId: Session identifier * @fast_scan_period: Fast Scan period @@ -2033,6 +2034,7 @@ struct pno_scan_req_params { uint8_t enable; enum pno_mode modePNO; uint8_t ucNetworksCount; + bool do_passive_scan; struct pno_nw_type aNetworks[WMI_PNO_MAX_SUPP_NETWORKS]; uint8_t sessionId; uint32_t fast_scan_period; diff --git a/wmi/src/wmi_unified_tlv.c b/wmi/src/wmi_unified_tlv.c index 200449eb9a9f..3b7a2cd1264c 100644 --- a/wmi/src/wmi_unified_tlv.c +++ b/wmi/src/wmi_unified_tlv.c @@ -5996,6 +5996,8 @@ QDF_STATUS send_pno_start_cmd_tlv(wmi_unified_t wmi_handle, cmd->active_dwell_time = pno->active_max_time; cmd->passive_dwell_time = pno->passive_max_time; + if (pno->do_passive_scan) + cmd->flags |= WMI_NLO_CONFIG_SCAN_PASSIVE; /* Copy scan interval */ cmd->fast_scan_period = pno->fast_scan_period; cmd->slow_scan_period = pno->slow_scan_period; |
