iPXE
|
Functions | |
static int | net80211_check_settings_update (void) |
Check for 802.11 SSID or key updates. More... | |
const struct setting net80211_ssid_setting | __setting (SETTING_NETDEV_EXTRA, ssid) |
The network name to associate with. More... | |
const struct setting net80211_active_setting | __setting (SETTING_NETDEV_EXTRA, active-scan) |
Whether to use active scanning. More... | |
const struct setting net80211_key_setting | __setting (SETTING_NETDEV_EXTRA, key) |
The cryptographic key to use. More... | |
Variables | |
struct settings_applicator net80211_applicator | __settings_applicator |
802.11 settings applicator More... | |
|
static |
Check for 802.11 SSID or key updates.
This acts as a settings applicator; if the user changes netX/ssid, and netX is currently open, the association task will be invoked again. If the user changes the encryption key, the current security handshaker will be asked to update its state to match; if that is impossible without reassociation, we reassociate.
Definition at line 1891 of file net80211.c.
References net80211_handshaker::change_key, DBGC, net80211_device::essid, fetch_string_setting(), net80211_device::handshaker, IEEE80211_MAX_SSID_LEN, net80211_device::list, list_for_each_entry, NET80211_AUTO_SSID, net80211_autoassociate(), net80211_devices, net80211_device::netdev, netdev_is_open(), netdev_settings(), ssid, net80211_device::state, and strcmp().
const struct setting net80211_ssid_setting __setting | ( | SETTING_NETDEV_EXTRA | , |
ssid | |||
) |
The network name to associate with.
If this is blank, we scan for all networks and use the one with the greatest signal strength.
const struct setting net80211_active_setting __setting | ( | SETTING_NETDEV_EXTRA | , |
active- | scan | ||
) |
Whether to use active scanning.
In order to associate with a hidden SSID, it's necessary to use an active scan (send probe packets). If this setting is nonzero, an active scan on the 2.4GHz band will be used to associate.
const struct setting net80211_key_setting __setting | ( | SETTING_NETDEV_EXTRA | , |
key | |||
) |
The cryptographic key to use.
For hex WEP keys, as is common, this must be entered using the normal iPXE method for entering hex settings; an ASCII string of hex characters will not behave as expected.
struct settings_applicator net80211_applicator __settings_applicator |
802.11 settings applicator
When the SSID is changed, this will cause any open devices to re-associate; when the encryption key is changed, we similarly update their state.
Definition at line 198 of file net80211.c.