nl80211: Add command-to-string mapping for previously missed commands
In addition, make the compiler warn if a new enum value is added without defining the matching mapping to a string. Signed-off-by: Jouni Malinen <j@w1.fi>
This commit is contained in:
parent
0f37b8142b
commit
a20ace3a1e
1 changed files with 29 additions and 3 deletions
|
@ -138,19 +138,45 @@ static const char * nl80211_command_to_string(enum nl80211_commands cmd)
|
||||||
C2S(NL80211_CMD_SET_QOS_MAP)
|
C2S(NL80211_CMD_SET_QOS_MAP)
|
||||||
C2S(NL80211_CMD_ADD_TX_TS)
|
C2S(NL80211_CMD_ADD_TX_TS)
|
||||||
C2S(NL80211_CMD_DEL_TX_TS)
|
C2S(NL80211_CMD_DEL_TX_TS)
|
||||||
|
C2S(NL80211_CMD_GET_MPP)
|
||||||
|
C2S(NL80211_CMD_JOIN_OCB)
|
||||||
|
C2S(NL80211_CMD_LEAVE_OCB)
|
||||||
|
C2S(NL80211_CMD_CH_SWITCH_STARTED_NOTIFY)
|
||||||
|
C2S(NL80211_CMD_TDLS_CHANNEL_SWITCH)
|
||||||
|
C2S(NL80211_CMD_TDLS_CANCEL_CHANNEL_SWITCH)
|
||||||
C2S(NL80211_CMD_WIPHY_REG_CHANGE)
|
C2S(NL80211_CMD_WIPHY_REG_CHANGE)
|
||||||
|
C2S(NL80211_CMD_ABORT_SCAN)
|
||||||
|
C2S(NL80211_CMD_START_NAN)
|
||||||
|
C2S(NL80211_CMD_STOP_NAN)
|
||||||
|
C2S(NL80211_CMD_ADD_NAN_FUNCTION)
|
||||||
|
C2S(NL80211_CMD_DEL_NAN_FUNCTION)
|
||||||
|
C2S(NL80211_CMD_CHANGE_NAN_CONFIG)
|
||||||
|
C2S(NL80211_CMD_NAN_MATCH)
|
||||||
|
C2S(NL80211_CMD_SET_MULTICAST_TO_UNICAST)
|
||||||
|
C2S(NL80211_CMD_UPDATE_CONNECT_PARAMS)
|
||||||
|
C2S(NL80211_CMD_SET_PMK)
|
||||||
|
C2S(NL80211_CMD_DEL_PMK)
|
||||||
C2S(NL80211_CMD_PORT_AUTHORIZED)
|
C2S(NL80211_CMD_PORT_AUTHORIZED)
|
||||||
|
C2S(NL80211_CMD_RELOAD_REGDB)
|
||||||
C2S(NL80211_CMD_EXTERNAL_AUTH)
|
C2S(NL80211_CMD_EXTERNAL_AUTH)
|
||||||
C2S(NL80211_CMD_STA_OPMODE_CHANGED)
|
C2S(NL80211_CMD_STA_OPMODE_CHANGED)
|
||||||
C2S(NL80211_CMD_CONTROL_PORT_FRAME)
|
C2S(NL80211_CMD_CONTROL_PORT_FRAME)
|
||||||
|
C2S(NL80211_CMD_GET_FTM_RESPONDER_STATS)
|
||||||
|
C2S(NL80211_CMD_PEER_MEASUREMENT_START)
|
||||||
|
C2S(NL80211_CMD_PEER_MEASUREMENT_RESULT)
|
||||||
|
C2S(NL80211_CMD_PEER_MEASUREMENT_COMPLETE)
|
||||||
|
C2S(NL80211_CMD_NOTIFY_RADAR)
|
||||||
C2S(NL80211_CMD_UPDATE_OWE_INFO)
|
C2S(NL80211_CMD_UPDATE_OWE_INFO)
|
||||||
|
C2S(NL80211_CMD_PROBE_MESH_LINK)
|
||||||
|
C2S(NL80211_CMD_SET_TID_CONFIG)
|
||||||
C2S(NL80211_CMD_UNPROT_BEACON)
|
C2S(NL80211_CMD_UNPROT_BEACON)
|
||||||
C2S(NL80211_CMD_CONTROL_PORT_FRAME_TX_STATUS)
|
C2S(NL80211_CMD_CONTROL_PORT_FRAME_TX_STATUS)
|
||||||
|
C2S(NL80211_CMD_SET_SAR_SPECS)
|
||||||
default:
|
C2S(__NL80211_CMD_AFTER_LAST)
|
||||||
return "NL80211_CMD_UNKNOWN";
|
|
||||||
}
|
}
|
||||||
#undef C2S
|
#undef C2S
|
||||||
|
|
||||||
|
return "NL80211_CMD_UNKNOWN";
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue