فهرست منبع

qcacld-3.0: Skip channel validation in case of acs

qcacld-2.0 to qcacld-3.0 propagation

As per current implementaion whenever ACS is enabled via
INI all the update beacon from cfg80211 module fails because
sapconfig channel points to AUTO_CHANNEL_SELECT(0).

When driver ACS is enabled skip channel validation to fix
this issue.

Change-Id: Ie3e7d19332629fc860752b2240690fd6a15bb0a2
CRs-Fixed: 977101
Rajeev Kumar Sirasanagandla 8 سال پیش
والد
کامیت
a00060280e
1فایلهای تغییر یافته به همراه14 افزوده شده و 8 حذف شده
  1. 14 8
      core/hdd/src/wlan_hdd_hostapd.c

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

@@ -6983,22 +6983,28 @@ int wlan_hdd_cfg80211_start_bss(hdd_adapter_t *pHostapdAdapter,
 			}
 		}
 
-		if (QDF_STATUS_SUCCESS !=
+		/*
+		 * If auto channel is configured i.e. channel is 0,
+		 * so skip channel validation.
+		 */
+		if (AUTO_CHANNEL_SELECT != pConfig->channel) {
+			if (QDF_STATUS_SUCCESS !=
 			    wlan_hdd_validate_operation_channel(pHostapdAdapter,
 							pConfig->channel)) {
-			hdd_err("Invalid Channel [%d]",
+				hdd_err("Invalid Channel [%d]",
 							pConfig->channel);
 				ret = -EINVAL;
 				goto error;
-		}
+			}
 
-		/* reject SAP if DFS channel scan is not allowed */
-		if (!(pHddCtx->config->enableDFSChnlScan) &&
-		    (CHANNEL_STATE_DFS == cds_get_channel_state(
-					     pConfig->channel))) {
-			hdd_err("not allowed to start SAP on DFS channel");
+			/* reject SAP if DFS channel scan is not allowed */
+			if (!(pHddCtx->config->enableDFSChnlScan) &&
+				(CHANNEL_STATE_DFS == cds_get_channel_state(
+					pConfig->channel))) {
+				hdd_err("No SAP start on DFS channel");
 				ret = -EOPNOTSUPP;
 				goto error;
+			}
 		}
 		wlansap_set_dfs_ignore_cac(hHal, iniConfig->ignoreCAC);
 		wlansap_set_dfs_restrict_japan_w53(hHal,