Quellcode durchsuchen

qcacld-3.0: Rename SAP identifier pDelStaParams

The Linux Coding Style frowns upon mixed-case names and so-called
Hungarian notation, so rename SAP identifier pDelStaParams to be
compliant.

Change-Id: I034f0157fe4016bbcacf3ce652035a3a13184f90
CRs-Fixed: 2422207
Jeff Johnson vor 6 Jahren
Ursprung
Commit
72577c82a6
2 geänderte Dateien mit 24 neuen und 26 gelöschten Zeilen
  1. 14 3
      core/sap/inc/sap_api.h
  2. 10 23
      core/sap/src/sap_module.c

+ 14 - 3
core/sap/inc/sap_api.h

@@ -1257,10 +1257,21 @@ static inline QDF_STATUS wlansap_set_dfs_nol(struct sap_context *sap_ctx,
 QDF_STATUS wlan_sap_set_vendor_acs(struct sap_context *sap_context,
 				   bool is_vendor_acs);
 
+/**
+ * wlansap_populate_del_sta_params() - populate delete station parameter
+ * @mac: Pointer to peer mac address.
+ * @reason_code: Reason code for the disassoc/deauth.
+ * @subtype: Subtype points to either disassoc/deauth frame.
+ * @params: Parameters to be populated.
+ *
+ * This API is used to populate delete station parameter structure
+ *
+ * Return: none
+ */
 void wlansap_populate_del_sta_params(const uint8_t *mac,
-		uint16_t reason_code,
-		uint8_t subtype,
-		struct csr_del_sta_params *pDelStaParams);
+				     uint16_t reason_code,
+				     uint8_t subtype,
+				     struct csr_del_sta_params *params);
 
 /**
  * wlansap_acs_chselect() - Initiates acs channel selection

+ 10 - 23
core/sap/src/sap_module.c

@@ -2293,46 +2293,33 @@ QDF_STATUS wlansap_set_dfs_nol(struct sap_context *sap_ctx,
 }
 #endif
 
-/**
- * wlansap_populate_del_sta_params() - populate delete station parameter
- * @mac:           Pointer to peer mac address.
- * @reason_code:   Reason code for the disassoc/deauth.
- * @subtype:       Subtype points to either disassoc/deauth frame.
- * @pDelStaParams: Address where parameters to be populated.
- *
- * This API is used to populate delete station parameter structure
- *
- * Return: none
- */
-
 void wlansap_populate_del_sta_params(const uint8_t *mac,
 				     uint16_t reason_code,
 				     uint8_t subtype,
-				     struct csr_del_sta_params *pDelStaParams)
+				     struct csr_del_sta_params *params)
 {
 	if (!mac)
-		qdf_set_macaddr_broadcast(&pDelStaParams->peerMacAddr);
+		qdf_set_macaddr_broadcast(&params->peerMacAddr);
 	else
-		qdf_mem_copy(pDelStaParams->peerMacAddr.bytes, mac,
+		qdf_mem_copy(params->peerMacAddr.bytes, mac,
 			     QDF_MAC_ADDR_SIZE);
 
 	if (reason_code == 0)
-		pDelStaParams->reason_code = eSIR_MAC_DEAUTH_LEAVING_BSS_REASON;
+		params->reason_code = eSIR_MAC_DEAUTH_LEAVING_BSS_REASON;
 	else
-		pDelStaParams->reason_code = reason_code;
+		params->reason_code = reason_code;
 
 	if (subtype == (SIR_MAC_MGMT_DEAUTH >> 4) ||
 	    subtype == (SIR_MAC_MGMT_DISASSOC >> 4))
-		pDelStaParams->subtype = subtype;
+		params->subtype = subtype;
 	else
-		pDelStaParams->subtype = (SIR_MAC_MGMT_DEAUTH >> 4);
+		params->subtype = (SIR_MAC_MGMT_DEAUTH >> 4);
 
 	QDF_TRACE(QDF_MODULE_ID_SAP, QDF_TRACE_LEVEL_DEBUG,
-		  FL(
-		     "Delete STA with RC:%hu subtype:%hhu MAC::"
+		  FL("Delete STA with RC:%hu subtype:%hhu MAC::"
 		     MAC_ADDRESS_STR),
-		  pDelStaParams->reason_code, pDelStaParams->subtype,
-		  MAC_ADDR_ARRAY(pDelStaParams->peerMacAddr.bytes));
+		  params->reason_code, params->subtype,
+		  MAC_ADDR_ARRAY(params->peerMacAddr.bytes));
 }
 
 QDF_STATUS wlansap_acs_chselect(struct sap_context *sap_context,