mac80211-hwsim: Add HWSIM_CMD_GET_RADIO command
authorPatrik Flykt <patrik.flykt@linux.intel.com>
Wed, 12 Nov 2014 14:42:40 +0000 (16:42 +0200)
committerJohannes Berg <johannes.berg@intel.com>
Wed, 19 Nov 2014 17:59:32 +0000 (18:59 +0100)
commit93d638d49cac96a93abf09bb3526f2112d9f8387
tree6ad56791049158efeb771fdfdb10103c90a7d31f
parentc449981c4761f16d57db70834bee0380c7c97f18
mac80211-hwsim: Add HWSIM_CMD_GET_RADIO command

HWSIM_CMD_GET_RADIO returns information about a specific radio id or
all of them in response to a dump. Create the netlink skb or use the
one provided by the dump functionality. Use the existing attribute
appending function to fill in the same attributes when creating a
new hwsim radio.

Save alpha2 and struct ieee80211_regdomain in the hwsim data or else
they will be lost in the depths of regulatory infrastructure.

Signed-off-by: Patrik Flykt <patrik.flykt@linux.intel.com>
Signed-off-by: Johannes Berg <johannes.berg@intel.com>
drivers/net/wireless/mac80211_hwsim.c
drivers/net/wireless/mac80211_hwsim.h