qcacld-3.0: Correction in conditional logic in key operations

In set default key operation module, under SAP mode, there are
conditional checks on key type information derived from the
Station's context. Also in get/add key operations SAP or STA
context pointers are derived without knowing the device mode
first, which is incorrect.

Derive key type info from SAP context in set default key and
derive station or sap context pointers only after knowing the
device mode.

Change-Id: I09b0e6f8d6315677e7584c7c24f003daa3eca9a3
CRs-Fixed: 2127288
This commit is contained in:
Nachiket Kukade
2017-10-16 16:18:22 +05:30
committed by snandini
父節點 f2f97c4faf
當前提交 d915283486
共有 3 個文件被更改,包括 66 次插入18 次删除

查看文件

@@ -1250,6 +1250,16 @@ QDF_STATUS wlansap_set_dfs_preferred_channel_location(tHalHandle hHal,
QDF_STATUS wlansap_set_dfs_target_chnl(tHalHandle hHal,
uint8_t target_channel);
/**
* wlan_sap_get_roam_profile() - Returns sap roam profile.
* @sap_ctx: Pointer to Sap Context.
*
* This function provides the SAP roam profile.
*
* Return: SAP RoamProfile
*/
tCsrRoamProfile *wlan_sap_get_roam_profile(struct sap_context *sap_ctx);
/**
* wlan_sap_get_phymode() - Returns sap phymode.
* @sap_ctx: Pointer to Sap Context.