From 03d103d83bce1f90d7a0119a00f873ff5d9d870c Mon Sep 17 00:00:00 2001 From: yeshwanth sriram guntuka Date: Fri, 1 Sep 2017 17:56:07 +0530 Subject: qcacmn: Add config support for BTM offload Add ini to configure BTM offload configuration which is sent to firmware as part of RSO start via wmi btm config cmd. Change-Id: I69c792705b208014af8f1878f7645d957dde6c06 CRs-Fixed: 2105112 --- wmi/inc/wmi_unified_param.h | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) (limited to 'wmi/inc/wmi_unified_param.h') diff --git a/wmi/inc/wmi_unified_param.h b/wmi/inc/wmi_unified_param.h index 4ea794073236..9d95fe8e428f 100644 --- a/wmi/inc/wmi_unified_param.h +++ b/wmi/inc/wmi_unified_param.h @@ -1,5 +1,5 @@ /* - * Copyright (c) 2016-2018 The Linux Foundation. All rights reserved. + * Copyright (c) 2016-2019 The Linux Foundation. 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 @@ -7597,6 +7597,15 @@ struct wmi_mawc_roam_params { uint8_t rssi_stationary_high_adjust; uint8_t rssi_stationary_low_adjust; }; +/** + * struct wmi_btm_config - BSS Transition Management offload params + * @vdev_id: VDEV on which the parameters should be applied + * @btm_offload_config: BTM config + */ +struct wmi_btm_config { + uint8_t vdev_id; + uint32_t btm_offload_config; +}; /** * @time_offset: time offset after 11k offload command to trigger a neighbor -- cgit v1.2.3 From bcd38c21b2f2ee1b3cb21a901569ed7e84587d68 Mon Sep 17 00:00:00 2001 From: Abhinav Kumar Date: Mon, 8 Jan 2018 16:45:09 +0800 Subject: qcacmn: Add new config for BTM offload Add new parameters into wmi btm config cmd for solicited BTM offload Change-Id: I24cc680bbfde3d44a57b1e1ccf644c2bed515a2c CRs-Fixed: 2168259 --- wmi/inc/wmi_unified_param.h | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'wmi/inc/wmi_unified_param.h') diff --git a/wmi/inc/wmi_unified_param.h b/wmi/inc/wmi_unified_param.h index 9d95fe8e428f..b1afaec7e143 100644 --- a/wmi/inc/wmi_unified_param.h +++ b/wmi/inc/wmi_unified_param.h @@ -7601,10 +7601,16 @@ struct wmi_mawc_roam_params { * struct wmi_btm_config - BSS Transition Management offload params * @vdev_id: VDEV on which the parameters should be applied * @btm_offload_config: BTM config + * @btm_solicited_timeout: Timeout value for waiting BTM request + * @btm_max_attempt_cnt: Maximum attempt for sending BTM query to ESS + * @btm_sticky_time: Stick time after roaming to new AP by BTM */ struct wmi_btm_config { uint8_t vdev_id; uint32_t btm_offload_config; + uint32_t btm_solicited_timeout; + uint32_t btm_max_attempt_cnt; + uint32_t btm_sticky_time; }; /** -- cgit v1.2.3 From f149fbd7a0931a6453b5f327f4c91f4aa28a91e7 Mon Sep 17 00:00:00 2001 From: Abhinav Kumar Date: Mon, 25 Feb 2019 19:09:52 +0530 Subject: qcacmn: Add new config for BTM offload Currently, whenever roaming is triggered after a successful roam scan firmware sends a BTM query to current connected AP when it is 11v capable. Driver completes roaming with candidates received as part of BTM request from AP. STA respond to AP with BTM response after successful initiation of roaming. Now the requirement is driver could send "BTM query with a preferred candidate list" after a successful roam scan for some roam scan reasons like PER, LOW_RSSI, HIGH_RSSI, MAWC, DENSE etc. Preferred candidate list is obtained as part of roam scan based on firmware bss scoring logic. New ini "btm_query_bitmask" is introduced to configure the bitmask for various roam scan reasons. Fw sends "BTM query with preferred candidate list" only for those roam scans which are enabled through this bitmask. New INI: btm_query_bitmask Min: 0 Max: 0xFFFFFFFF Default: 0x8 Bitmask : 0x8 (LOW_RSSI) refer enum WMI_ROAM_TRIGGER_REASON_ID. Add a new parameter "btm_query_bitmask" into wmi btm config command in order to pass a value of btm_query_bitmask to fw while BTM offload Change-Id: I1b0a973bc5b2b50773aa82c7f8cc1dd080d66d86 CRs-Fixed: 2408112 --- wmi/inc/wmi_unified_param.h | 2 ++ 1 file changed, 2 insertions(+) (limited to 'wmi/inc/wmi_unified_param.h') diff --git a/wmi/inc/wmi_unified_param.h b/wmi/inc/wmi_unified_param.h index b1afaec7e143..f8fefa8f2896 100644 --- a/wmi/inc/wmi_unified_param.h +++ b/wmi/inc/wmi_unified_param.h @@ -7604,6 +7604,7 @@ struct wmi_mawc_roam_params { * @btm_solicited_timeout: Timeout value for waiting BTM request * @btm_max_attempt_cnt: Maximum attempt for sending BTM query to ESS * @btm_sticky_time: Stick time after roaming to new AP by BTM + * @btm_query_bitmask: roam trigger reasons to trigger BTM Query */ struct wmi_btm_config { uint8_t vdev_id; @@ -7611,6 +7612,7 @@ struct wmi_btm_config { uint32_t btm_solicited_timeout; uint32_t btm_max_attempt_cnt; uint32_t btm_sticky_time; + uint32_t btm_query_bitmask; }; /** -- cgit v1.2.3