Revision [31551]

Last edited on 2016-11-07 02:13:58 by s243a
Additions:
=== Catagories ===
CategoryNetworkWizard


Revision [31550]

Edited on 2016-11-07 02:12:13 by s243a
Additions:
The function getWpaPSK() is used to return the [[WPA-PSK]] key variable. It is part of the file [[wag-profiles.sh]] which is a function library and also a wizard for setting up wireless profiles. wag-profiles.sh is used in the Network Wizard called "[[http://www.puppylinux.org/wikka/Network_Wizard/|Network Wizard]]". The function getWpaPSK() retrieves the value from the shell variable, PROFILE_KEY defined in wag-profiles.sh
to use getWpaPSK() the key must first be defined. The key is defined as follows:
A scan is not necessary if the profile is already defined. However, scanning is done when using the associated start-up script [[rc.network]] (Note 1) so that on startup, the script doesn't try to connect to an unavailable network. Network Wizard comes with two different network scan methods defined within wag-profiles.sh which are shown in the following table.
||[[buildPrismScanWindow()]] ||[[runPrismScan]] ||[[wlanctl-ng]] ||[[wlanctl-ng]] || ||
In the case of buildSandWindow(), the result of the scan is stored in a temporary file which is the largest of two scans.
(line 1821 of netsetup-sh_
Alternatively a profile can be loaded from an existing profile file, either directly by [[sourcing_the_file]] or indirectly by using the function [[loadProfileData()]]. In either case the profile info is assigned to temporary variables which must be first assigned to the profile variables by calling the function [[assignProfileData]].
assignProfileData is called automatically in the function loadProfileData() but my be explicitly called if either the profile file is directly sourced, as it is in the startup script, or if instead the profile data is obtained by using the function Get_Cell_Parameters. For instance on start-up Get_Cell_Parameters is called directly rather then through setupScannedProfile because the profile already exists.
After the profile is loaded and assigned to the profile variables then the WPA-PSK key can be obtained via the function getWpaPSK. However, normally this function is typically called when trying to connect to a new WPA profile rather than being called directly. (see for instance [[useWPASupplicant()]]
Deletions:
The function getWpaPSK() is used to return the [[WPA-PSK]] key variable. It is part of the file [[wag-profiles.sh]] which is a function library for the Network Wizard called "[[http://www.puppylinux.org/wikka/Network_Wizard/|Network Wizard]]". The function retrieves the value from the shell variable, PROFILE_KEY defined in wag-profiles.sh
to use getWpaPSK() the key must first be defined. The key is defined in three steps.
A scan is not necessary if the profile is already defined. However, scanning is done on the associated start-up script [[rc.network]] (Note 1) so that on startup, the script doesn't try to connect to an unavailable network. Network Wizard comes with two different network scan methods defined within wag-profiles.sh which are shown in the following table.
||[[buildPrismScanWindow()]] ||[[runPrismScan]] ||[[wlanctl-ng]] ||[[wlanctl-ng]] ||
In the case of buildSandWindow, the result of the scan is stored in a temporary file which is the largest of two scans.
From line 1821 of netsetup-sh
Alternatively a profile can be loaded from an existing profile file, either by directly by [[sourcing the file]] or indirectly by using the function [[loadProfileData()]]. In either case the profile info is assigned to temporary variables which must be first assigined to the profile variables by calling the function [[assignProfileData]].
assignProfileData is called automatically in the function loadProfileData() but my be explicitly called if either the profile file is direcly sourced or if instad the profile data is obtained by using the function Get_Cell_Parmaters. For instance on start-up Get_Cell_Parameters is called directly rather then through setupScannedProfile because the profile already exists.
After the profile is loaded and assigned to the profile variables then the WPA-PSK key can be obtained via the function getWpaPSK. However, normally this function is called when trying to connect to a new WPA profile rather than called directly. (see [[useWPASupplicant()]]


Revision [31549]

Edited on 2016-11-07 02:04:17 by s243a
Additions:
When a profile is obtained via a scan the results of the scan are assigned to profile variables via [[setupSannedProfile()]], which calls [[setupNewProfile()]]. This function retrieves the profile variables from the ScanListFile (e.g. /tmp/net-setup_scan1.tmp) using the function [[Get_Cell_Parameters]].
Deletions:
When a profile is obtained via a scan the results of the scan are assigned to profile variables via [[setupSannedProfile()]], which calls [[setupNewProfile()]]. This function retrieves the profile variables from the ScanListFile (e.g. ) using the function [[Get_Cell_Parameters]].


Revision [31548]

Edited on 2016-11-07 02:01:20 by s243a
Additions:
The function getWpaPSK() is used to return the [[WPA-PSK]] key variable. It is part of the file [[wag-profiles.sh]] which is a function library for the Network Wizard called "[[http://www.puppylinux.org/wikka/Network_Wizard/|Network Wizard]]". The function retrieves the value from the shell variable, PROFILE_KEY defined in wag-profiles.sh
Deletions:
The function getWpaPSK() is used to return the [[WPA-PSK]] key variable. It is part of the file [[wag-profiles.sh]] which is a function library for the Network Wizard called "[[Network_Wizard|Network Wizard]]". The function retrieves the value from the shell variable, PROFILE_KEY defined in wag-profiles.sh


Revision [31547]

Edited on 2016-11-07 02:00:59 by s243a
Additions:
The function getWpaPSK() is used to return the [[WPA-PSK]] key variable. It is part of the file [[wag-profiles.sh]] which is a function library for the Network Wizard called "[[Network_Wizard|Network Wizard]]". The function retrieves the value from the shell variable, PROFILE_KEY defined in wag-profiles.sh
Deletions:
The function getWpaPSK() is used to return the [[WPA-PSK]] key variable. It is part of the file [[wag-profiles.sh]] which is a function library for the Network Wizard called "[[Network Wizard]]". The function retrieves the value from the shell variable, PROFILE_KEY defined in wag-profiles.sh


Revision [31546]

Edited on 2016-11-07 02:00:20 by s243a
Additions:
The function getWpaPSK() is used to return the [[WPA-PSK]] key variable. It is part of the file [[wag-profiles.sh]] which is a function library for the Network Wizard called "[[Network Wizard]]". The function retrieves the value from the shell variable, PROFILE_KEY defined in wag-profiles.sh
Deletions:
The function getWpaPSK() is used to return the WPA-PSK key variable. It is part of the file [[wag-profiles.sh]] which is a function library for the Network Wizard called "[[Network Wizard]]". The function retrieves the value from the shell variable, PROFILE_KEY defined in wag-profiles.sh


Revision [31545]

The oldest known version of this page was created on 2016-11-07 01:59:49 by s243a
Valid XHTML :: Valid CSS: :: Powered by WikkaWiki