3
0
mirror of https://git.kernel.org/pub/scm/network/wireless/iwd.git synced 2024-11-15 08:29:23 +01:00
Commit Graph

3149 Commits

Author SHA1 Message Date
Tim Kourt
7c3ed0c61d client: Command display functions 2017-04-12 15:33:00 -05:00
Tim Kourt
17569c8d8b client: define basic command ops 2017-04-12 15:32:17 -05:00
Denis Kenzior
af8afc6814 client: Fix whitespace 2017-04-12 13:06:15 -05:00
Tim Kourt
b32fde13a7 client: Add well known interfaces 2017-04-12 11:38:41 -05:00
Tim Kourt
4fc6a3038a client: Allow command registration 2017-04-11 16:48:15 -05:00
Tim Kourt
db679448bc client: Introduce command files
The purpose of these files is to encapsulate all of
the command processing functionality
2017-04-11 16:48:15 -05:00
Tim Kourt
f5cb1d46bd client: display quit 2017-04-10 20:06:05 -05:00
Tim Kourt
50c76baed4 client: Interface dependency binding 2017-04-10 20:01:43 -05:00
Tim Kourt
e3f823061e client: Add interface_type_register/unregister 2017-04-10 18:36:16 -05:00
Tim Kourt
5e3a8bcd9d client: Add proxy property handlers 2017-04-10 12:17:39 -05:00
Julien Massot
dc3b17f496 unit: fix ie test comparison
Most likely here we want to compare the variable
not doing an assignment.

