wireless/bcm43xxx: configurable schedule priority of daemon thread

Signed-off-by: chao.an <anchao@xiaomi.com>
This commit is contained in:
chao.an 2022-06-15 23:37:00 +08:00 committed by Xiang Xiao
parent 4712307ecc
commit 0951d859d3
2 changed files with 9 additions and 1 deletions

View File

@ -118,6 +118,13 @@ config IEEE80211_BROADCOM_FULLMAC_SDIO
This selection enables support for broadcom
FullMAC-compliant devices using SDIO bus.
config IEEE80211_BROADCOM_SCHED_PRIORITY
int "Broadcom BCMF daemon thread schedule priority"
default 255
---help---
This parameter should be set the bcmf daemon thread
schedule priority
if IEEE80211_BROADCOM_FULLMAC
config IEEE80211_BROADCOM_NINTERFACES

View File

@ -773,7 +773,8 @@ int bcmf_bus_sdio_initialize(FAR struct bcmf_dev_s *priv,
/* Spawn bcmf daemon thread */
ret = kthread_create(BCMF_THREAD_NAME, SCHED_PRIORITY_MAX,
ret = kthread_create(BCMF_THREAD_NAME,
CONFIG_IEEE80211_BROADCOM_SCHED_PRIORITY,
BCMF_THREAD_STACK_SIZE, bcmf_sdio_thread,
(FAR char * const *)NULL);