瀏覽代碼

qcacld-3.0: Rename hdd_ap_ctx apDisableIntraBssFwd field

Per the Linux coding style "mixed-case names are frowned upon" so
rename field apDisableIntraBssFwd in struct hdd_ap_ctx.

Change-Id: If2442e605a95c8d82df8adf1395e4ed6b53bbbd5
CRs-Fixed: 2134923
Jeff Johnson 7 年之前
父節點
當前提交
82ceb08c9a
共有 3 個文件被更改,包括 5 次插入4 次删除
  1. 2 1
      core/hdd/inc/wlan_hdd_main.h
  2. 2 2
      core/hdd/src/wlan_hdd_cfg80211.c
  3. 1 1
      core/hdd/src/wlan_hdd_ipa.c

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

@@ -809,11 +809,13 @@ struct hdd_station_info {
 /**
  * struct hdd_ap_ctx - SAP/P2PGO specific information
  * @hostapd_state: state control information
+ * @disable_intrabss_fwd: Prevent forwarding between stations
  * @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;
+	bool disable_intrabss_fwd;
 	uint8_t broadcast_sta_id;
 	uint8_t privacy;
 
@@ -823,7 +825,6 @@ struct hdd_ap_ctx {
 
 	struct semaphore semWpsPBCOverlapInd;
 
-	bool apDisableIntraBssFwd;
 
 	qdf_mc_timer_t hdd_ap_inactivity_timer;
 

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

@@ -13740,14 +13740,14 @@ static int __wlan_hdd_cfg80211_change_bss(struct wiphy *wiphy,
 	 * want to update this parameter
 	 */
 	if (-1 != params->ap_isolate) {
-		adapter->sessionCtx.ap.apDisableIntraBssFwd =
+		adapter->sessionCtx.ap.disable_intrabss_fwd =
 			!!params->ap_isolate;
 
 		qdf_ret_status = sme_ap_disable_intra_bss_fwd(hdd_ctx->hHal,
 							      adapter->sessionId,
 							      adapter->sessionCtx.
 							      ap.
-							      apDisableIntraBssFwd);
+							      disable_intrabss_fwd);
 		if (!QDF_IS_STATUS_SUCCESS(qdf_ret_status))
 			ret = -EINVAL;
 	}

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

@@ -4337,7 +4337,7 @@ static void __hdd_ipa_w2i_cb(void *priv, enum ipa_dp_evt_type evt,
 		/* Disable to forward Intra-BSS Rx packets when
 		 * ap_isolate=1 in hostapd.conf
 		 */
-		if (!adapter->sessionCtx.ap.apDisableIntraBssFwd) {
+		if (!adapter->sessionCtx.ap.disable_intrabss_fwd) {
 			/*
 			 * When INTRA_BSS_FWD_OFFLOAD is enabled, FW will send
 			 * all Rx packets to IPA uC, which need to be forwarded