qcacmn: Temporary WAR to bypass beacon channel mismatch check

For 4.9GHz, firmware converts the frequency to old regulatory channel
numbers and sends it to host. But host uses new regulatory channel numbers.
Since the received fw channel and beacon channel number is different,
host drops the received beacon and scan entry doesnot get updated.

As a temporary fix, bypass the beacon mismatch check in host.

Change-Id: Ib3e6b7b39ef2feaa1bcf0e0b16a702caccbf6744
diff --git a/umac/scan/dispatcher/src/wlan_scan_utils_api.c b/umac/scan/dispatcher/src/wlan_scan_utils_api.c
index 1eb2986..8449836 100644
--- a/umac/scan/dispatcher/src/wlan_scan_utils_api.c
+++ b/umac/scan/dispatcher/src/wlan_scan_utils_api.c
@@ -815,7 +815,7 @@
 }
 
 qdf_list_t *
-util_scan_unpack_beacon_frame(uint8_t *frame,
+util_scan_unpack_beacon_frame(struct wlan_objmgr_pdev *pdev, uint8_t *frame,
 	qdf_size_t frame_len, uint32_t frm_subtype,
 	struct mgmt_rx_event_params *rx_param)
 {
@@ -931,7 +931,8 @@
 				rx_param->channel;
 	} else if (rx_param->channel !=
 	   scan_entry->channel.chan_idx) {
-		scan_entry->channel_mismatch = true;
+		if (!wlan_reg_chan_is_49ghz(pdev, scan_entry->channel.chan_idx))
+			scan_entry->channel_mismatch = true;
 	}
 
 	if (util_scan_is_hidden_ssid(ssid)) {