diff options
| author | Ashish Kumar Dhanotiya <adhanoti@codeaurora.org> | 2017-08-04 17:46:54 +0530 |
|---|---|---|
| committer | Gerrit - the friendly Code Review server <code-review@localhost> | 2017-08-21 00:55:02 -0700 |
| commit | 01fa72825f68c024cb3c69f33c6a7e1e73c551ce (patch) | |
| tree | 17dc7564c0dd6ef8c44a4386d04ecec0286aa82c | |
| parent | af3cced154224769aeb2021b4b533f68e2590ae5 (diff) | |
qcacld-3.0: Add an attribute to represent PNO/EPNO Request ID
This request ID was wrongly referred from the REQUEST_ID in
enum qca_wlan_vendor_attr_gscan_config_params which is mapped to
QCA_WLAN_VENDOR_ATTR_PNO_PASSPOINT_LIST_PARAM_NUM in PNO Config.
Hence define a different attribute to represent the request ID
for the PNO Config.
CRs-Fixed: 2087785
Change-Id: I2b5efe78605d07d92db564a987ea0ae4ff0a2cc8
| -rw-r--r-- | core/hdd/src/wlan_hdd_ext_scan.c | 7 | ||||
| -rw-r--r-- | uapi/linux/qca_vendor.h | 3 |
2 files changed, 8 insertions, 2 deletions
diff --git a/core/hdd/src/wlan_hdd_ext_scan.c b/core/hdd/src/wlan_hdd_ext_scan.c index 3d39528b1b51..c46e13d5f630 100644 --- a/core/hdd/src/wlan_hdd_ext_scan.c +++ b/core/hdd/src/wlan_hdd_ext_scan.c @@ -179,6 +179,9 @@ wlan_hdd_pno_config_policy[QCA_WLAN_VENDOR_ATTR_PNO_MAX + 1] = { [QCA_WLAN_VENDOR_ATTR_EPNO_BAND5GHZ_BONUS] = { .type = NLA_U32 }, + [QCA_WLAN_VENDOR_ATTR_PNO_CONFIG_REQUEST_ID] = { + .type = NLA_U32 + }, }; static const struct nla_policy @@ -3885,12 +3888,12 @@ static int __wlan_hdd_cfg80211_set_epno_list(struct wiphy *wiphy, req_msg->num_networks = num_networks; /* Parse and fetch request Id */ - if (!tb[QCA_WLAN_VENDOR_ATTR_EXTSCAN_SUBCMD_CONFIG_PARAM_REQUEST_ID]) { + if (!tb[QCA_WLAN_VENDOR_ATTR_PNO_CONFIG_REQUEST_ID]) { hdd_err("attr request id failed"); goto fail; } req_msg->request_id = nla_get_u32( - tb[QCA_WLAN_VENDOR_ATTR_EXTSCAN_SUBCMD_CONFIG_PARAM_REQUEST_ID]); + tb[QCA_WLAN_VENDOR_ATTR_PNO_CONFIG_REQUEST_ID]); hdd_debug("Req Id %u", req_msg->request_id); req_msg->session_id = adapter->sessionId; diff --git a/uapi/linux/qca_vendor.h b/uapi/linux/qca_vendor.h index 3512ca43b215..7ab942ad130f 100644 --- a/uapi/linux/qca_vendor.h +++ b/uapi/linux/qca_vendor.h @@ -2232,6 +2232,9 @@ enum qca_wlan_vendor_attr_pno_config_params { QCA_WLAN_VENDOR_ATTR_EPNO_SECURE_BONUS = 21, QCA_WLAN_VENDOR_ATTR_EPNO_BAND5GHZ_BONUS = 22, + /* Unsigned 32-bit value, representing the PNO Request ID */ + QCA_WLAN_VENDOR_ATTR_PNO_CONFIG_REQUEST_ID = 23, + /* keep last */ QCA_WLAN_VENDOR_ATTR_PNO_AFTER_LAST, QCA_WLAN_VENDOR_ATTR_PNO_MAX = |
