wlan: Remove hard tabs from WLAN driver
Hard tabs are forbidden by the QCT Coding Standard, so remove/replace
hard tabs which have been added to the code.
Change-Id: I12d3a095882d98a1cf480df1e6fff2ce3dca1009
CR-Fixed: NA
diff --git a/CORE/HDD/src/wlan_hdd_assoc.c b/CORE/HDD/src/wlan_hdd_assoc.c
index 02afe0f..f6a1e8c 100644
--- a/CORE/HDD/src/wlan_hdd_assoc.c
+++ b/CORE/HDD/src/wlan_hdd_assoc.c
@@ -1607,17 +1607,17 @@
struct net_device *dev = pAdapter->dev;
netif_tx_disable(dev);
/*
- * Deregister for this STA with TL with the objective to flush
- * all the packets for this STA from wmm_tx_queue. If not done here,
- * we would run into a race condition (CR390567) wherein TX
- * thread would schedule packets from wmm_tx_queue AFTER peer STA has
- * been deleted. And, these packets get assigned with a STA idx of
- * self-sta (since the peer STA has been deleted) and get transmitted
- * on the new channel before the reassoc request. Since there will be
- * no ACK on the new channel, each packet gets retransmitted which
- * takes several seconds before the transmission of reassoc request.
- * This leads to reassoc-timeout and roam failure.
- */
+ * Deregister for this STA with TL with the objective to flush
+ * all the packets for this STA from wmm_tx_queue. If not done here,
+ * we would run into a race condition (CR390567) wherein TX
+ * thread would schedule packets from wmm_tx_queue AFTER peer STA has
+ * been deleted. And, these packets get assigned with a STA idx of
+ * self-sta (since the peer STA has been deleted) and get transmitted
+ * on the new channel before the reassoc request. Since there will be
+ * no ACK on the new channel, each packet gets retransmitted which
+ * takes several seconds before the transmission of reassoc request.
+ * This leads to reassoc-timeout and roam failure.
+ */
status = hdd_roamDeregisterSTA( pAdapter, pHddStaCtx->conn_info.staId [0] );
if ( !VOS_IS_STATUS_SUCCESS(status ) )
{
@@ -1625,7 +1625,7 @@
FL("hdd_roamDeregisterSTA() failed to for staID %d. Status= %d [0x%x]"),
pHddStaCtx->conn_info.staId[0], status, status );
halStatus = eHAL_STATUS_FAILURE;
- }
+ }
}
pHddStaCtx->ft_carrier_on = TRUE;
break;
diff --git a/CORE/HDD/src/wlan_hdd_cfg80211.c b/CORE/HDD/src/wlan_hdd_cfg80211.c
index 6d1a520..59ffa97 100644
--- a/CORE/HDD/src/wlan_hdd_cfg80211.c
+++ b/CORE/HDD/src/wlan_hdd_cfg80211.c
@@ -1302,15 +1302,14 @@
return -EINVAL;
}
}
- /*
- *Validate the given channel range for
- * for given country code
- */
- else
- {
- hdd_config_t *hdd_pConfig= (WLAN_HDD_GET_CTX(pHostapdAdapter))->cfg_ini;
- WLANSAP_SetChannelRange(hHal,hdd_pConfig->apStartChannelNum,hdd_pConfig->apEndChannelNum,hdd_pConfig->apOperatingBand);
- }
+ /*
+ * Validate the given channel range for the given country code
+ */
+ else
+ {
+ hdd_config_t *hdd_pConfig= (WLAN_HDD_GET_CTX(pHostapdAdapter))->cfg_ini;
+ WLANSAP_SetChannelRange(hHal,hdd_pConfig->apStartChannelNum,hdd_pConfig->apEndChannelNum,hdd_pConfig->apOperatingBand);
+ }
}
else
{
@@ -4438,25 +4437,25 @@
#endif
/* Appending HS 2.0 Indication Element in Assiciation Request */
else if ( (0 == memcmp(&genie[0], HS20_OUI_TYPE,
- HS20_OUI_TYPE_SIZE)) )
- {
- v_U16_t curAddIELen = pWextState->assocAddIE.length;
- hddLog (VOS_TRACE_LEVEL_INFO, "%s Set HS20 IE(len %d)",
- __func__, eLen + 2);
+ HS20_OUI_TYPE_SIZE)) )
+ {
+ v_U16_t curAddIELen = pWextState->assocAddIE.length;
+ hddLog (VOS_TRACE_LEVEL_INFO, "%s Set HS20 IE(len %d)",
+ __func__, eLen + 2);
- if( SIR_MAC_MAX_IE_LENGTH < (pWextState->assocAddIE.length + eLen) )
- {
- hddLog(VOS_TRACE_LEVEL_FATAL, "Cannot accomadate assocAddIE "
- "Need bigger buffer space\n");
- VOS_ASSERT(0);
- return -ENOMEM;
- }
- memcpy( pWextState->assocAddIE.addIEdata + curAddIELen, genie - 2, eLen + 2);
- pWextState->assocAddIE.length += eLen + 2;
+ if( SIR_MAC_MAX_IE_LENGTH < (pWextState->assocAddIE.length + eLen) )
+ {
+ hddLog(VOS_TRACE_LEVEL_FATAL, "Cannot accomadate assocAddIE "
+ "Need bigger buffer space\n");
+ VOS_ASSERT(0);
+ return -ENOMEM;
+ }
+ memcpy( pWextState->assocAddIE.addIEdata + curAddIELen, genie - 2, eLen + 2);
+ pWextState->assocAddIE.length += eLen + 2;
- pWextState->roamProfile.pAddIEAssoc = pWextState->assocAddIE.addIEdata;
- pWextState->roamProfile.nAddIEAssocLength = pWextState->assocAddIE.length;
- }
+ pWextState->roamProfile.pAddIEAssoc = pWextState->assocAddIE.addIEdata;
+ pWextState->roamProfile.nAddIEAssocLength = pWextState->assocAddIE.length;
+ }
break;
case DOT11F_EID_RSN:
diff --git a/CORE/HDD/src/wlan_hdd_hostapd.c b/CORE/HDD/src/wlan_hdd_hostapd.c
index f388cde..bc5d639 100644
--- a/CORE/HDD/src/wlan_hdd_hostapd.c
+++ b/CORE/HDD/src/wlan_hdd_hostapd.c
@@ -245,17 +245,17 @@
hdd_setP2pOpps(dev, command);
}
#endif
-
- /*
- command should be a string having format
- SET_SAP_CHANNEL_LIST <num of channels> <the channels seperated by spaces>
- */
+
+ /*
+ command should be a string having format
+ SET_SAP_CHANNEL_LIST <num of channels> <the channels seperated by spaces>
+ */
if(strncmp(command, "SET_SAP_CHANNEL_LIST", 20) == 0)
- {
- VOS_TRACE( VOS_MODULE_ID_HDD, VOS_TRACE_LEVEL_INFO,
- " Received Command to Set Preferred Channels for SAP in %s", __FUNCTION__);
-
- ret = sapSetPreferredChannel(dev,command);
+ {
+ VOS_TRACE( VOS_MODULE_ID_HDD, VOS_TRACE_LEVEL_INFO,
+ " Received Command to Set Preferred Channels for SAP in %s", __FUNCTION__);
+
+ ret = sapSetPreferredChannel(dev,command);
}
}
exit:
@@ -458,7 +458,7 @@
"eSAP_STATUS_FAILURE" : "eSAP_STATUS_SUCCESS");
//Free up Channel List incase if it is set
- sapCleanupChannelList();
+ sapCleanupChannelList();
pHddApCtx->operatingChannel = 0; //Invalidate the channel info.
vos_event_set(&pHostapdState->vosEvent);
diff --git a/CORE/HDD/src/wlan_hdd_main.c b/CORE/HDD/src/wlan_hdd_main.c
index 9f6e6ba..0b62617 100644
--- a/CORE/HDD/src/wlan_hdd_main.c
+++ b/CORE/HDD/src/wlan_hdd_main.c
@@ -433,19 +433,19 @@
"%s: SME Change Country code fail ret=%d\n",__func__, ret);
}
- }
- /*
- command should be a string having format
- SET_SAP_CHANNEL_LIST <num of channels> <the channels seperated by spaces>
- */
+ }
+ /*
+ command should be a string having format
+ SET_SAP_CHANNEL_LIST <num of channels> <the channels seperated by spaces>
+ */
else if(strncmp(priv_data.buf, "SET_SAP_CHANNEL_LIST", 20) == 0)
- {
- tANI_U8 *ptr = (tANI_U8*)priv_data.buf;
-
- VOS_TRACE( VOS_MODULE_ID_HDD, VOS_TRACE_LEVEL_INFO,
- " Received Command to Set Preferred Channels for SAP in %s", __FUNCTION__);
-
- ret = sapSetPreferredChannel(dev,ptr);
+ {
+ tANI_U8 *ptr = (tANI_U8*)priv_data.buf;
+
+ VOS_TRACE( VOS_MODULE_ID_HDD, VOS_TRACE_LEVEL_INFO,
+ " Received Command to Set Preferred Channels for SAP in %s", __FUNCTION__);
+
+ ret = sapSetPreferredChannel(dev, ptr);
}
}
exit: