qcacmn: Peer id parsing changes for beryllium
Take care of the MLO peer bit indication to be concatenated with peer_id to access the peer map object. Change-Id: Ia603a728101e83829a8906d1b847f42389e78ca6 CRs-Fixed: 3039326
This commit is contained in:

committed by
Madan Koyyalamudi

parent
2069fa6cdd
commit
57e2c01e5e
@@ -869,6 +869,20 @@ void DP_PRINT_STATS(const char *fmt, ...);
|
||||
#define FRAME_MASK_IPV4_EAPOL 4
|
||||
#define FRAME_MASK_IPV6_DHCP 8
|
||||
|
||||
static inline int dp_log2_ceil(unsigned int value)
|
||||
{
|
||||
unsigned int tmp = value;
|
||||
int log2 = -1;
|
||||
|
||||
while (tmp) {
|
||||
log2++;
|
||||
tmp >>= 1;
|
||||
}
|
||||
if (1 << log2 != value)
|
||||
log2++;
|
||||
return log2;
|
||||
}
|
||||
|
||||
#ifdef QCA_SUPPORT_PEER_ISOLATION
|
||||
#define dp_get_peer_isolation(_peer) ((_peer)->isolation)
|
||||
|
||||
|
Reference in New Issue
Block a user