linux-wireless.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH 0/2] Add HWSIM_CMD_GET_RADIO command
@ 2014-11-07  8:21 Patrik Flykt
  2014-11-07  8:21 ` [PATCH 1/2] mac80211-hwsim: Factor out netlink attribute appending Patrik Flykt
  2014-11-07  8:22 ` [PATCH 2/2] mac80211-hwsim: Add HWSIM_CMD_GET_RADIO command Patrik Flykt
  0 siblings, 2 replies; 6+ messages in thread
From: Patrik Flykt @ 2014-11-07  8:21 UTC (permalink / raw)
  To: linux-wireless


      Hi,

This patch set adds a new HWSIM_CMD_GET_RADIO command to mac80211_hwsim
which allows a user space application to dump a list of all hwsim radios
in the system. HWSIM_CMD_GET_RADIO can also return information about a
specific hwsim radio whose radio id is given with HWSIM_ATTR_RADIO_ID.

The first patch factors out netlink attribute appending from netlink
message creation so that the same information can be appended to
HWSIM_CMD_GET_RADIO replies as is already sent by multicast when issuing
a HWSIM_CMD_CREATE_RADIO command.

Patch 2/2 adds the new command providing means to dump all or one of the
existing radios. Regulatory data is saved to the hwsim struct as it
seems difficult to access it otherwise when needed.


Cheers,

	Patrik


Patrik Flykt (2):
  mac80211-hwsim: Factor out netlink attribute appending
  mac80211-hwsim: Add HWSIM_CMD_GET_RADIO command

 drivers/net/wireless/mac80211_hwsim.c | 167 +++++++++++++++++++++++++++-------
 drivers/net/wireless/mac80211_hwsim.h |   3 +
 2 files changed, 139 insertions(+), 31 deletions(-)

-- 
2.1.1


^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2014-11-12 13:09 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-11-07  8:21 [PATCH 0/2] Add HWSIM_CMD_GET_RADIO command Patrik Flykt
2014-11-07  8:21 ` [PATCH 1/2] mac80211-hwsim: Factor out netlink attribute appending Patrik Flykt
2014-11-10  9:32   ` Johannes Berg
2014-11-12 13:08     ` Patrik Flykt
2014-11-07  8:22 ` [PATCH 2/2] mac80211-hwsim: Add HWSIM_CMD_GET_RADIO command Patrik Flykt
2014-11-10  9:34   ` Johannes Berg

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).