ソースを参照

qcacld-3.0: Check SBS mode in wlan_hdd_cm_handle_sap_sta_dfs_conc

In SAP+STA scenario, if SBS mode support, should check if meet SBS
condition before check MCC/DFS constrain.

Change-Id: Id20145dfffabc6e649d0511db8eeab27595e16d1
CRs-Fixed: 3447053
Will Huang 2 年 前
コミット
337c6ad8a3
1 ファイル変更10 行追加0 行削除
  1. 10 0
      core/hdd/src/wlan_hdd_cm_connect.c

+ 10 - 0
core/hdd/src/wlan_hdd_cm_connect.c

@@ -640,6 +640,16 @@ def_chan:
 		return true;
 	}
 
+	if (policy_mgr_is_hw_sbs_capable(hdd_ctx->psoc) &&
+	    ch_freq &&
+	    policy_mgr_are_sbs_chan(hdd_ctx->psoc,
+				    ch_freq,
+				    hdd_ap_ctx->operating_chan_freq)) {
+		hdd_debug("sta freq %d sap freq %d in sbs mode is allowed",
+			  ch_freq, hdd_ap_ctx->operating_chan_freq);
+		return true;
+	}
+
 	/*
 	 * If channel is 0 or DFS or LTE unsafe then better to call pcl and
 	 * find out the best channel. If channel is non-dfs 5 GHz then