From d30ee4b603142c96a51dbe5fbffec59c2786c5c7 Mon Sep 17 00:00:00 2001 From: Jeff Johnson Date: Sat, 28 Oct 2017 15:38:32 -0700 Subject: [PATCH] qcacld-3.0: Rename hdd_adapter isLinkLayerStatsSet field Per the Linux coding style "mixed-case names are frowned upon" so rename field isLinkLayerStatsSet in struct hdd_adapter. Change-Id: I1fd0b9376ca49734f1fdbe44a072aaa2b65265d7 CRs-Fixed: 2134945 --- core/hdd/inc/wlan_hdd_main.h | 2 +- core/hdd/src/wlan_hdd_stats.c | 24 ++++++++++++------------ 2 files changed, 13 insertions(+), 13 deletions(-) diff --git a/core/hdd/inc/wlan_hdd_main.h b/core/hdd/inc/wlan_hdd_main.h index 2c1c1bcb3cdf..381b280d72a8 100644 --- a/core/hdd/inc/wlan_hdd_main.h +++ b/core/hdd/inc/wlan_hdd_main.h @@ -1175,7 +1175,7 @@ struct hdd_adapter { enum sme_qos_wmmuptype hddWmmDscpToUpMap[WLAN_HDD_MAX_DSCP + 1]; #ifdef WLAN_FEATURE_LINK_LAYER_STATS - bool isLinkLayerStatsSet; + bool is_link_layer_stats_set; #endif uint8_t linkStatus; diff --git a/core/hdd/src/wlan_hdd_stats.c b/core/hdd/src/wlan_hdd_stats.c index 0dfb14e1e814..ff27abba366d 100644 --- a/core/hdd/src/wlan_hdd_stats.c +++ b/core/hdd/src/wlan_hdd_stats.c @@ -1259,7 +1259,7 @@ __wlan_hdd_cfg80211_ll_stats_set(struct wiphy *wiphy, return -EINVAL; } - adapter->isLinkLayerStatsSet = 1; + adapter->is_link_layer_stats_set = true; EXIT(); return 0; } @@ -1358,9 +1358,9 @@ int wlan_hdd_ll_stats_get(struct hdd_adapter *adapter, uint32_t req_id, return -EBUSY; } - if (!adapter->isLinkLayerStatsSet) - hdd_info("isLinkLayerStatsSet: %d; STATs will be all zero", - adapter->isLinkLayerStatsSet); + if (!adapter->is_link_layer_stats_set) + hdd_info("is_link_layer_stats_set: %d; STATs will be all zero", + adapter->is_link_layer_stats_set); get_req.reqId = req_id; get_req.paramIdMask = req_mask; @@ -1412,9 +1412,9 @@ __wlan_hdd_cfg80211_ll_stats_get(struct wiphy *wiphy, if (0 != ret) return -EINVAL; - if (!adapter->isLinkLayerStatsSet) { - hdd_warn("isLinkLayerStatsSet: %d", - adapter->isLinkLayerStatsSet); + if (!adapter->is_link_layer_stats_set) { + hdd_warn("is_link_layer_stats_set: %d", + adapter->is_link_layer_stats_set); return -EINVAL; } @@ -1533,9 +1533,9 @@ __wlan_hdd_cfg80211_ll_stats_clear(struct wiphy *wiphy, if (0 != status) return -EINVAL; - if (!adapter->isLinkLayerStatsSet) { - hdd_warn("isLinkLayerStatsSet : %d", - adapter->isLinkLayerStatsSet); + if (!adapter->is_link_layer_stats_set) { + hdd_warn("is_link_layer_stats_set : %d", + adapter->is_link_layer_stats_set); return -EINVAL; } @@ -1595,7 +1595,7 @@ __wlan_hdd_cfg80211_ll_stats_clear(struct wiphy *wiphy, /* If the ask is to stop the stats collection * as part of clear (stopReq = 1), ensure * that no further requests of get go to the - * firmware by having isLinkLayerStatsSet set + * firmware by having is_link_layer_stats_set set * to 0. However it the stopReq as part of * the clear request is 0, the request to get * the statistics are honoured as in this case @@ -1603,7 +1603,7 @@ __wlan_hdd_cfg80211_ll_stats_clear(struct wiphy *wiphy, * statistics. */ if (stopReq == 1) - adapter->isLinkLayerStatsSet = 0; + adapter->is_link_layer_stats_set = false; return cfg80211_vendor_cmd_reply(temp_skbuff); }