diff --git a/core/mac/src/pe/lim/lim_process_mlm_req_messages.c b/core/mac/src/pe/lim/lim_process_mlm_req_messages.c index e477f3b4b08e..3a83dad13b0d 100644 --- a/core/mac/src/pe/lim/lim_process_mlm_req_messages.c +++ b/core/mac/src/pe/lim/lim_process_mlm_req_messages.c @@ -169,39 +169,6 @@ void lim_process_mlm_req_messages(tpAniSirGlobal mac_ctx, } /* switch (msg->type) */ } -/** - * lim_change_channel_with_callback() - change channel and register callback - * @mac_ctx: global MAC context - * @new_chan: new channel to switch - * @callback: Callback function - * @cbdata: callback data - * @session_entry: PE session pointer - * - * This function is called to change channel and perform off channel operation - * if required. The caller registers a callback to be called at the end of the - * channel change. - * - * Return: None - */ -void -lim_change_channel_with_callback(tpAniSirGlobal mac_ctx, uint8_t new_chan, - CHANGE_CHANNEL_CALLBACK callback, - uint32_t *cbdata, tpPESession session_entry) -{ - pe_debug("Switching channel to %d", new_chan); - session_entry->channelChangeReasonCode = - LIM_SWITCH_CHANNEL_OPERATION; - - mac_ctx->lim.gpchangeChannelCallback = callback; - mac_ctx->lim.gpchangeChannelData = cbdata; - - lim_send_switch_chnl_params(mac_ctx, new_chan, 0, 0, - CH_WIDTH_20MHZ, session_entry->maxTxPower, - session_entry->peSessionId, false, 0, 0); - - return; -} - /** * lim_covert_channel_scan_type() - switch between ACTIVE and PASSIVE scan type * @mac_ctx: global MAC context diff --git a/core/mac/src/pe/lim/lim_types.h b/core/mac/src/pe/lim/lim_types.h index 308cf00203f8..8a5a03e387a5 100644 --- a/core/mac/src/pe/lim/lim_types.h +++ b/core/mac/src/pe/lim/lim_types.h @@ -947,10 +947,6 @@ void lim_remove_pbc_sessions(tpAniSirGlobal pMac, tpPESession psessionEntry); #define LIM_WPS_OVERLAP_TIMER_MS 10000 -void -lim_change_channel_with_callback(tpAniSirGlobal pMac, uint8_t newChannel, - CHANGE_CHANNEL_CALLBACK callback, - uint32_t *cbdata, tpPESession psessionEntry); void lim_process_remain_on_chn_timeout(tpAniSirGlobal pMac); void lim_send_p2p_action_frame(tpAniSirGlobal pMac, struct scheduler_msg *pMsg);