Andrew Zaborowski
d93a44a3f0
wsc: Move eapol_sm creation to netdev_connect_wsc
2016-12-15 15:16:25 -06:00
Andrew Zaborowski
e32ffc4d98
eapol: Use handshake_state to store state
...
Remove the keys and other data from struct eapol_sm, update device.c,
netdev.c and wsc.c to use the handshake_state object instead of
eapol_sm. This also gets rid of eapol_cancel and the ifindex parameter
in some of the eapol functions where sm->handshake->ifindex can be
used instead.
2016-11-03 10:23:58 -05:00
Andrew Zaborowski
a35e0c2690
netdev: FT version of association messages
...
If an MD IE is supplied to netdev_connect, pass that MD IE in the
associate request, then validate and handle the MD IE and FT IE in the
associate response from AP.
2016-11-03 10:12:44 -05:00
Denis Kenzior
f77d363840
netdev: Add netdev_connect_wsc
2016-09-13 20:50:24 -05:00
Andrew Zaborowski
f76a86d2b0
netdev: Add a NETDEV_RESULT_ABORTED
...
To be used so that the callback passed to netdev_connect can still
be called when the connection attempt is being aborted.
2016-08-01 13:18:24 -05:00
Denis Kenzior
fba5ada1a1
netdev: Make enum naming consistent with guidelines
2016-07-19 18:03:21 -05:00
Denis Kenzior
37ea99d09e
netdev: Remove netdev_new_wiphy_hint
2016-07-19 15:49:22 -05:00
Andrew Zaborowski
940f4fce46
netdev: Track interface name changes
2016-07-14 19:00:14 -05:00
Andrew Zaborowski
19fa024bd8
netdev: Reset interface state on init and exit
...
Take any managed interface down when iwd detects it and bring it back
up to start with a clean state. On exit take interfaces down.
2016-07-13 12:36:35 -05:00
Andrew Zaborowski
6f51950f46
netdev: Add netdev_set_powered
2016-07-13 10:27:41 -05:00
Denis Kenzior
005213a3d4
netdev: Implement new_wiphy hint
...
When a new wiphy is added, the kernel usually adds a default STA
interface as well. This interface is currently not signaled over
nl80211 in any way.
This implements a selective dump of the wiphy interfaces in order to
obtain the newly added netdev. Selective dump is currently not
supported by the kernel, so all netdevs will be returned. A patch on
linux-wireless is pending that implements the selective dump
functionality.
2016-07-01 14:39:25 -05:00
Denis Kenzior
e76daf224c
netdev: Implement interface filtering
2016-06-23 17:34:47 -05:00
Andrew Zaborowski
b6c22fc1b9
netdev: netdev watch support
2016-06-21 14:08:21 -05:00
Andrew Zaborowski
aa7a6a4619
netdev: Track interface UP flag
2016-06-21 14:08:19 -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
64d382cc89
netdev: Move disconnect event handling
...
.. out of wiphy.c
2016-06-16 15:13:43 -05:00
Denis Kenzior
d297fbb215
netdev: Add stubs for netdev_disconnect
2016-06-14 19:57:21 -05:00
Denis Kenzior
51f89e34e9
netdev: Add initial netdev_connect logic
2016-06-14 19:57:18 -05:00
Denis Kenzior
833ed20b9a
netdev: Add netdev_get_name
2016-06-03 09:53:47 -05:00
Denis Kenzior
1573bf7d99
netdev: Add netdev_get_iftype
2016-06-03 09:53:47 -05:00
Denis Kenzior
1bd7baf44b
netdev: Add netdev_find
2016-06-03 09:53:46 -05:00
Denis Kenzior
8e7829e1ab
netdev: Add netdev_get_address
2016-06-03 09:53:46 -05:00
Denis Kenzior
7a3f823d26
netdev: Add netdev_get_ifindex
2016-06-03 09:53:46 -05:00
Denis Kenzior
280f2d40ad
netdev: Make netdev_init accept nl80211
2016-06-03 09:53:46 -05:00
Denis Kenzior
e48ca5a5a6
wiphy: Rename netdev to device
2016-06-01 13:06:59 -05:00
Denis Kenzior
08d72cd213
netdev: Remove unused typedefs
2016-05-11 22:24:40 -05:00
Denis Kenzior
f3fc0ea1f9
device: Refactor netdev watches
...
Turn netdev watches into device watches. The intent is to refactor out
netdev specific details into its own class and move device specific
logic into device.c away from wiphy.c
2016-05-05 12:14:59 -05:00
Denis Kenzior
0e3495488f
wiphy: Move netdev_state enum
2016-05-05 11:40:54 -05:00
Denis Kenzior
14e40f27e3
netdev: Add netdev attribute getters
2015-10-02 12:58:26 -05:00
Denis Kenzior
e1bdd7ce1e
netdev: Add netdev watch infrastructure
2015-09-28 20:37:08 -05:00
Denis Kenzior
907b7d1e07
netdev: Move NETDEV_STATE enum to netdev.h
2015-09-28 20:37:08 -05:00
Jukka Rissanen
6dbd544a55
netdev: Add function to set the linkmode and operstate of the link
...
This is needed after connecting successfully to AP.
2015-03-27 13:13:33 -05:00
Marcel Holtmann
37cba460a8
core: Add tracking of network interfaces via RTNL
2014-06-21 13:41:40 +02:00