mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-28 10:41:38 -04:00
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
This commit is contained in:
parent
56023f5649
commit
0e8a2c6558
2 changed files with 30 additions and 1 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Reference in a new issue