mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-13 16:16:15 -04:00
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
This commit is contained in:
parent
1e851a16f7
commit
d30ee4b603
2 changed files with 13 additions and 13 deletions
|
|
@ -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;
|
||||
|
||||
|
|
|
|||
|
|
@ -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);
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue