Ver código fonte

qcacld-3.0: Rename HDD identifier pMgmt_frame

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

Change-Id: I3b01eb6fa7e60d76b0722db650a9467fa30d23d0
CRs-Fixed: 2417248
Jeff Johnson 6 anos atrás
pai
commit
c6c35e3cc9
1 arquivos alterados com 8 adições e 8 exclusões
  1. 8 8
      core/hdd/src/wlan_hdd_hostapd.c

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

@@ -4210,7 +4210,7 @@ static void wlan_hdd_set_sap_hwmode(struct hdd_adapter *adapter)
 {
 {
 	tsap_config_t *config = &adapter->session.ap.sap_config;
 	tsap_config_t *config = &adapter->session.ap.sap_config;
 	struct hdd_beacon_data *beacon = adapter->session.ap.beacon;
 	struct hdd_beacon_data *beacon = adapter->session.ap.beacon;
-	struct ieee80211_mgmt *pMgmt_frame =
+	struct ieee80211_mgmt *mgmt_frame =
 		(struct ieee80211_mgmt *)beacon->head;
 		(struct ieee80211_mgmt *)beacon->head;
 	u8 checkRatesfor11g = true;
 	u8 checkRatesfor11g = true;
 	u8 require_ht = false, require_vht = false;
 	u8 require_ht = false, require_vht = false;
@@ -4219,7 +4219,7 @@ static void wlan_hdd_set_sap_hwmode(struct hdd_adapter *adapter)
 	config->SapHw_mode = eCSR_DOT11_MODE_11b;
 	config->SapHw_mode = eCSR_DOT11_MODE_11b;
 
 
 	ie = wlan_get_ie_ptr_from_eid(WLAN_EID_SUPP_RATES,
 	ie = wlan_get_ie_ptr_from_eid(WLAN_EID_SUPP_RATES,
-				      &pMgmt_frame->u.beacon.variable[0],
+				      &mgmt_frame->u.beacon.variable[0],
 				      beacon->head_len);
 				      beacon->head_len);
 	if (ie != NULL) {
 	if (ie != NULL) {
 		ie += 1;
 		ie += 1;
@@ -4884,7 +4884,7 @@ int wlan_hdd_cfg80211_start_bss(struct hdd_adapter *adapter,
 {
 {
 	tsap_config_t *config;
 	tsap_config_t *config;
 	struct hdd_beacon_data *beacon = NULL;
 	struct hdd_beacon_data *beacon = NULL;
-	struct ieee80211_mgmt *pMgmt_frame;
+	struct ieee80211_mgmt *mgmt_frame;
 	struct ieee80211_mgmt mgmt;
 	struct ieee80211_mgmt mgmt;
 	const uint8_t *ie = NULL;
 	const uint8_t *ie = NULL;
 	uint16_t capab_info, ap_prot = cfg_default(CFG_AP_PROTECTION_MODE);
 	uint16_t capab_info, ap_prot = cfg_default(CFG_AP_PROTECTION_MODE);
@@ -5039,9 +5039,9 @@ int wlan_hdd_cfg80211_start_bss(struct hdd_adapter *adapter,
 		goto error;
 		goto error;
 	}
 	}
 
 
-	pMgmt_frame = (struct ieee80211_mgmt *)beacon->head;
+	mgmt_frame = (struct ieee80211_mgmt *)beacon->head;
 
 
-	config->beacon_int = pMgmt_frame->u.beacon.beacon_int;
+	config->beacon_int = mgmt_frame->u.beacon.beacon_int;
 	config->dfs_cac_offload = hdd_ctx->dfs_cac_offload;
 	config->dfs_cac_offload = hdd_ctx->dfs_cac_offload;
 
 
 	status = ucfg_mlme_get_auto_channel_weight(hdd_ctx->psoc,
 	status = ucfg_mlme_get_auto_channel_weight(hdd_ctx->psoc,
@@ -5193,9 +5193,9 @@ int wlan_hdd_cfg80211_start_bss(struct hdd_adapter *adapter,
 					       &tx_leakage_threshold);
 					       &tx_leakage_threshold);
 	tgt_dfs_set_tx_leakage_threshold(hdd_ctx->pdev, tx_leakage_threshold);
 	tgt_dfs_set_tx_leakage_threshold(hdd_ctx->pdev, tx_leakage_threshold);
 
 
-	capab_info = pMgmt_frame->u.beacon.capab_info;
+	capab_info = mgmt_frame->u.beacon.capab_info;
 
 
-	config->privacy = (pMgmt_frame->u.beacon.capab_info &
+	config->privacy = (mgmt_frame->u.beacon.capab_info &
 			    WLAN_CAPABILITY_PRIVACY) ? true : false;
 			    WLAN_CAPABILITY_PRIVACY) ? true : false;
 
 
 	(WLAN_HDD_GET_AP_CTX_PTR(adapter))->privacy = config->privacy;
 	(WLAN_HDD_GET_AP_CTX_PTR(adapter))->privacy = config->privacy;
@@ -5405,7 +5405,7 @@ int wlan_hdd_cfg80211_start_bss(struct hdd_adapter *adapter,
 		beacon_data_len = beacon->head_len - beacon_fixed_len;
 		beacon_data_len = beacon->head_len - beacon_fixed_len;
 
 
 		ie = wlan_get_ie_ptr_from_eid(WLAN_EID_SUPP_RATES,
 		ie = wlan_get_ie_ptr_from_eid(WLAN_EID_SUPP_RATES,
-					&pMgmt_frame->u.beacon.variable[0],
+					&mgmt_frame->u.beacon.variable[0],
 					beacon_data_len);
 					beacon_data_len);
 
 
 		if (ie) {
 		if (ie) {