瀏覽代碼

qcacld-3.0: Address checkpatch errors added as part of VHT & WMM CFG items

Address checkpatch errors added as part of VHT & WMM CFG items.

Change-Id: I2c3d5466264781cee8197778806a349cfbf06957
CRs-Fixed: 2359406
Abhinav Kumar 6 年之前
父節點
當前提交
c1059384a6

+ 120 - 123
components/mlme/dispatcher/inc/wlan_mlme_api.h

@@ -851,8 +851,7 @@ QDF_STATUS wlan_mlme_set_fils_enabled_info(struct wlan_objmgr_psoc *psoc,
  * Return: QDF Status
  */
 QDF_STATUS
-wlan_mlme_get_wmm_dir_ac_vi(struct wlan_objmgr_psoc *psoc,
-			    uint8_t *value);
+wlan_mlme_get_wmm_dir_ac_vi(struct wlan_objmgr_psoc *psoc, uint8_t *value);
 
 /**
  * wlan_mlme_get_wmm_nom_msdu_size_ac_vi() - Get normal
@@ -862,9 +861,8 @@ wlan_mlme_get_wmm_dir_ac_vi(struct wlan_objmgr_psoc *psoc,
  *
  * Return: QDF Status
  */
-QDF_STATUS
-wlan_mlme_get_wmm_nom_msdu_size_ac_vi(struct wlan_objmgr_psoc *psoc,
-				      uint16_t *value);
+QDF_STATUS wlan_mlme_get_wmm_nom_msdu_size_ac_vi(struct wlan_objmgr_psoc *psoc,
+						 uint16_t *value);
 
 /**
  * wlan_mlme_get_wmm_mean_data_rate_ac_vi() - mean data
@@ -876,7 +874,7 @@ wlan_mlme_get_wmm_nom_msdu_size_ac_vi(struct wlan_objmgr_psoc *psoc,
  */
 QDF_STATUS
 wlan_mlme_get_wmm_mean_data_rate_ac_vi(struct wlan_objmgr_psoc *psoc,
-				       uint32_t *value);
+					uint32_t *value);
 
 /**
  * wlan_mlme_get_wmm_min_phy_rate_ac_vi() - min PHY
@@ -886,9 +884,8 @@ wlan_mlme_get_wmm_mean_data_rate_ac_vi(struct wlan_objmgr_psoc *psoc,
  *
  * Return: QDF Status
  */
-QDF_STATUS
-wlan_mlme_get_wmm_min_phy_rate_ac_vi(struct wlan_objmgr_psoc *psoc,
-				     uint32_t *value);
+QDF_STATUS wlan_mlme_get_wmm_min_phy_rate_ac_vi(struct wlan_objmgr_psoc *psoc,
+						uint32_t *value);
 
 /**
  * wlan_mlme_get_wmm_sba_ac_vi() - surplus bandwidth
@@ -945,9 +942,8 @@ wlan_mlme_get_wmm_dir_ac_be(struct wlan_objmgr_psoc *psoc,
  *
  * Return: QDF Status
  */
-QDF_STATUS
-wlan_mlme_get_wmm_nom_msdu_size_ac_be(struct wlan_objmgr_psoc *psoc,
-				      uint16_t *value);
+QDF_STATUS wlan_mlme_get_wmm_nom_msdu_size_ac_be(struct wlan_objmgr_psoc *psoc,
+						 uint16_t *value);
 
 /**
  * wlan_mlme_get_wmm_mean_data_rate_ac_be() - mean data
@@ -957,9 +953,8 @@ wlan_mlme_get_wmm_nom_msdu_size_ac_be(struct wlan_objmgr_psoc *psoc,
  *
  * Return: QDF Status
  */
-QDF_STATUS
-wlan_mlme_get_wmm_mean_data_rate_ac_be(struct wlan_objmgr_psoc *psoc,
-				       uint32_t *value);
+QDF_STATUS wlan_mlme_get_wmm_mean_data_rate_ac_be(struct wlan_objmgr_psoc *psoc,
+						  uint32_t *value);
 
 /**
  * wlan_mlme_get_wmm_min_phy_rate_ac_be() - min PHY
@@ -980,8 +975,8 @@ QDF_STATUS wlan_mlme_get_wmm_min_phy_rate_ac_be(struct wlan_objmgr_psoc *psoc,
  *
  * Return: QDF Status
  */
-QDF_STATUS wlan_mlme_get_wmm_sba_ac_be(struct wlan_objmgr_psoc *psoc,
-				       uint16_t *value);
+QDF_STATUS
+wlan_mlme_get_wmm_sba_ac_be(struct wlan_objmgr_psoc *psoc, uint16_t *value);
 
 /**
  * wlan_mlme_get_wmm_uapsd_be_srv_intv() - Get Uapsd service
@@ -991,8 +986,9 @@ QDF_STATUS wlan_mlme_get_wmm_sba_ac_be(struct wlan_objmgr_psoc *psoc,
  *
  * Return: QDF Status
  */
-QDF_STATUS wlan_mlme_get_wmm_uapsd_be_srv_intv(struct wlan_objmgr_psoc *psoc,
-					       uint32_t *value);
+QDF_STATUS
+wlan_mlme_get_wmm_uapsd_be_srv_intv(struct wlan_objmgr_psoc *psoc,
+				    uint32_t *value);
 
 /**
  * wlan_mlme_get_wmm_uapsd_be_sus_intv() - Get Uapsd suspension
@@ -1002,8 +998,9 @@ QDF_STATUS wlan_mlme_get_wmm_uapsd_be_srv_intv(struct wlan_objmgr_psoc *psoc,
  *
  * Return: QDF Status
  */
-QDF_STATUS wlan_mlme_get_wmm_uapsd_be_sus_intv(struct wlan_objmgr_psoc *psoc,
-					       uint32_t *value);
+QDF_STATUS
+wlan_mlme_get_wmm_uapsd_be_sus_intv(struct wlan_objmgr_psoc *psoc,
+				    uint32_t *value);
 
 /**
  * wlan_mlme_get_wmm_dir_ac_bk() - Get TSPEC direction
@@ -1024,9 +1021,8 @@ wlan_mlme_get_wmm_dir_ac_bk(struct wlan_objmgr_psoc *psoc, uint8_t *value);
  *
  * Return: QDF Status
  */
-QDF_STATUS
-wlan_mlme_get_wmm_nom_msdu_size_ac_bk(struct wlan_objmgr_psoc *psoc,
-				      uint16_t *value);
+QDF_STATUS wlan_mlme_get_wmm_nom_msdu_size_ac_bk(struct wlan_objmgr_psoc *psoc,
+						 uint16_t *value);
 
 /**
  * wlan_mlme_get_wmm_mean_data_rate_ac_bk() - mean data
@@ -1036,9 +1032,8 @@ wlan_mlme_get_wmm_nom_msdu_size_ac_bk(struct wlan_objmgr_psoc *psoc,
  *
  * Return: QDF Status
  */
-QDF_STATUS
-wlan_mlme_get_wmm_mean_data_rate_ac_bk(struct wlan_objmgr_psoc *psoc,
-				       uint32_t *value);
+QDF_STATUS wlan_mlme_get_wmm_mean_data_rate_ac_bk(struct wlan_objmgr_psoc *psoc,
+						  uint32_t *value);
 
 /**
  * wlan_mlme_get_wmm_min_phy_rate_ac_bk() - min PHY
@@ -1048,9 +1043,8 @@ wlan_mlme_get_wmm_mean_data_rate_ac_bk(struct wlan_objmgr_psoc *psoc,
  *
  * Return: QDF Status
  */
-QDF_STATUS
-wlan_mlme_get_wmm_min_phy_rate_ac_bk(struct wlan_objmgr_psoc *psoc,
-				     uint32_t *value);
+QDF_STATUS wlan_mlme_get_wmm_min_phy_rate_ac_bk(struct wlan_objmgr_psoc *psoc,
+						uint32_t *value);
 
 /**
  * wlan_mlme_get_wmm_sba_ac_bk() - surplus bandwidth
@@ -1124,9 +1118,8 @@ wlan_mlme_get_wmm_uapsd_mask(struct wlan_objmgr_psoc *psoc, uint8_t *value);
  *
  * Return: QDF Status
  */
-QDF_STATUS
-wlan_mlme_get_implicit_qos_is_enabled(struct wlan_objmgr_psoc *psoc,
-				      bool *value);
+QDF_STATUS wlan_mlme_get_implicit_qos_is_enabled(struct wlan_objmgr_psoc *psoc,
+						 bool *value);
 
 #ifdef FEATURE_WLAN_ESE
 /**
@@ -1136,8 +1129,9 @@ wlan_mlme_get_implicit_qos_is_enabled(struct wlan_objmgr_psoc *psoc,
  *
  * Return: None
  */
-void wlan_mlme_get_inactivity_interval(struct wlan_objmgr_psoc *psoc,
-				       uint32_t *value);
+void
+wlan_mlme_get_inactivity_interval(struct wlan_objmgr_psoc *psoc,
+				  uint32_t *value);
 #endif
 
 /**
@@ -1178,8 +1172,8 @@ wlan_mlme_get_ts_acm_value_for_ac(struct wlan_objmgr_psoc *psoc, bool *value);
  *
  * Return: QDF Status
  */
-QDF_STATUS wlan_mlme_get_wmm_dir_ac_vo(struct wlan_objmgr_psoc *psoc,
-				       uint8_t *value);
+QDF_STATUS
+wlan_mlme_get_wmm_dir_ac_vo(struct wlan_objmgr_psoc *psoc, uint8_t *value);
 
 /**
  * wlan_mlme_get_wmm_nom_msdu_size_ac_vo() - Get normal
@@ -1189,9 +1183,8 @@ QDF_STATUS wlan_mlme_get_wmm_dir_ac_vo(struct wlan_objmgr_psoc *psoc,
  *
  * Return: QDF Status
  */
