Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 3fb0e6a4 authored by Yue Ma's avatar Yue Ma
Browse files

cnss: Update pre-allocation table



Update pre-allocation table in order to fulfill latest WLAN host driver's
scan request since it may fail to get a large chuck of memory when all
the pre-allocated memory are in use. Also remove WARN_ON since it already
prints errors when memory request fails.

Change-Id: I52f1856552b38a02fddbfacc0e3ebf7b3a4d4ba2
CRs-Fixed: 662637
Signed-off-by: default avatarYue Ma <yuem@codeaurora.org>
parent 3fc0e794
Loading
Loading
Loading
Loading
+8 −1
Original line number Diff line number Diff line
@@ -31,6 +31,10 @@ static struct wcnss_prealloc wcnss_allocs[] = {
	{0, 8  * 1024, NULL},
	{0, 8  * 1024, NULL},
	{0, 8  * 1024, NULL},
	{0, 8  * 1024, NULL},
	{0, 8  * 1024, NULL},
	{0, 12 * 1024, NULL},
	{0, 12 * 1024, NULL},
	{0, 12 * 1024, NULL},
	{0, 12 * 1024, NULL},
	{0, 12 * 1024, NULL},
@@ -63,6 +67,10 @@ static struct wcnss_prealloc wcnss_allocs[] = {
	{0, 12 * 1024, NULL},
	{0, 12 * 1024, NULL},
	{0, 12 * 1024, NULL},
	{0, 12 * 1024, NULL},
	{0, 12 * 1024, NULL},
	{0, 16 * 1024, NULL},
	{0, 16 * 1024, NULL},
	{0, 16 * 1024, NULL},
	{0, 16 * 1024, NULL},
	{0, 16 * 1024, NULL},
@@ -124,7 +132,6 @@ void *wcnss_prealloc_get(unsigned int size)
		}
	}
	spin_unlock_irqrestore(&alloc_lock, flags);
	WARN_ON(1);
	pr_err("wcnss: %s: prealloc not available for size: %d\n",
			__func__, size);