wlan: Move the SAP to user configured channel on STA disconnect

If STA+SAP SCC allowed on DFS channel then standalone SAP is not
allowed to operate on the DFS channel. But it can operate on DFS
channel if concurrent STA is connected on the same channel.
So move the SAP from DFS channel to user configured channel if
STA gets disconnected from the reference AP.

CRs-Fixed: 2161091
Change-Id: Iec30d528ee9511de3d157869af01b2b2f07d3b23
diff --git a/CORE/HDD/src/wlan_hdd_cfg80211.c b/CORE/HDD/src/wlan_hdd_cfg80211.c
index d6e3b7d..f4269e4 100644
--- a/CORE/HDD/src/wlan_hdd_cfg80211.c
+++ b/CORE/HDD/src/wlan_hdd_cfg80211.c
@@ -10455,6 +10455,7 @@
                          "%s: Invalid Channel [%d]", __func__, pConfig->channel);
                  return -EINVAL;
             }
+            pConfig->user_config_channel = pConfig->channel;
         }
         else
         {
@@ -10464,7 +10465,8 @@
                   WLANSAP_SetChannelRange(hHal, hdd_pConfig->apStartChannelNum,
                        hdd_pConfig->apEndChannelNum,hdd_pConfig->apOperatingBand);
              }
-                   pHddCtx->is_dynamic_channel_range_set = 0;
+             pHddCtx->is_dynamic_channel_range_set = 0;
+             pConfig->user_config_channel = SAP_DEFAULT_24GHZ_CHANNEL;
         }
     }
     else