3
0
mirror of https://git.kernel.org/pub/scm/network/wireless/iwd.git synced 2024-11-18 01:59:31 +01:00
Commit Graph

8 Commits

Author SHA1 Message Date
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
f125a78df8 hwsim: Minor style fix 2014-10-13 12:56:27 -05:00
Jukka Rissanen
1a07cf4ab1 hwsim: Add attribute to destroy radio when program stops
The new attribute causes the radio to be removed if the hwsim process
dies. This is the default behaviour. If user calls the binary with -k
option, then the radio is kept after hwsim quits.
This requires kernel support for HWSIM_ATTR_DESTROY_RADIO_ON_CLOSE
attribute.
2014-10-13 12:53:09 -05:00
Denis Kenzior
c3e9ac662a hwsim: Cleanup some style issues 2014-10-07 21:36:10 -05:00
Denis Kenzior
210187fb45 hwsim: Make compile 2014-10-07 21:35:58 -05:00
Jukka Rissanen
a052cb5d3c hwsim: Radio id was not parsed properly
When a new radio is created, the kernel returns the new radio id
in the error code. If the error < 0, then that means a real error
and other values are used as a radio id.

When a radio is destroyed, the error code 0 means a success and
other values indicate an error.
2014-10-07 21:31:36 -05:00
Marcel Holtmann
2d75ab55e7 tools: Add simple utility for interacting with mac80221_hwsim 2014-08-08 15:40:43 -07:00