diff options
author | Michael Brown <mcb30@ipxe.org> | 2011-03-22 16:56:35 +0000 |
---|---|---|
committer | Michael Brown <mcb30@ipxe.org> | 2011-03-22 19:54:58 +0000 |
commit | f5fd4dec3bab362a2ff7844859914e1f191fb905 (patch) | |
tree | 607eacef2f79c016a0c3c3031de2bb7d8aa7e331 /src/net/80211 | |
parent | 9215b7f4c0e24cceeac42d8ced5b4af824c4b011 (diff) | |
download | ipxe-f5fd4dec3bab362a2ff7844859914e1f191fb905.tar.gz |
[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 <glenn@myri.com>
Signed-off-by: Michael Brown <mcb30@ipxe.org>
Diffstat (limited to 'src/net/80211')
-rw-r--r-- | src/net/80211/net80211.c | 3 |
1 files changed, 3 insertions, 0 deletions
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, }; /** @} */ |