qcacld-3.0: Disable 11be if downgraded via the vendor command
To configure vendor requested phy_mode on all interfaces, iterate all STA adapters which are in disconnect state to configure the new VDEV phy_mode. Change-Id: Ibd9d8959609c1ab07caa26cb8c9227c56e8fd234 CRs-Fixed: 3671847
This commit is contained in:

committed by
Ravindra Konda

parent
0530c3b2a3
commit
178527a019
@@ -9107,6 +9107,8 @@ int hdd_set_phy_mode(struct hdd_adapter *adapter,
|
||||
uint8_t supported_band;
|
||||
uint32_t bonding_mode;
|
||||
int ret = 0;
|
||||
wlan_net_dev_ref_dbgid dbgid = NET_DEV_HOLD_GET_ADAPTER_BY_VDEV;
|
||||
struct hdd_adapter *curr_adapter, *next_adapter;
|
||||
|
||||
if (!psoc) {
|
||||
hdd_err("psoc is NULL");
|
||||
@@ -9126,8 +9128,21 @@ int hdd_set_phy_mode(struct hdd_adapter *adapter,
|
||||
if (ret < 0)
|
||||
return ret;
|
||||
|
||||
return hdd_update_phymode(adapter, phymode, supported_band,
|
||||
ret = hdd_update_phymode(adapter, phymode, supported_band,
|
||||
bonding_mode);
|
||||
if (ret)
|
||||
return ret;
|
||||
|
||||
hdd_for_each_adapter_dev_held_safe(hdd_ctx, curr_adapter, next_adapter,
|
||||
dbgid) {
|
||||
if (curr_adapter->device_mode == QDF_STA_MODE &&
|
||||
!hdd_cm_is_vdev_connected(curr_adapter->deflink))
|
||||
hdd_set_vdev_phy_mode(curr_adapter, vendor_phy_mode);
|
||||
|
||||
hdd_adapter_dev_put_debug(curr_adapter, dbgid);
|
||||
}
|
||||
|
||||
return 0;
|
||||
}
|
||||
|
||||
/**
|
||||
|
Reference in New Issue
Block a user