wireless/bcm43xxx: subscribe only to the events we need

Signed-off-by: chao an <anchao@xiaomi.com>
This commit is contained in:
chao an 2022-10-21 00:29:07 +08:00 committed by Xiang Xiao
parent 1935783392
commit d861c7bfd9
1 changed files with 0 additions and 25 deletions

View File

@ -175,9 +175,6 @@ static int bcmf_driver_download_clm(FAR struct bcmf_dev_s *priv);
/* FIXME only for debug purpose */
static void bcmf_wl_default_event_handler(FAR struct bcmf_dev_s *priv,
struct bcmf_event_s *event, unsigned int len);
static void bcmf_wl_radio_event_handler(FAR struct bcmf_dev_s *priv,
struct bcmf_event_s *event, unsigned int len);
@ -552,15 +549,6 @@ errout_in_sdio_active:
int bcmf_driver_initialize(FAR struct bcmf_dev_s *priv)
{
int i;
/* FIXME Configure event mask to enable all asynchronous events */
for (i = 0; i < BCMF_EVENT_COUNT; i++)
{
bcmf_event_register(priv, bcmf_wl_default_event_handler, i);
}
/* Register radio event */
bcmf_event_register(priv, bcmf_wl_radio_event_handler, WLC_E_RADIO);
@ -597,19 +585,6 @@ int bcmf_driver_initialize(FAR struct bcmf_dev_s *priv)
return bcmf_netdev_register(priv);
}
/****************************************************************************
* Name: bcmf_wl_default_event_handler
****************************************************************************/
void bcmf_wl_default_event_handler(FAR struct bcmf_dev_s *priv,
struct bcmf_event_s *event,
unsigned int len)
{
wlinfo("Unhandled event %" PRId32 " from <%s>\n",
bcmf_getle32(&event->type),
event->src_name);
}
/****************************************************************************
* Name: bcmf_wl_radio_event_handler
****************************************************************************/