configs/photon/src/stm32_wlan.c: Remove unused, inappropriate network driver registration.
This commit is contained in:
parent
afea57d43a
commit
ace460ad0e
@ -150,16 +150,5 @@ int photon_wlan_initialize()
|
|||||||
return ERROR;
|
return ERROR;
|
||||||
}
|
}
|
||||||
|
|
||||||
#if 0 /* Not yet */
|
|
||||||
/* Register the nework device */
|
|
||||||
|
|
||||||
ret = bcmf_netdev_register(0);
|
|
||||||
if (ret != OK)
|
|
||||||
{
|
|
||||||
syslog(LOG_ERR, "Failed to register bcmf network device: %d\n", ret);
|
|
||||||
return ret;
|
|
||||||
}
|
|
||||||
#endif
|
|
||||||
|
|
||||||
return OK;
|
return OK;
|
||||||
}
|
}
|
||||||
|
@ -117,10 +117,12 @@ FAR struct bcmf_dev_s* bcmf_allocate_device(void)
|
|||||||
{
|
{
|
||||||
goto exit_free_priv;
|
goto exit_free_priv;
|
||||||
}
|
}
|
||||||
|
|
||||||
if ((ret = sem_init(&priv->control_timeout, 0, 0)) != OK)
|
if ((ret = sem_init(&priv->control_timeout, 0, 0)) != OK)
|
||||||
{
|
{
|
||||||
goto exit_free_priv;
|
goto exit_free_priv;
|
||||||
}
|
}
|
||||||
|
|
||||||
if ((ret = sem_setprotocol(&priv->control_timeout, SEM_PRIO_NONE)) != OK)
|
if ((ret = sem_setprotocol(&priv->control_timeout, SEM_PRIO_NONE)) != OK)
|
||||||
{
|
{
|
||||||
goto exit_free_priv;
|
goto exit_free_priv;
|
||||||
@ -165,7 +167,8 @@ int bcmf_dongle_scantime(FAR struct bcmf_dev_s *priv, int32_t scan_assoc_time,
|
|||||||
int32_t scan_unassoc_time, int32_t scan_passive_time)
|
int32_t scan_unassoc_time, int32_t scan_passive_time)
|
||||||
{
|
{
|
||||||
int ret;
|
int ret;
|
||||||
uint32_t out_len, value;
|
uint32_t out_len;
|
||||||
|
uint32_t value;
|
||||||
|
|
||||||
out_len = 4;
|
out_len = 4;
|
||||||
value = scan_assoc_time;
|
value = scan_assoc_time;
|
||||||
@ -284,7 +287,8 @@ int bcmf_run_escan(FAR struct bcmf_dev_s *priv)
|
|||||||
int bcmf_driver_initialize(FAR struct bcmf_dev_s *priv)
|
int bcmf_driver_initialize(FAR struct bcmf_dev_s *priv)
|
||||||
{
|
{
|
||||||
int ret;
|
int ret;
|
||||||
uint32_t out_len, value;
|
uint32_t out_len;
|
||||||
|
uint32_t value;
|
||||||
uint8_t tmp_buf[64];
|
uint8_t tmp_buf[64];
|
||||||
|
|
||||||
/* Disable TX Gloming feature */
|
/* Disable TX Gloming feature */
|
||||||
@ -341,6 +345,7 @@ int bcmf_driver_initialize(FAR struct bcmf_dev_s *priv)
|
|||||||
}
|
}
|
||||||
|
|
||||||
/* Remove line feed */
|
/* Remove line feed */
|
||||||
|
|
||||||
out_len = strlen((char*)tmp_buf);
|
out_len = strlen((char*)tmp_buf);
|
||||||
if (out_len > 0 && tmp_buf[out_len-1] == '\n')
|
if (out_len > 0 && tmp_buf[out_len-1] == '\n')
|
||||||
{
|
{
|
||||||
|
Loading…
Reference in New Issue
Block a user