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

1196 Commits

Author SHA1 Message Date
Tomasz Bursztyka
752409174d TODO: Mark CMD_(NEW|DEL)_INTERFACE task as done
CMD_NEW_INTERFACE/CMD_DEL_INTERFACE event broadcasting has been fixed in
commit 8f894be2df9ad43d17763bc0201f7f303a91f091.
2014-12-05 09:38:45 -06:00
Tomasz Bursztyka
2a794401e7 TODO: Mark CMD_NEW_WIPHY/CMD_DEL_WIPHY task done
CMD_NEW_WIPHY/CMD_DEL_WIPHY event was added in 3.16 kernel. I fixed its
logic in commit a796dac9a6bedff6db99f57828c85c97071d3d1e.
2014-12-05 09:38:09 -06:00
Patrik Flykt
7a1d9259fa TODO: Set ownersip for monitor IE decoding 2014-11-14 22:37:52 -06:00
Patrik Flykt
892ce0a412 TODO: Mark HWSIM_CMD_GET_RADIO done
Update doc/features.txt with a short description of the feature.
2014-11-14 22:37:28 -06:00
Denis Kenzior
ff30bb86dd hwsim: Fixup minor style issues 2014-11-14 22:17:30 -06:00
Denis Kenzior
55ddc6f49e hwsim: Call list_callback_done in all cases 2014-11-14 22:14:31 -06:00
Patrik Flykt
f1a5dcf6f3 hwsim: Add support for HWSIM_CMD_GET_RADIO
Add a new option to the hwsim binary to fetch all or a given hwsim radio.
Print out radio information which is currently returned in the reply to
user space.

Add new hwsim attributes to the enum and tweak getopt to behave properly
with or without giving the radio id on the command line.
2014-11-14 22:06:06 -06:00
Patrik Flykt
c2a140382a hwsim: Exit hwsim if MAC80211_HWSIM vanishes
If the MAC80211_HWSIM netlink family disappears, exit hwsim. This can
happen already at startup, for example if MAC80211_HWSIM functionality is
not compiled in the kernel or respective module loaded.
2014-11-14 21:52:57 -06:00
Denis Kenzior
ab84f2dbe4 .gitignore: Add unit/test-crypto 2014-11-14 21:45:05 -06:00
Denis Kenzior
9e8654976d unit: Add unit/test-crypto test
And move the PSK generation from passphrase unit tests there
2014-11-14 21:41:59 -06:00
Denis Kenzior
d87d7d469f crypto: Add passphrase generation utility 2014-11-14 21:41:28 -06:00
Jukka Rissanen
d0cb0aedc6 wiphy: Check return value when appending attributes
Make sure to print some errors if attributes cannot be appended
to a message. It is dangerous to ignore the return code from
l_genl_msg_append_attr() because the kernel might act weirdly
if some attribute is missing.
2014-11-12 08:10:58 -06:00
Jukka Rissanen
fcda15c587 wiphy: Scheduled scan startup message was too short
The length needs to be at least 20 bytes so that the third
attribute fits in.
2014-11-12 08:09:25 -06:00
Denis Kenzior
ad86c91b38 wiphy: Fix memory leak
Whenever we find an existing BSS, we should free the old object since it
is being removed from the old_bss_list via l_queue_remove_if
2014-11-07 22:44:30 -06:00
Denis Kenzior
333b28bf3a main: Add --dbus-debug command line parameter 2014-11-07 22:44:30 -06:00
Denis Kenzior
4dc24025a4 dbus: Add enable_debug parameter to dbus_init 2014-11-07 22:44:30 -06:00
Denis Kenzior
9de7c92429 wiphy: Remove unneeded wiphy_set_ssid function 2014-11-07 22:44:27 -06:00
Denis Kenzior
ca5f5b2e2b main: Remove unneeded ssid command line argument 2014-11-07 21:37:09 -06:00
Jukka Rissanen
672be730c3 wiphy: Add scheduled scan support
Add rudimentary support for mac80211 scheduled scan feature.
This is done so that kernel support for task called "Bind
NL80211_CMD_START_SCHED_SCAN to netlink socket" from TODO
file can be tested. The current scan interval is set to 60
seconds which is probably too fast for the final version.
2014-11-07 20:42:11 -06:00
Jukka Rissanen
054125593d linux: Update nl80211.h file
The definitions for task "Bind NL80211_CMD_START_SCHED_SCAN to netlink
socket" are needed so the header file is updated.
2014-11-07 20:40:02 -06:00
Denis Kenzior
ca18b395e2 wiphy: Fix valgrind complaint
The network list must be destroyed before the BSS list as that is used
inside network_free
2014-11-05 08:29:33 -06:00
Denis Kenzior
84765ac4db wiphy: Add GetNetworks method 2014-11-03 15:37:08 -06:00
Denis Kenzior
e7bd2276de wiphy: Make const correct 2014-11-03 15:36:52 -06:00
Denis Kenzior
2f852d2954 wiphy: Add missing signals to introspection 2014-11-03 15:24:34 -06:00
Denis Kenzior
3cf47d4109 manager: Add missing signals to introspection 2014-11-03 15:24:12 -06:00
Jukka Rissanen
fc540ecd7f todo: Mark four hwsim related tasks done
Following tasks are done as relevant kernel patches are accepted into
linux kernel.