-QDF_STATUS
-wlan_mlme_get_wmm_nom_msdu_size_ac_vo(struct wlan_objmgr_psoc *psoc,
-				      uint16_t *value);
+QDF_STATUS wlan_mlme_get_wmm_nom_msdu_size_ac_vo(struct wlan_objmgr_psoc *psoc,
+						 uint16_t *value);
 
 /**
  * wlan_mlme_get_wmm_mean_data_rate_ac_vo() - mean data rate for VO
@@ -1200,9 +1193,8 @@ wlan_mlme_get_wmm_nom_msdu_size_ac_vo(struct wlan_objmgr_psoc *psoc,
  *
  * Return: QDF Status
  */
-QDF_STATUS
-wlan_mlme_get_wmm_mean_data_rate_ac_vo(struct wlan_objmgr_psoc *psoc,
-				       uint32_t *value);
+QDF_STATUS wlan_mlme_get_wmm_mean_data_rate_ac_vo(struct wlan_objmgr_psoc *psoc,
+						  uint32_t *value);
 /**
  * wlan_mlme_get_wmm_min_phy_rate_ac_vo() - min PHY
  * rate for VO
@@ -1211,9 +1203,8 @@ wlan_mlme_get_wmm_mean_data_rate_ac_vo(struct wlan_objmgr_psoc *psoc,
  *
  * Return: QDF Status
  */
-QDF_STATUS
-wlan_mlme_get_wmm_min_phy_rate_ac_vo(struct wlan_objmgr_psoc *psoc,
-				     uint32_t *value);
+QDF_STATUS wlan_mlme_get_wmm_min_phy_rate_ac_vo(struct wlan_objmgr_psoc *psoc,
+						uint32_t *value);
 /**
  * wlan_mlme_get_wmm_sba_ac_vo() - surplus bandwidth allowance for VO
  * @psoc: pointer to psoc object
@@ -1265,8 +1256,9 @@ wlan_mlme_get_wmm_uapsd_vo_sus_intv(struct wlan_objmgr_psoc *psoc,
  *
  * Return: QDF_STATUS
  */
-QDF_STATUS wlan_mlme_cfg_get_vht_max_mpdu_len(struct wlan_objmgr_psoc *psoc,
-					      uint8_t *value);
+QDF_STATUS
+wlan_mlme_cfg_get_vht_max_mpdu_len(struct wlan_objmgr_psoc *psoc,
+				   uint8_t *value);
 
 /**
  * wlan_mlme_cfg_set_vht_max_mpdu_len() - sets vht max mpdu length into cfg item
@@ -1275,8 +1267,9 @@ QDF_STATUS wlan_mlme_cfg_get_vht_max_mpdu_len(struct wlan_objmgr_psoc *psoc,
  *
  * Return: QDF_STATUS
  */
-QDF_STATUS wlan_mlme_cfg_set_vht_max_mpdu_len(struct wlan_objmgr_psoc *psoc,
-					      uint8_t value);
+QDF_STATUS
+wlan_mlme_cfg_set_vht_max_mpdu_len(struct wlan_objmgr_psoc *psoc,
+				   uint8_t value);
 
 /**
  * wlan_mlme_cfg_get_vht_chan_width() - gets vht supported channel width from
@@ -1331,7 +1324,7 @@ QDF_STATUS wlan_mlme_cfg_get_vht_ldpc_coding_cap(struct wlan_objmgr_psoc *psoc,
  * Return: QDF_STATUS
  */
 QDF_STATUS wlan_mlme_cfg_set_vht_ldpc_coding_cap(struct wlan_objmgr_psoc *psoc,
-					         bool value);
+						 bool value);
 
 /**
  * wlan_mlme_cfg_get_vht_short_gi_80mhz() - gets vht short gi 80MHz from
@@ -1342,7 +1335,7 @@ QDF_STATUS wlan_mlme_cfg_set_vht_ldpc_coding_cap(struct wlan_objmgr_psoc *psoc,
  * Return: QDF_STATUS
  */
 QDF_STATUS wlan_mlme_cfg_get_vht_short_gi_80mhz(struct wlan_objmgr_psoc *psoc,
-					        bool *value);
+						bool *value);
 
 /**
  * wlan_mlme_cfg_set_vht_short_gi_80mhz() - sets vht short gi 80MHz into
@@ -1353,7 +1346,7 @@ QDF_STATUS wlan_mlme_cfg_get_vht_short_gi_80mhz(struct wlan_objmgr_psoc *psoc,
  * Return: QDF_STATUS
  */
 QDF_STATUS wlan_mlme_cfg_set_vht_short_gi_80mhz(struct wlan_objmgr_psoc *psoc,
-					        bool value);
+						bool value);
 
 /**
  * wlan_mlme_cfg_get_short_gi_160_mhz() - gets vht short gi 160MHz from
@@ -1363,8 +1356,8 @@ QDF_STATUS wlan_mlme_cfg_set_vht_short_gi_80mhz(struct wlan_objmgr_psoc *psoc,
  *
  * Return: QDF_STATUS
  */
-QDF_STATUS wlan_mlme_cfg_get_short_gi_160_mhz(struct wlan_objmgr_psoc *psoc,
-					      bool *value);
+QDF_STATUS
+wlan_mlme_cfg_get_short_gi_160_mhz(struct wlan_objmgr_psoc *psoc, bool *value);
 
 /**
  * wlan_mlme_cfg_set_short_gi_160_mhz() - sets vht short gi 160MHz into
@@ -1374,8 +1367,8 @@ QDF_STATUS wlan_mlme_cfg_get_short_gi_160_mhz(struct wlan_objmgr_psoc *psoc,
  *
  * Return: QDF_STATUS
  */
-QDF_STATUS wlan_mlme_cfg_set_short_gi_160_mhz(struct wlan_objmgr_psoc *psoc,
-					      bool value);
+QDF_STATUS
+wlan_mlme_cfg_set_short_gi_160_mhz(struct wlan_objmgr_psoc *psoc, bool value);
 
 /**
  * wlan_mlme_cfg_get_vht_tx_stbc() - gets vht tx stbc from
@@ -1385,8 +1378,8 @@ QDF_STATUS wlan_mlme_cfg_set_short_gi_160_mhz(struct wlan_objmgr_psoc *psoc,
  *
  * Return: QDF_STATUS
  */
-QDF_STATUS wlan_mlme_cfg_get_vht_tx_stbc(struct wlan_objmgr_psoc *psoc,
-				         bool *value);
+QDF_STATUS
+wlan_mlme_cfg_get_vht_tx_stbc(struct wlan_objmgr_psoc *psoc, bool *value);
 
 /**
  * wlan_mlme_cfg_get_vht_rx_stbc() - gets vht rx stbc from
@@ -1396,8 +1389,8 @@ QDF_STATUS wlan_mlme_cfg_get_vht_tx_stbc(struct wlan_objmgr_psoc *psoc,
  *
  * Return: QDF_STATUS
  */
-QDF_STATUS wlan_mlme_cfg_get_vht_rx_stbc(struct wlan_objmgr_psoc *psoc,
-				         bool *value);
+QDF_STATUS
+wlan_mlme_cfg_get_vht_rx_stbc(struct wlan_objmgr_psoc *psoc, bool *value);
 
 /**
  * wlan_mlme_cfg_set_vht_tx_stbc() - sets vht tx stbc into
@@ -1407,8 +1400,8 @@ QDF_STATUS wlan_mlme_cfg_get_vht_rx_stbc(struct wlan_objmgr_psoc *psoc,
  *
  * Return: QDF_STATUS
  */
-QDF_STATUS wlan_mlme_cfg_set_vht_tx_stbc(struct wlan_objmgr_psoc *psoc,
-				         bool value);
+QDF_STATUS
+wlan_mlme_cfg_set_vht_tx_stbc(struct wlan_objmgr_psoc *psoc, bool value);
 
 /**
  * wlan_mlme_cfg_get_vht_rx_stbc() - gets vht rx stbc from
@@ -1418,8 +1411,8 @@ QDF_STATUS wlan_mlme_cfg_set_vht_tx_stbc(struct wlan_objmgr_psoc *psoc,
  *
  * Return: QDF_STATUS
  */
-QDF_STATUS wlan_mlme_cfg_get_vht_rx_stbc(struct wlan_objmgr_psoc *psoc,
-				         bool *value);
+QDF_STATUS
+wlan_mlme_cfg_get_vht_rx_stbc(struct wlan_objmgr_psoc *psoc, bool *value);
 
 /**
  * wlan_mlme_cfg_set_vht_rx_stbc() - sets vht rx stbc into
@@ -1429,8 +1422,8 @@ QDF_STATUS wlan_mlme_cfg_get_vht_rx_stbc(struct wlan_objmgr_psoc *psoc,
  *
  * Return: QDF_STATUS
  */
-QDF_STATUS wlan_mlme_cfg_set_vht_rx_stbc(struct wlan_objmgr_psoc *psoc,
-				         bool value);
+QDF_STATUS
+wlan_mlme_cfg_set_vht_rx_stbc(struct wlan_objmgr_psoc *psoc, bool value);
 
 /**
  * wlan_mlme_cfg_get_vht_su_bformer() - gets vht su beam former cap from
@@ -1440,8 +1433,8 @@ QDF_STATUS wlan_mlme_cfg_set_vht_rx_stbc(struct wlan_objmgr_psoc *psoc,
  *
  * Return: QDF_STATUS
  */
-QDF_STATUS wlan_mlme_cfg_get_vht_su_bformer(struct wlan_objmgr_psoc *psoc,
-				            bool *value);
+QDF_STATUS
+wlan_mlme_cfg_get_vht_su_bformer(struct wlan_objmgr_psoc *psoc, bool *value);
 
 /**
  * wlan_mlme_cfg_set_vht_su_bformer() - sets vht su beam former cap into
@@ -1451,8 +1444,8 @@ QDF_STATUS wlan_mlme_cfg_get_vht_su_bformer(struct wlan_objmgr_psoc *psoc,
  *
  * Return: QDF_STATUS
  */
