qcacmn: Get NSS info from SS bitmap

Get NSS info from a the MIMO SS bitmap within msdu_start info

Change-Id: I794b093783b5f1ffc7faf335da84cbc07375d520
CRs-Fixed: 2215660
这个提交包含在:
psimha
2018-04-09 17:48:15 -07:00
提交者 nshrivas
父节点 56023f5649
当前提交 0e8a2c6558
修改 2 个文件,包含 30 行新增1 行删除

查看文件

@@ -576,6 +576,22 @@ int qdf_get_cpu(void)
return __qdf_get_cpu();
}
/**
* qdf_get_hweight8() - count num of 1's in bitmap
* @value: input bitmap
*
* Count num of 1's set in the bitmap
*
* Return: num of 1's
*/
static inline
unsigned int qdf_get_hweight8(unsigned int w)
{
unsigned int res = w - ((w >> 1) & 0x55);
res = (res & 0x33) + ((res >> 2) & 0x33);
return (res + (res >> 4)) & 0x0F;
}
/**
* qdf_device_init_wakeup() - allow a device to wake up the aps system
* @qdf_dev: the qdf device context