Browse Source

qcacld-3.0: Rename pRoamProfile

The Linux Coding Style frowns upon mixed-case names and so-called
Hungarian notation, so rename pRoamProfile to align with the Coding
Style.

Change-Id: I6a883e171a8aa304cf2e57486be9b51baa700acb
CRs-Fixed: 2126628
Jeff Johnson 7 years ago
parent
commit
5b34fce8ed

+ 28 - 28
core/hdd/src/wlan_hdd_assoc.c

@@ -1244,7 +1244,7 @@ static void hdd_send_association_event(struct net_device *dev,
 	/* rather than with cfg to see if FT is enabled */
 	struct hdd_wext_state *pWextState =
 		WLAN_HDD_GET_WEXT_STATE_PTR(adapter);
-	tCsrRoamProfile *pRoamProfile = &(pWextState->roamProfile);
+	tCsrRoamProfile *roam_profile = &(pWextState->roamProfile);
 
 	memset(&wrqu, '\0', sizeof(wrqu));
 	wrqu.ap_addr.sa_family = ARPHRD_ETHER;
@@ -1287,14 +1287,14 @@ static void hdd_send_association_event(struct net_device *dev,
 		 * fFTEnable is true.
 		 * Send FT Keys to the supplicant when FT is enabled
 		 */
-		if ((pRoamProfile->AuthType.authType[0] ==
+		if ((roam_profile->AuthType.authType[0] ==
 		     eCSR_AUTH_TYPE_FT_RSN_PSK)
-		    || (pRoamProfile->AuthType.authType[0] ==
+		    || (roam_profile->AuthType.authType[0] ==
 			eCSR_AUTH_TYPE_FT_RSN)
 #ifdef FEATURE_WLAN_ESE
-		    || (pRoamProfile->AuthType.authType[0] ==
+		    || (roam_profile->AuthType.authType[0] ==
 			eCSR_AUTH_TYPE_CCKM_RSN)
-		    || (pRoamProfile->AuthType.authType[0] ==
+		    || (roam_profile->AuthType.authType[0] ==
 			eCSR_AUTH_TYPE_CCKM_WPA)
 #endif
 		    ) {
@@ -1434,9 +1434,9 @@ static void hdd_send_association_event(struct net_device *dev,
 #ifdef FEATURE_WLAN_ESE
 		if (eConnectionState_Associated ==
 			 sta_ctx->conn_info.connState) {
-			if ((pRoamProfile->AuthType.authType[0] ==
+			if ((roam_profile->AuthType.authType[0] ==
 			     eCSR_AUTH_TYPE_CCKM_RSN) ||
-			    (pRoamProfile->AuthType.authType[0] ==
+			    (roam_profile->AuthType.authType[0] ==
 				eCSR_AUTH_TYPE_CCKM_WPA))
 				hdd_send_new_ap_channel_info(dev, adapter,
 							     pCsrRoamInfo);
@@ -5131,11 +5131,11 @@ int hdd_set_csr_auth_type(struct hdd_adapter *adapter,
 {
 	struct hdd_wext_state *pWextState =
 		WLAN_HDD_GET_WEXT_STATE_PTR(adapter);
-	tCsrRoamProfile *pRoamProfile = &(pWextState->roamProfile);
+	tCsrRoamProfile *roam_profile = &(pWextState->roamProfile);
 	struct hdd_station_ctx *sta_ctx =
 		WLAN_HDD_GET_STATION_CTX_PTR(adapter);
 
-	pRoamProfile->AuthType.numEntries = 1;
+	roam_profile->AuthType.numEntries = 1;
 	hdd_debug("sta_ctx->conn_info.authType = %d",
 		 sta_ctx->conn_info.authType);
 
@@ -5147,7 +5147,7 @@ int hdd_set_csr_auth_type(struct hdd_adapter *adapter,
 #endif
 		if (!sta_ctx->wpa_versions) {
 
-			pRoamProfile->AuthType.authType[0] =
+			roam_profile->AuthType.authType[0] =
 				eCSR_AUTH_TYPE_OPEN_SYSTEM;
 		} else if (sta_ctx->wpa_versions & NL80211_WPA_VERSION_1) {
 
@@ -5156,26 +5156,26 @@ int hdd_set_csr_auth_type(struct hdd_adapter *adapter,
 			    ((pWextState->authKeyMgmt & IW_AUTH_KEY_MGMT_802_1X)
 			     == IW_AUTH_KEY_MGMT_802_1X)) {
 				hdd_debug("set authType to CCKM WPA. AKM also 802.1X.");
-				pRoamProfile->AuthType.authType[0] =
+				roam_profile->AuthType.authType[0] =
 					eCSR_AUTH_TYPE_CCKM_WPA;
 			} else if (RSNAuthType == eCSR_AUTH_TYPE_CCKM_WPA) {
 				hdd_debug("Last chance to set authType to CCKM WPA.");
-				pRoamProfile->AuthType.authType[0] =
+				roam_profile->AuthType.authType[0] =
 					eCSR_AUTH_TYPE_CCKM_WPA;
 			} else
 #endif
 			if ((pWextState->
 			     authKeyMgmt & IW_AUTH_KEY_MGMT_802_1X)
 			    == IW_AUTH_KEY_MGMT_802_1X) {
-				pRoamProfile->AuthType.authType[0] =
+				roam_profile->AuthType.authType[0] =
 					eCSR_AUTH_TYPE_WPA;
 			} else
 			if ((pWextState->authKeyMgmt & IW_AUTH_KEY_MGMT_PSK)
 			    == IW_AUTH_KEY_MGMT_PSK) {
-				pRoamProfile->AuthType.authType[0] =
+				roam_profile->AuthType.authType[0] =
 					eCSR_AUTH_TYPE_WPA_PSK;
 			} else {
-				pRoamProfile->AuthType.authType[0] =
+				roam_profile->AuthType.authType[0] =
 					eCSR_AUTH_TYPE_WPA_NONE;
 			}
 		}
@@ -5185,11 +5185,11 @@ int hdd_set_csr_auth_type(struct hdd_adapter *adapter,
 			    ((pWextState->authKeyMgmt & IW_AUTH_KEY_MGMT_802_1X)
 			     == IW_AUTH_KEY_MGMT_802_1X)) {
 				hdd_debug("set authType to CCKM RSN. AKM also 802.1X.");
-				pRoamProfile->AuthType.authType[0] =
+				roam_profile->AuthType.authType[0] =
 					eCSR_AUTH_TYPE_CCKM_RSN;
 			} else if (RSNAuthType == eCSR_AUTH_TYPE_CCKM_RSN) {
 				hdd_debug("Last chance to set authType to CCKM RSN.");
-				pRoamProfile->AuthType.authType[0] =
+				roam_profile->AuthType.authType[0] =
 					eCSR_AUTH_TYPE_CCKM_RSN;
 			} else
 #endif
@@ -5198,30 +5198,30 @@ int hdd_set_csr_auth_type(struct hdd_adapter *adapter,
 			    ((pWextState->
 			      authKeyMgmt & IW_AUTH_KEY_MGMT_802_1X)
 			     == IW_AUTH_KEY_MGMT_802_1X)) {
-				pRoamProfile->AuthType.authType[0] =
+				roam_profile->AuthType.authType[0] =
 					eCSR_AUTH_TYPE_FT_RSN;
 			} else if ((RSNAuthType == eCSR_AUTH_TYPE_FT_RSN_PSK)
 				   &&
 				   ((pWextState->
 				     authKeyMgmt & IW_AUTH_KEY_MGMT_PSK)
 				    == IW_AUTH_KEY_MGMT_PSK)) {
-				pRoamProfile->AuthType.authType[0] =
+				roam_profile->AuthType.authType[0] =
 					eCSR_AUTH_TYPE_FT_RSN_PSK;
 			} else
 
 #ifdef WLAN_FEATURE_11W
 			if (RSNAuthType == eCSR_AUTH_TYPE_RSN_PSK_SHA256) {
-				pRoamProfile->AuthType.authType[0] =
+				roam_profile->AuthType.authType[0] =
 					eCSR_AUTH_TYPE_RSN_PSK_SHA256;
 			} else if (RSNAuthType ==
 				   eCSR_AUTH_TYPE_RSN_8021X_SHA256) {
-				pRoamProfile->AuthType.authType[0] =
+				roam_profile->AuthType.authType[0] =
 					eCSR_AUTH_TYPE_RSN_8021X_SHA256;
 			} else
 #endif
-			if (hdd_check_fils_rsn_n_set_auth_type(pRoamProfile,
+			if (hdd_check_fils_rsn_n_set_auth_type(roam_profile,
 				RSNAuthType)) {
-				pRoamProfile->AuthType.authType[0] =
+				roam_profile->AuthType.authType[0] =
 					RSNAuthType;
 				hdd_debug("updated profile authtype as %d",
 					RSNAuthType);
@@ -5229,15 +5229,15 @@ int hdd_set_csr_auth_type(struct hdd_adapter *adapter,
 			} else if ((pWextState->
 			     authKeyMgmt & IW_AUTH_KEY_MGMT_802_1X)
 			    == IW_AUTH_KEY_MGMT_802_1X) {
-				pRoamProfile->AuthType.authType[0] =
+				roam_profile->AuthType.authType[0] =
 					eCSR_AUTH_TYPE_RSN;
 			} else
 			if ((pWextState->authKeyMgmt & IW_AUTH_KEY_MGMT_PSK)
 			    == IW_AUTH_KEY_MGMT_PSK) {
-				pRoamProfile->AuthType.authType[0] =
+				roam_profile->AuthType.authType[0] =
 					eCSR_AUTH_TYPE_RSN_PSK;
 			} else {
-				pRoamProfile->AuthType.authType[0] =
+				roam_profile->AuthType.authType[0] =
 					eCSR_AUTH_TYPE_UNKNOWN;
 			}
 		}
@@ -5245,14 +5245,14 @@ int hdd_set_csr_auth_type(struct hdd_adapter *adapter,
 
 	case eCSR_AUTH_TYPE_SHARED_KEY:
 
-		pRoamProfile->AuthType.authType[0] = eCSR_AUTH_TYPE_SHARED_KEY;
+		roam_profile->AuthType.authType[0] = eCSR_AUTH_TYPE_SHARED_KEY;
 		break;
 	default:
 
 #ifdef FEATURE_WLAN_ESE
 		hdd_debug("In default, unknown auth type.");
 #endif /* FEATURE_WLAN_ESE */
-		pRoamProfile->AuthType.authType[0] = eCSR_AUTH_TYPE_UNKNOWN;
+		roam_profile->AuthType.authType[0] = eCSR_AUTH_TYPE_UNKNOWN;
 		break;
 	}
 

+ 64 - 64
core/hdd/src/wlan_hdd_cfg80211.c

@@ -13683,7 +13683,7 @@ static int __wlan_hdd_cfg80211_change_iface(struct wiphy *wiphy,
 	struct wireless_dev *wdev;
 	struct hdd_adapter *adapter = WLAN_HDD_GET_PRIV_PTR(ndev);
 	struct hdd_context *hdd_ctx;
-	tCsrRoamProfile *pRoamProfile = NULL;
+	tCsrRoamProfile *roam_profile = NULL;
 	eCsrRoamBssType LastBSSType;
 	struct hdd_config *pConfig = NULL;
 	int status;
@@ -13735,8 +13735,8 @@ static int __wlan_hdd_cfg80211_change_iface(struct wiphy *wiphy,
 		struct hdd_wext_state *pWextState =
 			WLAN_HDD_GET_WEXT_STATE_PTR(adapter);
 
-		pRoamProfile = &pWextState->roamProfile;
-		LastBSSType = pRoamProfile->BSSType;
+		roam_profile = &pWextState->roamProfile;
+		LastBSSType = roam_profile->BSSType;
 
 		switch (type) {
 		case NL80211_IFTYPE_STATION:
@@ -14362,7 +14362,7 @@ static int __wlan_hdd_cfg80211_get_key(struct wiphy *wiphy,
 	struct hdd_adapter *adapter = WLAN_HDD_GET_PRIV_PTR(ndev);
 	struct hdd_wext_state *pWextState =
 		WLAN_HDD_GET_WEXT_STATE_PTR(adapter);
-	tCsrRoamProfile *pRoamProfile = &(pWextState->roamProfile);
+	tCsrRoamProfile *roam_profile = &(pWextState->roamProfile);
 	struct key_params params;
 
 	ENTER();
@@ -14383,7 +14383,7 @@ static int __wlan_hdd_cfg80211_get_key(struct wiphy *wiphy,
 		return -EINVAL;
 	}
 
-	switch (pRoamProfile->EncryptionType.encryptionType[0]) {
+	switch (roam_profile->EncryptionType.encryptionType[0]) {
 	case eCSR_ENCRYPT_TYPE_NONE:
 		params.cipher = IW_AUTH_CIPHER_NONE;
 		break;
@@ -14420,10 +14420,10 @@ static int __wlan_hdd_cfg80211_get_key(struct wiphy *wiphy,
 			 TRACE_CODE_HDD_CFG80211_GET_KEY,
 			 adapter->sessionId, params.cipher));
 
-	params.key_len = pRoamProfile->Keys.KeyLength[key_index];
+	params.key_len = roam_profile->Keys.KeyLength[key_index];
 	params.seq_len = 0;
 	params.seq = NULL;
-	params.key = &pRoamProfile->Keys.KeyMaterial[key_index][0];
+	params.key = &roam_profile->Keys.KeyMaterial[key_index][0];
 	callback(cookie, &params);
 
 	EXIT();
@@ -15487,7 +15487,7 @@ static int wlan_hdd_cfg80211_connect_start(struct hdd_adapter *adapter,
 	struct hdd_context *hdd_ctx;
 	struct hdd_station_ctx *hdd_sta_ctx;
 	uint32_t roamId = INVALID_ROAM_ID;
-	tCsrRoamProfile *pRoamProfile;
+	tCsrRoamProfile *roam_profile;
 	eCsrAuthType RSNAuthType;
 	tSmeConfigParams *sme_config;
 	uint8_t channel = 0;
@@ -15516,11 +15516,11 @@ static int wlan_hdd_cfg80211_connect_start(struct hdd_adapter *adapter,
 
 	hdd_notify_teardown_tdls_links(adapter->hdd_vdev);
 
-	pRoamProfile = &pWextState->roamProfile;
+	roam_profile = &pWextState->roamProfile;
 	qdf_mem_zero(&hdd_sta_ctx->conn_info.conn_flag,
 		     sizeof(hdd_sta_ctx->conn_info.conn_flag));
 
-	if (pRoamProfile) {
+	if (roam_profile) {
 		struct hdd_station_ctx *sta_ctx;
 
 		sta_ctx = WLAN_HDD_GET_STATION_CTX_PTR(adapter);
@@ -15549,35 +15549,35 @@ static int wlan_hdd_cfg80211_connect_start(struct hdd_adapter *adapter,
 		if (HDD_WMM_USER_MODE_NO_QOS ==
 		    (WLAN_HDD_GET_CTX(adapter))->config->WmmMode) {
 			/*QoS not enabled in cfg file */
-			pRoamProfile->uapsd_mask = 0;
+			roam_profile->uapsd_mask = 0;
 		} else {
 			/*QoS enabled, update uapsd mask from cfg file */
-			pRoamProfile->uapsd_mask =
+			roam_profile->uapsd_mask =
 				(WLAN_HDD_GET_CTX(adapter))->config->UapsdMask;
 		}
 
-		pRoamProfile->SSIDs.numOfSSIDs = 1;
-		pRoamProfile->SSIDs.SSIDList->SSID.length = ssid_len;
-		qdf_mem_zero(pRoamProfile->SSIDs.SSIDList->SSID.ssId,
-			     sizeof(pRoamProfile->SSIDs.SSIDList->SSID.ssId));
-		qdf_mem_copy((void *)(pRoamProfile->SSIDs.SSIDList->SSID.ssId),
+		roam_profile->SSIDs.numOfSSIDs = 1;
+		roam_profile->SSIDs.SSIDList->SSID.length = ssid_len;
+		qdf_mem_zero(roam_profile->SSIDs.SSIDList->SSID.ssId,
+			     sizeof(roam_profile->SSIDs.SSIDList->SSID.ssId));
+		qdf_mem_copy((void *)(roam_profile->SSIDs.SSIDList->SSID.ssId),
 			     ssid, ssid_len);
 
-		pRoamProfile->do_not_roam = !adapter->fast_roaming_allowed;
+		roam_profile->do_not_roam = !adapter->fast_roaming_allowed;
 		/* cleanup bssid hint */
-		qdf_mem_zero(pRoamProfile->bssid_hint.bytes,
+		qdf_mem_zero(roam_profile->bssid_hint.bytes,
 			QDF_MAC_ADDR_SIZE);
-		qdf_mem_zero((void *)(pRoamProfile->BSSIDs.bssid),
+		qdf_mem_zero((void *)(roam_profile->BSSIDs.bssid),
 			QDF_MAC_ADDR_SIZE);
 
 		if (bssid) {
-			pRoamProfile->BSSIDs.numOfBSSIDs = 1;
-			pRoamProfile->do_not_roam = true;
-			qdf_mem_copy((void *)(pRoamProfile->BSSIDs.bssid),
+			roam_profile->BSSIDs.numOfBSSIDs = 1;
+			roam_profile->do_not_roam = true;
+			qdf_mem_copy((void *)(roam_profile->BSSIDs.bssid),
 				     bssid, QDF_MAC_ADDR_SIZE);
 			/*
 			 * Save BSSID in seperate variable as
-			 * pRoamProfile's BSSID is getting zeroed out in the
+			 * roam_profile's BSSID is getting zeroed out in the
 			 * association process. In case of join failure
 			 * we should send valid BSSID to supplicant
 			 */
@@ -15585,11 +15585,11 @@ static int wlan_hdd_cfg80211_connect_start(struct hdd_adapter *adapter,
 				     bssid, QDF_MAC_ADDR_SIZE);
 			hdd_debug("bssid is given by upper layer %pM", bssid);
 		} else if (bssid_hint) {
-			qdf_mem_copy(pRoamProfile->bssid_hint.bytes,
+			qdf_mem_copy(roam_profile->bssid_hint.bytes,
 				bssid_hint, QDF_MAC_ADDR_SIZE);
 			/*
 			 * Save BSSID in a separate variable as
-			 * pRoamProfile's BSSID is getting zeroed out in the
+			 * roam_profile's BSSID is getting zeroed out in the
 			 * association process. In case of join failure
 			 * we should send valid BSSID to supplicant
 			 */
@@ -15600,8 +15600,8 @@ static int wlan_hdd_cfg80211_connect_start(struct hdd_adapter *adapter,
 		}
 
 		hdd_debug("Connect to SSID: %.*s operating Channel: %u",
-		       pRoamProfile->SSIDs.SSIDList->SSID.length,
-		       pRoamProfile->SSIDs.SSIDList->SSID.ssId,
+		       roam_profile->SSIDs.SSIDList->SSID.length,
+		       roam_profile->SSIDs.SSIDList->SSID.ssId,
 		       operatingChannel);
 
 		if (hdd_sta_ctx->wpa_versions) {
@@ -15616,7 +15616,7 @@ static int wlan_hdd_cfg80211_connect_start(struct hdd_adapter *adapter,
 			{
 				hdd_debug("WAPI AUTH TYPE: PSK: %d",
 				       adapter->wapi_info.wapiAuthMode);
-				pRoamProfile->AuthType.authType[0] =
+				roam_profile->AuthType.authType[0] =
 					eCSR_AUTH_TYPE_WAPI_WAI_PSK;
 				break;
 			}
@@ -15624,7 +15624,7 @@ static int wlan_hdd_cfg80211_connect_start(struct hdd_adapter *adapter,
 			{
 				hdd_debug("WAPI AUTH TYPE: CERT: %d",
 				       adapter->wapi_info.wapiAuthMode);
-				pRoamProfile->AuthType.authType[0] =
+				roam_profile->AuthType.authType[0] =
 					eCSR_AUTH_TYPE_WAPI_WAI_CERTIFICATE;
 				break;
 			}
@@ -15634,26 +15634,26 @@ static int wlan_hdd_cfg80211_connect_start(struct hdd_adapter *adapter,
 			    || adapter->wapi_info.wapiAuthMode ==
 			    WAPI_AUTH_MODE_CERT) {
 				hdd_debug("WAPI PAIRWISE/GROUP ENCRYPTION: WPI");
-				pRoamProfile->AuthType.numEntries = 1;
-				pRoamProfile->EncryptionType.numEntries = 1;
-				pRoamProfile->EncryptionType.encryptionType[0] =
+				roam_profile->AuthType.numEntries = 1;
+				roam_profile->EncryptionType.numEntries = 1;
+				roam_profile->EncryptionType.encryptionType[0] =
 					eCSR_ENCRYPT_TYPE_WPI;
-				pRoamProfile->mcEncryptionType.numEntries = 1;
-				pRoamProfile->mcEncryptionType.
+				roam_profile->mcEncryptionType.numEntries = 1;
+				roam_profile->mcEncryptionType.
 				encryptionType[0] = eCSR_ENCRYPT_TYPE_WPI;
 			}
 		}
 #endif
 		pmo_ucfg_flush_gtk_offload_req(adapter->hdd_vdev);
-		pRoamProfile->csrPersona = adapter->device_mode;
+		roam_profile->csrPersona = adapter->device_mode;
 
 		if (operatingChannel) {
-			pRoamProfile->ChannelInfo.ChannelList =
+			roam_profile->ChannelInfo.ChannelList =
 				&operatingChannel;
-			pRoamProfile->ChannelInfo.numOfChannels = 1;
+			roam_profile->ChannelInfo.numOfChannels = 1;
 		} else {
-			pRoamProfile->ChannelInfo.ChannelList = NULL;
-			pRoamProfile->ChannelInfo.numOfChannels = 0;
+			roam_profile->ChannelInfo.ChannelList = NULL;
+			roam_profile->ChannelInfo.numOfChannels = 0;
 		}
 		if ((QDF_IBSS_MODE == adapter->device_mode)
 		    && operatingChannel) {
@@ -15670,17 +15670,17 @@ static int wlan_hdd_cfg80211_connect_start(struct hdd_adapter *adapter,
 				status = -EINVAL;
 				goto conn_failure;
 			}
-			pRoamProfile->ch_params.ch_width =
+			roam_profile->ch_params.ch_width =
 				hdd_map_nl_chan_width(ch_width);
 			/*
 			 * In IBSS mode while operating in 2.4 GHz,
 			 * the device supports only 20 MHz.
 			 */
 			if (WLAN_REG_IS_24GHZ_CH(operatingChannel))
-				pRoamProfile->ch_params.ch_width =
+				roam_profile->ch_params.ch_width =
 					CH_WIDTH_20MHZ;
 			hdd_select_cbmode(adapter, operatingChannel,
-					  &pRoamProfile->ch_params);
+					  &roam_profile->ch_params);
 		}
 
 		if (wlan_hdd_cfg80211_check_pmf_valid(
@@ -15700,16 +15700,16 @@ static int wlan_hdd_cfg80211_connect_start(struct hdd_adapter *adapter,
 		 */
 
 		if ((adapter->device_mode == QDF_P2P_CLIENT_MODE) &&
-		    (!pRoamProfile->pAddIEScan)) {
-			pRoamProfile->pAddIEScan =
+		    (!roam_profile->pAddIEScan)) {
+			roam_profile->pAddIEScan =
 				&adapter->scan_info.scanAddIE.addIEdata[0];
-			pRoamProfile->nAddIEScanLength =
+			roam_profile->nAddIEScanLength =
 				adapter->scan_info.scanAddIE.length;
 		}
 
 		if ((policy_mgr_is_hw_dbs_capable(hdd_ctx->hdd_psoc) == true)
 			&& (false == wlan_hdd_handle_sap_sta_dfs_conc(adapter,
-				pRoamProfile))) {
+				roam_profile))) {
 			hdd_err("sap-sta conc will fail, can't allow sta");
 			hdd_conn_set_connection_state(adapter,
 					eConnectionState_NotConnected);
@@ -15767,7 +15767,7 @@ static int wlan_hdd_cfg80211_connect_start(struct hdd_adapter *adapter,
 		hdd_prevent_suspend_timeout(HDD_WAKELOCK_TIMEOUT_CONNECT,
 					    WIFI_POWER_EVENT_WAKELOCK_CONNECT);
 		qdf_status = sme_roam_connect(WLAN_HDD_GET_HAL_CTX(adapter),
-					  adapter->sessionId, pRoamProfile,
+					  adapter->sessionId, roam_profile,
 					  &roamId);
 		if (QDF_IS_STATUS_ERROR(qdf_status))
 			status = qdf_status_to_os_return(qdf_status);
@@ -15789,8 +15789,8 @@ static int wlan_hdd_cfg80211_connect_start(struct hdd_adapter *adapter,
 		/* Reset connect_in_progress */
 		hdd_set_connection_in_progress(false);
 
-		pRoamProfile->ChannelInfo.ChannelList = NULL;
-		pRoamProfile->ChannelInfo.numOfChannels = 0;
+		roam_profile->ChannelInfo.ChannelList = NULL;
+		roam_profile->ChannelInfo.numOfChannels = 0;
 
 		if ((QDF_STA_MODE == adapter->device_mode)
 			&& policy_mgr_is_current_hwmode_dbs(hdd_ctx->hdd_psoc)
@@ -15798,7 +15798,7 @@ static int wlan_hdd_cfg80211_connect_start(struct hdd_adapter *adapter,
 			hdd_ctx->hdd_psoc)) {
 			policy_mgr_get_channel_from_scan_result(
 				hdd_ctx->hdd_psoc,
-				pRoamProfile, &channel);
+				roam_profile, &channel);
 			hdd_info("Move to single MAC mode(optimization) if applicable");
 			if (channel)
 				policy_mgr_checkn_update_hw_mode_single_mac_mode(
@@ -16919,7 +16919,7 @@ static bool wlan_hdd_reassoc_bssid_hint(struct hdd_adapter *adapter,
 				channel, MAC_ADDR_ARRAY(bssid));
 		/*
 		 * Save BSSID in a separate variable as
-		 * pRoamProfile's BSSID is getting zeroed out in the
+		 * roam_profile's BSSID is getting zeroed out in the
 		 * association process. In case of join failure
 		 * we should send valid BSSID to supplicant
 		 */
@@ -17592,7 +17592,7 @@ static int __wlan_hdd_cfg80211_join_ibss(struct wiphy *wiphy,
 	struct hdd_adapter *adapter = WLAN_HDD_GET_PRIV_PTR(dev);
 	struct hdd_wext_state *pWextState =
 		WLAN_HDD_GET_WEXT_STATE_PTR(adapter);
-	tCsrRoamProfile *pRoamProfile;
+	tCsrRoamProfile *roam_profile;
 	int status;
 	struct hdd_station_ctx *sta_ctx =
 		WLAN_HDD_GET_STATION_CTX_PTR(adapter);
@@ -17688,15 +17688,15 @@ static int __wlan_hdd_cfg80211_join_ibss(struct wiphy *wiphy,
 		return -EALREADY;
 	}
 
-	pRoamProfile = &pWextState->roamProfile;
+	roam_profile = &pWextState->roamProfile;
 
-	if (eCSR_BSS_TYPE_START_IBSS != pRoamProfile->BSSType) {
+	if (eCSR_BSS_TYPE_START_IBSS != roam_profile->BSSType) {
 		hdd_err("Interface type is not set to IBSS");
 		return -EINVAL;
 	}
 
 	/* enable selected protection checks in IBSS mode */
-	pRoamProfile->cfg_protection = IBSS_CFG_PROTECTION_ENABLE_MASK;
+	roam_profile->cfg_protection = IBSS_CFG_PROTECTION_ENABLE_MASK;
 
 	if (QDF_STATUS_E_FAILURE == sme_cfg_set_int(hdd_ctx->hHal,
 						    WNI_CFG_IBSS_ATIM_WIN_SIZE,
@@ -17723,20 +17723,20 @@ static int __wlan_hdd_cfg80211_join_ibss(struct wiphy *wiphy,
 	}
 	if ((params->beacon_interval > CFG_BEACON_INTERVAL_MIN)
 	    && (params->beacon_interval <= CFG_BEACON_INTERVAL_MAX))
-		pRoamProfile->beaconInterval = params->beacon_interval;
+		roam_profile->beaconInterval = params->beacon_interval;
 	else {
-		pRoamProfile->beaconInterval = CFG_BEACON_INTERVAL_DEFAULT;
+		roam_profile->beaconInterval = CFG_BEACON_INTERVAL_DEFAULT;
 		hdd_debug("input beacon interval %d TU is invalid, use default %d TU",
-			params->beacon_interval, pRoamProfile->beaconInterval);
+			params->beacon_interval, roam_profile->beaconInterval);
 	}
 
 	/* Set Channel */
 	if (channelNum)	{
 		/* Set the Operational Channel */
 		hdd_debug("set channel %d", channelNum);
-		pRoamProfile->ChannelInfo.numOfChannels = 1;
+		roam_profile->ChannelInfo.numOfChannels = 1;
 		sta_ctx->conn_info.operationChannel = channelNum;
-		pRoamProfile->ChannelInfo.ChannelList =
+		roam_profile->ChannelInfo.ChannelList =
 			&sta_ctx->conn_info.operationChannel;
 	}
 
@@ -17801,7 +17801,7 @@ static int __wlan_hdd_cfg80211_leave_ibss(struct wiphy *wiphy,
 	struct hdd_adapter *adapter = WLAN_HDD_GET_PRIV_PTR(dev);
 	struct hdd_wext_state *pWextState =
 		WLAN_HDD_GET_WEXT_STATE_PTR(adapter);
-	tCsrRoamProfile *pRoamProfile;
+	tCsrRoamProfile *roam_profile;
 	struct hdd_context *hdd_ctx = WLAN_HDD_GET_CTX(adapter);
 	int status;
 	QDF_STATUS hal_status;
@@ -17836,10 +17836,10 @@ static int __wlan_hdd_cfg80211_leave_ibss(struct wiphy *wiphy,
 		return -EIO;
 	}
 
-	pRoamProfile = &pWextState->roamProfile;
+	roam_profile = &pWextState->roamProfile;
 
 	/* Issue disconnect only if interface type is set to IBSS */
-	if (eCSR_BSS_TYPE_START_IBSS != pRoamProfile->BSSType) {
+	if (eCSR_BSS_TYPE_START_IBSS != roam_profile->BSSType) {
 		hdd_err("BSS Type is not set to IBSS");
 		return -EINVAL;
 	}

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

@@ -6552,7 +6552,7 @@ int wlan_hdd_set_channel(struct wiphy *wiphy,
 	    ) {
 		struct hdd_wext_state *pWextState =
 			WLAN_HDD_GET_WEXT_STATE_PTR(adapter);
-		tCsrRoamProfile *pRoamProfile = &pWextState->roamProfile;
+		tCsrRoamProfile *roam_profile = &pWextState->roamProfile;
 		struct hdd_station_ctx *sta_ctx =
 			WLAN_HDD_GET_STATION_CTX_PTR(adapter);
 
@@ -6563,9 +6563,9 @@ int wlan_hdd_set_channel(struct wiphy *wiphy,
 			return -EINVAL;
 		}
 
-		num_ch = pRoamProfile->ChannelInfo.numOfChannels = 1;
+		num_ch = roam_profile->ChannelInfo.numOfChannels = 1;
 		sta_ctx->conn_info.operationChannel = channel;
-		pRoamProfile->ChannelInfo.ChannelList =
+		roam_profile->ChannelInfo.ChannelList =
 			&sta_ctx->conn_info.operationChannel;
 	} else if ((adapter->device_mode == QDF_SAP_MODE)
 		   || (adapter->device_mode == QDF_P2P_GO_MODE)

+ 3 - 3
core/hdd/src/wlan_hdd_ioctl.c

@@ -4756,7 +4756,7 @@ static int drv_cmd_set_ibss_beacon_oui_data(struct hdd_adapter *adapter,
 	uint32_t ibss_ie_length;
 	uint8_t *value = command;
 	tSirModifyIE ibssModifyIE;
-	tCsrRoamProfile *pRoamProfile;
+	tCsrRoamProfile *roam_profile;
 	struct hdd_wext_state *pWextState;
 
 
@@ -4811,10 +4811,10 @@ static int drv_cmd_set_ibss_beacon_oui_data(struct hdd_adapter *adapter,
 		goto exit;
 	}
 
-	pRoamProfile = &pWextState->roamProfile;
+	roam_profile = &pWextState->roamProfile;
 
 	qdf_copy_macaddr(&ibssModifyIE.bssid,
-		     pRoamProfile->BSSIDs.bssid);
+		     roam_profile->BSSIDs.bssid);
 
 	ibssModifyIE.smeSessionId = adapter->sessionId;
 	ibssModifyIE.notify = true;