From 2c2a67d2d89b414311041bca8b92ecd987a3d89a Mon Sep 17 00:00:00 2001 From: Liangwei Dong Date: Tue, 27 Dec 2016 03:36:10 -0500 Subject: qcacld-2.0: Fix same channel roam issue When Roaming to same channel candidate AP, if device is running in MCC mode, a channel request is still needed for auth frame sending. Otherwise, the auth frame could be sent in wrong channel. Change-Id: I4eb63080e90030d505e7c4629b1b55d3defbb77a CRs-Fixed: 1105736 --- CORE/SERVICES/WMA/wma.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/CORE/SERVICES/WMA/wma.c b/CORE/SERVICES/WMA/wma.c index aa91f0f7ecc3..82f4f9f8542e 100644 --- a/CORE/SERVICES/WMA/wma.c +++ b/CORE/SERVICES/WMA/wma.c @@ -14283,8 +14283,8 @@ static void wma_set_channel(tp_wma_handle wma, tpSwitchChannelParams params) WMA_ROAM_PREAUTH_CHAN_NONE) { /* Is channel change required? */ - if(vos_chan_to_freq(params->channelNumber) != - wma->interfaces[vdev_id].mhz) + if(wma_is_mcc_starting(wma, + vos_chan_to_freq(params->channelNumber))) { status = wma_roam_preauth_chan_set(wma, params, vdev_id); -- cgit v1.2.3