qcacld-3.0: Change the order of AP supports check for TWT
In TWT setup request, move Not supported AP check above scan check Change-Id: I2087dda860fec490daef846f0d82648a634f35c5 CRs-Fixed: 3143494
This commit is contained in:

committed by
Madan Koyyalamudi

父節點
3c81d9ba8c
當前提交
50b08ca835
@@ -945,14 +945,6 @@ int osif_twt_setup_req(struct wlan_objmgr_vdev *vdev,
|
||||
}
|
||||
|
||||
vdev_id = wlan_vdev_get_id(vdev);
|
||||
ret = osif_is_twt_command_allowed(vdev, vdev_id, psoc);
|
||||
if (ret)
|
||||
return ret;
|
||||
|
||||
if (osif_twt_setup_conc_allowed(psoc, vdev_id)) {
|
||||
osif_err_rl("TWT setup reject: SCC or MCC concurrency exists");
|
||||
return -EAGAIN;
|
||||
}
|
||||
|
||||
ret = wlan_cfg80211_nla_parse_nested(tb2,
|
||||
QCA_WLAN_VENDOR_ATTR_TWT_SETUP_MAX,
|
||||
@@ -987,6 +979,15 @@ int osif_twt_setup_req(struct wlan_objmgr_vdev *vdev,
|
||||
return -EOPNOTSUPP;
|
||||
}
|
||||
|
||||
ret = osif_is_twt_command_allowed(vdev, vdev_id, psoc);
|
||||
if (ret)
|
||||
return ret;
|
||||
|
||||
if (osif_twt_setup_conc_allowed(psoc, vdev_id)) {
|
||||
osif_err_rl("TWT setup reject: SCC or MCC concurrency exists");
|
||||
return -EAGAIN;
|
||||
}
|
||||
|
||||
ucfg_twt_cfg_get_congestion_timeout(psoc, &congestion_timeout);
|
||||
|
||||
if (congestion_timeout) {
|
||||
|
Reference in New Issue
Block a user