浏览代码

qcacld-3.0: Rename hdd_ap_ctx uPrivacy field

Per the Linux coding style "mixed-case names are frowned upon" and
"so-called Hungarian notation [...] is brain damaged" so rename field
uPrivacy in struct hdd_ap_ctx.

Change-Id: I9e0af2e7b61b4678f28868142a0864b1d5d5db77
CRs-Fixed: 2134920
Jeff Johnson 7 年之前
父节点
当前提交
c8d94a1ad1
共有 2 个文件被更改,包括 6 次插入6 次删除
  1. 2 2
      core/hdd/inc/wlan_hdd_main.h
  2. 4 4
      core/hdd/src/wlan_hdd_hostapd.c

+ 2 - 2
core/hdd/inc/wlan_hdd_main.h

@@ -810,12 +810,12 @@ struct hdd_station_info {
  * struct hdd_ap_ctx - SAP/P2PGO specific information
  * @hostapd_state: state control information
  * @broadcast_sta_id: Station ID assigned after BSS starts
+ * @privacy: The privacy bits of configuration
  */
 struct hdd_ap_ctx {
 	struct hdd_hostapd_state hostapd_state;
 	uint8_t broadcast_sta_id;
-
-	uint8_t uPrivacy;       /* The privacy bits of configuration */
+	uint8_t privacy;
 
 	tSirWPSPBCProbeReq WPSPBCProbeReq;
 

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

@@ -1513,7 +1513,7 @@ QDF_STATUS hdd_hostapd_sap_event_cb(tpSap_Event pSapEvent,
 			/* @@@ need wep logic here to set privacy bit */
 			qdf_status =
 				hdd_softap_register_bc_sta(adapter,
-							   ap_ctx->uPrivacy);
+							   ap_ctx->privacy);
 			if (!QDF_IS_STATUS_SUCCESS(qdf_status)) {
 				hdd_warn("Failed to register BC STA %d",
 				       qdf_status);
@@ -1888,7 +1888,7 @@ QDF_STATUS hdd_hostapd_sap_event_cb(tpSap_Event pSapEvent,
 			qdf_status = hdd_softap_register_sta(
 						adapter,
 						true,
-						ap_ctx->uPrivacy,
+						ap_ctx->privacy,
 						event->staId, 0, 0,
 						(struct qdf_mac_addr *)
 						wrqu.addr.sa_data,
@@ -1901,7 +1901,7 @@ QDF_STATUS hdd_hostapd_sap_event_cb(tpSap_Event pSapEvent,
 			qdf_status = hdd_softap_register_sta(
 						adapter,
 						false,
-						ap_ctx->uPrivacy,
+						ap_ctx->privacy,
 						event->staId, 0, 0,
 						(struct qdf_mac_addr *)
 						wrqu.addr.sa_data,
@@ -7729,7 +7729,7 @@ int wlan_hdd_cfg80211_start_bss(struct hdd_adapter *adapter,
 	pConfig->privacy = (pMgmt_frame->u.beacon.capab_info &
 			    WLAN_CAPABILITY_PRIVACY) ? true : false;
 
-	(WLAN_HDD_GET_AP_CTX_PTR(adapter))->uPrivacy = pConfig->privacy;
+	(WLAN_HDD_GET_AP_CTX_PTR(adapter))->privacy = pConfig->privacy;
 
 	/*Set wps station to configured */
 	pIe = wlan_hdd_get_wps_ie_ptr(pBeacon->tail, pBeacon->tail_len);