mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-12 15:49:17 -04:00
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
This commit is contained in:
parent
03e080c45a
commit
d34e41fd41
1 changed files with 0 additions and 19 deletions
|
|
@ -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");
|
||||
|
|
|
|||
Loading…
Reference in a new issue