|
@@ -4029,3 +4029,31 @@ QDF_STATUS policy_mgr_update_nan_vdev_mac_info(struct wlan_objmgr_psoc *psoc,
|
|
|
|
|
|
return status;
|
|
|
}
|
|
|
+
|
|
|
+bool policy_mgr_is_sap_go_on_2g(struct wlan_objmgr_psoc *psoc)
|
|
|
+{
|
|
|
+ struct policy_mgr_psoc_priv_obj *pm_ctx;
|
|
|
+ uint32_t conn_index;
|
|
|
+ bool ret = false;
|
|
|
+
|
|
|
+ pm_ctx = policy_mgr_get_context(psoc);
|
|
|
+ if (!pm_ctx) {
|
|
|
+ policy_mgr_err("Invalid Context");
|
|
|
+ return ret;
|
|
|
+ }
|
|
|
+
|
|
|
+ qdf_mutex_acquire(&pm_ctx->qdf_conc_list_lock);
|
|
|
+ for (conn_index = 0; conn_index < MAX_NUMBER_OF_CONC_CONNECTIONS;
|
|
|
+ conn_index++) {
|
|
|
+ if ((pm_conc_connection_list[conn_index].mode == PM_SAP_MODE ||
|
|
|
+ pm_conc_connection_list[conn_index].mode == PM_P2P_GO_MODE) &&
|
|
|
+ pm_conc_connection_list[conn_index].freq <=
|
|
|
+ WLAN_REG_MAX_24GHZ_CHAN_FREQ &&
|
|
|
+ pm_conc_connection_list[conn_index].in_use)
|
|
|
+ ret = true;
|
|
|
+ }
|
|
|
+ qdf_mutex_release(&pm_ctx->qdf_conc_list_lock);
|
|
|
+
|
|
|
+ return ret;
|
|
|
+}
|
|
|
+
|