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");