Tim Kourt
81d570572e
wiphy: Add MAC randomization feature check API
2019-01-16 13:01:12 -06:00
Denis Kenzior
0dd8114970
wiphy: Add wiphy state watch add / remove
2018-11-29 11:22:50 -06:00
Denis Kenzior
9be982b460
wiphy: Introduce wiphy_new
2018-11-29 11:22:07 -06:00
James Prestwood
d19b1bb85e
wiphy: Handle OWE AKM for SECURITY_TYPE_NONE
2018-11-16 16:59:59 -06:00
James Prestwood
50acc11f07
wiphy: added wiphy_select_akm
...
This is a replacement for station's static select_akm_suite. This was
done because wiphy can make a much more intellegent decision about the
akm suite by checking the wiphy supported features e.g. SAE support.
This allows a connection to hybrid WPA2/WPA3 AP's if SAE is not
supported in the kernel.
2018-09-25 10:58:04 -05:00
James Prestwood
272cb441cd
wiphy: only connect to SAE if feature is supported
2018-09-25 10:56:06 -05:00
Denis Kenzior
88b2aefeed
wiphy: Add missing blank
2018-09-18 17:06:07 -05:00
Denis Kenzior
8102b33634
wiphy: Support Adapter.SupportedModes property
2018-08-07 17:10:26 -05:00
Denis Kenzior
33e83b8c7c
wiphy: Parse & report supported interface types
2018-08-07 16:45:17 -05:00
Denis Kenzior
6f2fbe32f9
wiphy: Add wiphy_supports_adhoc_rsn
2018-08-07 15:38:15 -05:00
Denis Kenzior
3b4cc1bfe2
wiphy: Rename get_ext_feature API
...
to has_ext_feature
2018-05-24 15:24:16 -05:00
Tim Kourt
933eabb6ef
wiphy: added accessor for the feature flags
2018-05-24 13:10:56 -05:00
Tim Kourt
46abfc7813
wiphy: add support for MAX_NUM_SCAN_SSIDS
2018-05-08 19:17:40 -05:00
Denis Kenzior
b8c80060d3
wiphy: Update ext_features size
2018-05-01 20:46:06 -05:00
Andrew Zaborowski
ffcda135d2
eapol: Check for "No Group Traffic" group cipher suite
2017-10-23 11:14:40 -05:00
Andrew Zaborowski
fd4ab5d3df
wiphy: Add wiphy_get_ext_feature
...
Save the extended features reported by the wiphy in the NEW_WIPHY event
or GET_WIPHY dump and allow netdev to query it with
wiphy_get_ext_feature()
2017-05-19 10:01:53 -05:00
Denis Kenzior
cacd0d83f4
wiphy: Add phy filtering
2017-03-16 16:50:25 -05:00
Denis Kenzior
5dc347ecb1
wiphy: Coalesce ATTR_WIPHY parsing logic
...
We parse ATTR_WIPHY and ATTR_WIPHY_NAME in several places. Implement a
helper function to make this easier and cut down on code size.
2017-03-08 17:32:38 -06:00
Denis Kenzior
97191d56f1
wiphy: Make sure path is valid
...
DBus has certain rules on what constitutes a valid path. Since the
wiphy name is freeform, it is possible to set it such that the contents
do not contain a valid path.
We fall back to simply using the wiphy index as the path.
2017-03-07 12:01:40 -06:00
Denis Kenzior
c3b33a2cfd
wiphy: Make sure Name attribute is valid utf8
...
DBus strings must be valid utf8. The kernel only enforces that the
wiphy name is null terminated string. It does not validate or otherwise
check the contents in any way. Thus it is possible to have
non-printable or non-utf8 characters inside.
2017-03-07 12:00:03 -06:00
Denis Kenzior
4703dd5200
wiphy: Remove pointless check
...
wiphy->name is always true since the name member is an array
2017-03-07 11:23:54 -06:00
Denis Kenzior
74e1b85e54
wiphy: React to wiphy name changes
...
NL80211_CMD_SET_WIPHY can be used to set various attributes on the wiphy
object in the kernel. This includes ATTR_WIPHY_NAME among others. iwd
currently does not parse or store any of the other attributes, so we
react to changes in WIPHY_NAME only.
2017-03-07 11:22:25 -06:00
Denis Kenzior
d86b7404fd
wiphy: Remove unneeded check
...
The wiphy attribute should never be repeated by the kernel, so this
check is ultimately not needed. This condition can also be easily
checked by looking at the iwmon output in case things do go terribly
wrong.
2017-03-07 09:57:40 -06:00
Tim Kourt
d3030acbec
wiphy: Use real adapter name in path str
2017-02-21 13:34:24 -06:00
Tim Kourt
18886349df
wiphy: expose the name property through DBus
2017-02-21 13:33:50 -06:00
Andrew Zaborowski
99e58db152
wiphy: Add utility to check if bss ciphers compatible
...
Move the BSS's supported ciphers checks from network_bss_select to a new
function in wiphy.c so we can reuse it in device.c.
2017-01-20 15:42:31 -06:00
Markus Ongyerth
139c8af210
wiphy: Remove useless null check on array
2016-12-19 11:02:55 -06:00
Denis Kenzior
bdd676a23a
wiphy: Add support for BIP in wiphy_select_cipher
2016-10-24 21:29:37 -05:00
Denis Kenzior
2899315828
wiphy: Rename pairwise_ciphers to supported_ciphers
...
Since the ciphers stored here are not only for pairwise, but also group
and management ciphers.
2016-10-24 21:29:03 -05:00
Denis Kenzior
13f83fda81
wiphy: Also print whether we support BIP
2016-10-24 21:25:04 -05:00
Andrew Zaborowski
0ffec2e481
dbus: Switch to using org.freedesktop.DBus.Properties
...
Use the org.freedesktop.DBus.Properties interfaces on objects with
properties and drop the old style GetProperty/SetProperty methods on
individual interfaces. Agent and KnownNetworks have no properties at
this time so don't add org.freedesktop.DBus.Properties interfaces.
2016-09-21 16:46:34 -05:00
Denis Kenzior
c60d34cd8d
wiphy: Add wiphy_get_supported_bands
2016-09-13 14:36:46 -05:00
Andrew Zaborowski
c0b81662e4
wiphy: Add a Model and Vendor properties
...
Use the ell hwdb api to find the device model and vendor and expose
these as DBus properties.
2016-08-04 12:35:20 -05:00
Denis Kenzior
37ea99d09e
netdev: Remove netdev_new_wiphy_hint
2016-07-19 15:49:22 -05:00
Andrew Zaborowski
2e845b5ee2
wiphy: Powered property setter
2016-07-13 12:33:30 -05:00
Andrew Zaborowski
bafafbf080
wiphy: Add a read-only Powered property
2016-07-13 10:34:23 -05:00
Andrew Zaborowski
4ebdf4e2ca
wiphy: Add Adapter objects above Device
...
Change the path for net.connman.iwd.Device objects to /phyX/Y and
register net.connman.iwd.Adapter at /phyX grouping devices of the same
wiphy.
Turns out no changes to the test/* scripts are needed.
2016-07-13 10:32:49 -05:00
Denis Kenzior
0cffac45d4
wiphy: Notify netdev when a new wiphy has been added
2016-07-01 14:42:18 -05:00
Denis Kenzior
e81af82313
wiphy: React to new_wiphy events
2016-06-24 23:32:15 -05:00
Denis Kenzior
3bd0c9ae13
wiphy: React to del_wiphy events
2016-06-24 23:31:58 -05:00
Denis Kenzior
1500756144
wiphy: Print wiphy id
2016-06-24 23:31:02 -05:00
Denis Kenzior
ed18ab4fc0
wiphy: Rework wiphy dump parser
2016-06-24 23:30:05 -05:00
Denis Kenzior
0d9ec3b5ed
wiphy: Rework printing basic wiphy info
2016-06-24 23:30:05 -05:00
Denis Kenzior
74add19057
device: Move the rest of device specific code
...
.. out of wiphy.c
2016-06-16 16:37:14 -05:00
Denis Kenzior
0fe815f870
netdev: Move deauthenticate handling out of wiphy.c
2016-06-16 16:37:14 -05:00
Denis Kenzior
48c0a216d7
wiphy: Rearrange / remove #includes
2016-06-16 16:37:14 -05:00
Denis Kenzior
c28e652570
device: Move device_list management out of wiphy.c
2016-06-16 16:37:14 -05:00
Denis Kenzior
49c7515ac1
netdev: Move eapol_io handling
2016-06-16 16:37:12 -05:00
Denis Kenzior
75ce550de9
netdev: Move operstate operations out of wiphy.c
...
Also make netdev_set_linkmode_and_operstate static
2016-06-16 15:13:43 -05:00
Denis Kenzior
dd4b0dc3d3
netdev: Move key setting logic out of wiphy.c
2016-06-16 15:13:43 -05:00