summaryrefslogtreecommitdiffstats
path: root/src/8021x
AgeCommit message (Collapse)AuthorFilesLines
2012-07-03Wait actively in {start, stop}_wpaHenrik Hallberg1-8/+6
Check .pid file regularly instead of waiting a second blindly. Saves up to a second of wall time per call.
2012-06-21Introduce polling timeout logicJouke Witteveen1-5/+2
This should fix FS#30361 along the way.
2012-06-21Minor improvementsJouke Witteveen1-4/+3
After this change, a profile started by a previous version of netcfg can potentially not be brought down anymore. This only concerns the updating process. Running `netcfg clean` should make everything OK again (potentially leaving your network down, but you can now bring up profiles again).
2012-06-18Increase base wifi scan waitJouke Witteveen1-3/+3
Sometimes no results responses have been collected within 2 seconds.
2012-06-12Wait for wifi scan results (FS#29946)Jouke Witteveen1-3/+9
We hardcode a timeout of 10 seconds. In case of a timeout, we use whatever results we have. It is unlikely that a timeout is hit. For fast scans, we are done half a second earlier than before.
2012-05-16Code inspectionJouke Witteveen1-2/+2
Some changes after reading through a few files. Only two modifications impact functionality. - Not having dhclient is now fatal for IPv6 connections that use dhcp. - Allow authentication/associaton time-out of wpa to be set through TIMEOUT for wired connections too. dhclient no longer needs to be killed manually, so those lines are removed.
2012-03-27Remove more deprecated codeJouke Witteveen1-5/+5
No need to keep support the "-old" syntax when it doesn't really do anything.
2012-03-03Remove deprecated codeJouke Witteveen1-4/+0
Remove some code that should not be used anymore. A 2.7 release seems the right point for some minor interface breaking.
2012-03-01Code quality upgradeJouke Witteveen1-5/+6
This is what you get when Dave Reisner points you at some bash anti-patterns. Also in this commit: - updated documentation - bugfix revision of the IPv6 SLAAC address/route bug
2011-10-158021x: use an existing wpa_supplicant in scan_info() if available (FS#26036)Jouke Witteveen1-4/+14
Signed-off-by: Rémy Oudompheng <remy@archlinux.org>
2011-08-15Add option ESSID_TYPE=hex to support hexadecimal ESSIDs (FS#24333)Rémy Oudompheng1-1/+13
Signed-off-by: Rémy Oudompheng <remy@archlinux.org>
2011-07-30Use configured control path for wpa_supplicant (FS#24949)Rémy Oudompheng1-2/+2
Otherwise the wpa_cli calls may fail if the specified ctrl_interface directory differs from the default one. Signed-off-by: Rémy Oudompheng <remy@archlinux.org>
2011-07-308021x: prepare for configurable WPA_CTRL_PATHRémy Oudompheng1-11/+11
Signed-off-by: Rémy Oudompheng <remy@archlinux.org>
2011-07-09Fix infinite loop in symlinks (FS#25077)Rémy Oudompheng1-0/+1
Signed-off-by: Rémy Oudompheng <remy@archlinux.org>
2011-07-038021x: fix a typo preventing WEP connection from working (FS#24896)Rémy Oudompheng1-1/+1
Signed-off-by: Rémy Oudompheng <remy@archlinux.org>
2011-07-03BSSID: fix AP variable and set it to lowercase (FS#24806)Thomas Lucke (Lucky)1-1/+1
2011-07-038021x: create a /var/run/wpa_supplicant symlink for compatRémy Oudompheng1-0/+4
Signed-off-by: Rémy Oudompheng <remy@archlinux.org>
2011-06-19Correctly create STATE_DIR before creating WPA configuration fileRémy Oudompheng1-0/+1
2011-06-19Replace iwgetid usage by wpa_cli.Rémy Oudompheng1-0/+12
2011-06-19Switch to wpa_supplicant for scanningRémy Oudompheng1-0/+6
Signed-off-by: Rémy Oudompheng <remy@archlinux.org>
2011-06-198021x: add wpa_supplicant equivalents for find_essid(), find_ap()Rémy Oudompheng1-1/+50
Signed-off-by: Rémy Oudompheng <remy@archlinux.org>
2011-06-19Store wpa_supplicant configuration in /run/network instead of /tmpRémy Oudompheng1-2/+2
Signed-off-by: Rémy Oudompheng <remy@archlinux.org>
2011-06-19Move wpa_supplicant based list_networks() function to 8021x moduleRémy Oudompheng1-0/+44
Signed-off-by: Rémy Oudompheng <remy@archlinux.org>
2011-06-19Hold wpa_cli command line common arguments in $WPA_CLIRémy Oudompheng1-3/+5
2011-06-11802&x: fix a syntax errorRémy Oudompheng1-0/+1
Signed-off-by: Rémy Oudompheng <remy@archlinux.org>
2011-06-11wireless: add proper option to wpa_cli to find files in /runRémy Oudompheng1-3/+3
Signed-off-by: Rémy Oudompheng <remy@archlinux.org>
2011-06-11Move wpa_supplicant PID file to /runRémy Oudompheng1-5/+5
Signed-off-by: Rémy Oudompheng <remy@archlinux.org>
2011-06-06Add support for ad-hoc Wi-Fi (FS#19683)hamelg1-0/+2
2011-06-05Refactor wpa_supplicant config generationRémy Oudompheng1-24/+23
2011-06-05Add support for specificying explicit BSSID (FS#24582)Andre Herbst1-0/+12
2010-11-21FS#20150 - 802.11x: correct state check, handle disconnectJames Rayner1-2/+3
2010-07-13wireless: HIDDEN option: use checkyesno function instead of custom checkThomas Bächler1-3/+1
2010-07-13wireless: Add support for hidden ssidThomas Bächler1-0/+7
2009-09-27Add stop to netcfg-wpa_actiond, default to WPA2, then WPA.James Rayner1-2/+2
2009-09-27Rename autowifi->wpa_actiond, add makefile, bugfixJames Rayner1-2/+2
2009-09-27Remove wpa generation duplication, fix wep/none-oldJames Rayner1-3/+33
2009-09-25Large rework of wireless to use wpa_supplicantJames Rayner1-4/+5
* Connect SECURITY=wep|none with wpa_supplicant * Separate out iwconfig based configuration as -old as a fallback for older hardware * Drop some old quirks, as they're mostly needed for iwconfig based or are needed by deprecated drivers * Drop wpa_passphrase and just generate a config.
2009-09-23Add WPA_DRIVER, WPA_COUNTRY and handle WEP string keysJames Rayner1-5/+6
WPA_DRVER: Configure the -D argument to wpa_supplicant, for example -Dnl80211 WPA_COUNTRY: Set the 'country=' variable in the wpa_supplicant configuration. WEP string keys: modified such that they may work. Not tested yet.
2009-09-22Rework wireless to use wpa_supplicant more, add CONFIGSECTION supportJames Rayner1-0/+12
CONFIGSECTION will be useful later on for integration with autowifi. It'll allow WPA configurations to be stored _in_ the profile, rather than separately. Experimentally, WEP/none support has been migrated to wpa_supplicant. Support for string keys has not yet been merged.
2009-09-14tabs->spaces, vim modelinesJim Pryor1-7/+7
Signed-off-by: Jim Pryor <profjim@jimpryor.net>
2009-09-07quotes around $(...) where neededJim Pryor1-1/+1
Signed-off-by: Jim Pryor <profjim@jimpryor.net>
2009-08-15quotes!Jim Pryor1-3/+3
Signed-off-by: Jim Pryor <profjim@jimpryor.net>
2009-08-15grep tweaksJim Pryor1-2/+2
Signed-off-by: Jim Pryor <profjim@jimpryor.net>
2009-08-15wpa_cli, start/stop_wpa, wpa_check tweaksJim Pryor1-8/+14
* Supply -i switch to wpa_cli * Have wpa_check call stop_wpa on failure, instead of duplicating (only some of) the termination code. * Need brief sleep in termination code. * Note that functions which call wpa_check don't need to call stop_wpa themselves, when wpa_check fails. * Functions which call wpa_check and start_wpa are however responsible for all error reporting on failure. * Add some debugging calls to announce calls to wpa_start/wpa_check Signed-off-by: Jim Pryor <profjim@jimpryor.net>
2009-08-10merge logging code from Jim PryorJames Rayner1-3/+1
2009-05-18wireless: check if iface is real, stop wpa_supplicant on failuresJames Rayner1-0/+10
2008-12-18FS11818, improve key handling, use subshells to avoid scope issues after libifyJames Rayner1-3/+7
2008-12-18fix libifyJames Rayner1-0/+32