- Add support for returning HWSIM_ATTR_RADIO_ID from HWSIM_CMD_CREATE_RADIO
- Rename HWSIM_CMD_CREATE_RADIO into HWSIM_CMD_NEW_RADIO
- Rename HWSIM_CMD_DESTROY_RADIO into HWSIM_CMD_DEL_RADIO
- Provide multicast events for HWSIM_CMD_NEW_RADIO and HWSIM_CMD_DEL_RADIO
2014-11-03 13:21:26 -06:00
Jukka Rissanen
1154360354 TODO: Add ownership on NL80211_CMD_START_SCHED_SCAN task
Taking "Bind NL80211_CMD_START_SCHED_SCAN to netlink socket" task.
2014-11-01 21:33:15 -05:00
Tomasz Bursztyka
4a6d549dc2 TODO: set owner NEW_INTERFACE/DEL_INTERFACE events 2014-11-01 21:31:51 -05:00
Jukka Rissanen
7541727942 features: Update with NEW/DEL hwsim radio events
HWSIM_CMD_NEW_RADIO and HWSIM_CMD_DEL_RADIO events are multicasted
to "config" netlink multicast group when radios are created and
deleted.
2014-11-01 21:29:40 -05:00
Denis Kenzior
47f91a47e6 hwsim: Fix up whitespace issues 2014-11-01 21:29:40 -05:00
Jukka Rissanen
fb4075da5e hwsim: Receive multicast netlink event for NEW/DEL radio commands
Kernel sends HWSIM_CMD_NEW_RADIO and HWSIM_CMD_DEL_RADIO multicast
events when new radio have been created and when existing one has
been deleted. The events are sent to "config" netlink multicast group.

The hwsim catches these events and uses the information to monitor
what simulated radios are created and deleted in the system.
2014-11-01 21:29:40 -05:00
Denis Kenzior
8e3a17cf56 wiphy: Add rudimentary Connect method 2014-10-30 00:27:06 -05:00
Denis Kenzior
e51cac7f74 wiphy: Fix uninitialized var warnings 2014-10-30 00:26:49 -05:00
Denis Kenzior
5b2e34b5b6 wiphy: add network_emit_removed 2014-10-30 00:09:29 -05:00
Denis Kenzior
0d59e91a2b wiphy: Add network_emit_added 2014-10-30 00:09:16 -05:00
Denis Kenzior
3a8eb753a3 wiphy: Expose rudimentary network information 2014-10-30 00:01:52 -05:00
Denis Kenzior
621a2a003d dbus: Add Network Interface #define 2014-10-29 23:58:36 -05:00
Denis Kenzior
64e9ad91ed wiphy: Track bss as a network object in a hashmap 2014-10-29 23:20:43 -05:00
Denis Kenzior
b484197470 wiphy: Keep track of seen BSS 2014-10-29 22:50:27 -05:00
Denis Kenzior
39fde81dba wiphy: Refactor get_scan 2014-10-28 11:15:26 -05:00
Denis Kenzior
6917824be9 wiphy: refactor parse_bss 2014-10-28 11:04:31 -05:00
Denis Kenzior
0a71163c3f wiphy: Add Scan() method 2014-10-28 09:43:36 -05:00
Denis Kenzior
d2f61dd0cd dbus: Add dbus_error_failed 2014-10-27 23:42:59 -05:00
Denis Kenzior
96a139d15b dbus: add dbus_error_busy 2014-10-27 23:42:43 -05:00
Denis Kenzior
4639c31d61 dbus: Add dbus_pending_reply 2014-10-27 23:42:05 -05:00
Denis Kenzior
051f49ea85 wiphy: Tweak netdev structure creation order
Because none of the attributes are assigned until after the DeviceAdded
signal is emitted, the signal appears with invalid properties.  For now,
move the netdev structure fill-out into the if statement.

If the netdev attributes can change, then these need to be handled
separately and appropriate signals to be sent.
2014-10-23 22:44:59 -05:00
Denis Kenzior
77255dbee0 manager: Implement GetDevices method 2014-10-23 22:41:45 -05:00
Denis Kenzior
2d6babc3f8 wiphy: Expose iwd_device_get_path 2014-10-23 22:40:32 -05:00
Denis Kenzior
2d6a50bb27 wiphy: add __iwd_device_foreach 2014-10-23 21:47:38 -05:00
Denis Kenzior
c13103974c wiphy: Expose Name property of netdevs 2014-10-23 20:29:36 -05:00