unit/test-ie.c:227:2: error: suggest parentheses around
assignment used as truth value [-Werror=parentheses]
assert(expected_len = final_len);
^~~~~~
2017-04-10 09:46:10 -05:00
Tim Kourt
b6ebce0d90 client: disconnect message 2017-04-07 17:24:37 -05:00
Tim Kourt
a21db05517 client: Proxy interface destruction logic 2017-04-07 17:18:14 -05:00
Tim Kourt
0d7d5a427d client: Proxy interface creation logic 2017-04-07 17:16:24 -05:00
Tim Kourt
a60164f08f client: Add interfaces added/removed hadlers 2017-04-07 17:09:55 -05:00
Tim Kourt
27cc60987f client: handle managed objects 2017-04-06 15:14:14 -05:00
Andrew Zaborowski
10a160a6e1 device: Non-FT roaming support
Use netdev_reassociate if FT is not available.  device_select_akm_suite
is only moved up in the file and the reused code from device_connect is
moved to a separate function.
2017-04-03 09:46:15 -05:00
Andrew Zaborowski
c8b251a475 netdev: Add netdev_reassociate
netdev_reassociate transitions to another BSS without FT.  Similar to
netdev_connect but uses reassociation instead of association and
requires and an existing connection.
2017-04-03 09:41:01 -05:00
Andrew Zaborowski
bb350a3b8e autotests: Avoid periodic polling in the wait methods
Modify AsyncOpAbstract._wait_for_async_op and
IWD.wait_for_object_condition to call context.iteration() in the
blocking mode instead of calling context.pending() every 0.01s.  This
gets rid of busy-waiting and also ensures that the condition is checked
after every single dbus (or other) event.  This way a condition that
potentially occurs for less than 0.01s can be reliably waited for.
2017-03-28 19:57:16 -05:00
Andrew Zaborowski
1df2e18f61 autotests: Add FT roaming test and utility functions
This tests the FT-PSK initial Mobility Domain authentication, neighbor
reports, scanning on a subset of frequencies and FT transition.
2017-03-28 15:38:38 -05:00
Andrew Zaborowski
5ea7cbe5e9 autotests: Add classes to access hwsim dbus interface
Create hwsim.py with some classes to access hwsim's dbus objects as
python objects similar to iwd objects in iwd.py
2017-03-28 15:38:32 -05:00
Andrew Zaborowski
ebc2092c42 autotests: Pass wiphy whitelist in iwd command line
Pass the -p parameter to the iwd process started by iwd.py (only used by
testKnownNetworks) same as when iwd is started by test-runner.c
2017-03-28 15:33:25 -05:00
Andrew Zaborowski
c72cd38e76 autotests: Support multiple hostapd instances in HostapdCLI
Make the HostapdCLI class non-static so that each objects corresponds
to a hostapd instance on one network interface (this is independent of
whether the AP instances use one or separate hostapd processes)
2017-03-28 15:33:03 -05:00
Andrew Zaborowski
76339a8184 autotests: Add utility script to parse interface configuration 2017-03-28 15:31:59 -05:00
Andrew Zaborowski
80ac510be0 test-runner: Export final interface config to tests
Communicate the final wiphy and interface configuration data after the
hostapd and iwd processes are started, to the test scripts as an
environment variable TEST_WIPHY_LIST.  This way the test scripts can
know which interfaces are used by hostapd instances, which hostapd
config they're using, and which are used by iwd.  The typical value will
be
rad0=wln0=hostapd,ctrl_interface=/var/run/hostapd,config=ssidOpen.conf
rad1=wln1=iwd
2017-03-28 15:29:40 -05:00
Andrew Zaborowski
1338c446b0 hwsim: Watch RTNL NewLink events
Handle NewLink events to detect interface mac address changes.  In my
current testing I don't see nl80211 events on address change so it's
best to react to both types of events.
2017-03-28 15:26:02 -05:00
Andrew Zaborowski
52ee3b0843 scan: Add error code argument to scan results callback
Pass an additional parameter to the scan results notify functions to
tell them whether the scan was successful.  If it wasn't don't bother
passing an empty bss_list queue, pass NULL as bss_list.  This way the
callbacks can tell whether the scan indicates there are no BSSes in
range or simply was aborted and the old scan results should be kept.
2017-03-26 20:26:53 -05:00
Andrew Zaborowski
dff92b9c76 hwsim: Fix the Interface.Addresses property type 2017-03-26 11:04:42 -05:00
Andrew Zaborowski
9f96192470 doc: Fix RuleManager interface name 2017-03-26 11:04:07 -05:00
Denis Kenzior
4e421cfc8f netdev: Add sanity checks
In the case we get a connect or authenticate event, make sure we're
actually trying to connect.  Otherwise, it could be another supplicant
is running
2017-03-24 11:50:08 -05:00
Denis Kenzior
303490261f monitor: Add nortnl option to help output 2017-03-24 10:51:01 -05:00
Tim Kourt
52b878c24f client: add display functions 2017-03-24 09:11:03 -05:00
Tim Kourt
32315338ae client: add display to main 2017-03-24 09:06:30 -05:00
Tim Kourt
21bebbd581 client: Introduce display files
The purpose of these files is to encapsulate all of
the display related functionality
2017-03-24 09:06:30 -05:00
Tim Kourt
0ca8d32384 client: Subscribe for the dbus events 2017-03-24 09:06:30 -05:00
Tim Kourt
17013fc5c7 build: Add readline into the build 2017-03-23 17:50:58 -05:00
Tim Kourt
e858c3b8c0 build: Check for the presence of readline 2017-03-23 17:50:51 -05:00
Tim Kourt
4f5f231c5e client: Add dbus-proxy into main 2017-03-23 17:33:08 -05:00
Tim Kourt
def38e28b6 client: Prepare main for the new development 2017-03-23 17:32:50 -05:00
Tim Kourt
f3a60f0182 makefile: Add dbus-proxy into the build 2017-03-23 17:32:13 -05:00
Tim Kourt
aa5ba1129f client: Create dbus-proxy files
The purpose of these files is to encapsulate all of the dbus
related functionality
2017-03-23 17:31:58 -05:00
Tim Kourt
ace9bbb13e client: Adjust the license years
This patch signifies the start of the client development.
2017-03-23 10:49:21 -05:00
Marek Belisko
3f2934dfc4 README: Fix typo 2017-03-21 15:42:30 -05:00
Lukas Rusak
4f090aede3 build: remove kdbus 2017-03-17 22:34:03 -05:00
Denis Kenzior
d031e6815a test-runner: Tell iwd which phys to manage 2017-03-16 17:16:22 -05:00
Denis Kenzior
e7cb4b680e netdev: Silence warning
This can easily happen if the phy was blacklisted
2017-03-16 16:50:59 -05:00
Denis Kenzior
cacd0d83f4 wiphy: Add phy filtering 2017-03-16 16:50:25 -05:00
Denis Kenzior
c9a98d9681 device: Fix crash with autoconnect
++++++++ backtrace ++++++++
0  0x7fc0b20ca370 in /lib64/libc.so.6
1  0x4497d5 in l_dbus_message_new_error_valist() at /home/denkenz/iwd/ell/dbus-message.c:372
2  0x44994d in l_dbus_message_new_error() at /home/denkenz/iwd/ell/dbus-message.c:394
3  0x41369b in dbus_error_not_supported() at /home/denkenz/iwd/src/dbus.c:148
4  0x40eaf5 in device_connect_network() at /home/denkenz/iwd/src/device.c:1282
5  0x41f61c in network_autoconnect() at /home/denkenz/iwd/src/network.c:424
6  0x40c1c1 in device_autoconnect_next() at /home/denkenz/iwd/src/device.c:172
7  0x40cabf in device_set_scan_results() at /home/denkenz/iwd/src/device.c:368
8  0x40cb06 in new_scan_results() at /home/denkenz/iwd/src/device.c:376
9  0x41be8a in scan_finished() at /home/denkenz/iwd/src/scan.c:1021
10 0x41bf9e in get_scan_done() at /home/denkenz/iwd/src/scan.c:1048
11 0x43d5ce in destroy_request() at /home/denkenz/iwd/ell/genl.c:136
12 0x43ded1 in process_unicast() at /home/denkenz/iwd/ell/genl.c:395
13 0x43e295 in received_data() at /home/denkenz/iwd/ell/genl.c:502
14 0x43aa62 in io_callback() at /home/denkenz/iwd/ell/io.c:120
15 0x439632 in l_main_run() at /home/denkenz/iwd/ell/main.c:375 (discriminator 2)
16 0x403074 in main() at /home/denkenz/iwd/src/main.c:261
17 0x7fc0b20b7620 in /lib64/libc.so.6
2017-03-16 15:32:45 -05:00
Denis Kenzior
2e820abea1 backtrace: Try to find absolute executable path
This allows us to get backtraces from test_runner which does not start
iwd from a current working directory that is a parent of the iwd
executable.
2017-03-16 15:17:41 -05:00
Denis Kenzior
44f23e7a5f test-runner: Simplify phy creation logic
The phy creation logic was a bit complex, using a hashmap to map between
phy names in the config file (e.g. rad0, rad2, etc) and interface names
created for that phy.

We take advantage of the fact that hwsim can create a radio with a given
name to simply assign the radio name from the autotest config file
directly.  Then we name any interfaces created in order of phy creation.

A few extra sanity checks are also added.
2017-03-16 14:06:47 -05:00