3
0
mirror of https://git.kernel.org/pub/scm/network/wireless/iwd.git synced 2024-11-27 03:19:24 +01:00
iwd/src
Andrew Zaborowski d0ccb8496a scan: Fix tracking external scans in sc->state
sc->state would get set when the TRIGGERED event arrived or when the
triggered callback for our own SCAN_TRIGGER command is received.
However it would not get reset to NOT_RUNNING when the NEW_SCAN_RESULTS
event is received, instead we'd first request the results with GET_SCAN
and only reset sc->state when that returns.  If during that command a
new scan gets triggered, the GET_SCAN callback would still reset
sc->state and clobber the value set by the new scan.

To fix that repurpose sc->state to only track that period from the
TRIGGERED signal to the NEW_SCAN_RESULTS signal.  sc->triggered can be
used to check if we're still waiting for the GET_SCAN command and
sc->start_cmd_id to check if we're waiting for the scan to get
triggered, so one of these three variables will now always indicate if
a scan is in progress.
2019-03-11 17:28:41 -05:00
..
adhoc.c adhoc: wait for both handshakes before adding peer 2018-10-26 15:29:48 -05:00
adhoc.h adhoc: implement setting TX GTK 2018-10-08 21:38:30 -05:00
agent.c agent: Add new request types 2018-04-19 11:49:41 -05:00
agent.h agent: Add new request types 2018-04-19 11:49:41 -05:00
ap.c ap: move ie_parse_supported_rates into ap.c 2019-02-22 17:41:01 -06:00
ap.h device: added DEVICE_EVENT_MODE_CHANGED 2018-07-17 18:52:59 -05:00
backtrace.c build: only enable backtrace(3) in maintainer mode 2018-11-26 14:32:04 -06:00
backtrace.h build: only enable backtrace(3) in maintainer mode 2018-11-26 14:32:04 -06:00
blacklist.c blacklist: add blacklist.[ch] to build and main 2019-01-24 17:29:15 -06:00
blacklist.h blacklist: add blacklist.[ch] to build and main 2019-01-24 17:29:15 -06:00
common.c common: Classify OWE networks as open 2018-11-16 16:59:59 -06:00
common.h scan: Move scan_get_security to common.c 2018-05-24 19:22:16 -05:00
crypto.c crypto: Optimize hkdf_expand slightly 2019-01-22 11:40:07 -06:00
crypto.h crypto: allow hkdf_expand/extract to use different SHA's 2019-01-17 15:20:28 -06:00
dbus.c dbus: Remove unneeded include 2018-10-19 00:20:35 -05:00
dbus.h main: Don't init nl80211 until dbus name is owned 2018-09-11 20:06:00 -05:00
device.c device: Restore device Powered state 2018-11-29 11:34:07 -06:00
device.h station: Move remaining connect/re-connect/roam logic 2018-09-04 23:57:14 -05:00
eap-aka.c build: Fix includes for using with -std=c99 compiler option 2018-11-01 22:37:11 +01:00
eap-gtc.c eap: Remove redundant error messages in .load_settings 2019-02-08 13:43:05 -06:00
eap-md5.c eap: Remove redundant error messages in .load_settings 2019-02-08 13:43:05 -06:00
eap-mschapv2.c eap: Remove redundant error messages in .load_settings 2019-02-08 13:43:05 -06:00
eap-mschapv2.h mschaputil: Move mschapv2 funcs into common util 2019-01-10 16:48:45 -06:00
eap-peap.c eap-peap: Migrate to eap-tls-common framework 2018-12-05 22:31:17 -06:00
eap-private.h eap: Add accessors for the method name and type 2018-11-19 17:10:53 -06:00
eap-pwd.c eap-pwd: Remove unneeded cast 2019-01-31 12:41:58 -06:00
eap-sim.c build: Fix includes for using with -std=c99 compiler option 2018-11-01 22:37:11 +01:00
eap-tls-common.c eap-tls-common: More complete certificate validation 2019-02-08 13:59:32 -06:00
eap-tls-common.h eap-tls-common: Make databuf private 2018-12-11 17:09:51 -06:00
eap-tls.c eap-tls: Check AP identity in tls ready callbck 2018-12-10 12:04:56 -06:00
eap-ttls.c eap-ttls: Check phase2-method is non-NULL in load_settings 2019-02-28 13:02:26 -06:00
eap-wsc.c eap-wsc: Use new l_key DH helper functions 2019-01-14 15:20:50 -06:00
eap-wsc.h eap-wsc: Send credential obtained events 2016-09-13 13:32:47 -05:00
eap.c eap: Make Identity optional 2019-01-11 17:36:33 -06:00
eap.h eap: Add secret cache policy types 2018-08-08 19:43:05 -05:00
eapol.c eapol: Relax message 2 / 4 key_length check 2019-02-07 10:13:17 -06:00
eapol.h eapol: allow 16, 24 and 32 byte MIC lengths 2019-01-17 15:20:28 -06:00
eapolutil.c eapol: allow 16, 24 and 32 byte MIC lengths 2019-01-17 15:20:28 -06:00
eapolutil.h eapol: allow 16, 24 and 32 byte MIC lengths 2019-01-17 15:20:28 -06:00
ftutil.c ftutil: add associate parser 2019-03-05 11:44:41 -06:00
ftutil.h ftutil: add associate parser 2019-03-05 11:44:41 -06:00
genbuiltin make: plugin system for build 2017-11-28 13:20:33 -06:00
handshake.c handshake: Remove unused handshake_state_get_8021x_config 2019-02-08 13:42:44 -06:00
handshake.h handshake: Remove unused handshake_state_get_8021x_config 2019-02-08 13:42:44 -06:00
ie.c ie: scan: use VHT rates in scan ranking 2019-02-25 15:07:41 -06:00
ie.h ie: scan: use VHT rates in scan ranking 2019-02-25 15:07:41 -06:00
iwd-dbus.conf tools: Add configure option and D-Bus policy file for hwsim utility 2018-09-14 15:24:15 +02:00
iwd.h main: Don't init nl80211 until dbus name is owned 2018-09-11 20:06:00 -05:00
iwd.service.in iwd.service: restart service on crash 2018-11-26 14:38:07 -06:00
knownnetworks.c knownnetworks: Use full include path local includes 2018-10-26 21:30:44 +02:00
knownnetworks.h knownnetworks: move known_networks_init/exit to iwd.h 2018-08-14 13:36:48 -05:00
main.c main: Ensure existence of the storage dir at startup 2019-02-07 11:07:43 -06:00
mpdu.c mpdu: relax IE ordering requirements 2019-02-07 10:44:09 -06:00
mpdu.h mpdu: remove invalid reason codes 2019-02-27 16:16:25 -06:00
mschaputil.c mschaputil: Move generator of the hash of the pwd hash 2019-01-10 17:09:10 -06:00
mschaputil.h mschaputil: Move generator of the hash of the pwd hash 2019-01-10 17:09:10 -06:00
net.connman.iwd.service net.connman.iwd.service: Change SystemdService name to iwd.service 2018-08-09 10:45:16 -05:00
netdev.c netdev: Fix crash when aborting a connection 2019-03-08 16:28:15 -06:00
netdev.h netdev: pass event data to netdev events 2019-02-28 18:26:45 -06:00
network.c network: add APIs to blacklist BSS's per-network 2019-03-01 13:08:01 -06:00
network.h network: add APIs to blacklist BSS's per-network 2019-03-01 13:08:01 -06:00
nl80211util.c build: Rename nl80211_util.[ch] into nl80211util.[ch] 2018-10-14 05:41:06 +02:00
nl80211util.h build: Rename nl80211_util.[ch] into nl80211util.[ch] 2018-10-14 05:41:06 +02:00
owe.c owe: handle all non-zero status codes in owe_rx_associate 2019-03-05 16:20:40 -06:00
owe.h netdev: process association in netdev_associate_event 2019-03-05 16:02:52 -06:00
pkcs8.conf build: Provide modules-load.d for loading pkcs8_key_parser module 2019-01-23 18:22:11 +01:00
plugin.c plugins: module to load ell plugins 2017-11-28 13:30:06 -06:00
plugin.h plugins: module to load ell plugins 2017-11-28 13:30:06 -06:00
rfkill.c rfkill: Fix wiphy ID lookup 2016-07-20 15:29:39 -05:00
rfkill.h Add rfkill enable/disable and watch support 2016-07-07 13:21:08 -05:00
sae.c netdev: sae: owe: update to use new status codes 2019-02-27 16:15:23 -06:00
sae.h sae: implementation 2018-08-13 20:40:59 -05:00
scan.c scan: Fix tracking external scans in sc->state 2019-03-11 17:28:41 -05:00
scan.h ie: scan: use VHT rates in scan ranking 2019-02-25 15:07:41 -06:00
simauth.c simauth: Use full include path local includes 2018-10-26 21:34:58 +02:00
simauth.h main: Simplify sim_auth_init 2018-07-17 19:12:48 -05:00
simutil.c simauth: Use full include path local includes 2018-10-26 21:34:58 +02:00
simutil.h eap: Separate private bits into eap-private.h 2018-06-14 20:01:19 -05:00
station.c station: temporarily blacklist BSS for certain status codes 2019-03-01 13:13:08 -06:00
station.h station: Make station_create/station_free static 2018-09-24 14:07:03 -05:00
storage.c build: Fix includes for using with -std=c99 compiler option 2018-11-01 22:37:11 +01:00
storage.h build: Fix includes for using with -std=c99 compiler option 2018-11-01 22:37:11 +01:00
util.c util: Only include <ell/ell.h> and use full include path 2018-10-26 21:24:20 +02:00
util.h build: Fix includes for using with -std=c99 compiler option 2018-11-01 22:37:11 +01:00
watchlist.c watchlist: Use full include path local includes 2018-10-26 21:33:01 +02:00
watchlist.h watchlist: fix stale watchlist item processing 2018-09-19 14:17:26 -05:00
wiphy.c wiphy: Add accessor for supported frequencies 2019-02-28 10:53:04 -06:00
wiphy.h wiphy: Add accessor for supported frequencies 2019-02-28 10:53:04 -06:00
wsc.c netdev: pass event data to netdev events 2019-02-28 18:26:45 -06:00
wscutil.c wscutil: Use full include path local includes 2018-10-26 21:33:38 +02:00
wscutil.h wscutil: Add wsc_pin_generate 2017-02-17 12:27:13 -06:00