wifi: nrf_wifi: ignore interface if TX disabled
Automatically hide the nRF7x interface from the connection manager if the TX path is disabled (scan only mode). This prevents function calls like `conn_mgr_all_if_up(true)` from bringing up the interface which can never result in a connection. Signed-off-by: Jordan Yates <jordan@embeint.com>
This commit is contained in:
parent
5c0521c585
commit
79edfc0128
@ -18,6 +18,7 @@
|
||||
#include <zephyr/logging/log.h>
|
||||
LOG_MODULE_DECLARE(wifi_nrf, CONFIG_WIFI_NRF70_LOG_LEVEL);
|
||||
|
||||
#include <zephyr/net/conn_mgr_monitor.h>
|
||||
#include <zephyr/sys/reboot.h>
|
||||
|
||||
#include "net_private.h"
|
||||
@ -702,6 +703,11 @@ void nrf_wifi_if_init_zep(struct net_if *iface)
|
||||
nrf_wifi_net_iface_work_handler);
|
||||
#endif /* CONFIG_NRF70_DATA_TX */
|
||||
|
||||
#ifdef CONFIG_NRF70_SCAN_ONLY
|
||||
/* In scan only mode this interface should be ignored by the connectivity manager */
|
||||
conn_mgr_ignore_iface(iface);
|
||||
#endif /* CONFIG_NRF70_SCAN_ONLY */
|
||||
|
||||
#ifdef CONFIG_NRF_WIFI_RPU_RECOVERY
|
||||
k_work_init(&vif_ctx_zep->nrf_wifi_rpu_recovery_work,
|
||||
nrf_wifi_rpu_recovery_work_handler);
|
||||
|
||||
Loading…
Reference in New Issue
Block a user