浏览代码

qcacld-3.0: Set global operating class for 6GHz band

Use global operating class for 6GHz to validate the
channels.

Change-Id: I8a3d8d35a4f7d232b70f2e6c51f145c6410a0ff8
CRs-Fixed: 2714941
Kiran Kumar Lokere 4 年之前
父节点
当前提交
39f91926a7
共有 1 个文件被更改,包括 4 次插入0 次删除
  1. 4 0
      core/sme/src/rrm/sme_rrm.c

+ 4 - 0
core/sme/src/rrm/sme_rrm.c

@@ -1109,6 +1109,10 @@ QDF_STATUS sme_rrm_process_beacon_report_req_ind(struct mac_context *mac,
 	else
 		country[2] = OP_CLASS_GLOBAL;
 
+	if (wlan_reg_is_6ghz_op_class(mac->pdev,
+				      beacon_req->channel_info.reg_class))
+		country[2] = OP_CLASS_GLOBAL;
+
 	sme_debug("RRM_SCN: Index:%d Request Reg class %d, AP's country code %c%c 0x%x, channel = %d",
 		  beacon_req->measurement_idx,
 		  beacon_req->channel_info.reg_class,