Browse Source

qcacld-3.0: Fix lim_update_sta_ds() style issues

Checkpatch reported the following issues, so fix them:
- WARNING: Missing a blank line after declarations
- WARNING: Block comments use a trailing */ on a separate line
- ERROR: that open brace { should be on the previous line

Change-Id: I7671e3a165cb7f372187c37ce31a92778422031a
CRs-Fixed: 2124909
Jeff Johnson 7 years ago
parent
commit
c742d8dddc
1 changed files with 7 additions and 5 deletions
  1. 7 5
      core/mac/src/pe/lim/lim_process_assoc_req_frame.c

+ 7 - 5
core/mac/src/pe/lim/lim_process_assoc_req_frame.c

@@ -1136,6 +1136,7 @@ static bool lim_chk_wmm(tpAniSirGlobal mac_ctx, tpSirMacMgmtHdr hdr,
 			uint8_t sub_type, tHalBitVal qos_mode)
 {
 	tHalBitVal wme_mode;
+
 	limGetWmeMode(session, &wme_mode);
 	if ((qos_mode == eHAL_SET) || (wme_mode == eHAL_SET)) {
 		/*
@@ -1144,6 +1145,7 @@ static bool lim_chk_wmm(tpAniSirGlobal mac_ctx, tpSirMacMgmtHdr hdr,
 		 */
 		if (assoc_req->addtsPresent) {
 			uint8_t tspecIdx = 0;
+
 			if (lim_admit_control_add_ts(mac_ctx, hdr->sa,
 				&(assoc_req->addtsReq),
 				&(assoc_req->qosCapability),
@@ -1343,7 +1345,8 @@ static bool lim_update_sta_ds(tpAniSirGlobal mac_ctx, tpSirMacMgmtHdr hdr,
 			 * Check if STA has enabled it's channel bonding mode.
 			 * If channel bonding mode is enabled, we decide based
 			 * on SAP's current configuration. else, we set it to
-			 * VHT20. */
+			 * VHT20.
+			 */
 			sta_ds->vhtSupportedChannelWidthSet =
 				(uint8_t) ((sta_ds->htSupportedChannelWidthSet
 					== eHT_CHANNEL_WIDTH_20MHZ) ?
@@ -1400,12 +1403,11 @@ static bool lim_update_sta_ds(tpAniSirGlobal mac_ctx, tpSirMacMgmtHdr hdr,
 			&(assoc_req->extendedRates),
 			assoc_req->HTCaps.supportedMCSSet,
 			session, vht_caps,
-			&assoc_req->he_cap) != eSIR_SUCCESS)
-	{
+			&assoc_req->he_cap) != eSIR_SUCCESS) {
 		/* Could not update hash table entry at DPH with rateset */
 		pe_err("Couldn't update hash entry for aid: %d MacAddr: "
-				MAC_ADDRESS_STR,
-			peer_idx, MAC_ADDR_ARRAY(hdr->sa));
+		       MAC_ADDRESS_STR,
+		       peer_idx, MAC_ADDR_ARRAY(hdr->sa));
 
 		/* Release AID */
 		lim_release_peer_idx(mac_ctx, peer_idx, session);