Commit 5940c3e4 authored by Jukka Rissanen's avatar Jukka Rissanen Committed by Johannes Berg

mac80211-hwsim: Rename CREATE and DESTROY radio to NEW and DEL radio

Using the name HWSIM_CMD_NEW_RADIO and HWSIM_CMD_DEL_RADIO is more
fitting on how other pieces of the wireless system work.
Signed-off-by: default avatarJukka Rissanen <jukka.rissanen@linux.intel.com>
Signed-off-by: default avatarJohannes Berg <johannes.berg@intel.com>
parent 9ffe9044
...@@ -65,9 +65,10 @@ enum hwsim_tx_control_flags { ...@@ -65,9 +65,10 @@ enum hwsim_tx_control_flags {
* kernel, uses: * kernel, uses:
* %HWSIM_ATTR_ADDR_TRANSMITTER, %HWSIM_ATTR_FLAGS, * %HWSIM_ATTR_ADDR_TRANSMITTER, %HWSIM_ATTR_FLAGS,
* %HWSIM_ATTR_TX_INFO, %HWSIM_ATTR_SIGNAL, %HWSIM_ATTR_COOKIE * %HWSIM_ATTR_TX_INFO, %HWSIM_ATTR_SIGNAL, %HWSIM_ATTR_COOKIE
* @HWSIM_CMD_CREATE_RADIO: create a new radio with the given parameters, * @HWSIM_CMD_NEW_RADIO: create a new radio with the given parameters,
* returns the radio ID (>= 0) or negative on errors * returns the radio ID (>= 0) or negative on errors, if successful
* @HWSIM_CMD_DESTROY_RADIO: destroy a radio * then multicast the result
* @HWSIM_CMD_DEL_RADIO: destroy a radio, reply is multicasted
* @__HWSIM_CMD_MAX: enum limit * @__HWSIM_CMD_MAX: enum limit
*/ */
enum { enum {
...@@ -75,12 +76,15 @@ enum { ...@@ -75,12 +76,15 @@ enum {
HWSIM_CMD_REGISTER, HWSIM_CMD_REGISTER,
HWSIM_CMD_FRAME, HWSIM_CMD_FRAME,
HWSIM_CMD_TX_INFO_FRAME, HWSIM_CMD_TX_INFO_FRAME,
HWSIM_CMD_CREATE_RADIO, HWSIM_CMD_NEW_RADIO,
HWSIM_CMD_DESTROY_RADIO, HWSIM_CMD_DEL_RADIO,
__HWSIM_CMD_MAX, __HWSIM_CMD_MAX,
}; };
#define HWSIM_CMD_MAX (_HWSIM_CMD_MAX - 1) #define HWSIM_CMD_MAX (_HWSIM_CMD_MAX - 1)
#define HWSIM_CMD_CREATE_RADIO HWSIM_CMD_NEW_RADIO
#define HWSIM_CMD_DESTROY_RADIO HWSIM_CMD_DEL_RADIO
/** /**
* enum hwsim_attrs - hwsim netlink attributes * enum hwsim_attrs - hwsim netlink attributes
* *
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment