James Prestwood
9ed5fba57b
knownnetwork: add known_network_frequency_sync
...
This API will sync the known frequencies of a network_info object
to disk. This will allow network to sync known frequencies as
known networks are added, rather that when IWD closes.
Since this will result in more frequent syncing that before, the
known_freqs settings pointer was moved globally in knownnetworks.c
as to only parse the file one time rather than on every sync.
2019-09-12 11:28:20 -05:00
James Prestwood
3dba205de1
hotspot: implement get_file_path op
2019-09-12 11:28:20 -05:00
James Prestwood
3b49a57bda
knownnetworks: add get_file_path op
...
Gets the provisioning file path stored on disk
2019-09-12 11:27:38 -05:00
Denis Kenzior
f3db34aadf
unit: Update to new RSNe builder behavior
2019-09-11 15:28:10 -05:00
Denis Kenzior
0c7751485d
ie: Always include RSN Capabilities bytes
2019-09-11 15:28:10 -05:00
Tim Kourt
0db5f59d07
peap: Send cleartext ACK to tunneled EAP-Success
...
Some of the EAP-PEAP server implementations seem to require a
cleartext ACK for the tunneled EAP-Success message similar to EAP-TLS
specification, instead of simply shutting down the tunnel like
EAP-PEAPv1 requires.
ACKing the tunneled EAP-Success seems also to work for implementations
which were relying on the tunnel close event.
2019-09-11 15:27:02 -05:00
Tim Kourt
692a15368c
peap: Add debug statements
2019-09-11 13:23:46 -05:00
James Prestwood
d2162a7491
station: fix NAI realms leak
...
After the known network refactor this string list was no longer set
into the network object. Now it should be freed in all cases after
the search.
2019-09-11 11:55:25 -05:00
Tim Kourt
bab9a4b6f2
auto-t: Remove no longer relevant test
...
The client prompts user for the missing secrets now, instead of
exiting with an error status code.
2019-09-11 11:48:24 -05:00
James Prestwood
d8aadc49b2
tools: enable CONFIG_CRYPTO_ARC4 in kernel config
2019-09-11 11:40:39 -05:00
James Prestwood
6aeeb9eaad
knownnetworks: check for valid info before calling op
2019-09-09 19:09:50 -05:00
James Prestwood
99483489bc
module: print module name/error if it fails to start
2019-09-09 15:42:09 -05:00
James Prestwood
29a05eb402
storage: fix hotspot dir creation
...
create_dirs was dependent on the path ending in '/' to create the
full path. The hotspot code did not include a '/' at the end so
it was not getting created, which prevented the hotspot module
from initializing.
2019-09-09 15:42:09 -05:00
James Prestwood
6902bb9dae
monitor: print association response events
2019-09-09 15:41:15 -05:00
James Prestwood
50c947b53c
auto-t: set CONFIGURATION_DIRECTORY
...
The --config option was removed, so any tests which start IWD from
python need to set this option if they need a special configuration
directory.
2019-09-09 15:40:09 -05:00
James Prestwood
2b27ec26a0
build: remove hotspot.h
2019-09-09 15:37:45 -05:00
James Prestwood
18ac43c8d8
hotspot: remove hs20_get_roaming_consortium
2019-09-09 15:37:27 -05:00
James Prestwood
cff08afd14
network: remove hotspot.h include
2019-09-09 15:37:17 -05:00
James Prestwood
45c059ccf8
station: use network_get_vendor_ies
...
Station was building up the HS20 elements manually. Now we can
use this new API and let network take care of the complexity
of building network specific vendor IEs.
2019-09-09 15:36:53 -05:00
James Prestwood
83cba4fb1f
hotspot: implement 'get_vendor_ies'
...
This op builds up the vendor IEs required for hotspot 2.0. The
version, and optionally the RC are provided in order to correctly
build the HS20 Indication Element and RC Selection element.
2019-09-09 15:35:29 -05:00
James Prestwood
b2bfd58378
network: add network_get_vendor_ies
...
This is to encapsulate any vendor IE building required for certain
network types. Currently only hotspot requries this.
2019-09-09 15:34:45 -05:00
James Prestwood
bff0740829
knownnetworks: add get_vendor_ies operation
...
This will provide the hotspot module with enough info for it to
build the required vendor IEs to be provided with (Re)Association.
2019-09-09 15:33:54 -05:00
James Prestwood
689fd7b92b
netdev: make vendor_ies const on netdev_connect()
2019-09-09 09:55:12 -05:00
James Prestwood
af46cc0ed2
knownnetworks: get matched RC on match_roaming_consortium
...
The HS20 module had its own getter for returning the matched roaming
consortium. Since we already have the network_info op for matching
we might as well return the matched RC rather than just a bool. This
allows the RC to be included in (Re)Association without the need for
a specific getter.
2019-09-09 09:44:15 -05:00
Marcel Holtmann
1104d69e29
build: Add StateDirectoryMode=0700 option to systemd service
2019-09-09 06:55:22 +02:00
Marcel Holtmann
c1a9f71b39
build: Add script to start iwd.service via systemd-run
2019-09-08 22:10:28 +02:00
Marcel Holtmann
41f865d4df
build: Use NotifyAccess=main feature when running under systemd
2019-09-08 20:36:57 +02:00
Marcel Holtmann
e6a99f461a
build: Start using CapabilityBoundingSet option from systemd
2019-09-08 20:26:49 +02:00
Marcel Holtmann
0f21157287
README: Remove pointless empty lines
2019-09-08 20:21:21 +02:00
Marcel Holtmann
e9c39decda
storage: Fix wrong format identifier for known frequencies file
2019-09-08 20:11:15 +02:00
Marcel Holtmann
ad7412efb2
build: Create state directories only when systemd support is disabled
2019-09-08 19:58:59 +02:00
Marcel Holtmann
71ae0bee9c
build: Add StateDirectory= option to service files
2019-09-08 19:56:21 +02:00
Marcel Holtmann
8e3acef914
wired: Add support for utilizing STATE_DIRECTORY environment
2019-09-08 19:54:00 +02:00
Marcel Holtmann
49c4f46efc
knownnetworks: Use storage_get_path to get storage directory
2019-09-08 19:21:07 +02:00
Marcel Holtmann
58d5fdf6c4
hotspot: Use storage_get_hotspot_path to get storage directory
2019-09-08 19:20:37 +02:00
Marcel Holtmann
8706be6698
storage: Add support for utilizing STATE_DIRECTORY environment
2019-09-08 19:19:34 +02:00
Marcel Holtmann
45d5c67cb4
main: Move storage directory creation into storage functionality
2019-09-08 18:24:23 +02:00
Marcel Holtmann
7e5ddb15d7
main: Remove --config command line option
2019-09-08 18:18:06 +02:00
Marcel Holtmann
7e4a6e8a49
test-runner: Remove pointless NULL check before calling l_free
2019-09-08 18:14:13 +02:00
Marcel Holtmann
9d1f7ad6f5
test-runner: Provide CONFIGURATION_DIRECTORY and STATE_DIRECTORY
2019-09-08 18:12:51 +02:00
Marcel Holtmann
7347bd4098
test-runner: Use execvpe to provide environment context
2019-09-08 18:03:10 +02:00
Marcel Holtmann
351e21f7c7
build: Add ConfigurationDirectory= option to service files
2019-09-08 10:25:39 +02:00
Marcel Holtmann
4c841edfb5
main: Add support for CONFIGURATION_DIRECTORY environment variable
2019-09-08 10:22:36 +02:00
Denis Kenzior
8a0c148368
ie: Handle WPA1 elements with Capability fields
2019-09-05 21:13:10 -05:00
Denis Kenzior
059be1924d
AUTHORS: Mention Henrik's contributions
2019-09-05 20:55:19 -05:00
Henrik Stokseth
008fd6c87a
ie: Fix WPA1 element parsing
...
The memset was done after setting the defaults when it should have been
done before.
2019-09-05 20:53:57 -05:00
Tim Kourt
df32279a31
client: Enable non-interactive mode support for agent prompts
2019-09-02 16:12:37 -05:00
Tim Kourt
02e38304b3
client: Prompt user for missing secrets in non-interactive mode
...
In non-interactive mode, prompt user for the missing secrets if
no command-line options were given.
2019-09-02 16:12:37 -05:00
Tim Kourt
589f6182b5
client: Set exit status on agent reg. failure
2019-09-02 16:12:37 -05:00
Tim Kourt
6c64016402
client: Make agent registration unconditional
2019-09-02 16:12:37 -05:00