qcacld-3.0: Do not include VHT Op info in HE OP IE

VHT operation info should not be included in HE OP IE if the frame
carries the VHT OP IE or sent in 2.4GHz. Remove the VHT OP info
from HE OP IE.

Change-Id: Ic6e946e334f738ae35f43aa2bf6c9a026b053b79
CRs-Fixed: 2780207
This commit is contained in:
Kiran Kumar Lokere 2020-09-22 16:34:37 -07:00 • committed by snandini
commit f85efa1f0d

View file

@ -6096,24 +6096,8 @@ populate_dot11f_he_operation(struct mac_context *mac_ctx,
qdf_mem_copy(he_op, &session->he_op, sizeof(*he_op));
he_op->present = 1;
if (!session->he_6ghz_band) {
he_op->vht_oper_present = 1;
if (session->ch_width > CH_WIDTH_40MHZ) {
he_op->vht_oper.info.chan_width = 1;
he_op->vht_oper.info.center_freq_seg0 =
session->ch_center_freq_seg0;
if (session->ch_width == CH_WIDTH_80P80MHZ ||
session->ch_width == CH_WIDTH_160MHZ)
he_op->vht_oper.info.center_freq_seg1 =
session->ch_center_freq_seg1;
else
he_op->vht_oper.info.center_freq_seg1 = 0;
} else {
he_op->vht_oper.info.chan_width = 0;
he_op->vht_oper.info.center_freq_seg0 = 0;
he_op->vht_oper.info.center_freq_seg1 = 0;
}
} else {
he_op->vht_oper_present = 0;
if (session->he_6ghz_band) {
he_op->oper_info_6g_present = 1;
he_op->oper_info_6g.info.ch_width = session->ch_width;
he_op->oper_info_6g.info.center_freq_seg0 =