3
0
mirror of https://git.kernel.org/pub/scm/network/wireless/iwd.git synced 2024-11-22 23:09:34 +01:00
iwd/src
James Prestwood 82b808cdfe dpp: add support for initiating as a configurator
The difference between the existing code is that IWD will send the
authentication request, making it the initiator.

This handles the use case where IWD is provided a peers URI containing
its bootstrapping key rather than IWD always providing its own URI.
A new DBus API was added, ConfigureEnrollee().

Using ConfigureEnrollee() IWD will act as a configurator but begin by
traversing a channel list (URI provided or default) and waiting for
presence announcements (with one caveat). When an announcement is
received IWD will send an authentication request to the peer, receive
its reply, and send an authentication confirm.

As with being a responder, IWD only supports configuration to the
currently connected BSS and will request the enrollee switch to this
BSS's frequency to preserve network performance.

The caveat here is that only one driver (ath9k) supports multicast frame
registration which prevents presence frame from being received. In this
case it will be required the the peer URI contains a MAC and channel
information. This is because IWD will jump right into sending auth
requests rather than waiting for a presence announcement.
2022-02-22 16:25:47 -06:00
..
80-iwd.link build: Move 50-iwd.link up to 80-iwd.link for less confusion 2019-10-25 01:08:56 +02:00
adhoc.c treewide: Various style fixups 2022-01-11 11:07:05 -06:00
agent.c treewide: Remove pointless return statement 2022-01-11 11:07:33 -06:00
agent.h treewide: Move the Intel copyright forward to 2019 2019-10-25 00:43:08 +02:00
anqp.c anqp: return the request ID rather than true 2021-11-08 11:31:49 -06:00
anqp.h anqp: refactor to use frame-xchg 2020-07-09 09:58:21 -05:00
anqputil.c anqputil: Avoid potential overflow 2022-01-14 12:08:01 -06:00
anqputil.h anqp: move ANQP parsers into anqputil 2019-07-15 14:53:44 -05:00
ap.c ap: Don't defer ap_reset when ap_free called in event 2022-01-21 08:51:04 -06:00
ap.h ap: Forward DHCP events to AP event handler 2021-06-04 11:55:06 -05:00
auth-proto.h auth-proto: add auth_proto_rx_oci 2021-09-28 10:51:33 -05:00
backtrace.c treewide: Various style fixups 2022-01-11 11:07:05 -06:00
backtrace.h treewide: Various style fixups 2022-01-11 11:07:05 -06:00
band.c treewide: Various style fixups 2022-01-11 11:07:05 -06:00
band.h band: move several scan utilities into band 2021-11-29 17:07:10 -06:00
blacklist.c module: Move declarations into separate header file 2019-11-07 23:40:13 +01:00
blacklist.h blacklist: Convert to use IWD_MODULE 2019-05-22 09:58:04 -05:00
common.c common: Remove duplicate AKM 2020-08-13 13:43:31 -05:00
common.h treewide: Move the Intel copyright forward to 2019 2019-10-25 00:43:08 +02:00
crypto.c treewide: Various style fixups 2022-01-11 11:07:05 -06:00
crypto.h crypto: use void* for hkdf_expand 2021-11-22 15:29:31 -06:00
dbus.c netdev: Move iftype_to_string utility 2021-04-20 09:37:48 -05:00
dbus.h dbus: add DPP interface 2021-12-16 13:53:17 -06:00
device.c station: Move AP directed roam watch to station 2021-04-23 09:51:46 -05:00
diagnostic.c diagnostic: Fix crash with Open networks 2021-04-28 11:19:38 -05:00
diagnostic.h diagnostic: add diagnostic_akm_suite_to_security 2021-03-29 13:17:36 -05:00
dpp-util.c dpp-util: add URI parsing 2022-02-22 16:23:52 -06:00
dpp-util.h dpp-util: add URI parsing 2022-02-22 16:23:52 -06:00
dpp.c dpp: add support for initiating as a configurator 2022-02-22 16:25:47 -06:00
eap-aka.c eap-aka: round to nearest word on message buffers 2021-07-30 10:38:26 -05:00
eap-gtc.c treewide: Remove pointless return statement 2022-01-11 11:07:33 -06:00
eap-md5.c eap-md5: Do not check deprecated MD5-Secret 2021-06-01 10:44:57 -05:00
eap-mschapv2.c treewide: Use l_settings_{set,get}_bytes 2020-09-16 16:46:02 -05:00
eap-mschapv2.h cleanup: Remove extra empty lines 2020-03-17 15:35:22 -05:00
eap-peap.c treewide: Various style fixups 2022-01-11 11:07:05 -06:00
eap-private.h build: treewide: Set retain attribute 2021-11-11 14:27:33 -06:00
eap-pwd.c eap-pwd: add length checks for fragmented packets 2022-01-20 13:49:32 -06:00
eap-sim.c eap: Simplify sending EAP method responses 2020-08-13 10:36:43 -05:00
eap-tls-common.c treewide: Various style fixups 2022-01-11 11:07:05 -06:00
eap-tls-common.h eap-tls: Make use of l_cert_load_container_file 2021-01-25 14:01:58 -06:00
eap-tls.c eap-tls: Fix potential memory leak 2021-02-08 15:56:30 -06:00
eap-ttls.c treewide: Fix compiler warnings 2022-01-26 13:21:52 -06:00
eap-wsc.c treewide: Various style fixups 2022-01-11 11:07:05 -06:00
eap-wsc.h eap-wsc: Registrar mode message processing 2020-08-17 09:40:25 -05:00
eap.c eap: Silence uninitialized var warning 2021-11-08 15:12:25 -06:00
eap.h eap: Add authenticator method logic and API 2020-08-17 09:28:49 -05:00
eapol.c treewide: Remove unneeded else statements 2022-01-11 11:07:33 -06:00
eapol.h eapol: include OCI in GTK 2/2 2021-09-28 17:26:05 -05:00
eapolutil.c eapol: Don't ignore EAPoL protocol version 2010 2021-03-22 17:47:53 -05:00
eapolutil.h treewide: Add () around certain macros 2022-01-11 11:07:33 -06:00
erp.c treewide: Fix compiler warnings 2022-01-26 13:21:52 -06:00
erp.h erp: Convert to using IWD_MODULE 2019-05-19 13:07:13 -05:00
fils.c treewide: Various style fixups 2022-01-11 11:07:05 -06:00
fils.h fils: support OCI in reassociation 2021-09-28 16:46:48 -05:00
frame-xchg.c frame-xchg: use work priorities rather than hard coding 2022-01-11 12:38:10 -06:00
frame-xchg.h frame-xchg: Re-add frame_xchg_stop 2020-07-31 10:38:59 -05:00
ft.c treewide: Various style fixups 2022-01-11 11:07:05 -06:00
ft.h ft: netdev: store FT-over-DS target RSNE/WPA 2021-09-28 16:58:41 -05:00
genbuiltin make: plugin system for build 2017-11-28 13:20:33 -06:00
handshake.c handshake: Allow event handler to free handshake 2022-01-21 08:51:49 -06:00
handshake.h handshake: Do not crash if handshake is destroyed 2022-02-03 09:44:08 -06:00
hotspot.c hotspot: implement hotspot profile encryption 2022-02-15 17:22:21 -06:00
ie.c treewide: Various style fixups 2022-01-11 11:07:05 -06:00
ie.h treewide: Add () around certain macros 2022-01-11 11:07:33 -06:00
ip-pool.c treewide: Parse EnableNetworkConfiguration in one place 2021-10-22 12:12:02 -05:00
ip-pool.h ip-pool: Add subnet address selection logic 2021-06-01 10:03:04 -05:00
iwd-dbus.conf dbus: netdev/wheel do not use .Agent interface 2022-01-31 14:06:20 -06:00
iwd.ap.rst doc: Update AP settings in iwd.ap(5) and iwd.config(5) 2021-06-01 10:20:50 -05:00
iwd.config.rst doc: Add warning to SystemdEncrypt as highly experimental 2022-02-16 16:11:01 -06:00
iwd.debug.rst man iwd.debug: Document IWD_GENL_DEBUG 2020-07-13 14:14:41 -05:00
iwd.h main: add a --developer,-E option 2021-05-07 08:45:20 -05:00
iwd.network.rst doc: document SystemdEncrypt 2022-02-15 17:44:20 -06:00
iwd.rst doc: Add manual page for debugging information 2019-11-05 22:14:09 +01:00
iwd.service.in iwd.service: Add CAP_NET_BIND_SERVICE 2021-06-29 11:43:26 -05:00
json.c json: Tighten up json_iter_get_int/get_uint 2022-01-23 11:22:34 -06:00
json.h treewide: Various style fixups 2022-01-11 11:07:05 -06:00
knownnetworks.c knownnetworks: stat fallback for unknown d_type 2021-08-12 09:59:47 -05:00
knownnetworks.h network: Store Transition Disable info 2021-07-27 16:55:58 -05:00
main.c main: remove unneeded stat call 2022-02-18 14:45:39 -06:00
manager.c manager: Refine filtered dumps 2022-02-14 16:02:23 -06:00
missing.h build: Add reallocarray to missing.h 2021-09-20 10:32:51 -05:00
module.c module: Declare functions as foo(void) instead of just foo() 2019-11-24 19:44:06 +01:00
module.h build: treewide: Set retain attribute 2021-11-11 14:27:33 -06:00
mpdu.c treewide: Various style fixups 2022-01-11 11:07:05 -06:00
mpdu.h mpdu: add MMPDU_STATUS_CODE_SAE_PK 2021-09-08 16:47:36 -05:00
mschaputil.c treewide: Move the Intel copyright forward to 2019 2019-10-25 00:43:08 +02:00
mschaputil.h treewide: Move the Intel copyright forward to 2019 2019-10-25 00:43:08 +02:00
net.connman.iwd.service net.connman.iwd.service: Change SystemdService name to iwd.service 2018-08-09 10:45:16 -05:00
netconfig.c treewide: Prefer not using assignment in if 2022-01-11 11:07:33 -06:00
netconfig.h netconfig: netconfig_reconfigure check bool for setting ARP 2021-11-03 17:47:03 -05:00
netdev.c netdev: fix crash from not cancelling netdev_get_oci 2022-02-07 13:51:04 -06:00
netdev.h netdev: Remove prev_bssid member 2021-08-04 23:08:34 -05:00
network.c network: fix double whitespace 2022-01-24 16:39:45 -06:00
network.h network: add network_get_station 2021-09-17 17:59:52 -05:00
nl80211cmd.c nl80211cmd: make CH_SWITCH_STARTED_NOTIFY name unique 2021-10-19 13:28:07 -05:00
nl80211cmd.h nl80211cmd: Introduce new utility 2019-07-15 14:06:26 -05:00
nl80211util.c nl80211util: support ATTR_FRAME in parse_attrs() 2022-01-12 12:44:56 -06:00
nl80211util.h nl80211util: Add chandef parser 2021-09-21 15:21:39 -05:00
offchannel.c offchannel: use work priorities rather than hard coding 2022-01-11 12:37:59 -06:00
offchannel.h offchannel: introduce new offchannel module 2021-12-06 14:10:39 -06:00
ofono.c ofono: convert to module 2020-09-16 14:31:07 -05:00
owe.c owe: netdev: refactor to remove OWE as an auth-proto 2021-09-03 14:34:30 -05:00
owe.h owe: netdev: refactor to remove OWE as an auth-proto 2021-09-03 14:34:30 -05:00
p2p.c p2p: Fix ie_tlv_extract_wfd_payload call typo 2022-01-21 08:53:35 -06:00
p2p.h Add minimal p2p.c and p2p.h 2020-04-10 06:31:19 -05:00
p2putil.c p2putil: Ensure non-negative index in p2p_get_random_string 2021-06-04 11:53:31 -05:00
p2putil.h treewide: Various style fixups 2022-01-11 11:07:05 -06:00
pkcs8.conf build: Provide modules-load.d for loading pkcs8_key_parser module 2019-01-23 18:22:11 +01:00
resolve.c treewide: Parse EnableNetworkConfiguration in one place 2021-10-22 12:12:02 -05:00
resolve.h resolve: configure systemd-resolved's MulticastDNS= setting 2021-02-11 15:06:01 -06:00
rfkill.c module: Move declarations into separate header file 2019-11-07 23:40:13 +01:00
rfkill.h treewide: Move the Intel copyright forward to 2019 2019-10-25 00:43:08 +02:00
rrm.c treewide: update scan utility usage to use band_* 2021-11-29 17:07:44 -06:00
sae.c sae: fix missing reallocarray definition 2022-01-26 13:21:52 -06:00
sae.h sae: add sae_sm_set_force_group_19 2021-08-25 13:05:05 -05:00
scan.c scan: remove periodic scans from queue on abort 2022-02-07 16:11:23 -06:00
scan.h scan: move scan_freq_set* into util 2021-11-30 12:29:06 -06:00
simauth.c simauth: check driver for NULL before canceling request 2020-11-16 17:04:30 -06:00
simauth.h treewide: Various style fixups 2022-01-11 11:07:05 -06:00
simutil.c eap: Simplify sending EAP method responses 2020-08-13 10:36:43 -05:00
simutil.h treewide: Move the Intel copyright forward to 2019 2019-10-25 00:43:08 +02:00
station.c station: fix >80 character lines 2022-02-10 16:22:00 -06:00
station.h station: add OWE_HIDDEN_STARTED/FINISHED events 2021-09-15 15:49:05 -05:00
storage.c storage: implement network profile encryption 2022-02-15 17:19:33 -06:00
storage.h storage: implement network profile encryption 2022-02-15 17:19:33 -06:00
sysfs.c sysfs: introduce sysfs module 2021-11-03 17:44:00 -05:00
sysfs.h sysfs: introduce sysfs module 2021-11-03 17:44:00 -05:00
util.c treewide: Various style fixups 2022-01-11 11:07:05 -06:00
util.h handshake: Do not crash if handshake is destroyed 2022-02-03 09:44:08 -06:00
watchlist.c watchlist: Remove '__' prefix from static functions 2021-03-09 15:28:36 -06:00
watchlist.h watchlist: Save the watchlist pointer in WATCHLIST_NOTIFY_* 2020-05-01 11:38:57 -05:00
wiphy.c treewide: Remove unneeded else statements 2022-01-11 11:07:33 -06:00
wiphy.h wiphy: define work priorities in one place 2022-01-11 12:36:22 -06:00
wsc.c treewide: Use __func__ when possible 2022-01-11 11:07:33 -06:00
wsc.h wsc: Rework wsc_enrollee_destroy 2020-01-17 12:50:23 -06:00
wscutil.c wscutil: Avoid potential overflow 2022-01-14 09:49:47 -06:00
wscutil.h wscutil: Move DeviceType parsing from p2p & eap-wsc to a function 2021-04-26 10:48:03 -05:00