From d37a822ae340f2d02d987871d5bb4ac152d9a8cc Mon Sep 17 00:00:00 2001 From: chenguo Date: Fri, 11 Jan 2019 16:20:57 +0800 Subject: [PATCH] qcacmn: Limit maxinum nss number as 2 for MCL platform As a hot fix before h\w part change, just limit maxinum nss number to 2 for MCL platform. CRs-Fixed: 2377796 Change-Id: Iad205804be90b6803ff2f1afa79076dde9b77013 --- hal/wifi3.0/qca6390/hal_6390_rx.h | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/hal/wifi3.0/qca6390/hal_6390_rx.h b/hal/wifi3.0/qca6390/hal_6390_rx.h index 2ace8eb6d9..90721f1651 100644 --- a/hal/wifi3.0/qca6390/hal_6390_rx.h +++ b/hal/wifi3.0/qca6390/hal_6390_rx.h @@ -1,5 +1,5 @@ /* - * Copyright (c) 2016-2018 The Linux Foundation. All rights reserved. + * Copyright (c) 2016-2019 The Linux Foundation. All rights reserved. * * Permission to use, copy, modify, and/or distribute this software for * any purpose with or without fee is hereby granted, provided that the @@ -55,10 +55,16 @@ hal_rx_msdu_start_nss_get_6390(uint8_t *buf) struct rx_msdu_start *msdu_start = &pkt_tlvs->msdu_start_tlv.rx_msdu_start; uint8_t mimo_ss_bitmap; + uint32_t ss_index; mimo_ss_bitmap = HAL_RX_MSDU_START_MIMO_SS_BITMAP(msdu_start); + ss_index = qdf_get_hweight8(mimo_ss_bitmap); - return qdf_get_hweight8(mimo_ss_bitmap); + /* Hot fix only, maxinum nss number for MCL set to 1 (nss 2)*/ + if ((ss_index > 1) && (ss_index <= 3)) + ss_index = 1; + + return ss_index; } /**