summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHanumanth Reddy Pothula <c_hpothu@codeaurora.org>2017-03-31 17:17:00 +0530
committerSandeep Puligilla <spuligil@codeaurora.org>2017-04-04 18:33:31 -0700
commitac1fd4c8328461bbdeea0729cdbb0f8c53278e2c (patch)
treedf89e04c5c625a65718d0dfd32042717b64f0f4f
parent6d1aee2abfca7a7492ef5247da5bede2e0434613 (diff)
qcacld-3.0: Rename ini param name sap_restart_on_ch_avoid
sap_restart_on_ch_avoid ini parameter holds good for both SAP and GO. So to make it generic, rename to restart_beaconing_on_chan_avoid_event. Change-Id: Ic68014a71b36e00c268da50528bf5e14fd87d007 CRs-Fixed: 2027436
-rw-r--r--core/hdd/inc/wlan_hdd_cfg.h22
-rw-r--r--core/hdd/src/wlan_hdd_cfg.c14
-rw-r--r--core/hdd/src/wlan_hdd_main.c2
3 files changed, 21 insertions, 17 deletions
diff --git a/core/hdd/inc/wlan_hdd_cfg.h b/core/hdd/inc/wlan_hdd_cfg.h
index 9c4b22bbb5fe..397b82b720d2 100644
--- a/core/hdd/inc/wlan_hdd_cfg.h
+++ b/core/hdd/inc/wlan_hdd_cfg.h
@@ -8731,14 +8731,18 @@ enum dot11p_mode {
/*
* <ini>
- * sap_restart_on_ch_avoid - control SAP restart on channel avoidance
+ * restart_beaconing_on_chan_avoid_event - control the beaconing entity to move
+ * away from active LTE channels
* @Min: 0
* @Max: 1
* @Default: 1
*
- * This ini is used to control SAP restart on channel avoidance
- * sap_restart_on_ch_avoid=0: Don't restart SAP on channel avoidance indication
- * sap_restart_on_ch_avoid=1: restart SAP on channel avoidance indication
+ * This ini is used to control the beaconing entity (SAP/GO) to move away from
+ * active LTE channels when channel avoidance event is received
+ * restart_beaconing_on_chan_avoid_event=0: Don't allow beaconing entity move
+ * from active LTE channels
+ * restart_beaconing_on_chan_avoid_event=1: Allow beaconing entity move from
+ * active LTE channels
*
* Related: None
*
@@ -8748,10 +8752,10 @@ enum dot11p_mode {
*
* </ini>
*/
-#define CFG_SAP_RESTART_ON_CH_AVOID_NAME "sap_restart_on_ch_avoid"
-#define CFG_SAP_RESTART_ON_CH_AVOID_MIN (0)
-#define CFG_SAP_RESTART_ON_CH_AVOID_MAX (1)
-#define CFG_SAP_RESTART_ON_CH_AVOID_DEFAULT (1)
+#define CFG_RESTART_BEACONING_ON_CH_AVOID_NAME "restart_beaconing_on_chan_avoid_event"
+#define CFG_RESTART_BEACONING_ON_CH_AVOID_MIN (0)
+#define CFG_RESTART_BEACONING_ON_CH_AVOID_MAX (1)
+#define CFG_RESTART_BEACONING_ON_CH_AVOID_DEFAULT (1)
/*
* This parameter will avoid updating ap_sta_inactivity from hostapd.conf
* file. If a station does not send anything in ap_max_inactivity seconds, an
@@ -11182,7 +11186,7 @@ struct hdd_config {
enum active_bpf_mode active_bpf_mode;
bool hw_broadcast_filter;
bool sap_internal_restart;
- bool sap_restart_on_ch_avoid;
+ bool restart_beaconing_on_chan_avoid_event;
bool enable_bcast_probe_rsp;
bool qcn_ie_support;
uint8_t fils_max_chan_guard_time;
diff --git a/core/hdd/src/wlan_hdd_cfg.c b/core/hdd/src/wlan_hdd_cfg.c
index c1e6b801afe3..12e653d8f657 100644
--- a/core/hdd/src/wlan_hdd_cfg.c
+++ b/core/hdd/src/wlan_hdd_cfg.c
@@ -4306,12 +4306,12 @@ struct reg_table_entry g_registry_table[] = {
CFG_SAP_INTERNAL_RESTART_MIN,
CFG_SAP_INTERNAL_RESTART_MAX),
- REG_VARIABLE(CFG_SAP_RESTART_ON_CH_AVOID_NAME, WLAN_PARAM_Integer,
- struct hdd_config, sap_restart_on_ch_avoid,
+ REG_VARIABLE(CFG_RESTART_BEACONING_ON_CH_AVOID_NAME, WLAN_PARAM_Integer,
+ struct hdd_config, restart_beaconing_on_chan_avoid_event,
VAR_FLAGS_OPTIONAL | VAR_FLAGS_RANGE_CHECK_ASSUME_DEFAULT,
- CFG_SAP_RESTART_ON_CH_AVOID_DEFAULT,
- CFG_SAP_RESTART_ON_CH_AVOID_MIN,
- CFG_SAP_RESTART_ON_CH_AVOID_MAX),
+ CFG_RESTART_BEACONING_ON_CH_AVOID_DEFAULT,
+ CFG_RESTART_BEACONING_ON_CH_AVOID_MIN,
+ CFG_RESTART_BEACONING_ON_CH_AVOID_MAX),
REG_VARIABLE(CFG_ENABLE_BCAST_PROBE_RESP_NAME, WLAN_PARAM_Integer,
struct hdd_config, enable_bcast_probe_rsp,
@@ -5984,8 +5984,8 @@ void hdd_cfg_print(hdd_context_t *pHddCtx)
CFG_SAP_INTERNAL_RESTART_NAME,
pHddCtx->config->sap_internal_restart);
hdd_debug("Name = [%s] Value = [%d]",
- CFG_SAP_RESTART_ON_CH_AVOID_NAME,
- pHddCtx->config->sap_restart_on_ch_avoid);
+ CFG_RESTART_BEACONING_ON_CH_AVOID_NAME,
+ pHddCtx->config->restart_beaconing_on_chan_avoid_event);
hdd_debug("Name = [%s] Value = [%d]",
CFG_ARP_AC_CATEGORY,
pHddCtx->config->arp_ac_category);
diff --git a/core/hdd/src/wlan_hdd_main.c b/core/hdd/src/wlan_hdd_main.c
index 148bf925ee71..b83ff2b18d62 100644
--- a/core/hdd/src/wlan_hdd_main.c
+++ b/core/hdd/src/wlan_hdd_main.c
@@ -6611,7 +6611,7 @@ void hdd_ch_avoid_cb(void *hdd_context, void *indi_param)
* first update the unsafe channel list to the platform driver and
* send the avoid freq event to the application
*/
- if (hdd_ctxt->config->sap_restart_on_ch_avoid) {
+ if (hdd_ctxt->config->restart_beaconing_on_chan_avoid_event) {
wlan_hdd_send_avoid_freq_event(hdd_ctxt, &hdd_avoid_freq_list);
if (!hdd_ctxt->unsafe_channel_count) {