From f5fd4dec3bab362a2ff7844859914e1f191fb905 Mon Sep 17 00:00:00 2001 From: Michael Brown Date: Tue, 22 Mar 2011 16:56:35 +0000 Subject: [settings] Formalise notion of setting applicability Expose a function setting_applies() to allow a caller to determine whether or not a particular setting is applicable to a particular settings block. Restrict DHCP-backed settings blocks to accepting only DHCP-based settings. Restrict network device settings blocks to accepting only DHCP-based settings and network device-specific settings such as "mac". Inspired-by: Glenn Brown Signed-off-by: Michael Brown --- src/net/80211/net80211.c | 3 +++ 1 file changed, 3 insertions(+) (limited to 'src/net/80211') diff --git a/src/net/80211/net80211.c b/src/net/80211/net80211.c index d39958ba7..c42928e8a 100644 --- a/src/net/80211/net80211.c +++ b/src/net/80211/net80211.c @@ -206,6 +206,7 @@ struct setting net80211_ssid_setting __setting = { .name = "ssid", .description = "802.11 SSID (network name)", .type = &setting_type_string, + .tag = NET80211_SETTING_TAG_SSID, }; /** Whether to use active scanning @@ -218,6 +219,7 @@ struct setting net80211_active_setting __setting = { .name = "active-scan", .description = "Use an active scan during 802.11 association", .type = &setting_type_int8, + .tag = NET80211_SETTING_TAG_ACTIVE_SCAN, }; /** The cryptographic key to use @@ -230,6 +232,7 @@ struct setting net80211_key_setting __setting = { .name = "key", .description = "Encryption key for protected 802.11 networks", .type = &setting_type_string, + .tag = NET80211_SETTING_TAG_KEY, }; /** @} */ -- cgit v1.2.3-55-g7522