Skip to content

Add HWSIM_CMD_GET_RADIO command

Patrik Flykt linux-wireless 2 versions – Applied

Status from this message: Applied.

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v2 Latest2 patches 2 repliesApplied
  2. v12 patches 3 repliesSuperseded

Changes in v2 from the cover letter

- Free skb in the error path in patch 01
- Fix dumping of hwsim radios in patch 02. Remember the last radio id used when adding radios to the previous netlink message and continue from this radio id onwards.

Patches in v2 Applied

#Subject and filesSizeRepliesApplied
1/2mac80211-hwsim: Factor out netlink attribute appendingdrivers/net/wireless/mac80211_hwsim.c+30 -301 reply
2/2mac80211-hwsim: Add HWSIM_CMD_GET_RADIO commanddrivers/net/wireless/mac80211_hwsim.c drivers/net/wireless/mac80211_hwsim.h+125 -11 reply

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v2 yet.

Read the v2 thread

Cover letter [PATCH v2 0/2] Add HWSIM_CMD_GET_RADIO command
	Hi,

v2:
- Free skb in the error path in patch 01
- Fix dumping of hwsim radios in patch 02. Remember the last radio id used when adding radios to the previous netlink message and continue from this radio id onwards.

Cheers,

Patrik

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.

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

 drivers/net/wireless/mac80211_hwsim.c | 183 ++++++++++++++++++++++++++++------
 drivers/net/wireless/mac80211_hwsim.h |   3 +
 2 files changed, 155 insertions(+), 31 deletions(-)
Signature · 1 line
2.1.1