qcacld-3.0: Downgrade channel bandwidth for DBS2

In DBS mode 2x2 VHT40 2G and 1x1 VHT 40 5G, the MAC 1 (5G)
doesn't support VHT80. Update the ch_width to max of 40Mhz
in beacon OMN ie when switch to DBS2.

Change-Id: If5cf65bca815d1e8df67a1515b2fb3edcba52a8e
CRs-Fixed: 2520719
このコミットが含まれているのは:
Liangwei Dong
2019-10-23 15:42:59 +08:00
committed by nshrivas
コミット 8c65f23490
8個のファイルの変更22行の追加5行の削除

ファイルの表示

@@ -1266,7 +1266,8 @@ struct policy_mgr_sme_cbacks {
QDF_STATUS (*sme_pdev_set_hw_mode)(struct policy_mgr_hw_mode msg);
QDF_STATUS (*sme_pdev_set_pcl)(struct policy_mgr_pcl_list *msg);
QDF_STATUS (*sme_nss_update_request)(uint32_t vdev_id,
uint8_t new_nss, policy_mgr_nss_update_cback cback,
uint8_t new_nss, uint8_t ch_width,
policy_mgr_nss_update_cback cback,
uint8_t next_action, struct wlan_objmgr_psoc *psoc,
enum policy_mgr_conn_update_reason reason,
uint32_t original_vdev_id);

ファイルの表示

@@ -2763,12 +2763,15 @@ QDF_STATUS policy_mgr_nss_update(struct wlan_objmgr_psoc *psoc,
uint32_t vdev_id;
uint32_t original_nss, ch_freq;
struct policy_mgr_psoc_priv_obj *pm_ctx;
enum phy_ch_width ch_width = CH_WIDTH_MAX;
pm_ctx = policy_mgr_get_context(psoc);
if (!pm_ctx) {
policy_mgr_err("Invalid Context");
return status;
}
if (next_action == PM_DBS2 && band == POLICY_MGR_BAND_5)
ch_width = CH_WIDTH_40MHZ;
count = policy_mgr_mode_specific_connection_count(psoc,
PM_P2P_GO_MODE, list);
@@ -2794,7 +2797,7 @@ QDF_STATUS policy_mgr_nss_update(struct wlan_objmgr_psoc *psoc,
(band == POLICY_MGR_BAND_5 &&
WLAN_REG_IS_5GHZ_CH_FREQ(ch_freq)))) {
status = pm_ctx->sme_cbacks.sme_nss_update_request(
vdev_id, new_nss,
vdev_id, new_nss, ch_width,
policy_mgr_nss_update_cb,
next_action, psoc, reason,
original_vdev_id);
@@ -2828,7 +2831,7 @@ QDF_STATUS policy_mgr_nss_update(struct wlan_objmgr_psoc *psoc,
(band == POLICY_MGR_BAND_5 &&
WLAN_REG_IS_5GHZ_CH_FREQ(ch_freq)))) {
status = pm_ctx->sme_cbacks.sme_nss_update_request(
vdev_id, new_nss,
vdev_id, new_nss, ch_width,
policy_mgr_nss_update_cb,
next_action, psoc, reason,
original_vdev_id);