qcacld-3.0: Fix build errors generated by gcc 6
Gcc 6 introduces some stricter checking for indentation,
causing warnings of misleading-indentation, which are
treated as build errors when drivers are compiled.
Fix all the identation warnings under qcacld-3.0.
Change-Id: Ie197761cfe4334ab14d593adebc56375372ba37c
CRs-Fixed: 2058158
diff --git a/core/mac/src/pe/lim/lim_process_sme_req_messages.c b/core/mac/src/pe/lim/lim_process_sme_req_messages.c
index 3fe0b40..e5d6cd3 100644
--- a/core/mac/src/pe/lim/lim_process_sme_req_messages.c
+++ b/core/mac/src/pe/lim/lim_process_sme_req_messages.c
@@ -2731,23 +2731,23 @@
ret_code = eSIR_SME_STA_NOT_AUTHENTICATED;
deauth_trigger = eLIM_HOST_DEAUTH;
- /*
- * here we received deauth request from AP so sme state
- * is eLIM_SME_WT_DEAUTH_STATE.if we have ISSUED
- * delSta then mlm state should be
- * eLIM_MLM_WT_DEL_STA_RSP_STATE and ifwe got delBSS
- * rsp then mlm state should be eLIM_MLM_IDLE_STATE
- * so the below condition captures the state where
- * delSta not done and firmware still in
- * connected state.
- */
- if (session_entry->limSmeState ==
+ /*
+ * here we received deauth request from AP so
+ * sme state is eLIM_SME_WT_DEAUTH_STATE.if we
+ * have ISSUED delSta then mlm state should be
+ * eLIM_MLM_WT_DEL_STA_RSP_STATE and ifwe got
+ * delBSS rsp then mlm state should be
+ * eLIM_MLM_IDLE_STATE so the below condition
+ * captures the state where delSta not done
+ * and firmware still in connected state.
+ */
+ if (session_entry->limSmeState ==
eLIM_SME_WT_DEAUTH_STATE &&
session_entry->limMlmState !=
eLIM_MLM_IDLE_STATE &&
session_entry->limMlmState !=
eLIM_MLM_WT_DEL_STA_RSP_STATE)
- ret_code = eSIR_SME_DEAUTH_STATUS;
+ ret_code = eSIR_SME_DEAUTH_STATUS;
goto send_deauth;
}
return;
diff --git a/core/mac/src/pe/lim/lim_utils.c b/core/mac/src/pe/lim/lim_utils.c
index 02b28c1..c62913e 100644
--- a/core/mac/src/pe/lim/lim_utils.c
+++ b/core/mac/src/pe/lim/lim_utils.c
@@ -3835,26 +3835,27 @@
*/
(eSIR_HT_OP_MODE_OVERLAP_LEGACY ==
session_entry->htOperMode)) {
- if (session_entry->gLimHt20Params.
- protectionEnabled) {
+ if (session_entry->gLimHt20Params.
+ protectionEnabled) {
if (eHT_CHANNEL_WIDTH_20MHZ ==
- session_entry->htSupportedChannelWidthSet)
+ session_entry->
+ htSupportedChannelWidthSet)
session_entry->htOperMode =
eSIR_HT_OP_MODE_PURE;
else
session_entry->htOperMode =
eSIR_HT_OP_MODE_NO_LEGACY_20MHZ_HT;
- lim_enable_ht_rifs_protection(mac_ctx,
+ lim_enable_ht_rifs_protection(mac_ctx,
false, overlap, beaconparams,
session_entry);
- lim_enable_ht_obss_protection(mac_ctx,
+ lim_enable_ht_obss_protection(mac_ctx,
false, overlap, beaconparams,
session_entry);
- } else {
- session_entry->htOperMode =
- eSIR_HT_OP_MODE_PURE;
- }
+ } else {
+ session_entry->htOperMode =
+ eSIR_HT_OP_MODE_PURE;
+ }
}
} else if (LIM_IS_AP_ROLE(session_entry) && !overlap) {
/* Disable protection from 11G stations. */