-QDF_STATUS wlan_mlme_cfg_set_vht_su_bformer(struct wlan_objmgr_psoc *psoc,
-				            bool value);
+QDF_STATUS
+wlan_mlme_cfg_set_vht_su_bformer(struct wlan_objmgr_psoc *psoc, bool value);
 
 /**
  * wlan_mlme_cfg_set_vht_su_bformee() - sets vht su beam formee cap into
@@ -1462,8 +1455,8 @@ QDF_STATUS wlan_mlme_cfg_set_vht_su_bformer(struct wlan_objmgr_psoc *psoc,
  *
  * Return: QDF_STATUS
  */
-QDF_STATUS wlan_mlme_cfg_set_vht_su_bformee(struct wlan_objmgr_psoc *psoc,
-				            bool value);
+QDF_STATUS
+wlan_mlme_cfg_set_vht_su_bformee(struct wlan_objmgr_psoc *psoc, bool value);
 
 /**
  * wlan_mlme_cfg_set_vht_tx_bfee_ant_supp() - sets vht Beamformee antenna
@@ -1475,7 +1468,7 @@ QDF_STATUS wlan_mlme_cfg_set_vht_su_bformee(struct wlan_objmgr_psoc *psoc,
  * Return: QDF_STATUS
  */
 QDF_STATUS wlan_mlme_cfg_set_vht_tx_bfee_ant_supp(struct wlan_objmgr_psoc *psoc,
-					           uint8_t value);
+						  uint8_t value);
 
 /**
  * wlan_mlme_cfg_get_vht_tx_bfee_ant_supp() - Gets vht Beamformee antenna
@@ -1498,7 +1491,7 @@ QDF_STATUS wlan_mlme_cfg_get_vht_tx_bfee_ant_supp(struct wlan_objmgr_psoc *psoc,
  * Return: QDF_STATUS
  */
 QDF_STATUS wlan_mlme_cfg_set_vht_num_sounding_dim(struct wlan_objmgr_psoc *psoc,
-					          uint8_t value);
+						  uint8_t value);
 
 /**
  * wlan_mlme_cfg_get_vht_mu_bformer() - gets vht mu beam former cap from
@@ -1508,8 +1501,8 @@ QDF_STATUS wlan_mlme_cfg_set_vht_num_sounding_dim(struct wlan_objmgr_psoc *psoc,
  *
  * Return: QDF_STATUS
  */
-QDF_STATUS wlan_mlme_cfg_get_vht_mu_bformer(struct wlan_objmgr_psoc *psoc,
-				            bool *value);
+QDF_STATUS
+wlan_mlme_cfg_get_vht_mu_bformer(struct wlan_objmgr_psoc *psoc, bool *value);
 
 /**
  * wlan_mlme_cfg_set_vht_mu_bformer() - sets vht mu beam former cap into
@@ -1519,8 +1512,8 @@ QDF_STATUS wlan_mlme_cfg_get_vht_mu_bformer(struct wlan_objmgr_psoc *psoc,
  *
  * Return: QDF_STATUS
  */
-QDF_STATUS wlan_mlme_cfg_set_vht_mu_bformer(struct wlan_objmgr_psoc *psoc,
-				            bool value);
+QDF_STATUS
+wlan_mlme_cfg_set_vht_mu_bformer(struct wlan_objmgr_psoc *psoc, bool value);
 
 /**
  * wlan_mlme_cfg_get_vht_mu_bformee() - gets vht mu beam formee cap from
@@ -1530,8 +1523,8 @@ QDF_STATUS wlan_mlme_cfg_set_vht_mu_bformer(struct wlan_objmgr_psoc *psoc,
  *
  * Return: QDF_STATUS
  */
-QDF_STATUS wlan_mlme_cfg_get_vht_mu_bformee(struct wlan_objmgr_psoc *psoc,
-				            bool *value);
+QDF_STATUS
+wlan_mlme_cfg_get_vht_mu_bformee(struct wlan_objmgr_psoc *psoc, bool *value);
 
 /**
  * wlan_mlme_cfg_set_vht_mu_bformee() - sets vht mu beam formee cap into
@@ -1541,8 +1534,8 @@ QDF_STATUS wlan_mlme_cfg_get_vht_mu_bformee(struct wlan_objmgr_psoc *psoc,
  *
  * Return: QDF_STATUS
  */
-QDF_STATUS wlan_mlme_cfg_set_vht_mu_bformee(struct wlan_objmgr_psoc *psoc,
-				            bool value);
+QDF_STATUS
+wlan_mlme_cfg_set_vht_mu_bformee(struct wlan_objmgr_psoc *psoc, bool value);
 
 /**
  * wlan_mlme_cfg_get_vht_txop_ps() - gets vht tx ops ps cap from
@@ -1552,8 +1545,8 @@ QDF_STATUS wlan_mlme_cfg_set_vht_mu_bformee(struct wlan_objmgr_psoc *psoc,
  *
  * Return: QDF_STATUS
  */
-QDF_STATUS wlan_mlme_cfg_get_vht_txop_ps(struct wlan_objmgr_psoc *psoc,
-				         bool *value);
+QDF_STATUS
+wlan_mlme_cfg_get_vht_txop_ps(struct wlan_objmgr_psoc *psoc, bool *value);
 
 /**
  * wlan_mlme_cfg_set_vht_txop_ps() - sets vht tx ops ps cap into
@@ -1563,8 +1556,8 @@ QDF_STATUS wlan_mlme_cfg_get_vht_txop_ps(struct wlan_objmgr_psoc *psoc,
  *
  * Return: QDF_STATUS
  */
-QDF_STATUS wlan_mlme_cfg_set_vht_txop_ps(struct wlan_objmgr_psoc *psoc,
-				         bool value);
+QDF_STATUS
+wlan_mlme_cfg_set_vht_txop_ps(struct wlan_objmgr_psoc *psoc, bool value);
 
 /**
  * wlan_mlme_cfg_get_vht_ampdu_len_exp() - gets vht max AMPDU length exponent from
@@ -1574,8 +1567,9 @@ QDF_STATUS wlan_mlme_cfg_set_vht_txop_ps(struct wlan_objmgr_psoc *psoc,
  *
  * Return: QDF_STATUS
  */
-QDF_STATUS wlan_mlme_cfg_get_vht_ampdu_len_exp(struct wlan_objmgr_psoc *psoc,
-					       uint8_t *value);
+QDF_STATUS
+wlan_mlme_cfg_get_vht_ampdu_len_exp(struct wlan_objmgr_psoc *psoc,
+				    uint8_t *value);
 
 /**
  * wlan_mlme_cfg_set_vht_ampdu_len_exp() - sets vht max AMPDU length exponent into
@@ -1585,8 +1579,9 @@ QDF_STATUS wlan_mlme_cfg_get_vht_ampdu_len_exp(struct wlan_objmgr_psoc *psoc,
  *
  * Return: QDF_STATUS
  */
-QDF_STATUS wlan_mlme_cfg_set_vht_ampdu_len_exp(struct wlan_objmgr_psoc *psoc,
-					       uint8_t value);
+QDF_STATUS
+wlan_mlme_cfg_set_vht_ampdu_len_exp(struct wlan_objmgr_psoc *psoc,
+				    uint8_t value);
 
 /**
  * wlan_mlme_cfg_get_vht_rx_mcs_map() - gets vht rx mcs map from
@@ -1597,7 +1592,7 @@ QDF_STATUS wlan_mlme_cfg_set_vht_ampdu_len_exp(struct wlan_objmgr_psoc *psoc,
  * Return: QDF_STATUS
  */
 QDF_STATUS wlan_mlme_cfg_get_vht_rx_mcs_map(struct wlan_objmgr_psoc *psoc,
-				            uint32_t *value);
+					    uint32_t *value);
 
 /**
  * wlan_mlme_cfg_set_vht_rx_mcs_map() - sets rx mcs map into
@@ -1607,8 +1602,8 @@ QDF_STATUS wlan_mlme_cfg_get_vht_rx_mcs_map(struct wlan_objmgr_psoc *psoc,
  *
  * Return: QDF_STATUS
  */
-QDF_STATUS wlan_mlme_cfg_set_vht_rx_mcs_map(struct wlan_objmgr_psoc *psoc,
-				            uint32_t value);
+QDF_STATUS
+wlan_mlme_cfg_set_vht_rx_mcs_map(struct wlan_objmgr_psoc *psoc, uint32_t value);
 
 /**
  * wlan_mlme_cfg_get_vht_tx_mcs_map() - gets vht tx mcs map from
@@ -1619,7 +1614,7 @@ QDF_STATUS wlan_mlme_cfg_set_vht_rx_mcs_map(struct wlan_objmgr_psoc *psoc,
  * Return: QDF_STATUS
  */
 QDF_STATUS wlan_mlme_cfg_get_vht_tx_mcs_map(struct wlan_objmgr_psoc *psoc,
-				            uint32_t *value);
+					    uint32_t *value);
 
 /**
  * wlan_mlme_cfg_set_vht_tx_mcs_map() - sets tx mcs map into
@@ -1630,7 +1625,7 @@ QDF_STATUS wlan_mlme_cfg_get_vht_tx_mcs_map(struct wlan_objmgr_psoc *psoc,
  * Return: QDF_STATUS
  */
 QDF_STATUS wlan_mlme_cfg_set_vht_tx_mcs_map(struct wlan_objmgr_psoc *psoc,
-				            uint32_t value);
+					    uint32_t value);
 
 /**
  * wlan_mlme_cfg_set_vht_rx_supp_data_rate() - sets rx supported data rate into
@@ -1664,8 +1659,9 @@ wlan_mlme_cfg_set_vht_tx_supp_data_rate(struct wlan_objmgr_psoc *psoc,
  *
  * Return: QDF_STATUS
  */
-QDF_STATUS wlan_mlme_cfg_get_vht_basic_mcs_set(struct wlan_objmgr_psoc *psoc,
-					       uint32_t *value);
+QDF_STATUS
+wlan_mlme_cfg_get_vht_basic_mcs_set(struct wlan_objmgr_psoc *psoc,
+				    uint32_t *value);
 
 /**
  * wlan_mlme_cfg_set_vht_basic_mcs_set() - sets basic mcs set into
@@ -1675,8 +1671,9 @@ QDF_STATUS wlan_mlme_cfg_get_vht_basic_mcs_set(struct wlan_objmgr_psoc *psoc,
  *
  * Return: QDF_STATUS
  */
