prima: limit dwell time to 40ms for scan when miracast is running

In the current implementation, the min channel time and max
channel time is 20ms and 40 ms respectively for active scan and
the max channel is 110ms for passive scan.

When scanning the passive channels the device will be offchannel
for 110ms which is affecting the miracast session. So limiting
the max channel time to 40ms when a miracast session is running.

CRs-Fixed: 702516
Change-Id: I08e21bd2974e888696a9708710adee998e3c43fd
diff --git a/CORE/HDD/src/wlan_hdd_main.c b/CORE/HDD/src/wlan_hdd_main.c
index 98e5be2..f807119 100644
--- a/CORE/HDD/src/wlan_hdd_main.c
+++ b/CORE/HDD/src/wlan_hdd_main.c
@@ -3763,6 +3763,7 @@
            //Filtertype value should be either 0-Disabled, 1-Source, 2-sink
            pHddCtx->drvr_miracast = filterType;
            hdd_tx_rx_pkt_cnt_stat_timer_handler(pHddCtx);
+           sme_SetMiracastMode(pHddCtx->hHal, pHddCtx->drvr_miracast);
         }
        else if (strncmp(command, "SETMCRATE", 9) == 0)
        {