From a8fef4e3a4ffefb7265e1eac17ffc5f8889d8c7c Mon Sep 17 00:00:00 2001 From: Jeff Johnson Date: Mon, 11 Mar 2019 14:38:49 -0700 Subject: [PATCH] qcacld-3.0: Rename HDD identifier fEnableSNRMonitoring The Linux Coding Style frowns upon mixed-case names and so-called Hungarian notation, so rename HDD identifier fEnableSNRMonitoring to be compliant. Change-Id: Ic613f39d0d267ba7e8cb72cd0cc3bf261a029278 CRs-Fixed: 2418189 --- core/hdd/inc/wlan_hdd_cfg.h | 2 +- core/hdd/src/wlan_hdd_cfg80211.c | 2 +- core/hdd/src/wlan_hdd_stats.c | 2 +- core/hdd/src/wlan_hdd_wext.c | 4 ++-- 4 files changed, 5 insertions(+), 5 deletions(-) diff --git a/core/hdd/inc/wlan_hdd_cfg.h b/core/hdd/inc/wlan_hdd_cfg.h index 50b5c59c6ed7..6882aab3fca6 100644 --- a/core/hdd/inc/wlan_hdd_cfg.h +++ b/core/hdd/inc/wlan_hdd_cfg.h @@ -116,7 +116,7 @@ struct hdd_config { #ifdef ENABLE_MTRACE_LOG bool enable_mtrace; #endif - bool fEnableSNRMonitoring; + bool enable_snr_monitoring; bool advertise_concurrent_operation; #ifdef DHCP_SERVER_OFFLOAD struct dhcp_server dhcp_server_ip; diff --git a/core/hdd/src/wlan_hdd_cfg80211.c b/core/hdd/src/wlan_hdd_cfg80211.c index a473684ece37..218d021cd3e0 100644 --- a/core/hdd/src/wlan_hdd_cfg80211.c +++ b/core/hdd/src/wlan_hdd_cfg80211.c @@ -21481,7 +21481,7 @@ void wlan_hdd_init_chan_info(struct hdd_context *hdd_ctx) mac_handle_t mac_handle; hdd_ctx->chan_info = NULL; - if (!hdd_ctx->config->fEnableSNRMonitoring) { + if (!hdd_ctx->config->enable_snr_monitoring) { hdd_debug("SNR monitoring is disabled"); return; } diff --git a/core/hdd/src/wlan_hdd_stats.c b/core/hdd/src/wlan_hdd_stats.c index f982f9847978..53bf3c5edf43 100644 --- a/core/hdd/src/wlan_hdd_stats.c +++ b/core/hdd/src/wlan_hdd_stats.c @@ -4888,7 +4888,7 @@ static int __wlan_hdd_cfg80211_dump_survey(struct wiphy *wiphy, sta_ctx = WLAN_HDD_GET_STATION_CTX_PTR(adapter); - if (hdd_ctx->config->fEnableSNRMonitoring == 0) + if (!hdd_ctx->config->enable_snr_monitoring) return -ENONET; if (sta_ctx->hdd_reassoc_scenario) { diff --git a/core/hdd/src/wlan_hdd_wext.c b/core/hdd/src/wlan_hdd_wext.c index 33ca9c489dc2..bb749aa793ca 100644 --- a/core/hdd/src/wlan_hdd_wext.c +++ b/core/hdd/src/wlan_hdd_wext.c @@ -7375,11 +7375,11 @@ static int __iw_get_char_setnone(struct net_device *dev, return status; sta_ctx = WLAN_HDD_GET_STATION_CTX_PTR(adapter); - if (0 == hdd_ctx->config->fEnableSNRMonitoring || + if (!hdd_ctx->config->enable_snr_monitoring || eConnectionState_Associated != sta_ctx->conn_info.conn_state) { hdd_err("getSNR failed: Enable SNR Monitoring-%d, ConnectionState-%d", - hdd_ctx->config->fEnableSNRMonitoring, + hdd_ctx->config->enable_snr_monitoring, sta_ctx->conn_info.conn_state); return -ENONET; }