-QDF_STATUS wlan_mlme_cfg_set_vht_basic_mcs_set(struct wlan_objmgr_psoc *psoc,
-					       uint32_t value);
+QDF_STATUS
+wlan_mlme_cfg_set_vht_basic_mcs_set(struct wlan_objmgr_psoc *psoc,
+				    uint32_t value);
 
 /**
  * wlan_mlme_get_vht_enable_tx_bf() - Get vht enable tx bf
@@ -1685,8 +1682,8 @@ QDF_STATUS wlan_mlme_cfg_set_vht_basic_mcs_set(struct wlan_objmgr_psoc *psoc,
  *
  * Return: QDF_STATUS
  */
-QDF_STATUS wlan_mlme_get_vht_enable_tx_bf(struct wlan_objmgr_psoc *psoc,
-					  bool *value);
+QDF_STATUS
+wlan_mlme_get_vht_enable_tx_bf(struct wlan_objmgr_psoc *psoc, bool *value);
 
 /**
  * wlan_mlme_get_vht_tx_su_beamformer() - VHT enable tx su beamformer
@@ -1695,8 +1692,8 @@ QDF_STATUS wlan_mlme_get_vht_enable_tx_bf(struct wlan_objmgr_psoc *psoc,
  *
  * Return: QDF_STATUS
  */
-QDF_STATUS wlan_mlme_get_vht_tx_su_beamformer(struct wlan_objmgr_psoc *psoc,
-					      bool *value);
+QDF_STATUS
+wlan_mlme_get_vht_tx_su_beamformer(struct wlan_objmgr_psoc *psoc, bool *value);
 
 /**
  * wlan_mlme_get_vht_channel_width() - gets Channel width capability
@@ -1707,7 +1704,7 @@ QDF_STATUS wlan_mlme_get_vht_tx_su_beamformer(struct wlan_objmgr_psoc *psoc,
  * Return: QDF_STATUS
  */
 QDF_STATUS wlan_mlme_get_vht_channel_width(struct wlan_objmgr_psoc *psoc,
-				           uint8_t *value);
+					   uint8_t *value);
 
 /**
  * wlan_mlme_get_vht_rx_mcs_8_9() - VHT Rx MCS capability for 1x1 mode
@@ -1726,8 +1723,8 @@ QDF_STATUS wlan_mlme_get_vht_rx_mcs_8_9(struct wlan_objmgr_psoc *psoc,
  *
  * Return: QDF_STATUS
  */
-QDF_STATUS wlan_mlme_get_vht_tx_mcs_8_9(struct wlan_objmgr_psoc *psoc,
-				        uint8_t *value);
+QDF_STATUS
+wlan_mlme_get_vht_tx_mcs_8_9(struct wlan_objmgr_psoc *psoc, uint8_t *value);
 
 /**
  * wlan_mlme_get_vht_rx_mcs_2x2() - VHT Rx MCS capability for 2x2 mode
@@ -1756,8 +1753,8 @@ QDF_STATUS wlan_mlme_get_vht_tx_mcs_2x2(struct wlan_objmgr_psoc *psoc,
  *
  * Return: QDF_STATUS
  */
-QDF_STATUS wlan_mlme_get_vht20_mcs9(struct wlan_objmgr_psoc *psoc,
-				    bool *value);
+QDF_STATUS
+wlan_mlme_get_vht20_mcs9(struct wlan_objmgr_psoc *psoc, bool *value);
 
 /**
  * wlan_mlme_get_vht_enable2x2() - Enables/disables VHT Tx/Rx MCS values for 2x2
@@ -1766,8 +1763,8 @@ QDF_STATUS wlan_mlme_get_vht20_mcs9(struct wlan_objmgr_psoc *psoc,
  *
  * Return: QDF_STATUS
  */
-QDF_STATUS wlan_mlme_get_vht_enable2x2(struct wlan_objmgr_psoc *psoc,
-				       bool *value);
+QDF_STATUS
+wlan_mlme_get_vht_enable2x2(struct wlan_objmgr_psoc *psoc, bool *value);
 
 /**
  * wlan_mlme_set_vht_enable2x2() - Enables/disables VHT Tx/Rx MCS values for 2x2
@@ -1776,8 +1773,8 @@ QDF_STATUS wlan_mlme_get_vht_enable2x2(struct wlan_objmgr_psoc *psoc,
  *
  * Return: QDF_STATUS
  */
-QDF_STATUS wlan_mlme_set_vht_enable2x2(struct wlan_objmgr_psoc *psoc,
-				       bool value);
+QDF_STATUS
+wlan_mlme_set_vht_enable2x2(struct wlan_objmgr_psoc *psoc, bool value);
 
 /**
  * wlan_mlme_get_vht_enable_paid() - Enables/disables paid feature
@@ -1786,8 +1783,8 @@ QDF_STATUS wlan_mlme_set_vht_enable2x2(struct wlan_objmgr_psoc *psoc,
  *
  * Return: QDF_STATUS
  */
-QDF_STATUS wlan_mlme_get_vht_enable_paid(struct wlan_objmgr_psoc *psoc,
-					 bool *value);
+QDF_STATUS
+wlan_mlme_get_vht_enable_paid(struct wlan_objmgr_psoc *psoc, bool *value);
 
 /**
  * wlan_mlme_get_vht_enable_gid() - Enables/disables VHT GID feature
@@ -1796,8 +1793,8 @@ QDF_STATUS wlan_mlme_get_vht_enable_paid(struct wlan_objmgr_psoc *psoc,
  *
  * Return: QDF_STATUS
  */
-QDF_STATUS wlan_mlme_get_vht_enable_gid(struct wlan_objmgr_psoc *psoc,
-					bool *value);
+QDF_STATUS
+wlan_mlme_get_vht_enable_gid(struct wlan_objmgr_psoc *psoc, bool *value);
 
 /**
  * wlan_mlme_get_vht_for_24ghz() - Enables/disables VHT for 24 ghz
@@ -1806,8 +1803,8 @@ QDF_STATUS wlan_mlme_get_vht_enable_gid(struct wlan_objmgr_psoc *psoc,
  *
  * Return: QDF_STATUS
  */
-QDF_STATUS wlan_mlme_get_vht_for_24ghz(struct wlan_objmgr_psoc *psoc,
-				       bool *value);
+QDF_STATUS
+wlan_mlme_get_vht_for_24ghz(struct wlan_objmgr_psoc *psoc, bool *value);
 
 /**
  * wlan_mlme_get_vendor_vht_for_24ghz() - nables/disables vendor VHT for 24 ghz
@@ -1816,8 +1813,8 @@ QDF_STATUS wlan_mlme_get_vht_for_24ghz(struct wlan_objmgr_psoc *psoc,
  *
  * Return: QDF_STATUS
  */
-QDF_STATUS wlan_mlme_get_vendor_vht_for_24ghz(struct wlan_objmgr_psoc *psoc,
-					      bool *value);
+QDF_STATUS
+wlan_mlme_get_vendor_vht_for_24ghz(struct wlan_objmgr_psoc *psoc, bool *value);
 
 /**
  * mlme_update_vht_cap() - update vht capabilities
@@ -1826,8 +1823,8 @@ QDF_STATUS wlan_mlme_get_vendor_vht_for_24ghz(struct wlan_objmgr_psoc *psoc,
  *
  * Return: QDF_STATUS
  */
-QDF_STATUS mlme_update_vht_cap(struct wlan_objmgr_psoc *psoc,
-			       struct wma_tgt_vht_cap *cfg);
+QDF_STATUS
+mlme_update_vht_cap(struct wlan_objmgr_psoc *psoc, struct wma_tgt_vht_cap *cfg);
 
 /**
  * mlme_update_nss_vht_cap() - Update the number of spatial

+ 59 - 71
components/mlme/dispatcher/inc/wlan_mlme_ucfg_api.h

@@ -1777,9 +1777,8 @@ QDF_STATUS ucfg_mlme_set_enable_bcast_probe_rsp(struct wlan_objmgr_psoc *psoc,
  *
  * Return: QDF_STATUS_SUCCESS or QDF_STATUS_FAILURE
  */
-static inline
-QDF_STATUS ucfg_mlme_set_vht_ch_width(struct wlan_objmgr_psoc *psoc,
-				      uint8_t value)
+static inline QDF_STATUS
+ucfg_mlme_set_vht_ch_width(struct wlan_objmgr_psoc *psoc, uint8_t value)
 {
 	return wlan_mlme_cfg_set_vht_chan_width(psoc, value);
 }
