From fa2b87b05a5fe2a0cef40e8c71ce0bbdb650e443 Mon Sep 17 00:00:00 2001 From: Andrew Tridgell Date: Fri, 5 Jan 2024 13:39:30 +1100 Subject: [PATCH] AP_Networking: hide unused params for PPP --- libraries/AP_Networking/AP_Networking_Config.h | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) diff --git a/libraries/AP_Networking/AP_Networking_Config.h b/libraries/AP_Networking/AP_Networking_Config.h index 2fbf9d70b1..b54a8e399f 100644 --- a/libraries/AP_Networking/AP_Networking_Config.h +++ b/libraries/AP_Networking/AP_Networking_Config.h @@ -19,15 +19,6 @@ #define AP_NETWORKING_BACKEND_DEFAULT_ENABLED AP_NETWORKING_ENABLED #endif -#ifndef AP_NETWORKING_CONTROLS_HOST_IP_SETTINGS_ENABLED -// AP_NETWORKING_CONTROLS_HOST_IP_SETTINGS_ENABLED should only be true if we have the ability to -// change the IP address. If not then the IP, GW, NetMask, MAC and DHCP params are hidden. -// This does not mean that the system/OS does not have the ability to set the IP, just that -// we have no control from this scope. For example, Linux systems (including SITL) have -// their own DHCP client running but we have no control over it. -#define AP_NETWORKING_CONTROLS_HOST_IP_SETTINGS_ENABLED (CONFIG_HAL_BOARD == HAL_BOARD_CHIBIOS) -#endif - // --------------------------- // Backends // --------------------------- @@ -50,6 +41,15 @@ #define AP_NETWORKING_SOCKETS_ENABLED AP_NETWORKING_ENABLED #endif +#ifndef AP_NETWORKING_CONTROLS_HOST_IP_SETTINGS_ENABLED +// AP_NETWORKING_CONTROLS_HOST_IP_SETTINGS_ENABLED should only be true if we have the ability to +// change the IP address. If not then the IP, GW, NetMask, MAC and DHCP params are hidden. +// This does not mean that the system/OS does not have the ability to set the IP, just that +// we have no control from this scope. For example, Linux systems (including SITL) have +// their own DHCP client running but we have no control over it. +#define AP_NETWORKING_CONTROLS_HOST_IP_SETTINGS_ENABLED AP_NETWORKING_BACKEND_CHIBIOS +#endif + #define AP_NETWORKING_NEED_LWIP (AP_NETWORKING_BACKEND_CHIBIOS || AP_NETWORKING_BACKEND_PPP) // ---------------------------