
functions
files
intro
|
|
Network configuration |
include/network/lan/wireless.ycp |
Wireless dialogs |
|
|
Imports
- Label
- Lan
- Map
- Popup
- Wizard
Includes
Local Functions
|
|
|
local ComposeWepKey (string type, string key) -> string
|
|
Compose a typed key into a single-string representation
- Parameters:
type |
"passphrase", "ascii", "hex"
@param key |
key |
|
- Return value:
local CheckWirelessKey (string key, list<integer> lengths) -> boolean
|
|
Is the entered key valid?
TODO: check according to the selected key length
(or better adjust the length?)
- Parameters:
key |
|
lengths |
allowed real key lengths |
local ParseKeyLengths (list<string> enc_modes) -> list<integer>
|
|
Takes the WEP items from the list and returns the key lengths as integers
Like the input, uses the real length which is 24 bits shorter
than the marketing one.
If the input is nil, return the default set of key lengths.
- Parameters:
enc_modes |
a subset of WEP40, WEP104, WEP128, WEP232, TKIP, CCMP |
- Return value:
local AuthModeItems (list<string> authmodes) -> list<term>
|
|
Make a list of ComboBox items for authentication mode.
We must translate WPA-PSK: it is "wpa-psk" in hwinfo but "psk" in syconfig
(#74496).
- Parameters:
authmodes |
allowed modes as returned by hwinfo. nil == don't know. |
- Return value:
local WirelessDialog () -> any
|
|
Wireless devices configuration dialog
- Return value:
local WirelessExpertDialog () -> any
|
|
Wireless expert configuration dialog
- Return value:
local WirelessKeyPopup (string tkey, list<integer> lengths) -> string
|
|
Used to add or edit a key
- Parameters:
tkey |
has s: for ascii or h: for passphrase |
lengths |
allowed real key lengths |
local WirelessKeysItems (list<string> keys, integer default) -> list<term>
|
|
Generate items for the keys table
- Parameters:
local FindGoodDefault (list<string> keys, integer default) -> integer
|
|
In case the current default key is empty, find a nonempty one
or the first one.
- Parameters:
local WirelessKeysDialog () -> any
|
|
Wireless expert configuration dialog
- Return value:
|