@@ -1794,9 +1793,8 @@ QDF_STATUS ucfg_mlme_set_vht_ch_width(struct wlan_objmgr_psoc *psoc,
  *
  * Return: QDF_STATUS_SUCCESS or QDF_STATUS_FAILURE
  */
-static inline
-QDF_STATUS ucfg_mlme_cfg_get_vht_chan_width(struct wlan_objmgr_psoc *psoc,
-					    uint8_t *value)
+static inline QDF_STATUS
+ucfg_mlme_cfg_get_vht_chan_width(struct wlan_objmgr_psoc *psoc, uint8_t *value)
 {
 	return wlan_mlme_cfg_get_vht_chan_width(psoc, value);
 }
@@ -1812,8 +1810,7 @@ QDF_STATUS ucfg_mlme_cfg_get_vht_chan_width(struct wlan_objmgr_psoc *psoc,
  * Return: QDF_STATUS_SUCCESS or QDF_STATUS_FAILURE
  */
 static inline QDF_STATUS
-ucfg_mlme_cfg_set_vht_ldpc_coding_cap(struct wlan_objmgr_psoc *psoc,
-				      bool value)
+ucfg_mlme_cfg_set_vht_ldpc_coding_cap(struct wlan_objmgr_psoc *psoc, bool value)
 {
 	return wlan_mlme_cfg_set_vht_ldpc_coding_cap(psoc, value);
 }
@@ -1829,8 +1826,7 @@ ucfg_mlme_cfg_set_vht_ldpc_coding_cap(struct wlan_objmgr_psoc *psoc,
  * Return: QDF_STATUS_SUCCESS or QDF_STATUS_FAILURE
  */
 static inline QDF_STATUS
-ucfg_mlme_cfg_get_short_gi_160_mhz(struct wlan_objmgr_psoc *psoc,
-				   bool *value)
+ucfg_mlme_cfg_get_short_gi_160_mhz(struct wlan_objmgr_psoc *psoc, bool *value)
 {
 	return wlan_mlme_cfg_get_short_gi_160_mhz(psoc, value);
 }
@@ -1847,8 +1843,7 @@ ucfg_mlme_cfg_get_short_gi_160_mhz(struct wlan_objmgr_psoc *psoc,
  * Return: QDF_STATUS_SUCCESS or QDF_STATUS_FAILURE
  */
 static inline QDF_STATUS
-ucfg_mlme_cfg_set_short_gi_160_mhz(struct wlan_objmgr_psoc *psoc,
-				   bool value)
+ucfg_mlme_cfg_set_short_gi_160_mhz(struct wlan_objmgr_psoc *psoc, bool value)
 {
 	return wlan_mlme_cfg_set_short_gi_160_mhz(psoc, value);
 }
@@ -1865,8 +1860,7 @@ ucfg_mlme_cfg_set_short_gi_160_mhz(struct wlan_objmgr_psoc *psoc,
  * Return: QDF_STATUS_SUCCESS or QDF_STATUS_FAILURE
  */
 static inline QDF_STATUS
-ucfg_mlme_cfg_get_vht_tx_stbc(struct wlan_objmgr_psoc *psoc,
-			      bool *value)
+ucfg_mlme_cfg_get_vht_tx_stbc(struct wlan_objmgr_psoc *psoc, bool *value)
 {
 	return wlan_mlme_cfg_get_vht_tx_stbc(psoc, value);
 }
@@ -1883,8 +1877,7 @@ ucfg_mlme_cfg_get_vht_tx_stbc(struct wlan_objmgr_psoc *psoc,
  * Return: QDF_STATUS_SUCCESS or QDF_STATUS_FAILURE
  */
 static inline QDF_STATUS
-ucfg_mlme_cfg_get_vht_rx_stbc(struct wlan_objmgr_psoc *psoc,
-			      bool *value)
+ucfg_mlme_cfg_get_vht_rx_stbc(struct wlan_objmgr_psoc *psoc, bool *value)
 {
 	return wlan_mlme_cfg_get_vht_rx_stbc(psoc, value);
 }
@@ -1899,9 +1892,9 @@ ucfg_mlme_cfg_get_vht_rx_stbc(struct wlan_objmgr_psoc *psoc,
  *
  * Return: QDF_STATUS_SUCCESS or QDF_STATUS_FAILURE
  */
-static inline QDF_STATUS
-ucfg_mlme_cfg_set_vht_tx_bfee_ant_supp(struct wlan_objmgr_psoc *psoc,
-				       uint8_t value)
+static inline
+QDF_STATUS ucfg_mlme_cfg_set_vht_tx_bfee_ant_supp(struct wlan_objmgr_psoc *psoc,
+						  uint8_t value)
 {
 	return wlan_mlme_cfg_set_vht_tx_bfee_ant_supp(psoc, value);
 }
@@ -1916,9 +1909,9 @@ ucfg_mlme_cfg_set_vht_tx_bfee_ant_supp(struct wlan_objmgr_psoc *psoc,
  *
  * Return: QDF_STATUS_SUCCESS or QDF_STATUS_FAILURE
  */
-static inline QDF_STATUS
-ucfg_mlme_cfg_get_vht_tx_bfee_ant_supp(struct wlan_objmgr_psoc *psoc,
-				       uint8_t *value)
+static inline
+QDF_STATUS ucfg_mlme_cfg_get_vht_tx_bfee_ant_supp(struct wlan_objmgr_psoc *psoc,
+						  uint8_t *value)
 {
 	return wlan_mlme_cfg_get_vht_tx_bfee_ant_supp(psoc, value);
 }
@@ -1935,8 +1928,7 @@ ucfg_mlme_cfg_get_vht_tx_bfee_ant_supp(struct wlan_objmgr_psoc *psoc,
  * Return: QDF_STATUS_SUCCESS or QDF_STATUS_FAILURE
  */
 static inline QDF_STATUS
-ucfg_mlme_cfg_get_vht_rx_mcs_map(struct wlan_objmgr_psoc *psoc,
-				 uint32_t *value)
+ucfg_mlme_cfg_get_vht_rx_mcs_map(struct wlan_objmgr_psoc *psoc, uint32_t *value)
 {
 	return wlan_mlme_cfg_get_vht_rx_mcs_map(psoc, value);
 }
@@ -1952,8 +1944,7 @@ ucfg_mlme_cfg_get_vht_rx_mcs_map(struct wlan_objmgr_psoc *psoc,
  * Return: QDF_STATUS_SUCCESS or QDF_STATUS_FAILURE
  */
 static inline QDF_STATUS
-ucfg_mlme_cfg_set_vht_rx_mcs_map(struct wlan_objmgr_psoc *psoc,
-				 uint32_t value)
+ucfg_mlme_cfg_set_vht_rx_mcs_map(struct wlan_objmgr_psoc *psoc, uint32_t value)
 {
 	return wlan_mlme_cfg_set_vht_rx_mcs_map(psoc, value);
 }
@@ -1970,8 +1961,7 @@ ucfg_mlme_cfg_set_vht_rx_mcs_map(struct wlan_objmgr_psoc *psoc,
  * Return: QDF_STATUS_SUCCESS or QDF_STATUS_FAILURE
  */
 static inline QDF_STATUS
-ucfg_mlme_cfg_get_vht_tx_mcs_map(struct wlan_objmgr_psoc *psoc,
-				 uint32_t *value)
+ucfg_mlme_cfg_get_vht_tx_mcs_map(struct wlan_objmgr_psoc *psoc, uint32_t *value)
 {
 	return wlan_mlme_cfg_get_vht_tx_mcs_map(psoc, value);
 }
@@ -1987,8 +1977,7 @@ ucfg_mlme_cfg_get_vht_tx_mcs_map(struct wlan_objmgr_psoc *psoc,
  * Return: QDF_STATUS_SUCCESS or QDF_STATUS_FAILURE
  */
 static inline QDF_STATUS
-ucfg_mlme_cfg_set_vht_tx_mcs_map(struct wlan_objmgr_psoc *psoc,
-				 uint32_t value)
+ucfg_mlme_cfg_set_vht_tx_mcs_map(struct wlan_objmgr_psoc *psoc, uint32_t value)
 {
 	return wlan_mlme_cfg_set_vht_tx_mcs_map(psoc, value);
 }
@@ -2334,9 +2323,9 @@ ucfg_mlme_get_vendor_vht_for_24ghz(struct wlan_objmgr_psoc *psoc, bool *value)
  *
  * Return: QDF_STATUS_SUCCESS or QDF_STATUS_FAILURE
  */
-static inline QDF_STATUS
-ucfg_mlme_update_vht_cap(struct wlan_objmgr_psoc *psoc,
-			 struct wma_tgt_vht_cap *cfg)
+static inline
+QDF_STATUS ucfg_mlme_update_vht_cap(struct wlan_objmgr_psoc *psoc,
+				    struct wma_tgt_vht_cap *cfg)
 {
 	return mlme_update_vht_cap(psoc, cfg);
 }
@@ -2587,8 +2576,7 @@ QDF_STATUS ucfg_mlme_ibss_power_save_setup(struct wlan_objmgr_psoc *psoc,
  * Return: QDF Status
  */
 static inline QDF_STATUS
-ucfg_mlme_get_wmm_dir_ac_vi(struct wlan_objmgr_psoc *psoc,
-			    uint8_t *value)
+ucfg_mlme_get_wmm_dir_ac_vi(struct wlan_objmgr_psoc *psoc, uint8_t *value)
 {
 	return wlan_mlme_get_wmm_dir_ac_vi(psoc, value);
 }
@@ -2603,9 +2591,9 @@ ucfg_mlme_get_wmm_dir_ac_vi(struct wlan_objmgr_psoc *psoc,
  *
  * Return: QDF Status
  */
-static inline QDF_STATUS
-ucfg_mlme_get_wmm_nom_msdu_size_ac_vi(struct wlan_objmgr_psoc *psoc,
-				      uint16_t *value)
+static inline
+QDF_STATUS ucfg_mlme_get_wmm_nom_msdu_size_ac_vi(struct wlan_objmgr_psoc *psoc,
+						 uint16_t *value)
 {
 	return wlan_mlme_get_wmm_nom_msdu_size_ac_vi(psoc, value);
 }
@@ -2620,9 +2608,9 @@ ucfg_mlme_get_wmm_nom_msdu_size_ac_vi(struct wlan_objmgr_psoc *psoc,
  *
  * Return: QDF Status
  */
-static inline QDF_STATUS
-ucfg_mlme_get_wmm_mean_data_rate_ac_vi(struct wlan_objmgr_psoc *psoc,
-				       uint32_t *value)
+static inline
+QDF_STATUS ucfg_mlme_get_wmm_mean_data_rate_ac_vi(struct wlan_objmgr_psoc *psoc,
+						  uint32_t *value)
 {
 	return wlan_mlme_get_wmm_mean_data_rate_ac_vi(psoc, value);
 }
@@ -2637,9 +2625,9 @@ ucfg_mlme_get_wmm_mean_data_rate_ac_vi(struct wlan_objmgr_psoc *psoc,
  *
  * Return: QDF Status
  */
-static inline QDF_STATUS
-ucfg_mlme_get_wmm_min_phy_rate_ac_vi(struct wlan_objmgr_psoc *psoc,
-				     uint32_t *value)
+static inline
+QDF_STATUS ucfg_mlme_get_wmm_min_phy_rate_ac_vi(struct wlan_objmgr_psoc *psoc,
+						uint32_t *value)
 {
 	return wlan_mlme_get_wmm_min_phy_rate_ac_vi(psoc, value);
 }
@@ -2720,9 +2708,9 @@ ucfg_mlme_get_wmm_dir_ac_be(struct wlan_objmgr_psoc *psoc, uint8_t *value)
  *
  * Return: QDF Status
  */
-static inline QDF_STATUS
-ucfg_mlme_get_wmm_nom_msdu_size_ac_be(struct wlan_objmgr_psoc *psoc,
-				      uint16_t *value)
+static inline
+QDF_STATUS ucfg_mlme_get_wmm_nom_msdu_size_ac_be(struct wlan_objmgr_psoc *psoc,
+						 uint16_t *value)
 {
 	return wlan_mlme_get_wmm_nom_msdu_size_ac_be(psoc, value);
 }
@@ -2737,9 +2725,9 @@ ucfg_mlme_get_wmm_nom_msdu_size_ac_be(struct wlan_objmgr_psoc *psoc,
  *
  * Return: QDF Status
  */
-static inline QDF_STATUS
-ucfg_mlme_get_wmm_mean_data_rate_ac_be(struct wlan_objmgr_psoc *psoc,
-				       uint32_t *value)
+static inline
+QDF_STATUS ucfg_mlme_get_wmm_mean_data_rate_ac_be(struct wlan_objmgr_psoc *psoc,
+						  uint32_t *value)
 {
 	return wlan_mlme_get_wmm_mean_data_rate_ac_be(psoc, value);
 }
@@ -2754,9 +2742,9 @@ ucfg_mlme_get_wmm_mean_data_rate_ac_be(struct wlan_objmgr_psoc *psoc,
  *
  * Return: QDF Status
  */
-static inline QDF_STATUS
-ucfg_mlme_get_wmm_min_phy_rate_ac_be(struct wlan_objmgr_psoc *psoc,
-				     uint32_t *value)
+static inline
+QDF_STATUS ucfg_mlme_get_wmm_min_phy_rate_ac_be(struct wlan_objmgr_psoc *psoc,
+						uint32_t *value)
 {
 	return wlan_mlme_get_wmm_min_phy_rate_ac_be(psoc, value);
 }
@@ -2837,9 +2825,9 @@ ucfg_mlme_get_wmm_dir_ac_bk(struct wlan_objmgr_psoc *psoc, uint8_t *value)
  *
  * Return: QDF Status
  */
-static inline QDF_STATUS
-ucfg_mlme_get_wmm_nom_msdu_size_ac_bk(struct wlan_objmgr_psoc *psoc,
-				      uint16_t *value)
+static inline
+QDF_STATUS ucfg_mlme_get_wmm_nom_msdu_size_ac_bk(struct wlan_objmgr_psoc *psoc,
+						 uint16_t *value)
 {
 	return wlan_mlme_get_wmm_nom_msdu_size_ac_bk(psoc, value);
 }
@@ -2854,9 +2842,9 @@ ucfg_mlme_get_wmm_nom_msdu_size_ac_bk(struct wlan_objmgr_psoc *psoc,
  *
  * Return: QDF Status
  */
-static inline QDF_STATUS
-ucfg_mlme_get_wmm_mean_data_rate_ac_bk(struct wlan_objmgr_psoc *psoc,
-				       uint32_t *value)
+static inline
+QDF_STATUS ucfg_mlme_get_wmm_mean_data_rate_ac_bk(struct wlan_objmgr_psoc *psoc,
+						  uint32_t *value)
 {
 	return wlan_mlme_get_wmm_mean_data_rate_ac_bk(psoc, value);
 }
@@ -2871,9 +2859,9 @@ ucfg_mlme_get_wmm_mean_data_rate_ac_bk(struct wlan_objmgr_psoc *psoc,
  *
  * Return: QDF Status
  */
-static inline QDF_STATUS
-ucfg_mlme_get_wmm_min_phy_rate_ac_bk(struct wlan_objmgr_psoc *psoc,
-				     uint32_t *value)
+static inline
+QDF_STATUS ucfg_mlme_get_wmm_min_phy_rate_ac_bk(struct wlan_objmgr_psoc *psoc,
+						uint32_t *value)
 {
 	return wlan_mlme_get_wmm_min_phy_rate_ac_bk(psoc, value);
 }
@@ -2955,9 +2943,9 @@ ucfg_mlme_get_wmm_mode(struct wlan_objmgr_psoc *psoc, uint8_t *value)
  *
  * Return: QDF_STATUS_SUCCESS or QDF_STATUS_FAILURE
  */
-static inline
-QDF_STATUS ucfg_mlme_update_tgt_he_cap(struct wlan_objmgr_psoc *psoc,
-				       struct wma_tgt_cfg *cfg)
+static inline QDF_STATUS
+ucfg_mlme_update_tgt_he_cap(struct wlan_objmgr_psoc *psoc,
+			    struct wma_tgt_cfg *cfg)
 {
 	return mlme_update_tgt_he_caps_in_cfg(psoc, cfg);
 }
@@ -3058,9 +3046,9 @@ ucfg_mlme_get_wmm_uapsd_mask(struct wlan_objmgr_psoc *psoc, uint8_t *value)
  *
  * Return: QDF Status
  */
-static inline QDF_STATUS
-ucfg_mlme_get_implicit_qos_is_enabled(struct wlan_objmgr_psoc *psoc,
-				      bool *value)
+static inline
+QDF_STATUS ucfg_mlme_get_implicit_qos_is_enabled(struct wlan_objmgr_psoc *psoc,
+						 bool *value)
 {
 	return wlan_mlme_get_implicit_qos_is_enabled(psoc, value);
 }
@@ -3102,9 +3090,9 @@ ucfg_mlme_is_ese_enabled(struct wlan_objmgr_psoc *psoc, bool *val);
  *
  * Return: None
  */
-static inline void
-ucfg_mlme_get_is_ts_burst_size_enable(struct wlan_objmgr_psoc *psoc,
-				      bool *value)
+static inline
+void ucfg_mlme_get_is_ts_burst_size_enable(struct wlan_objmgr_psoc *psoc,
+					   bool *value)
 {
 	wlan_mlme_get_is_ts_burst_size_enable(psoc, value);
 }

+ 39 - 49
components/mlme/dispatcher/src/wlan_mlme_api.c

@@ -1005,7 +1005,7 @@ QDF_STATUS wlan_mlme_get_wmm_nom_msdu_size_ac_vo(struct wlan_objmgr_psoc *psoc,
 
 QDF_STATUS
 wlan_mlme_get_wmm_mean_data_rate_ac_vo(struct wlan_objmgr_psoc *psoc,
-				       uint32_t *value)
+					uint32_t *value)
 {
 	struct wlan_mlme_psoc_obj *mlme_obj;
 
@@ -1031,8 +1031,8 @@ QDF_STATUS wlan_mlme_get_wmm_min_phy_rate_ac_vo(struct wlan_objmgr_psoc *psoc,
 	return QDF_STATUS_SUCCESS;
 }
 
-QDF_STATUS wlan_mlme_get_wmm_sba_ac_vo(struct wlan_objmgr_psoc *psoc,
-				       uint16_t *value)
+QDF_STATUS
+wlan_mlme_get_wmm_sba_ac_vo(struct wlan_objmgr_psoc *psoc, uint16_t *value)
 {
 	struct wlan_mlme_psoc_obj *mlme_obj;
 
@@ -1047,7 +1047,7 @@ QDF_STATUS wlan_mlme_get_wmm_sba_ac_vo(struct wlan_objmgr_psoc *psoc,
 }
 
 QDF_STATUS wlan_mlme_get_wmm_uapsd_vo_srv_intv(struct wlan_objmgr_psoc *psoc,
-					       uint32_t *value)
+						uint32_t *value)
 {
 	struct wlan_mlme_psoc_obj *mlme_obj;
 
@@ -1061,7 +1061,7 @@ QDF_STATUS wlan_mlme_get_wmm_uapsd_vo_srv_intv(struct wlan_objmgr_psoc *psoc,
 }
 
 QDF_STATUS wlan_mlme_get_wmm_uapsd_vo_sus_intv(struct wlan_objmgr_psoc *psoc,
-					       uint32_t *value)
+						uint32_t *value)
 {
 	struct wlan_mlme_psoc_obj *mlme_obj;
 
@@ -1074,8 +1074,8 @@ QDF_STATUS wlan_mlme_get_wmm_uapsd_vo_sus_intv(struct wlan_objmgr_psoc *psoc,
 	return QDF_STATUS_SUCCESS;
 }
 
-QDF_STATUS wlan_mlme_get_wmm_dir_ac_vi(struct wlan_objmgr_psoc *psoc,
-				       uint8_t *value)
+QDF_STATUS
+wlan_mlme_get_wmm_dir_ac_vi(struct wlan_objmgr_psoc *psoc, uint8_t *value)
 {
 	struct wlan_mlme_psoc_obj *mlme_obj;
 
@@ -1105,7 +1105,7 @@ QDF_STATUS wlan_mlme_get_wmm_nom_msdu_size_ac_vi(struct wlan_objmgr_psoc *psoc,
 
 QDF_STATUS
 wlan_mlme_get_wmm_mean_data_rate_ac_vi(struct wlan_objmgr_psoc *psoc,
-				       uint32_t *value)
+					uint32_t *value)
 {
 	struct wlan_mlme_psoc_obj *mlme_obj;
 
@@ -1118,9 +1118,8 @@ wlan_mlme_get_wmm_mean_data_rate_ac_vi(struct wlan_objmgr_psoc *psoc,
 	return QDF_STATUS_SUCCESS;
 }
 
-QDF_STATUS
-wlan_mlme_get_wmm_min_phy_rate_ac_vi(struct wlan_objmgr_psoc *psoc,
-				     uint32_t *value)
+QDF_STATUS wlan_mlme_get_wmm_min_phy_rate_ac_vi(struct wlan_objmgr_psoc *psoc,
+						uint32_t *value)
 {
 	struct wlan_mlme_psoc_obj *mlme_obj;
 
@@ -1134,7 +1133,7 @@ wlan_mlme_get_wmm_min_phy_rate_ac_vi(struct wlan_objmgr_psoc *psoc,
 }
 
 QDF_STATUS wlan_mlme_get_wmm_sba_ac_vi(struct wlan_objmgr_psoc *psoc,
-				       uint16_t *value)
+					uint16_t *value)
 {
 	struct wlan_mlme_psoc_obj *mlme_obj;
 
@@ -1206,7 +1205,7 @@ QDF_STATUS wlan_mlme_get_wmm_nom_msdu_size_ac_be(struct wlan_objmgr_psoc *psoc,
 
 QDF_STATUS
 wlan_mlme_get_wmm_mean_data_rate_ac_be(struct wlan_objmgr_psoc *psoc,
-				       uint32_t *value)
+					uint32_t *value)
 {
 	struct wlan_mlme_psoc_obj *mlme_obj;
 
@@ -1219,9 +1218,8 @@ wlan_mlme_get_wmm_mean_data_rate_ac_be(struct wlan_objmgr_psoc *psoc,
 	return QDF_STATUS_SUCCESS;
 }
 
-QDF_STATUS
-wlan_mlme_get_wmm_min_phy_rate_ac_be(struct wlan_objmgr_psoc *psoc,
-				     uint32_t *value)
+QDF_STATUS wlan_mlme_get_wmm_min_phy_rate_ac_be(struct wlan_objmgr_psoc *psoc,
+						uint32_t *value)
 {
 	struct wlan_mlme_psoc_obj *mlme_obj;
 
@@ -1249,7 +1247,7 @@ wlan_mlme_get_wmm_sba_ac_be(struct wlan_objmgr_psoc *psoc, uint16_t *value)
 }
 
 QDF_STATUS wlan_mlme_get_wmm_uapsd_be_srv_intv(struct wlan_objmgr_psoc *psoc,
-					       uint32_t *value)
+						uint32_t *value)
 {
 	struct wlan_mlme_psoc_obj *mlme_obj;
 
@@ -1263,7 +1261,7 @@ QDF_STATUS wlan_mlme_get_wmm_uapsd_be_srv_intv(struct wlan_objmgr_psoc *psoc,
 }
 
 QDF_STATUS wlan_mlme_get_wmm_uapsd_be_sus_intv(struct wlan_objmgr_psoc *psoc,
-					       uint32_t *value)
+						uint32_t *value)
 {
 	struct wlan_mlme_psoc_obj *mlme_obj;
 
@@ -1306,7 +1304,7 @@ QDF_STATUS wlan_mlme_get_wmm_nom_msdu_size_ac_bk(struct wlan_objmgr_psoc *psoc,
 
 QDF_STATUS
 wlan_mlme_get_wmm_mean_data_rate_ac_bk(struct wlan_objmgr_psoc *psoc,
-				       uint32_t *value)
+					uint32_t *value)
 {
 	struct wlan_mlme_psoc_obj *mlme_obj;
 
@@ -1319,9 +1317,8 @@ wlan_mlme_get_wmm_mean_data_rate_ac_bk(struct wlan_objmgr_psoc *psoc,
 	return QDF_STATUS_SUCCESS;
 }
 
-QDF_STATUS
-wlan_mlme_get_wmm_min_phy_rate_ac_bk(struct wlan_objmgr_psoc *psoc,
-				     uint32_t *value)
+QDF_STATUS wlan_mlme_get_wmm_min_phy_rate_ac_bk(struct wlan_objmgr_psoc *psoc,
+						uint32_t *value)
 {
 	struct wlan_mlme_psoc_obj *mlme_obj;
 
@@ -1420,9 +1417,8 @@ wlan_mlme_get_wmm_uapsd_mask(struct wlan_objmgr_psoc *psoc, uint8_t *value)
 	return QDF_STATUS_SUCCESS;
 }
 
-QDF_STATUS
-wlan_mlme_get_implicit_qos_is_enabled(struct wlan_objmgr_psoc *psoc,
-				      bool *value)
+QDF_STATUS wlan_mlme_get_implicit_qos_is_enabled(struct wlan_objmgr_psoc *psoc,
+						 bool *value)
 {
 	struct wlan_mlme_psoc_obj *mlme_obj;
 
@@ -1437,7 +1433,7 @@ wlan_mlme_get_implicit_qos_is_enabled(struct wlan_objmgr_psoc *psoc,
 
 #ifdef FEATURE_WLAN_ESE
 void wlan_mlme_get_inactivity_interval(struct wlan_objmgr_psoc *psoc,
-				       uint32_t *value)
+					uint32_t *value)
 {
 	struct wlan_mlme_psoc_obj *mlme_obj;
 
@@ -2185,9 +2181,8 @@ QDF_STATUS mlme_set_wep_key(struct wlan_mlme_wep_cfg *wep_params,
 			    enum wep_key_id wep_keyid, uint8_t *key_to_set,
 			    qdf_size_t len)
 {
-	if (len == 0) {
+	if (len == 0)
 		return QDF_STATUS_E_FAILURE;
-	}
 
 	mlme_debug("WEP set key for key_id:%d key_len:%zd", wep_keyid, len);
 	switch (wep_keyid) {
@@ -2306,9 +2301,8 @@ wlan_mlme_cfg_get_vht_chan_width(struct wlan_objmgr_psoc *psoc, uint8_t *value)
 	return QDF_STATUS_SUCCESS;
 }
 
-QDF_STATUS
-wlan_mlme_cfg_set_vht_ldpc_coding_cap(struct wlan_objmgr_psoc *psoc,
-				      bool value)
+QDF_STATUS wlan_mlme_cfg_set_vht_ldpc_coding_cap(struct wlan_objmgr_psoc *psoc,
+						 bool value)
 {
 	struct wlan_mlme_psoc_obj *mlme_obj;
 
@@ -2380,7 +2374,7 @@ wlan_mlme_cfg_get_vht_rx_stbc(struct wlan_objmgr_psoc *psoc, bool *value)
 
 QDF_STATUS
 wlan_mlme_cfg_set_vht_tx_bfee_ant_supp(struct wlan_objmgr_psoc *psoc,
-				       uint8_t value)
+					uint8_t value)
 {
 	struct wlan_mlme_psoc_obj *mlme_obj;
 
@@ -2395,7 +2389,7 @@ wlan_mlme_cfg_set_vht_tx_bfee_ant_supp(struct wlan_objmgr_psoc *psoc,
 
 QDF_STATUS
 wlan_mlme_cfg_get_vht_tx_bfee_ant_supp(struct wlan_objmgr_psoc *psoc,
-				       uint8_t *value)
+					uint8_t *value)
 {
 	struct wlan_mlme_psoc_obj *mlme_obj;
 
@@ -2408,9 +2402,8 @@ wlan_mlme_cfg_get_vht_tx_bfee_ant_supp(struct wlan_objmgr_psoc *psoc,
 	return QDF_STATUS_SUCCESS;
 }
 
-QDF_STATUS
-wlan_mlme_cfg_get_vht_rx_mcs_map(struct wlan_objmgr_psoc *psoc,
-				 uint32_t *value)
+QDF_STATUS wlan_mlme_cfg_get_vht_rx_mcs_map(struct wlan_objmgr_psoc *psoc,
+					    uint32_t *value)
 {
 	struct wlan_mlme_psoc_obj *mlme_obj;
 
@@ -2423,9 +2416,8 @@ wlan_mlme_cfg_get_vht_rx_mcs_map(struct wlan_objmgr_psoc *psoc,
 	return QDF_STATUS_SUCCESS;
 }
 
-QDF_STATUS
-wlan_mlme_cfg_set_vht_rx_mcs_map(struct wlan_objmgr_psoc *psoc,
-				 uint32_t value)
+QDF_STATUS wlan_mlme_cfg_set_vht_rx_mcs_map(struct wlan_objmgr_psoc *psoc,
+					    uint32_t value)
 {
 	struct wlan_mlme_psoc_obj *mlme_obj;
 
@@ -2438,9 +2430,8 @@ wlan_mlme_cfg_set_vht_rx_mcs_map(struct wlan_objmgr_psoc *psoc,
 	return QDF_STATUS_SUCCESS;
 }
 
-QDF_STATUS
-wlan_mlme_cfg_get_vht_tx_mcs_map(struct wlan_objmgr_psoc *psoc,
-				 uint32_t *value)
+QDF_STATUS wlan_mlme_cfg_get_vht_tx_mcs_map(struct wlan_objmgr_psoc *psoc,
+					    uint32_t *value)
 {
 	struct wlan_mlme_psoc_obj *mlme_obj;
 
@@ -2453,9 +2444,8 @@ wlan_mlme_cfg_get_vht_tx_mcs_map(struct wlan_objmgr_psoc *psoc,
 	return QDF_STATUS_SUCCESS;
 }
 
-QDF_STATUS
-wlan_mlme_cfg_set_vht_tx_mcs_map(struct wlan_objmgr_psoc *psoc,
-				 uint32_t value)
+QDF_STATUS wlan_mlme_cfg_set_vht_tx_mcs_map(struct wlan_objmgr_psoc *psoc,
+					    uint32_t value)
 {
 	struct wlan_mlme_psoc_obj *mlme_obj;
 
@@ -2470,7 +2460,7 @@ wlan_mlme_cfg_set_vht_tx_mcs_map(struct wlan_objmgr_psoc *psoc,
 
 QDF_STATUS
 wlan_mlme_cfg_set_vht_rx_supp_data_rate(struct wlan_objmgr_psoc *psoc,
-				        uint32_t value)
+					uint32_t value)
 {
 	struct wlan_mlme_psoc_obj *mlme_obj;
 
@@ -2485,7 +2475,7 @@ wlan_mlme_cfg_set_vht_rx_supp_data_rate(struct wlan_objmgr_psoc *psoc,
 
 QDF_STATUS
 wlan_mlme_cfg_set_vht_tx_supp_data_rate(struct wlan_objmgr_psoc *psoc,
-				        uint32_t value)
+					uint32_t value)
 {
 	struct wlan_mlme_psoc_obj *mlme_obj;
 
@@ -2725,8 +2715,8 @@ wlan_mlme_get_vendor_vht_for_24ghz(struct wlan_objmgr_psoc *psoc, bool *value)
 	return QDF_STATUS_SUCCESS;
 }
 
-QDF_STATUS mlme_update_vht_cap(struct wlan_objmgr_psoc *psoc,
-			       struct wma_tgt_vht_cap *cfg)
+QDF_STATUS
+mlme_update_vht_cap(struct wlan_objmgr_psoc *psoc, struct wma_tgt_vht_cap *cfg)
 {
 	struct wlan_mlme_psoc_obj *mlme_obj;
 	struct mlme_vht_capabilities_info *vht_cap_info;

+ 40 - 39
core/sme/src/csr/csr_api_roam.c

@@ -14366,7 +14366,7 @@ QDF_STATUS csr_send_join_req_msg(struct mac_context *mac, uint32_t sessionId,
 	tSirMacRateSet OpRateSet;
 	tSirMacRateSet ExRateSet;
 	struct csr_roam_session *pSession = CSR_GET_SESSION(mac, sessionId);
-	uint32_t dwTmp, ucDot11Mode = 0;
+	uint32_t dw_tmp, dot11mode = 0;
 	uint8_t *wpaRsnIE = NULL;
 	uint8_t txBFCsnValue = 0;
 	tSirSmeJoinReq *csr_join_req;
@@ -14491,19 +14491,19 @@ QDF_STATUS csr_send_join_req_msg(struct mac_context *mac, uint32_t sessionId,
 			mac->scan.countryCodeCurrent[0],
 			mac->scan.countryCodeCurrent[1]);
 		/* bsstype */
-		dwTmp = csr_translate_bsstype_to_mac_type
+		dw_tmp = csr_translate_bsstype_to_mac_type
 						(pProfile->BSSType);
-		csr_join_req->bsstype = dwTmp;
+		csr_join_req->bsstype = dw_tmp;
 		/* dot11mode */
-		ucDot11Mode =
+		dot11mode =
 			csr_translate_to_wni_cfg_dot11_mode(mac,
 							    pSession->bssParams.
 							    uCfgDot11Mode);
 		if (pBssDescription->channelId <= 14 &&
 		    !mac->mlme_cfg->vht_caps.vht_cap_info.b24ghz_band &&
-		    WNI_CFG_DOT11_MODE_11AC == ucDot11Mode) {
+		    dot11mode == WNI_CFG_DOT11_MODE_11AC) {
 			/* Need to disable VHT operation in 2.4 GHz band */
-			ucDot11Mode = WNI_CFG_DOT11_MODE_11N;
+			dot11mode = WNI_CFG_DOT11_MODE_11N;
 		}
 
 		if (IS_5G_CH(pBssDescription->channelId))
@@ -14519,10 +14519,10 @@ QDF_STATUS csr_send_join_req_msg(struct mac_context *mac, uint32_t sessionId,
 
 		if (pSession->nss > csr_get_nss_supported_by_sta_and_ap(
 						&pIes->VHTCaps,
-						&pIes->HTCaps, ucDot11Mode)) {
+						&pIes->HTCaps, dot11mode)) {
 			pSession->nss = csr_get_nss_supported_by_sta_and_ap(
 						&pIes->VHTCaps, &pIes->HTCaps,
-						ucDot11Mode);
+						dot11mode);
 			pSession->vdev_nss = pSession->nss;
 		}
 
@@ -14545,7 +14545,7 @@ QDF_STATUS csr_send_join_req_msg(struct mac_context *mac, uint32_t sessionId,
 		vendor_ap_search_attr.mac_addr = &pBssDescription->bssId[0];
 		vendor_ap_search_attr.nss = csr_get_nss_supported_by_sta_and_ap(
 						&pIes->VHTCaps, &pIes->HTCaps,
-						ucDot11Mode);
+						dot11mode);
 		vendor_ap_search_attr.ht_cap = pIes->HTCaps.present;
 		vendor_ap_search_attr.vht_cap = pIes->VHTCaps.present;
 		vendor_ap_search_attr.enable_2g =
@@ -14617,16 +14617,16 @@ QDF_STATUS csr_send_join_req_msg(struct mac_context *mac, uint32_t sessionId,
 		if (mac->roam.configParam.is_force_1x1 &&
 		    mac->lteCoexAntShare &&
 		    is_vendor_ap_present &&
-		    (ucDot11Mode == WNI_CFG_DOT11_MODE_ALL ||
-		     ucDot11Mode == WNI_CFG_DOT11_MODE_11AC ||
-		     ucDot11Mode == WNI_CFG_DOT11_MODE_11AC_ONLY))
-			ucDot11Mode = WNI_CFG_DOT11_MODE_11N;
+		    (dot11mode == WNI_CFG_DOT11_MODE_ALL ||
+		     dot11mode == WNI_CFG_DOT11_MODE_11AC ||
+		     dot11mode == WNI_CFG_DOT11_MODE_11AC_ONLY))
+			dot11mode = WNI_CFG_DOT11_MODE_11N;
 
 		csr_join_req->supported_nss_1x1 = pSession->supported_nss_1x1;
 		csr_join_req->vdev_nss = pSession->vdev_nss;
 		csr_join_req->nss = pSession->nss;
 		csr_join_req->nss_forced_1x1 = pSession->nss_forced_1x1;
-		csr_join_req->dot11mode = (uint8_t) ucDot11Mode;
+		csr_join_req->dot11mode = (uint8_t)dot11mode;
 		sme_debug("dot11mode=%d, uCfgDot11Mode=%d nss=%d",
 			  csr_join_req->dot11mode,
 			  pSession->bssParams.uCfgDot11Mode,
@@ -19654,7 +19654,7 @@ QDF_STATUS csr_roam_channel_change_req(struct mac_context *mac,
 				       struct csr_roam_profile *profile)
 {
 	QDF_STATUS status = QDF_STATUS_SUCCESS;
-	tSirChanChangeRequest *pMsg;
+	tSirChanChangeRequest *msg;
 	struct csr_roamstart_bssparams param;
 	bool skip_hostapd_rate = !profile->chan_switch_hostapd_rate_enabled;
 
@@ -19674,36 +19674,37 @@ QDF_STATUS csr_roam_channel_change_req(struct mac_context *mac,
 		return status;
 	}
 
-	pMsg = qdf_mem_malloc(sizeof(tSirChanChangeRequest));
-	if (!pMsg)
+	msg = qdf_mem_malloc(sizeof(tSirChanChangeRequest));
+	if (!msg)
 		return QDF_STATUS_E_NOMEM;
 
-	pMsg->messageType = eWNI_SME_CHANNEL_CHANGE_REQ;
-	pMsg->messageLen = sizeof(tSirChanChangeRequest);
-	pMsg->targetChannel = profile->ChannelInfo.ChannelList[0];
-	pMsg->sec_ch_offset = ch_params->sec_ch_offset;
-	pMsg->ch_width = profile->ch_params.ch_width;
-	pMsg->dot11mode = csr_translate_to_wni_cfg_dot11_mode(mac,
+	msg->messageType = eWNI_SME_CHANNEL_CHANGE_REQ;
+	msg->messageLen = sizeof(tSirChanChangeRequest);
+	msg->targetChannel = profile->ChannelInfo.ChannelList[0];
+	msg->sec_ch_offset = ch_params->sec_ch_offset;
+	msg->ch_width = profile->ch_params.ch_width;
+	msg->dot11mode = csr_translate_to_wni_cfg_dot11_mode(mac,
 					param.uCfgDot11Mode);
-	if (IS_24G_CH(pMsg->targetChannel) &&
+	if (IS_24G_CH(msg->targetChannel) &&
 	    !mac->mlme_cfg->vht_caps.vht_cap_info.b24ghz_band &&
-	    (WNI_CFG_DOT11_MODE_11AC == pMsg->dot11mode ||
-	    WNI_CFG_DOT11_MODE_11AC_ONLY == pMsg->dot11mode))
-		pMsg->dot11mode = WNI_CFG_DOT11_MODE_11N;
-	pMsg->nw_type = param.sirNwType;
-	pMsg->center_freq_seg_0 = ch_params->center_freq_seg0;
-	pMsg->center_freq_seg_1 = ch_params->center_freq_seg1;
-	pMsg->cac_duration_ms = profile->cac_duration_ms;
-	pMsg->dfs_regdomain = profile->dfs_regdomain;
-	qdf_mem_copy(pMsg->bssid, bssid.bytes, QDF_MAC_ADDR_SIZE);
-	qdf_mem_copy(&pMsg->operational_rateset,
-		&param.operationalRateSet, sizeof(pMsg->operational_rateset));
-	qdf_mem_copy(&pMsg->extended_rateset,
-		&param.extendedRateSet, sizeof(pMsg->extended_rateset));
+	    (msg->dot11mode == WNI_CFG_DOT11_MODE_11AC ||
+	    msg->dot11mode == WNI_CFG_DOT11_MODE_11AC_ONLY))
+		msg->dot11mode = WNI_CFG_DOT11_MODE_11N;
+	msg->nw_type = param.sirNwType;
+	msg->center_freq_seg_0 = ch_params->center_freq_seg0;
+	msg->center_freq_seg_1 = ch_params->center_freq_seg1;
+	msg->cac_duration_ms = profile->cac_duration_ms;
+	msg->dfs_regdomain = profile->dfs_regdomain;
+	qdf_mem_copy(msg->bssid, bssid.bytes, QDF_MAC_ADDR_SIZE);
+	qdf_mem_copy(&msg->operational_rateset,
+		     &param.operationalRateSet,
+		     sizeof(msg->operational_rateset));
+	qdf_mem_copy(&msg->extended_rateset, &param.extendedRateSet,
+		     sizeof(msg->extended_rateset));
 
 	sme_debug("target_chan %d ch_width %d dot11mode %d",
-		  pMsg->targetChannel, pMsg->ch_width, pMsg->dot11mode);
-	status = umac_send_mb_message_to_mac(pMsg);
+		  msg->targetChannel, msg->ch_width, msg->dot11mode);
+	status = umac_send_mb_message_to_mac(msg);
 
 	return status;
 }