qcacld-3.0: Use proper api to parse vendor specific IE
Use wlan_get_vendor_ie_ptr_from_oui() instead of wlan_get_ext_ie_ptr_from_ext_id() to parse vendor specific WFA Hotspot-2.0 IE Change-Id: Ie9ee6c1f16d0eb83f52b7d9afa97f362f8400ff3 CRs-Fixed: 3080931
This commit is contained in:

committed by
Madan Koyyalamudi

parent
9f5ca24243
commit
d255c7165a
@@ -2481,12 +2481,18 @@ cm_update_btm_offload_config(struct wlan_objmgr_psoc *psoc,
|
||||
/* Return if INI is disabled */
|
||||
if (!(*btm_offload_config))
|
||||
return;
|
||||
|
||||
vdev_id = wlan_vdev_get_id(vdev);
|
||||
wlan_cm_roam_cfg_get_value(psoc, vdev_id, HS_20_AP, &temp);
|
||||
is_hs_20_ap = temp.bool_value;
|
||||
/* For RSO Stop Disable BTM offload to firmware */
|
||||
|
||||
/*
|
||||
* For RSO Stop/Passpoint R2 cert test case 5.11(when STA is connected
|
||||
* to Hotspot-2.0 AP), disable BTM offload to firmware
|
||||
*/
|
||||
if (command == ROAM_SCAN_OFFLOAD_STOP || is_hs_20_ap) {
|
||||
mlme_debug("RSO cmd: %d", command);
|
||||
mlme_debug("RSO cmd: %d is_hs_20_ap:%d", command,
|
||||
is_hs_20_ap);
|
||||
*btm_offload_config = 0;
|
||||
return;
|
||||
}
|
||||
|
@@ -1,5 +1,6 @@
|
||||
/*
|
||||
* Copyright (c) 2012-2015, 2020-2021, The Linux Foundation. All rights reserved.
|
||||
* Copyright (c) 2021 Qualcomm Innovation Center, Inc. All rights reserved.
|
||||
*
|
||||
* Permission to use, copy, modify, and/or distribute this software for any
|
||||
* purpose with or without fee is hereby granted, provided that the above
|
||||
@@ -1019,7 +1020,7 @@ QDF_STATUS cm_connect_start_ind(struct wlan_objmgr_vdev *vdev,
|
||||
if (rso_cfg)
|
||||
rso_cfg->rsn_cap = req->crypto.rsn_caps;
|
||||
|
||||
if (wlan_get_ext_ie_ptr_from_ext_id(HS20_OUI_TYPE,
|
||||
if (wlan_get_vendor_ie_ptr_from_oui(HS20_OUI_TYPE,
|
||||
HS20_OUI_TYPE_SIZE,
|
||||
req->assoc_ie.ptr,
|
||||
req->assoc_ie.len)) {
|
||||
|
Reference in New Issue
Block a user