diff options
| author | Edhar, Mahesh Kumar <c_medhar@qti.qualcomm.com> | 2014-11-03 12:00:00 +0530 |
|---|---|---|
| committer | AnjaneeDevi Kapparapu <c_akappa@qti.qualcomm.com> | 2014-11-04 16:31:49 +0530 |
| commit | 6ae47b2bbc90ecd6501c9833dd10b863f735d684 (patch) | |
| tree | 79b2ae51eb82347bf20057fda28be79d8a0f39be | |
| parent | f70adf8e66439cad9b4602c7ca09284b5b23ae01 (diff) | |
qcacld: Enhancements to GETLINKSTATUS private ioctl.
Enhance GETLINKSTATUS private ioctl to indicate VHT and MIMO
capability of station link.
Change-Id: Ie89f31e4f73ae2d63ddc9e6dc7d0129a8dd60299
CRs-Fixed: 748835
| -rw-r--r-- | CORE/SERVICES/WMA/wma.c | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/CORE/SERVICES/WMA/wma.c b/CORE/SERVICES/WMA/wma.c index d7179e057a35..b417cd48707e 100644 --- a/CORE/SERVICES/WMA/wma.c +++ b/CORE/SERVICES/WMA/wma.c @@ -179,6 +179,9 @@ #define LINK_STATUS_LEGACY 0 #define LINK_STATUS_VHT 0x1 #define LINK_STATUS_MIMO 0x2 +#define LINK_SUPPORT_VHT 0x4 +#define LINK_SUPPORT_MIMO 0x8 + #define LINK_RATE_VHT 0x3 /* Data rate 100KBPS based on IE Index */ struct index_data_rate_type @@ -2270,6 +2273,14 @@ static int wma_link_status_rsp(tp_wma_handle wma, u_int8_t *buf) (ht_info->rx_preamble == LINK_RATE_VHT)) link_status |= LINK_STATUS_VHT; + if (intr[ht_info->vdevid].nss == 2) + link_status |= LINK_SUPPORT_MIMO; + + if (intr[ht_info->vdevid].rate_flags & + (eHAL_TX_RATE_VHT20 | eHAL_TX_RATE_VHT40 | + eHAL_TX_RATE_VHT80)) + link_status |= LINK_SUPPORT_VHT; + wma_post_link_status(intr[ht_info->vdevid].plink_status_req, link_status); intr[ht_info->vdevid].plink_status_req = NULL; |
