diff --git a/core/hdd/src/wlan_hdd_cfg80211.c b/core/hdd/src/wlan_hdd_cfg80211.c index 67d2ef325163..513b98a9bd06 100644 --- a/core/hdd/src/wlan_hdd_cfg80211.c +++ b/core/hdd/src/wlan_hdd_cfg80211.c @@ -10280,10 +10280,10 @@ int wlan_hdd_request_pre_cac(uint8_t channel) * connection update should result in DBS mode */ status = policy_mgr_update_and_wait_for_connection_update( - hdd_ctx->hdd_psoc, - ap_adapter->session_id, - pre_cac_chan, - SIR_UPDATE_REASON_PRE_CAC); + hdd_ctx->hdd_psoc, + ap_adapter->session_id, + pre_cac_chan, + POLICY_MGR_UPDATE_REASON_PRE_CAC); if (QDF_IS_STATUS_ERROR(status)) { hdd_err("error in moving to DBS mode"); goto stop_close_pre_cac_adapter; @@ -20025,7 +20025,7 @@ static int __wlan_hdd_cfg80211_join_ibss(struct wiphy *wiphy, status = policy_mgr_current_connections_update(hdd_ctx->hdd_psoc, adapter->session_id, channelNum, - SIR_UPDATE_REASON_JOIN_IBSS); + POLICY_MGR_UPDATE_REASON_JOIN_IBSS); if (QDF_STATUS_E_FAILURE == status) { hdd_err("connections update failed!!"); return -EINVAL; diff --git a/core/hdd/src/wlan_hdd_hostapd.c b/core/hdd/src/wlan_hdd_hostapd.c index 91f40d2cb6fb..a89758994b9b 100644 --- a/core/hdd/src/wlan_hdd_hostapd.c +++ b/core/hdd/src/wlan_hdd_hostapd.c @@ -8653,7 +8653,7 @@ static int __wlan_hdd_cfg80211_start_ap(struct wiphy *wiphy, status = policy_mgr_current_connections_update(hdd_ctx->hdd_psoc, adapter->session_id, channel, - SIR_UPDATE_REASON_START_AP); + POLICY_MGR_UPDATE_REASON_START_AP); if (QDF_STATUS_E_FAILURE == status) { hdd_err("ERROR: connections update failed!!"); return -EINVAL; diff --git a/core/hdd/src/wlan_hdd_wext.c b/core/hdd/src/wlan_hdd_wext.c index c9653b8a9bdb..b9bff30f5b64 100644 --- a/core/hdd/src/wlan_hdd_wext.c +++ b/core/hdd/src/wlan_hdd_wext.c @@ -8120,7 +8120,7 @@ static int iw_get_policy_manager_ut_ops(struct hdd_context *hdd_ctx, HW_MODE_DBS_NONE, HW_MODE_AGILE_DFS_NONE, HW_MODE_SBS_NONE, - SIR_UPDATE_REASON_UT, PM_NOP); + POLICY_MGR_UPDATE_REASON_UT, PM_NOP); } else if (apps_args[0] == 1) { hdd_err("set hw mode for dual mac"); policy_mgr_pdev_set_hw_mode(hdd_ctx->hdd_psoc, @@ -8131,7 +8131,7 @@ static int iw_get_policy_manager_ut_ops(struct hdd_context *hdd_ctx, HW_MODE_DBS, HW_MODE_AGILE_DFS_NONE, HW_MODE_SBS_NONE, - SIR_UPDATE_REASON_UT, PM_NOP); + POLICY_MGR_UPDATE_REASON_UT, PM_NOP); } } break; @@ -8144,7 +8144,7 @@ static int iw_get_policy_manager_ut_ops(struct hdd_context *hdd_ctx, action = policy_mgr_current_connections_update( hdd_ctx->hdd_psoc, adapter->session_id, apps_args[0], - SIR_UPDATE_REASON_UT); + POLICY_MGR_UPDATE_REASON_UT); pr_info("next action is %d {HDD_NOP = 0, HDD_DBS, HDD_DBS_DOWNGRADE, HDD_MCC, HDD_MCC_UPGRADE}", action); } break; diff --git a/core/mac/inc/sir_api.h b/core/mac/inc/sir_api.h index 6389640f8670..4d7950ac64fd 100644 --- a/core/mac/inc/sir_api.h +++ b/core/mac/inc/sir_api.h @@ -131,33 +131,6 @@ typedef uint8_t tSirVersionString[SIR_VERSION_STRING_LEN]; /* Maximum number of peers for SAP */ #define SIR_SAP_MAX_NUM_PEERS 32 -/** - * enum sir_conn_update_reason: Reason for conc connection update - * @SIR_UPDATE_REASON_SET_OPER_CHAN: Set probable operating channel - * @SIR_UPDATE_REASON_JOIN_IBSS: Join IBSS - * @SIR_UPDATE_REASON_UT: Unit test related - * @SIR_UPDATE_REASON_START_AP: Start AP - * @SIR_UPDATE_REASON_NORMAL_STA: Connection to Normal STA - * @SIR_UPDATE_REASON_HIDDEN_STA: Connection to Hidden STA - * @SIR_UPDATE_REASON_OPPORTUNISTIC: Opportunistic HW mode update - * @SIR_UPDATE_REASON_NSS_UPDATE: NSS update - * @SIR_UPDATE_REASON_CHANNEL_SWITCH: Channel switch - * @SIR_UPDATE_REASON_CHANNEL_SWITCH_STA: Channel switch for STA - */ -enum sir_conn_update_reason { - SIR_UPDATE_REASON_SET_OPER_CHAN, - SIR_UPDATE_REASON_JOIN_IBSS, - SIR_UPDATE_REASON_UT, - SIR_UPDATE_REASON_START_AP, - SIR_UPDATE_REASON_NORMAL_STA, - SIR_UPDATE_REASON_HIDDEN_STA, - SIR_UPDATE_REASON_OPPORTUNISTIC, - SIR_UPDATE_REASON_NSS_UPDATE, - SIR_UPDATE_REASON_CHANNEL_SWITCH, - SIR_UPDATE_REASON_CHANNEL_SWITCH_STA, - SIR_UPDATE_REASON_PRE_CAC, -}; - typedef enum { eSIR_EXTSCAN_INVALID, eSIR_EXTSCAN_START_RSP, diff --git a/core/sap/src/sap_fsm.c b/core/sap/src/sap_fsm.c index 5ba1584ba2bf..3e69138880c4 100644 --- a/core/sap/src/sap_fsm.c +++ b/core/sap/src/sap_fsm.c @@ -1098,7 +1098,7 @@ QDF_STATUS sap_goto_channel_sel(struct sap_context *sap_context, mac_ctx->psoc, sap_context->sessionId, sap_context->channel, - SIR_UPDATE_REASON_START_AP); + POLICY_MGR_UPDATE_REASON_START_AP); if (QDF_IS_STATUS_ERROR(qdf_status)) return qdf_status; } diff --git a/core/sme/inc/sme_inside.h b/core/sme/inc/sme_inside.h index ac49b1a1eea4..16e1a1395cc6 100644 --- a/core/sme/inc/sme_inside.h +++ b/core/sme/inc/sme_inside.h @@ -154,6 +154,8 @@ typedef struct s_tdls_cmd { * @session_id: Session ID * @set_hw_mode_cb: HDD nss update callback * @context: Adapter context + * @next_action: Action to be taken after nss update + * @reason: reason for nss update */ struct s_nss_update_cmd { uint32_t new_nss; @@ -161,7 +163,7 @@ struct s_nss_update_cmd { void *nss_update_cb; void *context; uint8_t next_action; - enum sir_conn_update_reason reason; + enum policy_mgr_conn_update_reason reason; }; typedef struct tagSmeCmd { diff --git a/core/sme/src/common/sme_api.c b/core/sme/src/common/sme_api.c index 1d5dec707c5c..71b1608da142 100644 --- a/core/sme/src/common/sme_api.c +++ b/core/sme/src/common/sme_api.c @@ -154,7 +154,7 @@ static QDF_STATUS sme_process_set_hw_mode_resp(tpAniSirGlobal mac, uint8_t *msg) bool found; policy_mgr_pdev_set_hw_mode_cback callback = NULL; struct sir_set_hw_mode_resp *param; - enum sir_conn_update_reason reason; + enum policy_mgr_conn_update_reason reason; struct csr_roam_session *session; uint32_t session_id; @@ -219,7 +219,7 @@ static QDF_STATUS sme_process_set_hw_mode_resp(tpAniSirGlobal mac, uint8_t *msg) goto end; } session = CSR_GET_SESSION(mac, session_id); - if (reason == SIR_UPDATE_REASON_HIDDEN_STA) { + if (reason == POLICY_MGR_UPDATE_REASON_HIDDEN_STA) { /* In the case of hidden SSID, connection update * (set hw mode) is done after the scan with reason * code eCsrScanForSsid completes. The connect/failure diff --git a/core/sme/src/csr/csr_api_scan.c b/core/sme/src/csr/csr_api_scan.c index a1d4aa13c7f3..daef229099ce 100644 --- a/core/sme/src/csr/csr_api_scan.c +++ b/core/sme/src/csr/csr_api_scan.c @@ -2061,7 +2061,7 @@ static void csr_handle_nxt_cmd(tpAniSirGlobal mac_ctx, case eCsrNextCheckAllowConc: ret = policy_mgr_current_connections_update(mac_ctx->psoc, session_id, chan, - SIR_UPDATE_REASON_HIDDEN_STA); + POLICY_MGR_UPDATE_REASON_HIDDEN_STA); sme_debug("chan: %d session: %d status: %d", chan, session_id, ret);