Преглед изворни кода

qcacld-3.0: Rename SAP identifier pUsrContext

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

Change-Id: Ib9c4cac6eb6f813e4da66c1c65bab16cebf62946
CRs-Fixed: 2422209
Jeff Johnson пре 6 година
родитељ
комит
2284ad9c47

+ 1 - 1
core/hdd/src/wlan_hdd_hostapd.c

@@ -6506,7 +6506,7 @@ void hdd_sap_indicate_disconnect_for_sta(struct hdd_adapter *adapter)
 			statusCode =
 				QDF_STATUS_E_RESOURCES;
 			hdd_hostapd_sap_event_cb(&sap_event,
-					sap_ctx->pUsrContext);
+					sap_ctx->user_context);
 		}
 	}
 

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

@@ -750,7 +750,7 @@ bool sap_is_auto_channel_select(struct sap_context *sapcontext);
 QDF_STATUS wlansap_global_init(void);
 QDF_STATUS wlansap_global_deinit(void);
 typedef QDF_STATUS (*tpWLAN_SAPEventCB)(struct sap_event *pSapEvent,
-					void *pUsrContext);
+					void *user_context);
 
 /**
  * wlansap_is_channel_in_nol_list() - This API checks if channel is
@@ -785,7 +785,7 @@ bool wlansap_is_channel_leaking_in_nol(struct sap_context *sap_ctx,
  *                        about SAP results
  * @config: Pointer to configuration structure passed down from
  *                    HDD(HostApd for Android)
- * @pUsrContext: Parameter that will be passed back in all the SAP callback
+ * @user_context: Parameter that will be passed back in all the SAP callback
  *               events.
  *
  * This api function provides SAP FSM event eWLAN_SAP_PHYSICAL_LINK_CREATE for
@@ -798,7 +798,7 @@ bool wlansap_is_channel_leaking_in_nol(struct sap_context *sap_ctx,
  */
 QDF_STATUS wlansap_start_bss(struct sap_context *sap_ctx,
 			     tpWLAN_SAPEventCB pSapEventCallback,
-			     tsap_config_t *config, void *pUsrContext);
+			     tsap_config_t *config, void *user_context);
 
 /**
  * wlansap_stop_bss() - stop BSS.

+ 1 - 1
core/sap/src/sap_fsm.c

@@ -1864,7 +1864,7 @@ QDF_STATUS sap_signal_hdd_event(struct sap_context *sap_ctx,
 		break;
 	}
 	qdf_status = (*sap_ctx->pfnSapEventCallback)
-			(&sap_ap_event, sap_ctx->pUsrContext);
+			(&sap_ap_event, sap_ctx->user_context);
 
 	return qdf_status;
 

+ 1 - 1
core/sap/src/sap_internal.h

@@ -166,7 +166,7 @@ struct sap_context {
 	/* QOS config */
 	tSapQosCfg SapQosCfg;
 
-	void *pUsrContext;
+	void *user_context;
 
 	uint32_t nStaWPARSnReqIeLength;
 	uint8_t pStaWpaRsnReqIE[MAX_ASSOC_IND_IE_LEN];

+ 3 - 3
core/sap/src/sap_module.c

@@ -539,7 +539,7 @@ wlansap_set_scan_acs_channel_params(tsap_config_t *pconfig,
 #endif
 	psap_ctx->auto_channel_select_weight =
 		 pconfig->auto_channel_select_weight;
-	psap_ctx->pUsrContext = pusr_context;
+	psap_ctx->user_context = pusr_context;
 	psap_ctx->enableOverLapCh = pconfig->enOverLapCh;
 	psap_ctx->acs_cfg = &pconfig->acs_cfg;
 	psap_ctx->ch_width_orig = pconfig->acs_cfg.ch_width;
@@ -663,7 +663,7 @@ void wlan_sap_set_sap_ctx_acs_cfg(struct sap_context *sap_ctx,
 
 QDF_STATUS wlansap_start_bss(struct sap_context *sap_ctx,
 			     tpWLAN_SAPEventCB pSapEventCallback,
-			     tsap_config_t *config, void *pUsrContext)
+			     tsap_config_t *config, void *user_context)
 {
 	tWLAN_SAPEvent sap_event;        /* State machine event */
 	QDF_STATUS qdf_status = QDF_STATUS_SUCCESS;
@@ -696,7 +696,7 @@ QDF_STATUS wlansap_start_bss(struct sap_context *sap_ctx,
 #endif
 	sap_ctx->auto_channel_select_weight =
 		 config->auto_channel_select_weight;
-	sap_ctx->pUsrContext = pUsrContext;
+	sap_ctx->user_context = user_context;
 	sap_ctx->enableOverLapCh = config->enOverLapCh;
 	sap_ctx->acs_cfg = &config->acs_cfg;
 	sap_ctx->secondary_ch = config->sec_ch;