From d34e41fd4167b2b9baf92865ce95a7885e4dc5ae Mon Sep 17 00:00:00 2001 From: Kiran Kumar Lokere Date: Tue, 9 Jul 2019 19:11:36 -0700 Subject: [PATCH] qcacld-3.0: Remove current band check during new band setting Current band value is updated with new setting and the new band setting is allowed only if the new band setting value is lower configuration than the current one else it fails the new band setting. If user configures band setting to lower value and if later setting value has higher configuration then the current band check fails the new setting. Remove the current band check during new band setting by runtime user configuration. Change-Id: I3facf99e567e34de3eb675f29962bf809040244e CRs-Fixed: 2486679 --- core/hdd/src/wlan_hdd_regulatory.c | 19 ------------------- 1 file changed, 19 deletions(-) diff --git a/core/hdd/src/wlan_hdd_regulatory.c b/core/hdd/src/wlan_hdd_regulatory.c index 2508da7c8f18..6374eff847cc 100644 --- a/core/hdd/src/wlan_hdd_regulatory.c +++ b/core/hdd/src/wlan_hdd_regulatory.c @@ -756,7 +756,6 @@ int hdd_reg_set_band(struct net_device *dev, u8 ui_band) enum band_info current_band; enum band_info connected_band; long lrc; - uint8_t band_capability; hdd_ctx = WLAN_HDD_GET_CTX(adapter); @@ -777,24 +776,6 @@ int hdd_reg_set_band(struct net_device *dev, u8 ui_band) hdd_debug("change band to %u", band); - status = ucfg_mlme_get_band_capability(hdd_ctx->psoc, &band_capability); - if (QDF_IS_STATUS_ERROR(status)) - return -EIO; - - if ((band == BAND_2G && band_capability == 2) || - (band == BAND_5G && band_capability == 1) || - (band == BAND_ALL && band_capability != 0)) { - hdd_err("band value %u violate INI settings %u", - band, band_capability); - return -EIO; - } - - if (band == BAND_ALL) { - hdd_debug("Auto band received. Setting band same as ini value %d", - band_capability); - band = band_capability; - } - if (ucfg_reg_get_curr_band(hdd_ctx->pdev, ¤t_band) != QDF_STATUS_SUCCESS) { hdd_debug("Failed to get current band config");